:root {
  --ink: #182235;
  --muted: #657386;
  --line: #d8e0ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --navy: #10233f;
  --teal: #0f8b8d;
  --green: #2f855a;
  --amber: #c1841a;
  --red: #b8324a;
  --shadow: 0 18px 48px rgba(23, 36, 54, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: #eef3f7;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  background: var(--navy);
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand small { color: #b9c9d9; margin-top: 2px; }

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #dce8f4;
  font-weight: 700;
}

.nav-list a.active, .nav-list a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 16px;
}

.sidebar-card small, .sidebar-card span { color: #bdd0df; display: block; }
.sidebar-card strong { display: block; font-size: 22px; margin: 8px 0; }

.main-shell {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 28px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
}

.btn {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 15px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary { background: var(--teal); border-color: var(--teal); color: white; }
.btn.secondary { background: #e9f6f6; border-color: #c3e8e8; color: #096c70; }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; }
.status-pill {
  min-height: 40px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 800;
  color: var(--muted);
}

.alert {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 700;
}
.alert.success { background: #e9f8ef; color: var(--green); border: 1px solid #c7ead4; }
.alert.error { background: #fdecef; color: var(--red); border: 1px solid #f4c8d0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy, .hero-panel, .panel, .metric-grid article, .auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.hero-copy h2 {
  margin: 8px 0 14px;
  font-size: 42px;
  line-height: 1.07;
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-panel {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 10px;
}
.hero-panel span { color: var(--muted); font-weight: 800; }
.hero-panel strong { font-size: 25px; overflow-wrap: anywhere; }
.hero-panel a { color: var(--teal); font-weight: 800; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.metric-grid article { padding: 18px; }
.metric-grid span, .metric-grid small { color: var(--muted); font-weight: 700; }
.metric-grid strong { display: block; font-size: 25px; margin: 8px 0 4px; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}
.staking-grid { grid-template-columns: minmax(310px, 0.45fr) minmax(0, 1fr); }
.panel { padding: 22px; margin-top: 16px; }
.content-grid .panel { margin-top: 0; }
.wide { min-width: 0; }
.section-heading { margin-bottom: 16px; }
.section-heading h3 { margin: 4px 0 0; font-size: 22px; }
.section-heading.rowed { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.portfolio-list { display: grid; gap: 12px; }
.portfolio-list article, .plan-card {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 16px;
}
.portfolio-list h4 { margin: 0 0 7px; font-size: 18px; }
.portfolio-list p, .plan-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.roadmap {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 12px;
  font-weight: 650;
}

.contract-grid, .plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contract-grid article {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 14px;
}
.contract-grid span { display: block; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.contract-grid a { display: block; color: var(--teal); overflow-wrap: anywhere; font-weight: 700; }

.auth-wrap {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(460px, 100%);
  padding: 28px;
}
.auth-card.accent { border-top: 4px solid var(--amber); }
.auth-card h2 { margin: 4px 0 8px; font-size: 30px; }
.auth-card p { color: var(--muted); line-height: 1.6; }

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fbfcfd;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
th { color: var(--muted); text-transform: uppercase; font-size: 11px; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.empty { text-align: center; color: var(--muted); padding: 34px !important; }
.tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 8px;
  background: #e9f8ef;
  color: var(--green);
  font-weight: 800;
}

.data-list { display: grid; gap: 10px; margin: 0; }
.data-list div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 12px 0; }
dt { color: var(--muted); font-weight: 800; }
dd { margin: 0; font-weight: 800; text-align: right; }

.plan-card span { color: var(--muted); font-weight: 800; }
.plan-card strong { display: block; font-size: 26px; margin: 8px 0; }
.plan-card small { display: inline-flex; margin-top: 10px; color: var(--green); font-weight: 800; }

.quote-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #edf8f8;
  border: 1px solid #c5e9e9;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}
.quote-box span { color: #42676a; font-weight: 800; }
.quote-box strong { color: var(--navy); }

.centered { text-align: center; max-width: 620px; margin: 70px auto; }
.full-panel { min-height: 540px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  padding: 28px 0 0;
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 4; padding: 14px; gap: 14px; }
  .nav-list { display: flex; overflow-x: auto; }
  .nav-list a { flex: 0 0 auto; min-width: 104px; text-align: center; }
  .sidebar-card { display: none; }
  .topbar, .hero, .content-grid { grid-template-columns: 1fr; display: grid; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy h2 { font-size: 32px; }
}

@media (max-width: 580px) {
  .main-shell { padding: 18px; }
  .metric-grid, .contract-grid, .plan-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 24px; }
  .hero-copy h2 { font-size: 28px; }
  .section-heading.rowed, .footer { align-items: stretch; flex-direction: column; }
}

/* Public portfolio landing */
body.public-page {
  background: #050012;
  color: white;
}

body.public-page .alert {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(720px, calc(100vw - 32px));
}

.public-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(20, 5, 50, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.public-nav-inner {
  max-width: 1180px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
}

.public-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: radial-gradient(circle at 30% 20%, #ffe08a, #f0b90b 35%, #7c2fed 100%);
  box-shadow: 0 0 28px rgba(240, 185, 11, 0.35);
}

.public-brand strong,
.public-brand small { display: block; }
.public-brand strong { font-weight: 900; }
.public-brand small { color: #b993ff; font-size: 8px; font-weight: 800; }

.public-links,
.public-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.public-links a,
.public-actions a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.public-links a:hover { color: white; }
.public-actions { gap: 10px; }
.public-actions a {
  min-width: 92px;
  text-align: center;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
}
.public-actions a:hover { background: rgba(255,255,255,0.1); color: white; }

.public-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 66px;
  overflow: hidden;
  background: linear-gradient(160deg, #2d0a6b 0%, #180440 36%, #0d0028 62%, #050012 100%);
}

.public-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(65px);
  border-radius: 999px;
}
.public-glow.one {
  width: 650px;
  height: 340px;
  top: -80px;
  left: 28%;
  background: rgba(130, 68, 255, 0.42);
}
.public-glow.two {
  width: 380px;
  height: 260px;
  bottom: 140px;
  right: 10%;
  background: rgba(240, 185, 11, 0.24);
}

.public-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  padding: 56px 22px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 24px;
}

.public-pill {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 24px;
}

.public-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
}

.public-hero h1 span {
  background: linear-gradient(90deg, #d7a5ff, #a855f7, #f0b90b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-hero p {
  color: rgba(255,255,255,0.66);
  line-height: 1.7;
  max-width: 570px;
}

.public-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.public-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 850;
  border: 1px solid rgba(255,255,255,0.22);
}
.public-btn.primary { background: rgba(255,255,255,0.16); }
.public-btn.soft { background: rgba(255,255,255,0.08); }

.public-hero-art {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.coin-orbit {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(168,85,247,0.2), transparent 62%);
}

.coin-core {
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 54px;
  font-weight: 950;
  color: #160521;
  background: radial-gradient(circle at 30% 25%, #fff0a5, #f0b90b 48%, #8a4b00 100%);
  box-shadow: 0 0 95px rgba(240,185,11,0.45);
}

.coin-orbit span {
  position: absolute;
  width: 66px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}
.coin-orbit span:nth-child(2) { top: 20px; right: 70px; }
.coin-orbit span:nth-child(3) { bottom: 60px; left: 28px; }
.coin-orbit span:nth-child(4) { bottom: 38px; right: 46px; }

.hero-data-card {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: 250px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 3, 32, 0.72);
  backdrop-filter: blur(18px);
}
.hero-data-card small { color: #b993ff; font-weight: 800; }
.hero-data-card strong { display: block; margin: 6px 0; font-size: 20px; }
.hero-data-card p { margin: 0; font-size: 13px; }

.public-hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.32);
  min-height: 76px;
  padding: 18px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.public-hero-strip div { width: 52px; height: 1px; background: rgba(255,255,255,0.28); }
.public-hero-strip p { margin: 0; color: white; font-weight: 800; text-align: center; }

.public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(255,255,255,0.07);
  background: rgba(14,12,28,0.96);
}
.public-stats article { text-align: center; padding: 22px 12px; border-right: 1px solid rgba(255,255,255,0.05); }
.public-stats strong { display: block; font-size: 20px; }
.public-stats span { display: block; margin-top: 5px; color: #71717a; font-size: 10px; font-weight: 800; text-transform: uppercase; }

.public-section { padding: 88px 22px; background: #070216; }
.public-section.dark { background: linear-gradient(180deg, #030008, #0d0028); }
.public-section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.public-section-head p { margin: 0 0 12px; color: #22c55e; font-weight: 850; text-transform: uppercase; font-size: 12px; }
.public-section-head h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; }
.public-section-head span { color: #8f899f; line-height: 1.6; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; margin: 0 auto 12px; box-shadow: 0 0 18px #22c55e; }

.activity-table { max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; background: rgba(14,10,35,0.94); }
.activity-row { display: grid; grid-template-columns: 1.1fr 1.1fr 0.8fr 0.8fr; gap: 14px; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #d4d4d8; }
.activity-row.head { background: rgba(109,40,217,0.16); color: white; font-size: 12px; font-weight: 850; text-transform: uppercase; }

.public-card-grid, .public-plan-grid, .public-contracts, .faq-list { max-width: 1080px; margin: 0 auto; }
.public-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.public-card-grid article, .public-plan-grid article, .public-contracts a, .faq-list details { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.045); border-radius: 22px; padding: 22px; }
.public-card-grid b { display: block; font-size: 20px; margin-bottom: 10px; }
.public-card-grid p, .public-plan-grid p, .faq-list p { color: #9ca3af; line-height: 1.6; }
.public-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.public-plan-grid span { color: #b993ff; font-weight: 850; }
.public-plan-grid strong { display: block; margin: 10px 0; font-size: 28px; }
.section-cta { text-align: center; margin-top: 34px; }
.public-contracts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-contracts a { display: block; text-decoration: none; color: white; }
.public-contracts span { display: block; color: #b993ff; font-weight: 850; margin-bottom: 8px; }
.public-contracts b { display: block; color: #d4d4d8; overflow-wrap: anywhere; font-size: 13px; }
.faq-list { display: grid; gap: 12px; }
.faq-list summary { font-weight: 850; cursor: pointer; }

.public-footer { max-width: 1180px; margin: 0 auto; padding: 34px 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid rgba(255,255,255,0.08); color: #71717a; }
.public-footer strong { color: white; font-size: 22px; }
.public-footer a { color: #a855f7; text-decoration: none; font-weight: 800; margin-left: 16px; }

@media (max-width: 900px) {
  .public-links { display: none; }
  .public-hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
  .public-hero-art { min-height: 420px; }
  .public-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-card-grid, .public-plan-grid, .public-contracts { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .public-nav-inner { padding: 0 14px; }
  .public-actions a { min-width: auto; padding: 8px 12px; font-size: 12px; }
  .public-hero h1 { font-size: 42px; }
  .hero-data-card { position: static; width: 100%; margin-top: 18px; }
  .public-hero-strip div { display: none; }
  .public-footer { flex-direction: column; align-items: flex-start; }
  .public-footer a { margin-left: 0; margin-right: 14px; }
}

/* Premium redesign overrides */
.premium-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(240,185,11,0.18), transparent 28%),
    radial-gradient(circle at 28% 0%, rgba(168,85,247,0.34), transparent 35%),
    linear-gradient(145deg, #2b0769 0%, #140432 42%, #070017 100%);
}
.premium-nav-space { height: 66px; }
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.premium-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 54px 22px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  align-items: center;
  gap: 32px;
}
.premium-kicker { display: inline-flex; align-items: center; gap: 10px; color: #d6bcff; font-size: 12px; font-weight: 900; margin-bottom: 22px; }
.premium-kicker span { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 20px #22c55e; }
.premium-copy h1 { margin: 0; font-size: clamp(48px, 7.4vw, 84px); line-height: .95; letter-spacing: 0; font-weight: 950; }
.premium-copy h1 span { display: block; background: linear-gradient(90deg, #fff, #d7a5ff 30%, #f0b90b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.premium-copy p { max-width: 620px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.75; margin: 22px 0 0; }
.premium-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.premium-btn { min-height: 50px; padding: 14px 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); text-decoration: none; color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.premium-btn.primary { background: linear-gradient(135deg, rgba(240,185,11,.92), rgba(168,85,247,.88)); box-shadow: 0 18px 48px rgba(168,85,247,.25); }
.premium-btn.glass { background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-trust-row span { color: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.05); font-size: 12px; font-weight: 800; }
.premium-visual { position: relative; min-height: 580px; display: grid; place-items: center; }
.vault-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.vault-ring.outer { width: 480px; height: 480px; background: radial-gradient(circle, rgba(168,85,247,.16), transparent 66%); }
.vault-ring.mid { width: 340px; height: 340px; border-color: rgba(240,185,11,.24); box-shadow: inset 0 0 50px rgba(240,185,11,.08); }
.vault-coin { position: relative; z-index: 2; width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; color: #13031d; font-size: 58px; font-weight: 950; background: radial-gradient(circle at 32% 22%, #fff5b7, #f0b90b 45%, #7a4600 100%); box-shadow: 0 0 120px rgba(240,185,11,.45), 0 30px 80px rgba(0,0,0,.35); }
.floating-card { position: absolute; z-index: 3; width: 210px; padding: 16px; border-radius: 18px; background: rgba(14,8,38,.76); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.floating-card.top { top: 86px; right: 18px; }
.floating-card.bottom { bottom: 90px; left: 12px; }
.floating-card small { color: #b993ff; font-weight: 900; }
.floating-card strong { display: block; color: #fff; font-size: 22px; margin-top: 5px; }
.premium-stat-band { display: grid; grid-template-columns: repeat(4, 1fr); background: #0b0718; border-block: 1px solid rgba(255,255,255,.08); }
.premium-stat-band article { padding: 24px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.06); }
.premium-stat-band strong { display: block; color: #fff; font-size: 23px; }
.premium-stat-band span { display: block; color: #b993ff; font-size: 11px; text-transform: uppercase; font-weight: 900; margin: 6px 0; }
.premium-stat-band small { color: #77718a; }
.premium-section { padding: 94px 22px; background: #080316; color: #fff; }
.dark-section { background: linear-gradient(180deg, #030008, #0e0330); }
.premium-section.compact { padding-bottom: 70px; }
.premium-heading { max-width: 820px; margin: 0 auto 42px; text-align: center; }
.premium-heading.split { max-width: 1080px; display: flex; align-items: end; justify-content: space-between; gap: 24px; text-align: left; }
.premium-heading p { color: #22c55e; font-size: 12px; font-weight: 900; text-transform: uppercase; margin: 0 0 12px; }
.premium-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; }
.premium-heading span { display: block; margin-top: 14px; color: #9b94ad; line-height: 1.65; }
.premium-activity { max-width: 920px; margin: 0 auto; display: grid; gap: 12px; }
.premium-activity article { display: grid; grid-template-columns: 1fr 1.2fr .8fr; gap: 14px; align-items: center; padding: 18px 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.045); }
.premium-activity span { font-weight: 900; }
.premium-activity b { color: #d4d4d8; overflow-wrap: anywhere; }
.premium-activity em { color: #22c55e; font-style: normal; font-weight: 900; }
.premium-card-grid, .premium-plan-row, .premium-contract-grid, .premium-faq { max-width: 1080px; margin: 0 auto; }
.premium-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.premium-card-grid article, .premium-plan-row article, .premium-contract-grid a, .premium-faq details { border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); box-shadow: 0 22px 60px rgba(0,0,0,.2); }
.card-index { color: #f0b90b; font-weight: 950; font-size: 12px; margin-bottom: 26px; }
.premium-card-grid h3 { margin: 0 0 12px; font-size: 22px; }
.premium-card-grid p, .premium-plan-row p, .premium-faq p { color: #9ca3af; line-height: 1.65; }
.premium-plan-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.premium-plan-row small { color: #b993ff; font-weight: 900; }
.premium-plan-row strong { display: block; font-size: 28px; margin: 10px 0; }
.premium-plan-row span { color: #d6d3e0; }
.premium-contract-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.premium-contract-grid a { text-decoration: none; color: white; }
.premium-contract-grid span { color: #b993ff; font-weight: 900; display: block; margin-bottom: 8px; }
.premium-contract-grid b { color: #d4d4d8; font-size: 13px; overflow-wrap: anywhere; }
.premium-faq { display: grid; gap: 12px; }
.premium-faq summary { cursor: pointer; font-weight: 900; }
.premium-footer { background: #050012; color: #77718a; max-width: 1180px; margin: 0 auto; padding: 36px 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 18px; }
.premium-footer strong { color: #fff; font-size: 22px; }
.premium-footer a { color: #b993ff; text-decoration: none; font-weight: 900; margin-left: 16px; }

.dash-hero, .staking-hero { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: linear-gradient(135deg, #10233f, #163a5d 55%, #0f8b8d); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 22px; box-shadow: var(--shadow); }
.dash-hero h2, .staking-hero h2 { margin: 6px 0 8px; font-size: 34px; line-height: 1.08; max-width: 720px; }
.dash-hero p:not(.eyebrow), .staking-hero p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.78); max-width: 620px; }
.dash-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.dash-metrics article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.dash-metrics span { color: var(--muted); font-weight: 800; }
.dash-metrics strong { display: block; margin: 8px 0 4px; font-size: 24px; }
.dash-metrics small { color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) 340px; gap: 16px; margin-top: 16px; }
.dash-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.modern-table table { min-width: 720px; }
.modern-table th { background: #f7fafc; }
.modern-table td, .modern-table th { padding: 15px 12px; }
.premium-list { margin: 16px 0 0; display: grid; gap: 10px; }
.premium-list div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.premium-list dt { color: var(--muted); font-weight: 850; }
.premium-list dd { margin: 0; font-weight: 900; text-align: right; }
.staking-console { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.stake-terminal { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.stake-quote { display: flex; align-items: center; justify-content: space-between; background: #eef8f8; border: 1px solid #c9ecec; border-radius: 12px; padding: 15px; margin-bottom: 14px; }
.stake-quote span { color: #42676a; font-weight: 900; }
.stake-quote strong { color: var(--navy); }
.staking-plans-premium { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.staking-plans-premium article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.staking-plans-premium article div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.staking-plans-premium span { color: var(--muted); font-weight: 900; }
.staking-plans-premium strong { font-size: 28px; color: var(--teal); }
.staking-plans-premium p { color: var(--muted); }
.staking-plans-premium small { color: var(--green); font-weight: 900; }
.positions-panel { margin-top: 16px; }

@media (max-width: 980px) {
  .premium-hero-inner, .premium-heading.split, .dash-hero, .staking-hero { grid-template-columns: 1fr; display: grid; }
  .premium-visual { min-height: 430px; }
  .premium-stat-band, .premium-plan-row, .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .premium-card-grid, .premium-contract-grid, .dash-grid, .staking-console { grid-template-columns: 1fr; }
  .premium-activity article { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .premium-copy h1 { font-size: 42px; }
  .premium-stat-band, .premium-plan-row, .dash-metrics, .staking-plans-premium { grid-template-columns: 1fr; }
  .vault-ring.outer { width: 330px; height: 330px; }
  .vault-ring.mid { width: 250px; height: 250px; }
  .vault-coin { width: 170px; height: 170px; font-size: 42px; }
  .floating-card { position: static; margin-top: 12px; width: 100%; }
  .premium-footer { flex-direction: column; }
  .premium-footer a { margin-left: 0; margin-right: 14px; }
}

/* Reference-inspired premium dashboard */
.vault-dashboard-shell {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 28px;
  box-sizing: border-box;
}

.vault-card {
  background: radial-gradient(circle at top left, rgba(20, 184, 166, .14), transparent 34%), linear-gradient(145deg, #0b1220, #111b2d 52%, #0c1424);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, .28);
  color: #eef6ff;
}

.vault-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.vault-card-header h2 {
  margin: 14px 0 10px;
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 720px;
}

.vault-card-header p {
  margin: 0;
  color: rgba(226, 232, 240, .76);
  max-width: 680px;
}

.badge-network,
.addr,
.btn-outline,
.ref-value {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(15, 23, 42, .74);
  color: #b9c8e8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
}

.badge-network.small { font-size: 12px; padding: 7px 12px; }
.badge-dot { width: 8px; height: 8px; border-radius: 999px; background: #f6c453; box-shadow: 0 0 0 5px rgba(246, 196, 83, .12); }
.addr { color: #d7e8ff; min-height: 38px; }
.wallet-stack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.vault-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.vault-stat-card,
.vault-plan-item,
.vault-panel,
.referral-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(17, 27, 45, .96));
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.vault-stat-card { padding: 20px; transition: border-color .2s, transform .2s; }
.vault-stat-card:hover, .vault-plan-item:hover { border-color: rgba(20, 184, 166, .48); transform: translateY(-2px); }
.stat-label { display: block; color: #8ea2c5; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.stat-value { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; font-size: 30px; color: #f8fbff; }
.stat-value small { color: #8ea2c5; font-size: 14px; font-weight: 700; }
.vault-stat-card p { margin: 8px 0 0; color: #91a4c4; font-size: 13px; }
.dashboard-divider { border-top: 1px solid rgba(148, 163, 184, .16); margin: 26px 0; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title h3 { margin: 0; display: flex; align-items: center; gap: 10px; color: #f7fbff; font-size: 22px; }
.section-title.compact h3 { font-size: 19px; }
.title-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #14b8a6, #f6c453); color: #07111f; font-weight: 900; font-size: 13px; }

.vault-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vault-plan-item { padding: 22px; }
.plan-id { display: inline-flex; border-radius: 999px; background: rgba(20, 184, 166, .12); color: #74e5d9; padding: 6px 12px; font-size: 12px; font-weight: 800; margin-bottom: 16px; }
.plan-duration { font-size: 32px; font-weight: 900; color: #fff; line-height: 1; }
.plan-duration span { color: #8ea2c5; font-size: 14px; font-weight: 700; margin-left: 6px; }
.plan-reward { display: inline-flex; margin: 16px 0 10px; color: #f9d777; background: rgba(246, 196, 83, .11); border: 1px solid rgba(246, 196, 83, .22); border-radius: 999px; padding: 7px 12px; font-weight: 800; }
.vault-plan-item p { color: #91a4c4; margin: 0 0 16px; font-size: 13px; line-height: 1.55; }
.plan-status { display: inline-flex; align-items: center; gap: 8px; color: #66e8a6; font-weight: 800; font-size: 13px; }
.plan-status span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.vault-lower-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .75fr); gap: 16px; }
.vault-panel { padding: 22px; }
.dark-table table { color: #dce8fb; }
.dark-table thead th { color: #8ea2c5; background: rgba(8, 13, 25, .72); }
.dark-table tbody td { border-color: rgba(148, 163, 184, .12); }
.dark-table .empty { color: #93a7c9; }
.contract-panel h3 { color: #fff; margin: 14px 0 18px; font-size: 22px; }
.contract-list { display: grid; gap: 12px; margin: 0; }
.contract-list div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.contract-list dt { color: #8ea2c5; font-weight: 700; }
.contract-list dd { color: #eef6ff; font-weight: 800; margin: 0; text-align: right; }

.referral-section { margin-top: 16px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.referral-section strong { display: block; color: #f8fbff; margin-top: 6px; }
.ref-label { color: #8ea2c5; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.ref-value { color: #f9d777; background: rgba(246, 196, 83, .1); }

@media (max-width: 1100px) {
  .vault-stat-grid, .vault-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vault-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .vault-card { padding: 20px; border-radius: 22px; }
  .vault-card-header, .section-title, .referral-section { align-items: flex-start; flex-direction: column; }
  .wallet-stack { justify-content: flex-start; width: 100%; }
  .vault-card-header h2 { font-size: 29px; }
  .vault-stat-grid, .vault-plan-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 26px; }
}

/* ATitan-style design language for VaultX home/auth */
.public-page {
  background: #070b14;
  color: #edf2f9;
}

.public-page .public-nav {
  position: static;
  background: #070b14;
  border-bottom: 1px solid #1f2a40;
  box-shadow: none;
}

.public-page .public-nav-inner,
.at-container {
  width: min(1280px, calc(100% - 24px));
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.public-page .public-nav-inner {
  min-height: 82px;
  padding: 0;
}

.public-page .public-brand-mark {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b0f1a;
  box-shadow: 0 4px 16px rgba(251, 191, 36, .22);
}

.public-page .public-brand strong {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 25px;
  letter-spacing: 0;
}

.public-page .public-brand small { color: #8899c7; }
.public-page .public-links a { color: #b0c4ec; font-weight: 600; }
.public-page .public-links a:hover { color: #fff; }
.public-page .public-actions a:first-child { color: #c6d6ff; border-color: #3d5277; background: transparent; }
.public-page .public-actions a:last-child,
.at-btn.primary,
.auth-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 0;
  color: #0b0f1a;
  box-shadow: 0 4px 14px rgba(251, 191, 36, .25);
}

.at-home-shell,
.auth-design-shell {
  background: #070b14;
  min-height: calc(100vh - 82px);
}

.at-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 64px 0 48px;
}

.at-hero-text { flex: 1 1 420px; }
.at-badge {
  display: inline-flex;
  background: #1c2842;
  border: 1px solid #3a4d72;
  color: #fbbf24;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 24px;
}

.at-hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 900;
  color: #f4f8ff;
}

.at-hero h1 span,
.at-section-heading span,
.level-row .highlight,
.switch-auth a {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.at-hero p {
  color: #98aedb;
  font-size: 18px;
  max-width: 560px;
  margin: 24px 0 30px;
}

.at-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s, opacity .2s, border-color .2s;
}
.at-btn:hover { transform: translateY(-1px); opacity: .94; }
.at-btn.outline { border: 1px solid #3d5277; color: #c6d6ff; background: transparent; }

.at-hero-stats {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.at-hero-stats strong { display: block; font-size: 28px; color: #fff; }
.at-hero-stats span { display: block; color: #7e93c0; font-size: 13px; }

.at-hero-visual {
  flex: 1 1 390px;
  background: #111b2e;
  border: 1px solid #293b58;
  border-radius: 40px;
  padding: 32px 29px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}

.matrix-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.matrix-node {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #1c2942;
  border: 1px solid #31476b;
  border-radius: 16px;
  color: #b7cbff;
  font-weight: 800;
  text-align: center;
}
.matrix-node span { color: inherit; font-size: 15px; }
.matrix-node small { color: inherit; opacity: .78; font-size: 11px; }
.matrix-node.highlight { background: #fbbf24; border-color: #fbbf24; color: #0b0f1a; box-shadow: 0 0 20px rgba(251, 191, 36, .2); }
.matrix-label { margin-top: 20px; color: #8aa0d2; font-size: 13px; display: flex; justify-content: space-between; }

.at-features,
.at-steps,
.features-mini,
.at-contracts {
  display: grid;
  gap: 22px;
}
.at-features { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 34px 0 42px; }
.at-features article,
.at-steps article,
.levels-preview,
.auth-card,
.auth-info-card,
.features-mini article,
.at-contracts a,
.at-cta {
  background: #101a2b;
  border: 1px solid #24314a;
  border-radius: 24px;
}
.at-features article { padding: 26px 22px; transition: background .2s, border-color .2s; }
.at-features article:hover,
.at-steps article:hover,
.auth-card:hover { background: #131e32; border-color: #3f5a84; }
.feature-icon,
.step-num,
.auth-icon,
.features-mini span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #1f2d49;
  border: 1px solid #3a527a;
  color: #fbbf24;
  font-weight: 900;
  margin-bottom: 14px;
}
.at-features h4,
.at-steps h4 { margin: 0 0 8px; color: #fff; }
.at-features strong { display: block; color: #fbbf24; font-size: 22px; margin-bottom: 5px; }
.at-features p,
.at-steps p { margin: 0; color: #859ac9; font-size: 14px; line-height: 1.55; }

.at-section { padding: 28px 0; }
.at-section-heading { margin-bottom: 22px; }
.at-section-heading span { font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.at-section-heading h2 { margin: 8px 0 0; color: #f3f7ff; font-size: 34px; line-height: 1.12; max-width: 760px; }
.at-section-heading.compact h2 { font-size: 26px; }
.at-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.at-steps article { padding: 28px 24px; }

.public-page .levels-preview {
  padding: 28px 24px;
  margin: 38px 0;
  border-radius: 32px;
  background: #0f182a;
  border-color: #26344e;
}
.public-page .level-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr 1fr;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #1b2840;
  color: #b8cbf5;
}
.public-page .level-row.header { color: #6b83b5; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid #2e3f60; }

.at-contracts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.at-contracts a { padding: 20px; text-decoration: none; color: #dbe7ff; overflow: hidden; }
.at-contracts span { color: #859ac9; display: block; margin-bottom: 8px; }
.at-contracts strong { color: #fff; overflow-wrap: anywhere; }
.at-cta { text-align: center; padding: 50px 24px; margin: 48px 0 34px; }
.at-cta h2 { color: #fff; margin: 0 0 12px; font-size: 34px; }
.at-cta p { color: #98aedb; margin: 0 auto 24px; max-width: 600px; }

.auth-section.refined-auth {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(360px, 1.1fr);
  gap: 40px;
  padding: 58px 0 44px;
  align-items: stretch;
}
.auth-card,
.auth-info-card { padding: 40px 36px; border-radius: 32px; }
.auth-card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 7px; color: #fff; font-size: 26px; }
.auth-card .sub { color: #98aedb; margin-bottom: 28px; }
.form-group { margin-bottom: 19px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; color: #b0c4ec; font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.form-group input {
  width: 100%;
  background: #141e32;
  border: 1px solid #2a3d5e;
  border-radius: 16px;
  color: #fff;
  outline: none;
  padding: 14px 16px;
  font-size: 15px;
}
.form-group input:focus { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .15); }
.form-group input::placeholder { color: #4f6a94; }
.auth-btn { width: 100%; min-height: 48px; border-radius: 999px; font-size: 16px; font-weight: 900; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: #4f6a94; font-size: 13px; margin: 22px 0; }
.auth-divider hr { flex: 1; border: 0; border-top: 1px solid #26344e; }
.switch-auth { text-align: center; color: #98aedb; margin: 0; }
.switch-auth a { font-weight: 900; text-decoration: none; }
.auth-info-card h2 { color: #fff; font-size: 36px; line-height: 1.1; margin: 14px 0 26px; }
.features-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-mini article { padding: 20px 16px; text-align: center; }
.features-mini span { margin: 0 auto 10px; }
.features-mini h5 { color: #fff; margin: 0 0 6px; }
.features-mini p { color: #859ac9; margin: 0; font-size: 13px; }

@media (max-width: 1040px) {
  .at-hero,
  .auth-section.refined-auth { grid-template-columns: 1fr; display: grid; }
  .at-features,
  .at-contracts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .public-page .public-nav-inner,
  .at-container { width: min(100% - 24px, 1280px); }
  .public-page .public-links { display: none; }
  .public-page .public-actions { gap: 8px; }
  .at-hero { padding: 40px 0 32px; }
  .at-hero h1 { font-size: 38px; }
  .at-hero p { font-size: 16px; }
  .matrix-preview { grid-template-columns: repeat(2, 1fr); }
  .at-features,
  .at-contracts,
  .features-mini,
  .form-row { grid-template-columns: 1fr; }
  .auth-card,
  .auth-info-card { padding: 28px 22px; }
  .auth-info-card h2,
  .at-section-heading h2,
  .at-cta h2 { font-size: 28px; }
  .public-page .level-row { grid-template-columns: 1fr 1fr; }
}

/* Home footer */
.at-footer {
  margin: 28px 0 0;
  padding: 34px 0 26px;
  border-top: 1px solid #1f2a40;
  color: #b0c4ec;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(150px, .7fr));
  gap: 28px;
  padding-bottom: 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b0f1a;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(251, 191, 36, .22);
}

.footer-brand strong {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  letter-spacing: 0;
}

.footer-brand-block p {
  max-width: 470px;
  margin: 0 0 18px;
  color: #8fa4cc;
  line-height: 1.65;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-badges span {
  border: 1px solid #2a3d5e;
  border-radius: 999px;
  background: #101a2b;
  color: #fbbf24;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.footer-column h4 {
  margin: 4px 0 14px;
  color: #edf2f9;
  font-size: 15px;
}

.footer-column a {
  display: block;
  color: #8fa4cc;
  text-decoration: none;
  margin: 10px 0;
  font-size: 14px;
  transition: color .2s;
}

.footer-column a:hover { color: #fbbf24; }
.footer-column small { display: block; color: #657aa4; line-height: 1.55; margin-top: 12px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #1f2a40;
  padding-top: 20px;
  color: #6f84ad;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Latest staking package UI */
.multi-quote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.multi-quote div {
  display: grid;
  gap: 4px;
}

.contract-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.contract-note a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.seven-packages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seven-packages article strong {
  font-size: 24px;
}

@media (max-width: 760px) {
  .multi-quote,
  .seven-packages {
    grid-template-columns: 1fr;
  }
}

/* Auth Web3 join */
.wallet-join-box {
  display: grid;
  gap: 10px;
  margin: 16px 0 10px;
  padding: 14px;
  border: 1px solid #26344e;
  border-radius: 20px;
  background: #0c1424;
}

.wallet-join-box p {
  margin: 0;
  color: #98aedb;
  font-size: 13px;
  line-height: 1.45;
}

.wallet-join-box button:disabled,
.auth-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.inline-logout {
  margin: 0;
}

.inline-logout button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #3d5277;
  background: transparent;
  color: #c6d6ff;
  font-weight: 800;
  cursor: pointer;
}

.inline-logout button:hover {
  color: #fff;
  border-color: #5f7fc0;
  background: #1f2e48;
}

/* Live dashboard staking workspace */
.dashboard-stake-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
}
.stake-live-panel,
.package-live-panel {
  min-width: 0;
}
.stake-preview-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.stake-preview-row div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfc;
  padding: 14px;
}
.stake-preview-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.stake-preview-row strong {
  color: var(--ink);
  font-size: 18px;
}
.small-address {
  font-size: 24px !important;
  word-break: break-word;
}
.compact-plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.plan-pick {
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.plan-pick:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, .45);
  box-shadow: 0 16px 35px rgba(10, 31, 51, .12);
}
.claim-stake:disabled,
.auth-btn:disabled,
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 900px) {
  .dashboard-stake-grid,
  .compact-plans,
  .stake-preview-row {
    grid-template-columns: 1fr;
  }
}


/* vault dashboard extras */
.public-page .stake-preview-row div {
  background: rgba(15, 23, 42, .9);
  border-color: rgba(148, 163, 184, .18);
}
.public-page .stake-preview-row span { color: #8ea2c5; }
.public-page .stake-preview-row strong { color: #f8fbff; }
.public-page .form-group label { color: #b0c4ec; }
.public-page .form-group input,
.public-page .form-group select {
  width: 100%;
  background: #141e32;
  border: 1px solid #2a3d5e;
  border-radius: 12px;
  color: #fff;
  padding: 12px 14px;
}
@media (max-width: 900px) {
  .stake-preview-row { grid-template-columns: 1fr; }
}

/* ===== Dashboard Pro: referral, progress, timers ===== */
.dash-top-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }

.referral-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f766e 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 18px;
  padding: 20px 22px;
  color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
}
.referral-card h3 { margin: 0 0 6px; font-size: 1.15rem; color: #f8fafc; }
.referral-card .ref-sub { margin: 0 0 14px; font-size: 0.88rem; color: #94a3b8; }
.ref-link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-link-row input {
  flex: 1; min-width: 180px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  color: #f1f5f9;
  font-size: 0.85rem;
}
.ref-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ref-actions button, .ref-actions a {
  border: 0; border-radius: 11px; padding: 10px 14px; cursor: pointer;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
}
.btn-copy { background: #2dd4bf; color: #0f172a; }
.btn-copy.copied { background: #4ade80; }
.btn-share { background: rgba(255,255,255,0.12); color: #f8fafc; border: 1px solid rgba(255,255,255,0.2) !important; }
.ref-stats { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.ref-stats div { display: flex; flex-direction: column; }
.ref-stats strong { font-size: 1.2rem; color: #5eead4; }
.ref-stats span { font-size: 0.75rem; color: #94a3b8; }

.progress-panel { margin-bottom: 16px; }
.progress-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 800px) { .progress-grid { grid-template-columns: 1fr; } }

.progress-card {
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
}
.progress-card .pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-card .pc-head h4 { margin: 0; font-size: 0.95rem; color: #f1f5f9; }
.progress-card .pc-badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(45, 212, 191, 0.15); color: #5eead4;
}
.progress-card .pc-badge.warn { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.progress-card .pc-badge.done { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.progress-card .pc-badge.locked { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.bar-track {
  height: 10px; border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  overflow: hidden; margin: 10px 0 8px;
}
.bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
  width: 0%; transition: width 0.45s ease;
}
.bar-fill.gold { background: linear-gradient(90deg, #b45309, #fbbf24); }
.bar-fill.purple { background: linear-gradient(90deg, #6d28d9, #a78bfa); }
.bar-fill.blue { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }

.pc-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: #94a3b8; }
.pc-detail { margin-top: 10px; font-size: 0.8rem; color: #cbd5e1; line-height: 1.45; }
.pc-detail ul { margin: 6px 0 0; padding-left: 16px; }
.pc-detail li { margin-bottom: 3px; }
.pc-timer {
  margin-top: 8px; font-family: ui-monospace, monospace;
  font-size: 0.85rem; color: #fbbf24;
}

.timer-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.timer-chip {
  background: #0b1220;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 140px;
}
.timer-chip span { display: block; font-size: 0.72rem; color: #94a3b8; }
.timer-chip strong { font-family: ui-monospace, monospace; color: #fde68a; font-size: 0.95rem; }

.unlock-ok { color: #4ade80 !important; }
.unlock-wait { color: #fbbf24 !important; }

.vault-stat-card { transition: transform 0.15s ease, border-color 0.15s; }
.vault-stat-card:hover { transform: translateY(-2px); border-color: rgba(45, 212, 191, 0.35); }

.section-title.compact h3 { letter-spacing: -0.02em; }


/* =========================================================
   MOBILE FIX v2 - force responsive dashboard
   ========================================================= */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.public-page {
  overflow-x: hidden;
}

/* Dashboard shell always fits viewport */
.vault-dashboard-shell {
  width: min(1200px, calc(100% - 20px)) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.vault-card.dashboard-card,
.vault-card {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Nav */
.public-page .public-nav-inner {
  width: min(1280px, calc(100% - 20px)) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1100px) {
  .vault-stat-grid,
  .live-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .vault-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .vault-lower-grid,
  .dashboard-stake-grid,
  .dash-top-row,
  .progress-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .public-page .public-nav-inner {
    min-height: auto !important;
    padding: 10px 0 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .public-page .public-links {
    display: none !important;
  }

  .public-page .public-actions {
    margin-left: auto;
    gap: 6px !important;
  }

  .public-page .public-actions a,
  .public-page .public-actions button {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .vault-card,
  .vault-card.dashboard-card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  .vault-card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .vault-card-header h2 {
    font-size: 22px !important;
    max-width: 100% !important;
  }

  .vault-card-header p {
    max-width: 100% !important;
    font-size: 13px !important;
  }

  .wallet-stack {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .wallet-stack .btn,
  .wallet-stack button,
  #dashboardConnect {
    width: 100% !important;
  }

  .dash-top-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .referral-card {
    padding: 14px !important;
  }

  .ref-link-row {
    flex-direction: column !important;
  }

  .ref-link-row input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 12px !important;
  }

  .ref-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .ref-actions button,
  .ref-actions a {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .timer-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .timer-chip {
    min-width: 0 !important;
  }

  .vault-stat-grid,
  .live-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .vault-stat-card {
    padding: 12px !important;
    min-width: 0 !important;
  }

  .stat-value {
    font-size: 18px !important;
    flex-wrap: wrap !important;
  }

  .small-address {
    font-size: 14px !important;
  }

  .progress-grid {
    grid-template-columns: 1fr !important;
  }

  .section-title,
  .section-title.compact {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .section-title > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .section-title button,
  .section-title .btn {
    width: 100% !important;
  }

  .dashboard-stake-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .vault-plan-grid,
  .compact-plans {
    grid-template-columns: 1fr 1fr !important;
  }

  .vault-lower-grid {
    grid-template-columns: 1fr !important;
  }

  .stake-quote,
  .multi-quote {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .form-group input,
  .form-group select,
  #stakeAmount,
  #stakePlan {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  #stakeNowButton,
  .btn.full {
    width: 100% !important;
  }

  .table-wrap,
  .modern-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
  }

  .table-wrap table,
  .modern-table table,
  table {
    min-width: 560px !important;
  }

  .auth-section.refined-auth,
  .auth-section {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(100%, calc(100vw - 20px)) !important;
    margin: 0 auto !important;
  }

  .at-hero {
    grid-template-columns: 1fr !important;
  }

  .at-features,
  .at-steps,
  .at-contracts,
  .matrix-preview {
    grid-template-columns: 1fr 1fr !important;
  }

  .level-row {
    grid-template-columns: 1fr 1fr !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .vault-stat-grid,
  .live-stats,
  .vault-plan-grid,
  .compact-plans,
  .timer-strip,
  .at-features,
  .at-steps,
  .at-contracts,
  .matrix-preview {
    grid-template-columns: 1fr !important;
  }

  .ref-actions {
    grid-template-columns: 1fr !important;
  }

  .vault-card-header h2 {
    font-size: 20px !important;
  }

  .stat-value {
    font-size: 16px !important;
  }
}

/* Dashboard palette aligned with current home page */
.public-page .vault-dashboard-shell {
  width: min(1280px, calc(100% - 24px)) !important;
  padding: 28px 0 42px;
}

.public-page .vault-card.dashboard-card {
  background: #070b14;
  border: 1px solid #1f2a40;
  border-radius: 24px;
  box-shadow: none;
  color: #edf2f9;
}

.public-page .vault-card-header h2 {
  color: #f4f8ff;
}

.public-page .vault-card-header h2,
.public-page .section-title h3 {
  letter-spacing: 0;
}

.public-page .vault-card-header p,
.public-page .vault-stat-card p,
.public-page .vault-plan-item p,
.public-page .pc-detail,
.public-page .contract-note,
.public-page .contract-list dt,
.public-page .timer-chip span {
  color: #859ac9;
}

.public-page .badge-network,
.public-page .addr,
.public-page .btn-outline,
.public-page .ref-value {
  background: #1c2842;
  border-color: #3a4d72;
  color: #fbbf24;
}

.public-page .badge-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, .14);
}

.public-page .vault-stat-card,
.public-page .vault-plan-item,
.public-page .vault-panel,
.public-page .referral-card,
.public-page .progress-card {
  background: #101a2b;
  border: 1px solid #24314a;
  box-shadow: none;
}

.public-page .vault-stat-card:hover,
.public-page .vault-plan-item:hover,
.public-page .progress-card:hover {
  background: #131e32;
  border-color: #3f5a84;
}

.public-page .stat-label,
.public-page .plan-duration span,
.public-page .pc-meta,
.public-page .ref-stats span,
.public-page .dark-table thead th {
  color: #7e93c0;
}

.public-page .stat-value,
.public-page .plan-duration,
.public-page .section-title h3,
.public-page .contract-panel h3,
.public-page .contract-list dd,
.public-page .progress-card .pc-head h4,
.public-page .dark-table table {
  color: #f4f8ff;
}

.public-page .stat-value small {
  color: #8899c7;
}

.public-page .title-icon,
.public-page .btn.primary,
.public-page .btn-copy,
.public-page .plan-id,
.public-page .progress-card .pc-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent;
  color: #0b0f1a;
  box-shadow: 0 4px 14px rgba(251, 191, 36, .2);
}

.public-page .btn.secondary,
.public-page .btn-share {
  background: transparent;
  border: 1px solid #3d5277 !important;
  color: #c6d6ff;
}

.public-page .btn.secondary:hover,
.public-page .btn-share:hover {
  background: #1f2e48;
  border-color: #5f7fc0 !important;
  color: #fff;
}

.public-page .referral-card {
  color: #edf2f9;
}

.public-page .referral-card h3,
.public-page .ref-stats strong {
  color: #fff;
}

.public-page .referral-card .ref-sub,
.public-page .ref-link-row input {
  color: #98aedb;
}

.public-page .ref-link-row input {
  background: #141e32;
  border-color: #2a3d5e;
}

.public-page .plan-reward,
.public-page .pc-timer,
.public-page .timer-chip strong,
.public-page .unlock-wait {
  color: #fbbf24 !important;
}

.public-page .plan-reward,
.public-page .progress-card .pc-badge.warn {
  background: rgba(251, 191, 36, .13);
  border-color: rgba(251, 191, 36, .28);
}

.public-page .bar-track,
.public-page .timer-chip,
.public-page .dark-table thead th {
  background: #0c1424;
  border-color: #26344e;
}

.public-page .bar-fill,
.public-page .bar-fill.gold,
.public-page .bar-fill.purple,
.public-page .bar-fill.blue {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.public-page .progress-card .pc-badge.done,
.public-page .unlock-ok {
  color: #4ade80 !important;
}

.public-page .progress-card .pc-badge.locked {
  background: #1c2842;
  color: #8899c7;
}

.public-page .dashboard-divider,
.public-page .dark-table tbody td,
.public-page .contract-list div {
  border-color: #24314a;
}

.public-page .stake-quote {
  background: #101a2b;
  border-color: #24314a;
}

.public-page .stake-quote span {
  color: #7e93c0;
}

.public-page .stake-quote strong {
  color: #f4f8ff;
}

.alert {
  transition: opacity .25s ease, transform .25s ease;
}

.alert.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}
/* Dashboard mobile menu and phone layout */
.dashboard-menu-button {
  display: none;
}

.dashboard-mobile-menu {
  display: none;
}

.public-page .dashboard-mobile-menu {
  background: #101a2b;
  border: 1px solid #24314a;
  border-radius: 18px;
  padding: 8px;
  margin: -8px 0 18px;
}

.public-page .dashboard-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #c6d6ff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.public-page .dashboard-mobile-menu a:hover,
.public-page .dashboard-mobile-menu a:focus {
  background: #1f2e48;
  color: #fbbf24;
  outline: none;
}

#overview,
#progress,
#ranks,
#wallets,
#stake,
#positions,
#contracts {
  scroll-margin-top: 18px;
}

@media (max-width: 768px) {
  .dashboard-menu-button {
    display: inline-flex !important;
    justify-content: center;
  }

  .public-page .dashboard-mobile-menu.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .public-page .vault-dashboard-shell {
    width: min(100% - 14px, 1280px) !important;
    padding-top: 12px !important;
  }

  .public-page .vault-card.dashboard-card {
    padding: 12px !important;
  }

  .public-page .vault-card-header {
    margin-bottom: 16px !important;
  }

  .public-page .wallet-stack {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100% !important;
  }

  .public-page .wallet-stack .addr {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  .public-page .wallet-stack .btn,
  .public-page .wallet-stack button {
    width: 100% !important;
    min-height: 42px;
    padding: 10px 12px;
  }

  .public-page .dash-top-row,
  .public-page .dashboard-stake-grid,
  .public-page .vault-lower-grid {
    gap: 12px !important;
  }

  .public-page .vault-panel,
  .public-page .referral-card,
  .public-page .progress-card,
  .public-page .vault-stat-card,
  .public-page .vault-plan-item {
    border-radius: 16px !important;
  }

  .public-page .ref-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .public-page .ref-stats div {
    background: #0c1424;
    border: 1px solid #26344e;
    border-radius: 12px;
    padding: 10px;
  }

  .public-page .timer-strip {
    grid-template-columns: 1fr 1fr !important;
  }

  .public-page .timer-chip {
    padding: 10px !important;
  }
}

@media (max-width: 640px) {
  .public-page .vault-stat-grid,
  .public-page .live-stats,
  .public-page .vault-plan-grid,
  .public-page .compact-plans {
    grid-template-columns: 1fr !important;
  }

  .public-page .dashboard-mobile-menu.is-open {
    grid-template-columns: 1fr;
  }

  .public-page .ref-stats,
  .public-page .timer-strip {
    grid-template-columns: 1fr !important;
  }

  .public-page .ref-actions {
    grid-template-columns: 1fr !important;
  }

  .public-page .section-title h3 {
    font-size: 17px !important;
  }

  .public-page .stat-value {
    font-size: 22px !important;
  }

  .public-page .small-address {
    font-size: 16px !important;
  }

  .public-page .contract-list div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .public-page .contract-list dd {
    text-align: left;
  }
}
/* Dashboard title orbit menu */
.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-title-row h2 {
  margin-right: auto;
}

.dashboard-orbit-menu {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 12px 7px 7px;
  border: 1px solid #3a4d72;
  border-radius: 999px;
  background: linear-gradient(135deg, #101a2b, #1c2842);
  color: #fbbf24;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .25);
}

.orbit-menu-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 0 5px rgba(251, 191, 36, .1);
}

.orbit-menu-mark i {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: #0b0f1a;
  transition: transform .22s ease, opacity .22s ease;
}

.orbit-menu-mark i:nth-child(1) { transform: translateY(-5px); }
.orbit-menu-mark i:nth-child(2) { transform: translateY(0); }
.orbit-menu-mark i:nth-child(3) { transform: translateY(5px); }

.dashboard-orbit-menu[aria-expanded="true"] .orbit-menu-mark i:nth-child(1) {
  transform: rotate(45deg);
}

.dashboard-orbit-menu[aria-expanded="true"] .orbit-menu-mark i:nth-child(2) {
  opacity: 0;
}

.dashboard-orbit-menu[aria-expanded="true"] .orbit-menu-mark i:nth-child(3) {
  transform: rotate(-45deg);
}

.orbit-menu-text {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .dashboard-title-row {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-title-row h2 {
    max-width: calc(100% - 132px) !important;
  }

  .dashboard-orbit-menu {
    display: inline-flex;
  }

  .dashboard-menu-button {
    display: none !important;
  }

  .public-page .dashboard-mobile-menu {
    position: relative;
    overflow: hidden;
  }

  .public-page .dashboard-mobile-menu.is-open {
    animation: dashboardMenuReveal .22s ease both;
  }

  .public-page .dashboard-mobile-menu.is-open::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
  }
}

@media (max-width: 420px) {
  .dashboard-title-row h2 {
    max-width: 100% !important;
  }

  .dashboard-orbit-menu {
    width: 100%;
    justify-content: center;
  }
}

@keyframes dashboardMenuReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Top nav dashboard menu trigger */
.nav-dashboard-menu {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(251, 191, 36, .35);
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b0f1a;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(251, 191, 36, .22);
  padding: 0;
  flex: 0 0 auto;
}

.nav-menu-mark {
  position: relative;
  width: 18px;
  height: 14px;
  display: block;
}

.nav-menu-mark i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #0b0f1a;
  transition: transform .22s ease, opacity .22s ease, top .22s ease;
}

.nav-menu-mark i:nth-child(1) { top: 0; }
.nav-menu-mark i:nth-child(2) { top: 6px; width: 13px; left: 5px; }
.nav-menu-mark i:nth-child(3) { top: 12px; }

.nav-dashboard-menu[aria-expanded="true"] .nav-menu-mark i:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-dashboard-menu[aria-expanded="true"] .nav-menu-mark i:nth-child(2) {
  opacity: 0;
}

.nav-dashboard-menu[aria-expanded="true"] .nav-menu-mark i:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.public-page .public-actions {
  align-items: center;
}

@media (max-width: 768px) {
  .nav-dashboard-menu {
    width: 38px;
    height: 38px;
  }
}
/* dashboard menu desktop open state */
.public-page .dashboard-mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  animation: dashboardMenuReveal .22s ease both;
}
/* Professional left dashboard drawer */
.public-page .dashboard-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, calc(100vw - 34px));
  z-index: 9999;
  display: grid;
  align-content: start;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 92px 14px 18px;
  background: linear-gradient(180deg, #101a2b, #070b14);
  border: 0;
  border-right: 1px solid #24314a;
  border-radius: 0 22px 22px 0;
  box-shadow: 24px 0 70px rgba(0, 0, 0, .45);
  transform: translateX(-108%);
  opacity: 0;
  pointer-events: none;
  transition: transform .26s ease, opacity .2s ease;
}

.public-page .dashboard-mobile-menu::after {
  content: "Dashboard Menu";
  position: absolute;
  top: 28px;
  left: 16px;
  color: #f4f8ff;
  font-weight: 900;
  font-size: 18px;
}

.public-page .dashboard-mobile-menu::before {
  content: "";
  position: absolute;
  top: 62px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: #24314a;
}

.public-page .dashboard-mobile-menu.is-open {
  display: grid;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  animation: none;
}

.public-page .dashboard-mobile-menu a {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  background: transparent;
}

.public-page .dashboard-mobile-menu a:hover,
.public-page .dashboard-mobile-menu a:focus {
  border-color: #3a4d72;
  background: #1c2842;
}

.nav-dashboard-menu {
  order: 99;
}

@media (max-width: 768px) {
  .public-page .dashboard-mobile-menu,
  .public-page .dashboard-mobile-menu.is-open {
    grid-template-columns: 1fr !important;
  }

  .public-page .dashboard-mobile-menu.is-open::before {
    inset: auto;
    top: 62px;
    left: 16px;
    right: 16px;
    width: auto;
    height: 1px;
    background: #24314a;
  }
}
/* Curved drawer and contract matrix polish */
.public-page .dashboard-mobile-menu {
  width: min(340px, calc(100vw - 26px));
  padding: 104px 16px 20px;
  border-radius: 0 34px 34px 0;
  background:
    radial-gradient(circle at 100% 14%, rgba(251, 191, 36, .16), transparent 28%),
    linear-gradient(180deg, #101a2b, #070b14 72%);
}

.public-page .dashboard-mobile-menu::after {
  content: "VaultX Control";
  top: 26px;
  left: 18px;
  font-size: 20px;
}

.public-page .dashboard-mobile-menu::before {
  top: 66px;
  left: 18px;
  right: 28px;
}

.public-page .dashboard-mobile-menu a:not(.drawer-action-link) {
  position: relative;
  border-radius: 18px 10px 18px 10px;
  background: rgba(16, 26, 43, .78);
  border-color: #24314a;
  overflow: hidden;
}

.public-page .dashboard-mobile-menu a:not(.drawer-action-link)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, .1);
  margin-right: 10px;
  flex: 0 0 auto;
}

.drawer-nav-label {
  display: block;
  color: #7e93c0;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .1em;
  margin: 8px 4px 2px;
}

.drawer-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.drawer-quick-actions form {
  margin: 0;
}

.drawer-action-link,
.drawer-logout-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #3d5277;
  background: #1c2842;
  color: #c6d6ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-sizing: border-box;
}

.drawer-logout-button {
  font-family: inherit;
}

.drawer-action-link {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #0b0f1a !important;
  border-color: transparent !important;
}

.contract-orbit-panel {
  position: relative;
  overflow: hidden;
}

.contract-orbit-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -82px;
  top: -78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .18), transparent 64%);
  pointer-events: none;
}

.contract-orbit-head {
  position: relative;
  z-index: 1;
}

.contract-orbit-head h3 {
  margin-bottom: 8px;
}

.contract-orbit-head p {
  margin: 0 0 16px;
  color: #859ac9;
  line-height: 1.45;
  font-size: 13px;
}

.contract-orbit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.contract-orbit-card {
  display: block;
  padding: 14px;
  border-radius: 20px 12px 20px 12px;
  border: 1px solid #24314a;
  background: #0c1424;
  color: #edf2f9;
  text-decoration: none;
  overflow: hidden;
}

.contract-orbit-card.primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b0f1a;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(251, 191, 36, .18);
}

.contract-orbit-card span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  color: inherit;
  opacity: .78;
  margin-bottom: 6px;
}

.contract-orbit-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.contract-rule-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.contract-rule-list div {
  padding: 12px;
  border: 1px solid #24314a;
  border-radius: 16px;
  background: rgba(16, 26, 43, .76);
}

.contract-rule-list dt {
  color: #7e93c0;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
}

.contract-rule-list dd {
  margin: 5px 0 0;
  color: #f4f8ff;
  font-weight: 900;
  font-size: 13px;
}

@media (max-width: 640px) {
  .drawer-quick-actions,
  .contract-rule-list {
    grid-template-columns: 1fr;
  }
}
body.dashboard-menu-open {
  overflow: hidden;
}

.public-page .dashboard-mobile-menu {
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.public-page .dashboard-mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.public-page .dashboard-mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, .45);
  border-radius: 999px;
}
/* Sticky dashboard top navigation */
.public-page .public-nav:has(#dashboardNavMenuToggle) {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(7, 11, 20, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.public-page:has(#dashboardNavMenuToggle) .vault-dashboard-shell {
  padding-top: 18px !important;
}

.public-page:has(#dashboardNavMenuToggle) #overview,
.public-page:has(#dashboardNavMenuToggle) #progress,
.public-page:has(#dashboardNavMenuToggle) #ranks,
.public-page:has(#dashboardNavMenuToggle) #wallets,
.public-page:has(#dashboardNavMenuToggle) #stake,
.public-page:has(#dashboardNavMenuToggle) #positions,
.public-page:has(#dashboardNavMenuToggle) #contracts {
  scroll-margin-top: 104px;
}
body.has-dashboard-nav .public-nav {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(7, 11, 20, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

body.has-dashboard-nav .vault-dashboard-shell {
  padding-top: 18px !important;
}

body.has-dashboard-nav #overview,
body.has-dashboard-nav #progress,
body.has-dashboard-nav #ranks,
body.has-dashboard-nav #wallets,
body.has-dashboard-nav #stake,
body.has-dashboard-nav #positions,
body.has-dashboard-nav #contracts {
  scroll-margin-top: 104px;
}
/* Reliable fixed dashboard header */
body.dashboard-page {
  padding-top: 82px;
}

body.dashboard-page .public-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12000;
  background: rgba(7, 11, 20, .96) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

body.dashboard-page .vault-dashboard-shell {
  padding-top: 18px !important;
}

body.dashboard-page #overview,
body.dashboard-page #progress,
body.dashboard-page #ranks,
body.dashboard-page #wallets,
body.dashboard-page #stake,
body.dashboard-page #positions,
body.dashboard-page #contracts {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  body.dashboard-page {
    padding-top: 68px;
  }

  body.dashboard-page #overview,
  body.dashboard-page #progress,
  body.dashboard-page #ranks,
  body.dashboard-page #wallets,
  body.dashboard-page #stake,
  body.dashboard-page #positions,
  body.dashboard-page #contracts {
    scroll-margin-top: 92px;
  }
}
/* Premium staking console refresh */
.public-page .dashboard-stake-grid {
  align-items: stretch;
}

.public-page .stake-console-pro,
.public-page .package-console-pro {
  position: relative;
  overflow: hidden;
  border-radius: 28px 16px 28px 16px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, .15), transparent 28%),
    linear-gradient(180deg, #101a2b, #0c1424) !important;
}

.public-page .stake-console-pro::before {
  content: "VLX";
  position: absolute;
  right: 18px;
  top: 16px;
  color: rgba(251, 191, 36, .08);
  font-size: 76px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.stake-console-sub {
  flex-basis: 100%;
  margin: -6px 0 0 42px;
  color: #859ac9;
  font-size: 13px;
  line-height: 1.45;
  max-width: 520px;
}

.public-page .stake-console-pro .form-group {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.public-page .stake-console-pro .form-group label {
  color: #fbbf24;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.public-page .stake-console-pro input,
.public-page .stake-console-pro select {
  min-height: 50px;
  border-radius: 18px !important;
  background: #070b14 !important;
  border-color: #31476b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.public-page .stake-console-pro input:focus,
.public-page .stake-console-pro select:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .14) !important;
  outline: none;
}

.public-page .stake-console-pro .stake-quote {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.public-page .stake-console-pro .stake-quote div {
  padding: 14px;
  border-radius: 18px 10px 18px 10px;
  border: 1px solid #24314a;
  background: #0c1424;
}

.public-page .stake-console-pro .stake-quote span {
  color: #7e93c0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-page .stake-console-pro .stake-quote strong {
  display: block;
  margin-top: 6px;
  color: #f4f8ff;
  font-size: 16px;
}

.public-page #stakeNowButton {
  position: relative;
  z-index: 1;
  min-height: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(251, 191, 36, .18);
}

.public-page #stakeStatus {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 11, 20, .58);
  border: 1px solid #24314a;
}

.public-page .compact-plans {
  gap: 12px;
}

.public-page .stake-tier-card {
  position: relative;
  min-height: 156px;
  border-radius: 24px 12px 24px 12px !important;
  overflow: hidden;
}

.public-page .stake-tier-card::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -42px;
  top: -42px;
  border-radius: 50%;
  background: rgba(251, 191, 36, .12);
  transition: transform .22s ease, background .22s ease;
}

.public-page .stake-tier-card:hover::after,
.public-page .stake-tier-card.is-selected::after {
  transform: scale(1.35);
  background: rgba(251, 191, 36, .22);
}

.public-page .stake-tier-card.is-selected {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, .34), 0 18px 36px rgba(0,0,0,.2) !important;
}

.public-page .stake-tier-card.is-selected .plan-id {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b0f1a;
}

.public-page .stake-tier-card .plan-duration {
  font-size: 28px;
}

@media (max-width: 768px) {
  .stake-console-sub {
    margin-left: 0;
  }

  .public-page .stake-console-pro .stake-quote {
    grid-template-columns: 1fr !important;
  }

  .public-page .stake-tier-card {
    min-height: auto;
  }
}
/* DAO members panel */
.public-page .dao-members-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 28px 16px 28px 16px !important;
}

.public-page .dao-members-panel::before {
  content: "DAO";
  position: absolute;
  right: 18px;
  top: 8px;
  color: rgba(251, 191, 36, .08);
  font-size: 82px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.dao-tier-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dao-tier-card {
  padding: 16px;
  border: 1px solid #24314a;
  border-radius: 22px 12px 22px 12px;
  background: #0c1424;
  min-height: 138px;
}

.dao-tier-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1c2842;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dao-tier-card strong {
  display: block;
  margin-top: 14px;
  color: #f4f8ff;
  font-size: 24px;
}

.dao-tier-card p,
.dao-tier-card small {
  display: block;
  margin: 8px 0 0;
  color: #859ac9;
  line-height: 1.45;
}

.dao-tier-card small {
  color: #c6d6ff;
  font-weight: 800;
}

.dao-tier-card.is-qualified {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent;
  color: #0b0f1a;
  box-shadow: 0 14px 30px rgba(251, 191, 36, .18);
}

.dao-tier-card.is-qualified span,
.dao-tier-card.is-qualified strong,
.dao-tier-card.is-qualified p,
.dao-tier-card.is-qualified small {
  color: #0b0f1a;
}

.dao-tier-card.is-qualified span {
  background: rgba(11, 15, 26, .12);
}

body.dashboard-page #dao-members,
.public-page:has(#dashboardNavMenuToggle) #dao-members,
body.has-dashboard-nav #dao-members {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  .dao-tier-grid {
    grid-template-columns: 1fr !important;
  }

  body.dashboard-page #dao-members,
  .public-page:has(#dashboardNavMenuToggle) #dao-members,
  body.has-dashboard-nav #dao-members {
    scroll-margin-top: 92px;
  }
}
/* DAO member count and active tier refresh */
.public-page .dao-active-banner {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 4px 0 16px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(246, 196, 83, 0.28);
  border-radius: 18px 34px 18px 34px;
  background:
    linear-gradient(135deg, rgba(246, 196, 83, 0.18), rgba(83, 190, 255, 0.10)),
    rgba(7, 16, 35, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.public-page .dao-active-banner span {
  color: rgba(230, 237, 250, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-page .dao-active-banner strong {
  color: #fff3c4;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.public-page .dao-active-banner p {
  margin: 0;
  color: rgba(230, 237, 250, 0.78);
  font-size: 0.9rem;
}

.public-page .dao-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.public-page .dao-card-head span {
  color: rgba(230, 237, 250, 0.72);
  font-weight: 900;
}

.public-page .dao-card-head b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(230, 237, 250, 0.14);
  border-radius: 999px;
  color: rgba(230, 237, 250, 0.72);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-page .dao-tier-card.is-active {
  border-color: rgba(246, 196, 83, 0.72);
  background:
    linear-gradient(155deg, rgba(246, 196, 83, 0.18), rgba(12, 26, 52, 0.96) 42%, rgba(83, 190, 255, 0.11)),
    rgba(8, 18, 38, 0.94);
  box-shadow: 0 18px 48px rgba(246, 196, 83, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.public-page .dao-tier-card.is-active .dao-card-head b {
  border-color: rgba(246, 196, 83, 0.58);
  color: #1f1603;
  background: linear-gradient(135deg, #ffe08b, #f6c453);
}

.public-page .dao-tier-card.is-qualified:not(.is-active) .dao-card-head b {
  border-color: rgba(83, 190, 255, 0.35);
  color: #bdeaff;
  background: rgba(83, 190, 255, 0.10);
}

.public-page .dao-tier-card strong[id$="Members"] {
  display: block;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.public-page .dao-tier-card p[id$="Remaining"] {
  margin: 0 0 10px;
  color: #f6c453;
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .public-page .dao-active-banner {
    border-radius: 16px 28px 16px 28px;
    padding: 14px;
  }

  .public-page .dao-card-head {
    align-items: flex-start;
  }
}

/* Clear readable rank labels */
.public-page #teamGrowthRank,
.public-page #royaltyRankText,
.public-page #daoTierText {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid rgba(246, 196, 83, 0.52);
  border-radius: 14px 24px 14px 24px;
  color: #201602 !important;
  background: linear-gradient(135deg, #fff1b8, #f6c453 58%, #d9971c);
  box-shadow: 0 12px 28px rgba(246, 196, 83, 0.18);
  font-weight: 950;
  text-shadow: none;
}

.public-page #teamGrowthRank:is(:empty),
.public-page #royaltyRankText:is(:empty),
.public-page #daoTierText:is(:empty) {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.public-page #tgBadge.done,
.public-page #royaltyBadge.done,
.public-page #daoBadge.done {
  border-color: rgba(246, 196, 83, 0.55);
  color: #1c1302;
  background: linear-gradient(135deg, #fff1b8, #f6c453);
  box-shadow: 0 10px 24px rgba(246, 196, 83, 0.18);
}

.public-page #tgProgressText,
.public-page #royaltyProgressText,
.public-page #daoProgressText {
  color: #fff3c4;
  font-weight: 900;
}

/* Stake package active state and mobile history */
.public-page .stake-tier-card .plan-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.76);
  background: rgba(148, 163, 184, 0.10);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-page .stake-tier-card.has-active-stake {
  border-color: rgba(74, 222, 128, 0.58);
  background:
    linear-gradient(155deg, rgba(74, 222, 128, 0.14), rgba(10, 22, 45, 0.96) 46%, rgba(246, 196, 83, 0.09)),
    rgba(8, 18, 38, 0.94);
  box-shadow: 0 18px 46px rgba(74, 222, 128, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.public-page .stake-tier-card .plan-status.is-active {
  border-color: rgba(74, 222, 128, 0.58);
  color: #03210f;
  background: linear-gradient(135deg, #bbf7d0, #4ade80);
  box-shadow: 0 10px 24px rgba(74, 222, 128, 0.18);
}

@media (max-width: 720px) {
  .public-page .positions-panel table,
  .public-page .positions-panel thead,
  .public-page .positions-panel tbody,
  .public-page .positions-panel tr,
  .public-page .positions-panel th,
  .public-page .positions-panel td {
    display: block;
    width: 100%;
  }

  .public-page .positions-panel thead {
    display: none;
  }

  .public-page .positions-panel tbody {
    display: grid;
    gap: 12px;
  }

  .public-page .positions-panel tr {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(7, 16, 35, 0.72);
  }

  .public-page .positions-panel td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    color: #f8fbff;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .public-page .positions-panel td + td {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .public-page .positions-panel td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.74rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .public-page .positions-panel td.empty {
    display: block;
    text-align: center;
  }

  .public-page .positions-panel td.empty::before {
    content: none;
  }

  .public-page .positions-panel .withdraw-stake {
    width: auto;
    min-width: 116px;
  }
}

/* Final mobile override for active stake history */
@media (max-width: 720px) {
  .public-page .positions-panel .table-wrap,
  .public-page .positions-panel .modern-table,
  .public-page .positions-panel .dark-table {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .public-page .positions-panel table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .public-page .positions-panel thead,
  .public-page .positions-panel th {
    display: none !important;
  }

  .public-page .positions-panel tbody {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  .public-page .positions-panel tbody tr {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(246, 196, 83, 0.16) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(12, 26, 52, 0.96), rgba(6, 15, 33, 0.96)) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22) !important;
  }

  .public-page .positions-panel tbody td {
    display: grid !important;
    grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f8fbff !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
  }

  .public-page .positions-panel tbody td:last-child {
    border-bottom: 0 !important;
    padding-bottom: 2px !important;
  }

  .public-page .positions-panel tbody td::before {
    content: attr(data-label) !important;
    color: rgba(226, 232, 240, 0.62) !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: uppercase !important;
  }

  .public-page .positions-panel tbody td.empty {
    display: block !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .public-page .positions-panel tbody td.empty::before {
    content: none !important;
  }

  .public-page .positions-panel tbody td[data-label="Action"] {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }

  .public-page .positions-panel tbody td[data-label="Action"]::before {
    margin-bottom: 8px !important;
  }

  .public-page .positions-panel .withdraw-stake {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }
}

/* Wider mobile/tablet stake history fix */
@media (max-width: 820px) {
  .public-page .positions-panel .table-wrap,
  .public-page .positions-panel .modern-table,
  .public-page .positions-panel .dark-table {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .public-page .positions-panel table,
  .public-page .positions-panel tbody,
  .public-page .positions-panel tr,
  .public-page .positions-panel td {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .public-page .positions-panel table {
    display: block !important;
    width: 100% !important;
  }

  .public-page .positions-panel thead,
  .public-page .positions-panel th {
    display: none !important;
  }

  .public-page .positions-panel tbody {
    display: grid !important;
    gap: 12px !important;
  }

  .public-page .positions-panel tr {
    display: grid !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(246, 196, 83, 0.16) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(12, 26, 52, 0.96), rgba(6, 15, 33, 0.96)) !important;
  }

  .public-page .positions-panel td {
    display: grid !important;
    grid-template-columns: minmax(92px, 0.44fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: right !important;
  }

  .public-page .positions-panel td::before {
    content: attr(data-label) !important;
    color: rgba(226, 232, 240, 0.62) !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    text-align: left !important;
    text-transform: uppercase !important;
  }

  .public-page .positions-panel td:last-child {
    border-bottom: 0 !important;
  }

  .public-page .positions-panel td.empty {
    display: block !important;
    text-align: center !important;
  }

  .public-page .positions-panel td.empty::before {
    content: none !important;
  }

  .public-page .positions-panel td[data-label="Action"] {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }

  .public-page .positions-panel .withdraw-stake {
    width: 100% !important;
  }
}

/* Highlight transaction status messages */
.public-page #stakeStatus,
.public-page #incomeStatus {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(83, 190, 255, 0.22);
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(83, 190, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.public-page #stakeStatus::before,
.public-page #incomeStatus::before {
  content: "i";
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #07111f;
  background: #93c5fd;
  font-size: 0.72rem;
  font-weight: 950;
}

.public-page #stakeStatus.is-pending,
.public-page #incomeStatus.is-pending {
  border-color: rgba(246, 196, 83, 0.48);
  color: #fff3c4;
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.15), rgba(83, 190, 255, 0.08));
  box-shadow: 0 14px 30px rgba(246, 196, 83, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.public-page #stakeStatus.is-pending::before,
.public-page #incomeStatus.is-pending::before {
  content: "...";
  background: #f6c453;
}

.public-page #stakeStatus.is-success,
.public-page #incomeStatus.is-success {
  border-color: rgba(74, 222, 128, 0.54);
  color: #d1fae5;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.16), rgba(12, 26, 52, 0.72));
  box-shadow: 0 14px 30px rgba(74, 222, 128, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.public-page #stakeStatus.is-success::before,
.public-page #incomeStatus.is-success::before {
  content: "?";
  color: #052e16;
  background: #4ade80;
}

.public-page #stakeStatus.is-error,
.public-page #incomeStatus.is-error {
  border-color: rgba(248, 113, 113, 0.62);
  color: #fee2e2;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.18), rgba(69, 10, 10, 0.42));
  box-shadow: 0 14px 32px rgba(248, 113, 113, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.public-page #stakeStatus.is-error::before,
.public-page #incomeStatus.is-error::before {
  content: "!";
  color: #450a0a;
  background: #f87171;
}

@media (max-width: 640px) {
  .public-page #stakeStatus,
  .public-page #incomeStatus {
    padding: 11px 12px 11px 38px;
    font-size: 0.88rem;
  }

  .public-page #stakeStatus::before,
  .public-page #incomeStatus::before {
    left: 12px;
  }
}

/* Better DAO card meta readability */
.public-page .dao-tier-card small[id^="daoPart"] {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  color: rgba(226, 232, 240, 0.78) !important;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.public-page .dao-tier-card.is-active small[id^="daoPart"] {
  border-color: rgba(246, 196, 83, 0.44);
  color: #fff3c4 !important;
  background: rgba(246, 196, 83, 0.12);
}

.public-page .dao-tier-card.is-qualified:not(.is-active) small[id^="daoPart"] {
  border-color: rgba(83, 190, 255, 0.28);
  color: #c9eeff !important;
  background: rgba(83, 190, 255, 0.08);
}

/* DAO status wording is wallet-specific */
.public-page .dao-card-head b {
  max-width: 112px;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.public-page .dao-tier-card:not(.is-qualified) .dao-card-head b {
  border-color: rgba(246, 196, 83, 0.26);
  color: #f8d987;
  background: rgba(246, 196, 83, 0.08);
}

/* Withdrawal option control */
.public-page .withdraw-option-select {
  min-height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(246, 196, 83, 0.28);
  border-radius: 999px;
  color: #fff3c4;
  background: rgba(8, 18, 38, 0.88);
  font-weight: 900;
  outline: none;
}

.public-page .withdraw-option-select:focus {
  border-color: rgba(246, 196, 83, 0.72);
  box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.14);
}

@media (max-width: 640px) {
  .public-page .withdraw-option-select {
    width: 100%;
  }
}

/* Single dashboard subsection layout */
.public-page .vault-lower-grid:has(> :only-child) {
  grid-template-columns: 1fr;
}


.public-page .dashboard-mobile-menu a.is-active {
  border-color: rgba(246, 196, 83, 0.62);
  color: #fff3c4;
  background: rgba(246, 196, 83, 0.14);
}
/* Desktop dashboard menu: use a compact dropdown below the fixed header. */
@media (min-width: 769px) {
  body.dashboard-menu-open {
    overflow: auto;
  }

  .public-page .dashboard-mobile-menu {
    position: fixed;
    top: 76px;
    right: 18px;
    bottom: auto;
    left: auto;
    width: min(320px, calc(100vw - 36px));
    max-height: calc(100vh - 94px);
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 7px;
    margin: 0;
    padding: 82px 14px 16px;
    border: 1px solid #2b3a55;
    border-radius: 18px;
    background: linear-gradient(180deg, #101a2b, #070b14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .58);
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transition: transform .2s ease, opacity .18s ease;
    z-index: 10001;
  }

  .public-page .dashboard-mobile-menu.is-open {
    grid-template-columns: minmax(0, 1fr);
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .public-page .dashboard-mobile-menu .drawer-quick-actions {
    grid-column: 1;
    grid-template-columns: 1fr 1fr;
  }

  .public-page .dashboard-mobile-menu .drawer-nav-label,
  .public-page .dashboard-mobile-menu > a {
    grid-column: 1;
    width: 100%;
    box-sizing: border-box;
  }

  .public-page .dashboard-mobile-menu::after {
    top: 20px;
    left: 16px;
    font-size: 17px;
  }

  .public-page .dashboard-mobile-menu::before {
    top: 56px;
    left: 16px;
    right: 16px;
  }

  .public-page .dashboard-mobile-menu a,
  .public-page .dashboard-mobile-menu a:not(.drawer-action-link) {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 13px;
  }
}

/* Withdrawal request payout card */
.withdrawal-request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.withdrawal-request-row:first-child { border-top: 0; padding-top: 0; }
.withdrawal-request-detail { display: grid; gap: 4px; }
.withdrawal-request-label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.withdrawal-request-detail strong { font-size: 22px; color: var(--navy); }
.withdrawal-request-detail small, .withdrawal-wait { color: var(--muted); }
.withdrawal-request-action { display: flex; align-items: center; justify-content: flex-end; min-width: 150px; }
@media (max-width: 600px) {
  .withdrawal-request-row { align-items: flex-start; flex-direction: column; }
  .withdrawal-request-action { justify-content: flex-start; min-width: 0; }
}
/* High-contrast withdrawal payout text */
.available-withdraw-card .withdrawal-request-detail,
.available-withdraw-card .withdrawal-request-detail strong,
.available-withdraw-card .withdrawal-request-detail small,
.available-withdraw-card .withdrawal-request-label,
.available-withdraw-card .withdrawal-wait {
  color: #fff;
}
.available-withdraw-card .withdrawal-request-detail small { color: rgba(255,255,255,.82); }