: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 {
  padding: 4px 0 24px;
}

.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% - 40px));
  margin: 0 auto;
}

.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(2, 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;
  }
}
