:root {
  --bg: #090b10;
  --bg2: #0f131a;
  --panel: rgba(255,255,255,0.05);
  --line: rgba(255,255,255,0.08);
  --text: #f4efe5;
  --muted: #b9b1a3;
  --gold: #d5b06d;
  --gold-2: #f0d9a6;
  --danger: #ff8a7a;
  --ok: #86d1a2;
  --shadow: 0 24px 80px rgba(0,0,0,0.45);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(213,176,109,0.12), transparent 24%), linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8,10,14,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav {
  height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2);
}
.mark {
  width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f6e5be, #bc8b47); color: #14161c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 30px rgba(213,176,109,0.2);
  font-weight: 800;
}
.nav-links, .nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.link-btn, .ghost, .gold-btn, .danger-btn {
  border-radius: 999px; border: 1px solid transparent; padding: 12px 18px; cursor: pointer; transition: .18s ease;
}
.link-btn { color: var(--muted); background: transparent; padding-inline: 14px; }
.link-btn.active, .link-btn:hover {
  color: var(--text); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.05);
}
.ghost { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: var(--text); }
.gold-btn {
  background: linear-gradient(135deg, #f0d8a4, #c4904c);
  color: #171920; font-weight: 700; box-shadow: 0 12px 28px rgba(213,176,109,0.22);
}
.danger-btn { background: rgba(255,138,122,0.08); border-color: rgba(255,138,122,0.14); color: #ffd0c9; }
.ghost:hover, .gold-btn:hover, .danger-btn:hover { transform: translateY(-1px); }

.page { padding: 34px 0 70px; }
.hero-grid, .two-col, .dash-grid, .cards-3, .cards-4 { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
.two-col { grid-template-columns: 0.95fr 1.05fr; }
.dash-grid { grid-template-columns: 300px 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card, .hero-copy, .hero-side, .panel, .sidebar, .chart-card, .login-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-copy, .hero-side, .panel, .sidebar, .chart-card, .login-wrap, .card { padding: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  background: rgba(213,176,109,0.08); border: 1px solid rgba(213,176,109,0.22); color: var(--gold-2); font-size: 13px; margin-bottom: 20px;
}
h1, h2, h3 { margin: 0; }
h1 {
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 72px); line-height: .96; font-weight: 600; letter-spacing: -0.04em; max-width: 760px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em;
}
h3 { font-size: 22px; font-weight: 600; }
.lead, .muted, .panel p, .card p { color: var(--muted); line-height: 1.72; }
.lead { font-size: 18px; max-width: 680px; margin: 20px 0 0; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.space-top { margin-top: 22px; }
.space-lg { margin-top: 30px; }
.metric {
  padding: 20px; border-radius: 22px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.05); min-height: 124px;
}
.metric .num { font-size: 30px; color: var(--gold-2); font-weight: 700; margin-bottom: 8px; }
.metric .cap { color: var(--muted); line-height: 1.6; font-size: 14px; }
.premium-card {
  border-radius: 28px; min-height: 250px; padding: 28px;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 32%), linear-gradient(135deg, #1d2029, #11141b 42%, #222734 100%);
  border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 22px 60px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.premium-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.08) 48%, transparent 60%);
  transform: translateX(-120%); animation: shine 6s linear infinite;
}
@keyframes shine { to { transform: translateX(120%); } }
.pc-label { color: var(--gold-2); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
.pc-num { font-size: 34px; letter-spacing: .12em; margin: 22px 0; }
.pc-bottom { display:flex; justify-content:space-between; color:#ddd4c5; font-size:14px; }
.list { display: grid; gap: 12px; margin-top: 20px; }
.list-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.05);
}
.list-item small { color: var(--muted); display: block; margin-top: 4px; }
.value { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.7; }
.screen { border-radius: 28px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.06); }
.screen-inner { border-radius: 24px; padding: 20px; background: linear-gradient(180deg, #11141b, #0c0f15); min-height: 420px; }
.chip {
  display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 999px;
  background: rgba(213,176,109,0.09); color: var(--gold-2); border: 1px solid rgba(213,176,109,0.22); font-size: 13px; margin-bottom: 16px;
}
.balance { font-size: clamp(30px, 5vw, 46px); font-weight: 700; margin: 10px 0 6px; }
.balance-sub { color: var(--muted); margin-bottom: 24px; }
.graph {
  height: 190px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.05); overflow: hidden; position: relative;
}
.graph svg { width: 100%; height: 100%; display: block; }
.sidebar .profile {
  padding: 18px; border-radius: 22px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 16px;
}
.avatar {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f3e0b7, #b17d3c); color: #171920; font-weight: 800; margin-bottom: 14px;
}
.side-links { display: grid; gap: 10px; }
.side-links button {
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid rgba(255,255,255,0.05); cursor: pointer;
}
.side-links button.active { background: rgba(213,176,109,0.1); color: var(--gold-2); border-color: rgba(213,176,109,0.18); }
.status-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 13px; border: 1px solid rgba(255,255,255,0.08);
}
.pill.ok { color: #dff7e8; background: rgba(134,209,162,0.08); border-color: rgba(134,209,162,0.12); }
.pill.warn { color: #ffe0d9; background: rgba(255,138,122,0.08); border-color: rgba(255,138,122,0.12); }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th, .table td {
  text-align: left; padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--muted);
}
.table th { color: var(--text); font-weight: 600; }
.login-page { min-height: calc(100vh - 78px - 34px); display: grid; place-items: center; padding: 34px 0 70px; }
.login-wrap { width: min(980px, 100%); display: grid; grid-template-columns: 1fr 420px; overflow: hidden; padding: 0; }
.login-art, .login-form { padding: 36px; }
.login-art {
  background: radial-gradient(circle at top right, rgba(213,176,109,0.16), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; justify-content: space-between;
}
.login-form { background: rgba(0,0,0,0.12); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { color: var(--muted); font-size: 14px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); color: var(--text); outline: none;
}
.field input:focus { border-color: rgba(213,176,109,0.28); box-shadow: 0 0 0 4px rgba(213,176,109,0.08); }
.error, .success {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px; display: none;
}
.error { color: #ffd8d3; background: rgba(255,138,122,0.08); border: 1px solid rgba(255,138,122,0.12); }
.success { color: #e5f8eb; background: rgba(134,209,162,0.08); border: 1px solid rgba(134,209,162,0.12); }
.footer {
  padding: 0 0 34px; color: #8f887a; font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hidden { display: none !important; }

@media (max-width: 980px) {
  .hero-grid, .two-col, .cards-3, .cards-4, .dash-grid, .login-wrap { grid-template-columns: 1fr; }
  .nav { height: auto; padding: 16px 0; flex-direction: column; }
  .section-head { flex-direction: column; align-items: stretch; }
  .nav-links, .nav-actions { justify-content: center; }
}

.side-links .side-link,
.side-links button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  display: block;
}

.side-links .side-link.active,
.side-links button.active {
  background: rgba(213,176,109,0.1);
  color: var(--gold-2);
  border-color: rgba(213,176,109,0.18);
}

.cards-showcase,
.bank-card-grid,
.feature-grid {
  display: grid;
  gap: 20px;
}

.cards-showcase {
  grid-template-columns: 1.15fr 0.85fr;
}

.bank-card-grid,
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.bank-card {
  min-height: 215px;
  padding: 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 60px rgba(0,0,0,0.32);
}

.bank-card-black {
  background: radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 35%), linear-gradient(135deg, #1b1f27, #0d1118 48%, #21293a 100%);
}

.bank-card-gold {
  background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 35%), linear-gradient(135deg, #3a2a13, #7b5a2b 48%, #2a1b0e 100%);
}

.bank-card-virtual {
  background: radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 35%), linear-gradient(135deg, #142230, #12364a 48%, #0d1723 100%);
}

.card-chip {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f7edd8;
  font-size: 12px;
  letter-spacing: .04em;
}

.limit-stack {
  display: grid;
  gap: 12px;
}

.limit-card,
.notice-box {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
}

.limit-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.notice-box p {
  margin: 10px 0 0;
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.not-found-page {
  min-height: calc(100vh - 78px - 84px);
  display: grid;
  place-items: center;
}

.not-found-box {
  width: min(860px, 100%);
  padding: 44px;
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.not-found-code {
  font-size: clamp(72px, 12vw, 180px);
  line-height: .9;
  letter-spacing: -0.06em;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  margin: 6px 0 12px;
}

.not-found-title {
  max-width: 720px;
  margin: 0 auto;
}

.center,
.center-row {
  justify-content: center;
}

@media (max-width: 980px) {
  .cards-showcase,
  .bank-card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .not-found-box {
    padding: 28px;
  }
}
