:root {
  --bg: #070707;
  --bg-soft: #0d0d0f;
  --panel: rgba(18, 18, 20, 0.86);
  --panel-2: rgba(24, 24, 27, 0.92);
  --line: rgba(201, 165, 92, 0.22);
  --line-strong: rgba(220, 184, 104, 0.46);
  --gold: #d6b16c;
  --gold-2: #f4d28d;
  --gold-dim: #8d6a2f;
  --text: #f5f1e8;
  --muted: #a7a09a;
  --muted-2: #7e7771;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(214, 177, 108, 0.08), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(214, 177, 108, 0.05), transparent 18%),
    linear-gradient(180deg, #060606 0%, #0a0a0a 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 40px 20px 60px;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

.ambient-1 {
  top: 80px;
  left: 5%;
  width: 220px;
  height: 220px;
  background: rgba(214, 177, 108, 0.13);
}

.ambient-2 {
  top: 360px;
  right: 8%;
  width: 260px;
  height: 260px;
  background: rgba(214, 177, 108, 0.09);
}

.ambient-3 {
  bottom: 80px;
  left: 25%;
  width: 280px;
  height: 280px;
  background: rgba(214, 177, 108, 0.06);
}

.legacy-page {
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.hero-topline,
.eyebrow {
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 12px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(214, 177, 108, 0.2));
}

.hero h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f4e3bf;
  text-shadow: 0 0 22px rgba(214, 177, 108, 0.16);
}

.hero-subtitle {
  margin: 10px 0 12px;
  font-family: "Cinzel", serif;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  color: var(--gold);
  letter-spacing: 0.1em;
}

.hero-description {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.legacy-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(26, 26, 28, 0.94), rgba(10, 10, 12, 0.96)),
    #0c0c0d;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legacy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 220, 145, 0.05), transparent 24%),
    radial-gradient(circle at 85% 75%, rgba(255, 220, 145, 0.05), transparent 20%);
  pointer-events: none;
}

.shimmer-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -120%;
  width: 60%;
  height: 160%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(244, 210, 141, 0.03) 45%,
    rgba(255, 231, 179, 0.14) 50%,
    rgba(244, 210, 141, 0.03) 55%,
    transparent 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: cardShimmer 7s linear infinite;
  pointer-events: none;
}

@keyframes cardShimmer {
  0% {
    left: -120%;
  }
  100% {
    left: 160%;
  }
}

.card-border-glow {
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(214, 177, 108, 0.12);
  pointer-events: none;
}

.card-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.card-header h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  color: #f4e3bf;
}

.status-pill {
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--gold-2);
  font-weight: 700;
  background: rgba(214, 177, 108, 0.08);
  white-space: nowrap;
}

.summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.summary-box,
.stat-box,
.action-panel,
.next-tier-box {
  background: linear-gradient(180deg, rgba(23, 23, 25, 0.95), rgba(12, 12, 14, 0.95));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.summary-box {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.summary-label,
.stat-label,
.field-label,
.next-tier-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value,
.stat-value,
.next-tier-value {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.dropdown-box {
  padding: 0;
  overflow: hidden;
}

.dropdown-box summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
}

.dropdown-box summary::-webkit-details-marker {
  display: none;
}

.dropdown-box[open] summary {
  border-bottom: 1px solid rgba(214, 177, 108, 0.12);
}

.dropdown-content {
  padding: 14px 20px 16px;
}

.dropdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dropdown-row strong {
  color: var(--text);
}

.action-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 20px;
  margin-bottom: 28px;
}

.action-panel {
  border-radius: 24px;
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
  color: #f4e3bf;
}

.panel-note {
  color: var(--muted-2);
  font-size: 0.82rem;
  text-align: right;
  max-width: 140px;
}

.lux-input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(214, 177, 108, 0.22);
  background: rgba(5, 5, 6, 0.75);
  color: var(--text);
  font-size: 1.2rem;
  outline: none;
  transition: 0.25s ease;
}

.lux-input:focus {
  border-color: rgba(244, 210, 141, 0.55);
  box-shadow: 0 0 0 4px rgba(214, 177, 108, 0.08);
}

.quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.quick-btn {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(214, 177, 108, 0.22);
  background: rgba(255,255,255,0.02);
  color: var(--gold-2);
  font-weight: 700;
  cursor: pointer;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.button-row.single {
  margin-top: 24px;
}

.lux-btn {
  position: relative;
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.lux-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.gold-btn {
  background: linear-gradient(180deg, #f0cf89 0%, #c89a45 100%);
  color: #17120a;
  box-shadow: 0 12px 30px rgba(200, 154, 69, 0.18);
}

.dark-btn {
  background: linear-gradient(180deg, #3d3d42 0%, #1d1d20 100%);
  color: #f5f1e8;
  border: 1px solid rgba(255,255,255,0.08);
}

.outline-gold-btn {
  background: linear-gradient(180deg, rgba(214, 177, 108, 0.14), rgba(214, 177, 108, 0.05));
  color: var(--gold-2);
  border: 1px solid rgba(214, 177, 108, 0.34);
}

.shimmer-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -120%;
  width: 50%;
  height: 160%;
  background: linear-gradient(
    115deg,
    transparent,
    rgba(255,255,255,0.08),
    rgba(255,235,180,0.35),
    rgba(255,255,255,0.08),
    transparent
  );
  transform: skewX(-20deg);
  animation: btnShimmer 4.2s linear infinite;
}

@keyframes btnShimmer {
  0% {
    left: -120%;
  }
  100% {
    left: 170%;
  }
}

.reward-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reward-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(214, 177, 108, 0.08);
  border-radius: 18px;
  padding: 14px 14px;
}

.reward-token {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reward-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
}

.reward-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.reward-tier {
  font-size: 0.8rem;
}

.reward-tier.unlocked {
  color: #ceb072;
}

.reward-tier.locked {
  color: var(--muted-2);
}

.reward-values {
  text-align: right;
}

.reward-amount {
  font-size: 1.16rem;
  font-weight: 800;
  color: #f8f0df;
  line-height: 1.2;
}

.reward-usd {
  margin-top: 5px;
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.48);
  letter-spacing: 0.02em;
}

.bottom-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.stat-box {
  border-radius: 18px;
  padding: 18px 20px;
}

.tier-section {
  position: relative;
  z-index: 1;
  padding-top: 6px;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.tier-header h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.7rem;
  color: #f4e3bf;
}

.next-tier-box {
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 340px;
}

.tier-progress-line {
  height: 8px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  border: 1px solid rgba(214, 177, 108, 0.08);
  margin-bottom: 24px;
}

.tier-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6b16c, #f4d28d);
  box-shadow: 0 0 22px rgba(214, 177, 108, 0.18);
}

.tier-stars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tier-star {
  text-align: center;
  border-radius: 22px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(18,18,20,0.95), rgba(10,10,12,0.95));
  border: 1px solid rgba(214, 177, 108, 0.12);
}

.tier-star.active {
  border-color: rgba(214, 177, 108, 0.34);
  box-shadow: 0 14px 32px rgba(214, 177, 108, 0.08);
}

.star-icon {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.18);
  margin-bottom: 10px;
}

.tier-star.active .star-icon {
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(214, 177, 108, 0.2);
}

.star-title {
  font-family: "Cinzel", serif;
  color: #f4e3bf;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.star-desc {
  font-weight: 700;
  margin-bottom: 6px;
}

.star-threshold {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.tier-apy {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(214, 177, 108, 0.08);
  border: 1px solid rgba(214, 177, 108, 0.18);
  color: var(--gold-2);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 1150px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-layout {
    grid-template-columns: 1fr;
  }

  .bottom-stats {
    grid-template-columns: 1fr;
  }

  .tier-header {
    flex-direction: column;
    align-items: stretch;
  }

  .next-tier-box {
    min-width: unset;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 22px 14px 40px;
  }

  .legacy-card {
    padding: 20px;
    border-radius: 24px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .tier-stars {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-note {
    text-align: left;
    max-width: none;
  }

  .reward-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .reward-values {
    text-align: left;
  }
}