:root {
  --bg: #050303;
  --panel: rgba(14, 10, 8, 0.86);
  --panel-soft: rgba(28, 18, 13, 0.7);
  --gold: #d6a84d;
  --gold-soft: #8d6829;
  --red: #e34435;
  --text: #ead6a6;
  --muted: #9a7d4b;
  --line: rgba(214, 168, 77, 0.34);
  --shadow: 0 0 26px rgba(198, 74, 42, 0.18), inset 0 0 24px rgba(214, 168, 77, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 16%, rgba(164, 36, 22, 0.26), transparent 35%),
    radial-gradient(circle at 50% 48%, rgba(214, 168, 77, 0.08), transparent 32%),
    linear-gradient(rgba(5, 3, 3, 0.9), rgba(5, 3, 3, 0.97)),
    url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?q=80&w=1600&auto=format&fit=crop") center/cover fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 22px 38px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 24px;
  margin: 0 -22px 22px;
  background: rgba(5, 3, 3, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  min-width: 250px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 18px rgba(214, 168, 77, 0.28);
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  top: -2px;
  right: 3px;
  box-shadow: -4px 4px 0 var(--bg);
}

.brand-title {
  display: block;
  font-size: 18px;
  color: #f2cc75;
  line-height: 1.08;
}

.brand-subtitle {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2.8px;
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  color: #c5a05c;
  font-size: 14px;
  align-items: center;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: #ffe1a0;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 48px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 16px var(--red);
}

.wallet-btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  border: 1px solid rgba(214, 168, 77, 0.52);
  background: linear-gradient(180deg, rgba(105, 28, 18, 0.64), rgba(30, 10, 8, 0.9));
  color: #ffd37a;
  padding: 13px 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.wallet-btn {
  min-width: 190px;
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 2px;
}

.wallet-sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.8px;
}

.wallet-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  border-color: rgba(255, 209, 118, 0.82);
}

.wallet-btn:disabled,
.primary-btn:disabled,
.ghost-btn:disabled,
.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.35);
  transform: none;
}

.ghost-btn {
  background: rgba(13, 9, 7, 0.8);
}

.danger-btn {
  background: linear-gradient(180deg, rgba(130, 25, 14, 0.85), rgba(35, 8, 6, 0.96));
  color: #ffe0a3;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.92fr) minmax(420px, 1.78fr) minmax(270px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.stack {
  display: grid;
  gap: 18px;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(214, 168, 77, 0.06), transparent 28%),
    linear-gradient(180deg, var(--panel), rgba(7, 5, 4, 0.92));
  box-shadow: var(--shadow);
  padding: 22px;
  min-height: 120px;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: var(--gold-soft);
  pointer-events: none;
  opacity: 0.85;
}

.panel::before {
  top: 7px;
  left: 7px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.panel::after {
  right: 7px;
  bottom: 7px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.panel-title {
  color: #e9bc62;
  font-size: 20px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.panel-kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 3px;
}

.tax-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.tax-item {
  text-align: center;
}

.label {
  color: #b8904d;
  font-size: 13px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.metric {
  color: #f2c76e;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  text-shadow: 0 0 18px rgba(214, 168, 77, 0.18);
}

.tax-item .metric {
  font-size: clamp(28px, 2.25vw, 38px);
  white-space: nowrap;
}

.metric.red,
.countdown {
  color: var(--red);
  text-shadow: 0 0 20px rgba(227, 68, 53, 0.28);
}

.subtext {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 9px;
}

.center {
  text-align: center;
}

.divider-orb {
  width: 38px;
  height: 78px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(var(--gold), var(--gold-soft));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
}

.countdown {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: 5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.center-hero {
  min-height: 720px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}

.sigil {
  position: absolute;
  inset: 28px;
  opacity: 0.16;
  background:
    repeating-radial-gradient(circle, transparent 0 52px, rgba(214, 168, 77, 0.55) 53px 54px),
    conic-gradient(from 20deg, transparent, rgba(214, 168, 77, 0.35), transparent, rgba(227, 68, 53, 0.28), transparent);
  border-radius: 50%;
  filter: blur(0.2px);
}

.ouro-ring {
  position: relative;
  width: min(560px, 82vw);
  height: min(560px, 82vw);
  border-radius: 50%;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.ouro-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 76% 12%, #f3c877 0 3%, #211006 4% 7%, transparent 8%),
    conic-gradient(from 0deg, #8b5c19, #f3c877, #5c3511, #d9a045, #2c1607, #b27a25, #8b5c19);
  box-shadow: 0 0 70px rgba(214, 168, 77, 0.22), inset 0 0 42px rgba(0, 0, 0, 0.72);
  mask: radial-gradient(circle, transparent 0 40%, #000 41% 48%, transparent 49%);
  animation: pulseRing 4.8s ease-in-out infinite;
  z-index: -1;
}

.ouro-ring::after {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(214, 168, 77, 0.28);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.86), 0 0 40px rgba(227, 68, 53, 0.18);
  background: radial-gradient(circle, rgba(13, 8, 6, 0.72), rgba(0, 0, 0, 0.48));
  z-index: -2;
}

@keyframes pulseRing {
  0%, 100% { filter: brightness(0.95); transform: scale(1); }
  50% { filter: brightness(1.15); transform: scale(1.012); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-symbol {
  font-size: 52px;
  color: #d7aa52;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.95;
  color: #f2ce83;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  color: var(--red);
  font-size: clamp(18px, 2vw, 26px);
  margin-top: 18px;
  letter-spacing: 1.2px;
}

.hero-copy {
  max-width: 430px;
  margin: 12px auto 26px;
  color: #c9ad72;
  line-height: 1.7;
  font-size: 15px;
}

.hero-actions,
.action-stack {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.action-stack {
  margin-top: 18px;
}

.two-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 270px;
}

.mini-btn {
  padding: 10px 12px;
  font-size: 12px;
}

.small-action {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  font-size: 12px;
}

.buyer-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.avatar-sigil {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, rgba(214, 168, 77, 0.2), rgba(9, 5, 4, 0.92));
  box-shadow: 0 0 22px rgba(214, 168, 77, 0.16);
  font-size: 32px;
}

.address {
  font-size: 22px;
  color: #f2c76e;
  word-break: break-all;
}

.split-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.split-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(214, 168, 77, 0.16);
  align-items: center;
}

.split-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.split-percent {
  color: #f2c76e;
  font-size: 17px;
  font-weight: 700;
}

.split-name {
  color: #d6bd82;
  line-height: 1.35;
}

.split-value {
  color: #f5cf82;
  white-space: nowrap;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.ritual-card {
  min-height: 138px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(24, 12, 9, 0.9), rgba(5, 3, 3, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 10px;
}

.ritual-icon {
  font-size: 42px;
  color: var(--red);
  margin-bottom: 10px;
}

.ritual-title {
  text-transform: uppercase;
  color: #f0c870;
  letter-spacing: 1.1px;
}

.lower-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.18fr 0.92fr 0.92fr;
  gap: 18px;
  margin-top: 18px;
}

.extra-grid {
  grid-template-columns: 1fr 1fr;
}

.seal {
  min-height: 250px;
  display: grid;
  place-items: center;
}

.seal-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  background:
    radial-gradient(circle, rgba(227, 68, 53, 0.2), transparent 30%),
    repeating-conic-gradient(from 0deg, rgba(214, 168, 77, 0.5) 0 2deg, transparent 2deg 13deg),
    radial-gradient(circle, rgba(8, 4, 3, 1), rgba(16, 10, 8, 0.96));
  color: var(--red);
  font-size: 60px;
}

.rules-list {
  color: #ceb276;
  padding-left: 18px;
  line-height: 1.55;
  font-size: 14px;
}

.rules-list li {
  margin: 8px 0;
}

.history {
  margin-top: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(214, 168, 77, 0.16);
  text-align: left;
}

th {
  color: #c69b4b;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(214, 168, 77, 0.06);
}

td {
  color: #d8bd7d;
  font-variant-numeric: tabular-nums;
}

tbody tr:hover {
  background: rgba(227, 68, 53, 0.08);
}

.reward {
  color: #f4cd77;
  font-weight: 700;
}

.tx,
.tx-link {
  color: #6da7ff;
}

.inline-link {
  color: #8db8ff;
  word-break: break-all;
}

.inline-link:hover {
  color: #c9dcff;
}

.address-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(214, 168, 77, 0.14);
  color: #d8bd7d;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.address-row:last-child {
  border-bottom: 0;
}

.address-row span {
  min-width: 0;
}

.footer {
  margin-top: 24px;
  text-align: center;
  color: #c69b4b;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 24px 0 8px;
}

.status-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(460px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(216, 162, 77, 0.34);
  background: rgba(8, 5, 4, 0.94);
  color: #d9b676;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.36);
}

.status-toast[data-tone="ok"] {
  border-color: rgba(72, 178, 113, 0.5);
  color: #a9dcae;
}

.status-toast[data-tone="error"] {
  border-color: rgba(227, 68, 53, 0.55);
  color: #ff9b8f;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .lower-grid,
  .extra-grid {
    grid-template-columns: 1fr;
  }

  .center-hero {
    min-height: 620px;
  }

  .nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .cards-row {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0 12px 28px;
  }

  .topbar {
    margin: 0 -12px 16px;
    padding: 12px 14px;
  }

  .wallet-btn {
    min-width: 132px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .panel {
    padding: 18px;
  }

  .tax-row {
    grid-template-columns: 1fr;
  }

  .divider-orb {
    display: none;
  }

  .center-hero {
    min-height: 520px;
    padding: 20px;
  }

  .ouro-ring {
    width: 100%;
    height: 440px;
  }

  .cards-row {
    grid-template-columns: 1fr 1fr;
  }

  .split-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .split-value {
    grid-column: 2;
  }
}
