/* ============================================================
   VAULTGUARD — design tokens
   Concept: a bank vault re-imagined for digital assets.
   Deep navy steel + brass accents, a combination-dial motif
   used everywhere trust/security needs to be communicated.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* base */
  --ink-000:#ffffff;
  --ink-050:#ffffff;
  --surface-100:#f6f6f6;
  --surface-200:#ffffff;
  --surface-300:#ecf4ff;
  --line-100:#ffffff;
  --line-200:#e2e3e6;

  /* text */
  --text-100:#272829;
  --text-200:#40444a;
  --text-300:#4d5258;

  /* accents */
  --brass-100:#86a2e4;
  --brass-200:#5272f5;
  --brass-300:#1768ff;
  --teal-100:#1d5444;
  --teal-200:#134838;
  --teal-glow:rgba(53,210,164,0.35);
  --danger:#FF5C6C;
  --warning:#293df087;

  /* type */
  --font-display:'Space Grotesk', 'Inter', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;

  /* radii + shadow */
  --r-sm:8px;
  --r-md:14px;
  --r-lg:22px;
  --shadow-vault: 0 20px 60px -20px rgba(205, 205, 205, 0.6);
  --ring: 0 0 0 1px var(--line-200);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201,161,93,0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(53,210,164,0.06), transparent 55%),
    var(--ink-050);
  color:var(--text-100);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; letter-spacing:-0.01em; }
p{ margin:0; color:var(--text-200); line-height:1.6; }
a{ color:inherit; text-decoration:none; }
button{ font-family:var(--font-body); cursor:pointer; }
.mono{ font-family:var(--font-mono); letter-spacing:0.01em; }
::selection{ background:var(--teal-glow); color:var(--text-100); }
:focus-visible{ outline:2px solid var(--teal-200); outline-offset:2px; border-radius:6px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.container{ max-width:1180px; margin:0 auto; padding:0 32px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 22px; border-radius:12px; border:1px solid transparent;
  font-weight:600; font-size:14.5px; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:linear-gradient(135deg, var(--brass-100), var(--brass-300));
  color:#1A1305;
  box-shadow:0 8px 24px -8px rgba(66, 57, 41, 0.5);
}
.btn-primary:hover{ box-shadow:0 10px 30px -6px rgba(93, 161, 201, 0.65); }
.btn-secondary{
  background:var(--surface-300); color:var(--text-100); border-color:var(--line-200);
}
.btn-secondary:hover{ border-color:var(--teal-200); }
.btn-ghost{ background:transparent; color:var(--text-200); border-color:var(--line-100); }
.btn-ghost:hover{ color:var(--text-100); border-color:var(--line-200); }
.btn-danger{ background:rgba(255,92,108,0.1); color:var(--danger); border-color:rgba(255,92,108,0.3); }
.btn-block{ width:100%; }
.btn-lg{ padding:15px 26px; font-size:15.5px; border-radius:14px; }
.btn-sm{ padding:8px 14px; font-size:13px; border-radius:9px; }

/* ---------- cards / surfaces ---------- */
.card{
  background:linear-gradient(180deg, var(--surface-200), var(--surface-100));
  border:1px solid var(--line-100);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-vault);
}
.card-pad{ padding:26px; }

/* ---------- forms ---------- */
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.field label{ font-size:13px; font-weight:600; color:var(--text-200); }
.field input, .field select{
  background:var(--ink-000); border:1px solid var(--line-100); color:var(--text-100);
  padding:13px 14px; border-radius:11px; font-size:14.5px; font-family:var(--font-body);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder{ color:var(--text-300); }
.field input:focus, .field select:focus{
  border-color:var(--teal-200); box-shadow:0 0 0 3px var(--teal-glow); outline:none;
}
.field-hint{ font-size:12px; color:var(--text-300); }
.field-row{ display:flex; gap:14px; }
.field-row .field{ flex:1; }
.checkbox-row{ display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--text-200); }
.checkbox-row input{ margin-top:3px; accent-color:var(--teal-200); }

/* ---------- badges / pills ---------- */
.pill{
  display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:100px;
  font-size:12px; font-weight:600; border:1px solid var(--line-200);
}
.pill-teal{ color:var(--teal-100); border-color:rgba(53,210,164,0.35); background:rgba(53,210,164,0.08); }
.pill-brass{ color:var(--brass-100); border-color:rgba(201,161,93,0.35); background:rgba(201,161,93,0.08); }
.pill-danger{ color:var(--danger); border-color:rgba(255,92,108,0.3); background:rgba(255,92,108,0.08); }
.pill-dot{ width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ---------- signature: combination dial ---------- */
.dial{ position:relative; display:inline-flex; align-items:center; justify-content:center; }
.dial svg{ display:block; }
.dial .dial-ring{ fill:none; stroke:var(--line-200); stroke-width:2; }
.dial .dial-progress{ fill:none; stroke:url(#dialGradient); stroke-width:3; stroke-linecap:round; transform:rotate(-90deg); transform-origin:center; }
.dial .dial-tick{ stroke:var(--line-200); stroke-width:1.5; }

@keyframes spin-slow{ to{ transform:rotate(360deg); } }
@keyframes dash-in{ from{ stroke-dashoffset:var(--dash-from); } to{ stroke-dashoffset:var(--dash-to); } }
@keyframes fade-up{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }
@keyframes pulse-glow{ 0%,100%{ opacity:0.55;} 50%{ opacity:1;} }
.fade-up{ animation:fade-up .6s cubic-bezier(.2,.7,.3,1) both; }

/* ---------- top marketing nav ---------- */
.mkt-nav{
  position:sticky; top:0; z-index:40; backdrop-filter:blur(14px);
  background:rgba(254, 254, 254, 0.72); border-bottom:1px solid var(--line-100);
}
.mkt-nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:1180px; margin:0 auto; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:18px; }
.brand-mark{ width:30px; height:30px; }
.mkt-links{ display:flex; align-items:center; gap:30px; font-size:14px; color:var(--text-200); }
.mkt-links a:hover{ color:var(--text-100); }
.mkt-cta{ display:flex; align-items:center; gap:12px; }

/* ---------- app shell (authenticated pages) ---------- */
.shell{ display:flex; min-height:100vh; }
.sidebar{
  width:250px; flex-shrink:0; background:var(--surface-100); border-right:1px solid var(--line-100);
  display:flex; flex-direction:column; padding:22px 16px; position:sticky; top:0; height:100vh;
}
.sidebar-brand{ display:flex; align-items:center; gap:10px; padding:6px 10px 26px; font-family:var(--font-display); font-weight:700; font-size:17px; }
.sidebar-brand svg{ width:26px; height:26px; }
.nav-group{ display:flex; flex-direction:column; gap:2px; margin-bottom:22px; }
.nav-label{ font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-300); padding:0 12px; margin-bottom:8px; }
.nav-item{
  display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px;
  font-size:14px; color:var(--text-200); font-weight:500; transition:background .15s ease, color .15s ease;
}
.nav-item svg{ width:18px; height:18px; flex-shrink:0; opacity:0.85; }
.nav-item:hover{ background:var(--surface-300); color:var(--text-100); }
.nav-item.active{ background:linear-gradient(90deg, rgba(201,161,93,0.14), transparent); color:var(--brass-100); border:1px solid rgba(201,161,93,0.25); }
.sidebar-footer{ margin-top:auto; }
.security-mini{ padding:14px; border-radius:12px; background:var(--surface-300); border:1px solid var(--line-100); display:flex; align-items:center; gap:12px; }

.topbar{
  display:flex; align-items:center; justify-content:space-between; padding:18px 32px;
  border-bottom:1px solid var(--line-100); position:sticky; top:0; background:rgba(10,14,22,0.85); backdrop-filter:blur(12px); z-index:20;
}
.topbar-search{
  display:flex; align-items:center; gap:10px; background:var(--ink-000); border:1px solid var(--line-100);
  border-radius:11px; padding:10px 14px; width:320px; color:var(--text-300); font-size:13.5px;
}
.topbar-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background:var(--surface-300); border:1px solid var(--line-100); color:var(--text-200); position:relative;
}
.icon-btn:hover{ color:var(--text-100); border-color:var(--line-200); }
.icon-btn .dot{ position:absolute; top:7px; right:7px; width:7px; height:7px; border-radius:50%; background:var(--danger); border:2px solid var(--surface-100); }
.avatar{
  width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg, var(--brass-100), var(--teal-200));
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; color:var(--ink-000); font-size:13px;
}
.main{ flex:1; min-width:0; }
.page{ padding:32px; max-width:1180px; }
.page-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:26px; flex-wrap:wrap; gap:14px; }
.eyebrow{ font-size:12px; text-transform:uppercase; letter-spacing:0.1em; color:var(--brass-200); font-weight:700; margin-bottom:6px; display:block; }

.grid-2{ display:grid; grid-template-columns:1.4fr 1fr; gap:22px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.stat-card{ padding:20px; }
.stat-label{ font-size:12.5px; color:var(--text-300); font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.stat-value{ font-family:var(--font-mono); font-size:26px; margin-top:8px; font-weight:600; }
.stat-delta{ font-size:12.5px; margin-top:6px; display:flex; align-items:center; gap:5px; }
.up{ color:var(--teal-100); } .down{ color:var(--danger); }

table{ width:100%; border-collapse:collapse; }
th{ text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-300); padding:0 14px 12px; font-weight:600; }
td{ padding:14px; border-top:1px solid var(--line-100); font-size:14px; }
tr:hover td{ background:rgba(255,255,255,0.015); }
.asset-cell{ display:flex; align-items:center; gap:10px; }
.asset-icon{ width:32px; height:32px; border-radius:50%; }

/* ---------- modal / wallet connect ---------- */
.overlay{
  position:fixed; inset:0; background:rgba(4,6,10,0.72); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; z-index:100; padding:20px;
}
.modal{
  width:100%; max-width:420px; background:var(--surface-100); border:1px solid var(--line-200);
  border-radius:var(--r-lg); box-shadow:var(--shadow-vault); padding:24px; animation:fade-up .35s ease both;
}
.modal-head{ display:flex; align-items:center; justify-content:between; justify-content:space-between; margin-bottom:6px; }
.modal-close{ background:none; border:none; color:var(--text-300); font-size:20px; padding:4px; }
.wallet-option{
  display:flex; align-items:center; gap:14px; padding:14px; border-radius:12px; border:1px solid var(--line-100);
  margin-top:10px; transition:border-color .15s ease, background .15s ease; background:var(--surface-200);
}
.wallet-option:hover{ border-color:var(--teal-200); background:var(--surface-300); }
.wallet-option img, .wallet-option .wicon{ width:34px; height:34px; border-radius:9px; }
.wallet-option .wname{ font-weight:600; font-size:14.5px; }
.wallet-option .wsub{ font-size:12px; color:var(--text-300); }
.wallet-option .chev{ margin-left:auto; color:var(--text-300); }

/* misc */
.divider-or{ display:flex; align-items:center; gap:12px; color:var(--text-300); font-size:12.5px; margin:18px 0; }
.divider-or::before,.divider-or::after{ content:''; flex:1; height:1px; background:var(--line-100); }
.oauth-row{ display:flex; gap:10px; }
.oauth-btn{ flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:11px; border-radius:11px; background:var(--surface-300); border:1px solid var(--line-100); font-size:13.5px; font-weight:600; }
.oauth-btn:hover{ border-color:var(--line-200); }

.toast-stack{ position:fixed; bottom:24px; right:24px; display:flex; flex-direction:column; gap:10px; z-index:200; }
.toast{
  display:flex; align-items:center; gap:10px; padding:14px 16px; border-radius:12px; background:var(--surface-200);
  border:1px solid var(--line-200); box-shadow:var(--shadow-vault); font-size:13.5px; min-width:260px; animation:fade-up .3s ease both;
}

.footer{ border-top:1px solid var(--line-100); padding:40px 32px; margin-top:60px; }
.footer-inner{ max-width:1180px; margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; color:var(--text-300); font-size:13px; }

@media (max-width: 980px){
  .grid-2{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .sidebar{ display:none; }
  .topbar-search{ display:none; }
  .mkt-links{ display:none; }
}
