:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --bg-3: #101827;
  --card: rgba(16, 24, 40, 0.78);
  --card-solid: #101827;
  --line: rgba(148, 163, 184, 0.14);
  --text: #eef3ff;
  --muted: #8b96ab;
  --green: #22f0a0;
  --green-2: #12c48a;
  --blue: #4d8dff;
  --blue-2: #3b6fff;
  --red: #ff5c7a;
  --gold: #f5c542;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --surface: #101827;
  --accent: #0d9f6e;
  --accent-ink: #062015;
}

/* Marketing site: light professional finance */
body.smi-site {
  --bg: #f4f6f9;
  --bg-2: #eef2f7;
  --bg-3: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --line: rgba(15, 35, 60, 0.1);
  --text: #10243d;
  --muted: #5b6b7f;
  --green: #0d9f6e;
  --green-2: #0b855c;
  --blue: #1f4f8a;
  --blue-2: #163a66;
  --red: #c23b4f;
  --gold: #b8891a;
  --shadow: 0 18px 48px rgba(16, 36, 61, 0.08);
  --font: "Figtree", system-ui, sans-serif;
  --display: "Newsreader", Georgia, serif;
  --surface: #ffffff;
  --accent: #0d9f6e;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.smi {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.smi-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.accent-link { color: var(--green); font-weight: 600; }
.accent-link:hover { text-decoration: underline; }

.smi-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(34, 240, 160, 0.12), transparent 55%),
    radial-gradient(700px 420px at 90% 8%, rgba(77, 141, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #080d18 100%);
}
body.smi-site .smi-glow {
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(13, 159, 110, 0.08), transparent 55%),
    radial-gradient(720px 420px at 96% 0%, rgba(31, 79, 138, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}
.smi-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
}
body.smi-site .smi-glow::after {
  background-image:
    linear-gradient(rgba(16, 36, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 61, 0.035) 1px, transparent 1px);
}

.smi-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
body.smi-site .smi-nav {
  background: rgba(247, 249, 252, 0.88);
}
.smi-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  position: relative;
}
.smi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
  min-width: 0;
}
.smi-brand-name {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
body.smi-site .smi-brand-name {
  display: inline;
  font-size: 17px;
  color: var(--text);
}
.smi-logo {
  height: 42px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  box-sizing: content-box;
}
body.smi-site .smi-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  height: 36px;
}
.sidebar .smi-logo {
  height: 30px;
  max-width: 168px;
  padding: 5px 8px;
}
.smi-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: grid;
  place-items: center;
  color: #06110c;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(34, 240, 160, 0.35);
}
.smi-nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.smi-nav-links a:hover { color: var(--text); }
.smi-nav-actions { display: flex; align-items: center; gap: 10px; }
.smi-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.app-menu { display: none; }
.nav-drawer { display: none; }
.backdrop { display: none; }
.backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 45; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
body.smi:not(.smi-site) .btn { border-radius: 999px; }
.btn-green {
  background: var(--green);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(13, 159, 110, 0.2);
}
body.smi:not(.smi-site) .btn-green {
  color: #062015;
  box-shadow: 0 8px 30px rgba(34, 240, 160, 0.25);
}
.btn-green:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
body.smi:not(.smi-site) .btn-outline:hover { color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--line); }
body.smi-site .btn-ghost { background: rgba(16, 36, 61, 0.04); }
.btn-danger { background: rgba(255, 92, 122, 0.12); color: var(--red); border: 1px solid rgba(255,92,122,0.25); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 240, 160, 0.08);
  color: var(--green);
  border: 1px solid rgba(34, 240, 160, 0.18);
  font-size: 12px;
  font-weight: 600;
}
body.smi-site .pill {
  background: rgba(13, 159, 110, 0.08);
  border-color: rgba(13, 159, 110, 0.18);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.brand-kicker {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.1;
}

/* Full-bleed marketing hero */
.hero-bleed {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 72px;
  overflow: hidden;
}
.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a2a3d;
}
.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(244, 246, 249, 0.94) 0%, rgba(244, 246, 249, 0.78) 38%, rgba(244, 246, 249, 0.35) 62%, rgba(244, 246, 249, 0.12) 100%),
    linear-gradient(180deg, rgba(16, 36, 61, 0.18), transparent 45%);
  pointer-events: none;
}
@keyframes heroDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(-1.2%, 0.8%, 0); }
}
.media-frame {
  margin: 22px 0 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #d7e0ea;
}
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
.media-frame-wide {
  margin: 0;
}
.media-frame-wide img {
  aspect-ratio: 21 / 9;
  min-height: 220px;
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.about-intro-grid .media-frame { margin: 0; }
.about-intro-grid .prose p:first-child { margin-top: 0; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
  margin-right: auto;
  width: min(640px, calc(100% - 40px));
  padding-top: 48px;
}
.hero-content h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  font-weight: 600;
}
.hero-content .lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }

.hero { position: relative; z-index: 1; padding: 72px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 16px 0 16px;
}
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 540px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 520px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; }
.hero-stats span { color: var(--muted); font-size: 13px; }

.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chart-head strong { font-size: 13px; }
.live { color: var(--green); font-size: 12px; }
.candles { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding: 12px 6px 8px; }
.candle { width: 14px; border-radius: 4px; position: relative; }
.candle.up { background: linear-gradient(180deg, #7dffc8, var(--green)); }
.candle.down { background: linear-gradient(180deg, #7aa6ff, var(--blue)); }
.mini-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mini-pair {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
}
.mini-pair b { display: block; font-size: 14px; margin-top: 2px; }
.up-text { color: var(--green); }
.down-text { color: var(--red); }

.ticker-wrap {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.8);
  overflow: hidden;
  margin-top: 28px;
}
.ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.ticker-item strong { color: var(--text); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { position: relative; z-index: 1; padding: 88px 0; }
.section-alt {
  background: rgba(16, 36, 61, 0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.smi:not(.smi-site) .section-alt { background: rgba(255,255,255,0.02); }
.section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 600;
}
.section-lead { max-width: 640px; margin: 0 0 28px; font-size: 17px; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { display: flex; gap: 10px; margin: 10px 0; color: var(--muted); }
.checklist svg { color: var(--green); flex: 0 0 auto; margin-top: 3px; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-top: 28px;
}
.capability-grid-lg { gap: 36px 40px; }
.capability {
  padding-top: 18px;
  border-top: 2px solid var(--green);
}
.capability h3 {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.approach-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.approach-steps li {
  display: grid;
  gap: 4px;
  padding: 18px 18px 18px 64px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.approach-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(13, 159, 110, 0.1);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.approach-steps strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}
.approach-steps span { color: var(--muted); font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
}
body.smi-site .card {
  backdrop-filter: none;
  box-shadow: var(--shadow);
}
.calc-row { margin-bottom: 18px; }
.calc-row label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.calc-row b { color: var(--text); }
input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.calc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.metric {
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}
body.smi-site .metric { background: var(--bg-2); }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric b { font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.plan-card { display: flex; flex-direction: column; min-height: 100%; }
.plan-card h3 { margin: 10px 0 8px; font-family: var(--display); font-size: 22px; }
.plan-card .roi { font-size: 32px; font-family: var(--display); color: var(--green); letter-spacing: -0.04em; }
.plan-meta { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-staking { background: rgba(77,141,255,0.12); color: var(--blue); }
.badge-trading { background: rgba(34,240,160,0.12); color: var(--green); }
body.smi-site .badge-trading { background: rgba(13,159,110,0.12); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(77,141,255,0.1);
  color: var(--blue);
  margin-bottom: 12px;
}
.icon-box.green { background: rgba(34,240,160,0.1); color: var(--green); }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote p { font-size: 15px; margin-top: 0; }
.who { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #06110c;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.cta-band {
  background: linear-gradient(135deg, rgba(13,159,110,0.1), rgba(31,79,138,0.08));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
body.smi:not(.smi-site) .cta-band {
  background: linear-gradient(135deg, rgba(34,240,160,0.12), rgba(77,141,255,0.12));
  border-radius: 28px;
}

.smi-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; z-index: 1; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-family: var(--display); letter-spacing: -0.04em; margin: 8px 0 6px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 4px; margin: 18px 0; }
.tabs a { text-align: center; padding: 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs a.active { background: var(--bg); color: var(--text); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(7,11,20,0.7);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
body.smi-site .field input,
body.smi-site .field select,
body.smi-site .field textarea {
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help { text-align: right; margin: -6px 0 16px; }
.help a, .auth-foot a { color: var(--green); }
.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}
.alert-danger { background: rgba(255,92,122,0.12); color: #ffb3c0; border: 1px solid rgba(255,92,122,0.2); }
.alert-success { background: rgba(34,240,160,0.12); color: #b6ffdf; border: 1px solid rgba(34,240,160,0.2); }
body.smi-site .alert-danger { color: #8f2436; background: rgba(194,59,79,0.08); }
body.smi-site .alert-success { color: #0b5c40; background: rgba(13,159,110,0.1); }
.invalid { color: var(--red); font-size: 12px; margin-top: 6px; display: block; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.or { text-align: center; color: var(--muted); margin: 16px 0; font-size: 12px; position: relative; }
.or::before, .or::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line); }
.or::before { left: 0; } .or::after { right: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; position: relative; z-index: 1; }
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.9);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.side-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.side-nav a, .side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 0;
  text-align: left;
  width: 100%;
}
.side-nav a:hover, .side-nav a.active { background: rgba(34,240,160,0.08); color: var(--text); }
.side-user { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.app-main { padding: 28px 32px 48px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.app-top h1 { margin: 0; font-family: var(--display); letter-spacing: -0.04em; font-size: 30px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.stat span { color: var(--muted); font-size: 13px; }
.stat b { display: block; margin-top: 8px; font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }

.table-wrap { overflow: auto; }
table.smi-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.smi-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.smi-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.status.pending { background: rgba(245,197,66,0.12); color: var(--gold); }
.status.approved, .status.active, .status.completed { background: rgba(34,240,160,0.12); color: var(--green); }
.status.rejected, .status.suspended { background: rgba(255,92,122,0.12); color: var(--red); }

.coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.coin {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.coin.active { border-color: var(--green); box-shadow: 0 0 0 1px rgba(34,240,160,0.3); }
.wallet-box {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
}
.wallet-box img { width: 140px; height: 140px; border-radius: 12px; background: #fff; }
.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.drop {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 16px;
}
.drop input { margin-top: 10px; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 20px;
}
.modal-back.open { display: grid; }
.modal {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.modal h3 { margin-top: 0; font-family: var(--display); }

.page-title.bg-1, .section.team, .section.service, .cta-section, .gray-bg {
  background: transparent !important;
  color: var(--text);
}
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.col-lg-6, .col-md-12, .col-lg-4, .col-md-6, .col-lg-8, .col-lg-2, .col-sm-6, .col-lg-12, .col-xl-3, .col-xl-12 { flex: 1 1 260px; }
.legacy-wrap { position: relative; z-index: 1; padding-bottom: 40px; }
.legacy-wrap h1, .legacy-wrap h2, .legacy-wrap h4 { color: var(--text); }
.legacy-wrap p, .legacy-wrap label { color: var(--muted); }

.inner-hero { position: relative; z-index: 1; padding: 56px 0 12px; }
.inner-hero h1 { font-family: var(--display); letter-spacing: -0.03em; font-size: clamp(34px, 4vw, 52px); margin: 10px 0 12px; font-weight: 600; }
.prose { max-width: 720px; }
.prose p { color: var(--muted); font-size: 16px; }
.offer-grid, .value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start; }
.contact-aside { display: grid; gap: 12px; }
.info-chip { display: flex; gap: 12px; align-items: flex-start; }
.info-chip b { display: block; margin-bottom: 2px; }
.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.branch-card { padding: 22px; }
.branch-map {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #d7e0ea;
  aspect-ratio: 16 / 10;
}
.branch-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bank-details {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
body.smi-site .bank-details { background: rgba(16, 36, 61, 0.03); }
.bank-details-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.bank-details-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bank-details-row span {
  color: var(--muted);
  font-size: 13px;
  min-width: 120px;
}
.bank-details-row b {
  text-align: right;
  font-size: 14px;
  word-break: break-word;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-content { padding: 0 22px 18px; }

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.hero-bleed[data-reveal] { transition-duration: 0.9s; }
.hero-bleed .brand-kicker,
.hero-bleed h1,
.hero-bleed .lead,
.hero-bleed .hero-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-bleed.is-visible .brand-kicker { opacity: 1; transform: none; transition-delay: 0.08s; }
.hero-bleed.is-visible h1 { opacity: 1; transform: none; transition-delay: 0.18s; }
.hero-bleed.is-visible .lead { opacity: 1; transform: none; transition-delay: 0.28s; }
.hero-bleed.is-visible .hero-cta { opacity: 1; transform: none; transition-delay: 0.38s; }

@media (max-width: 980px) {
  .hero-grid, .grid-2, .feature-grid, .contact-grid, .approach-grid, .about-intro-grid, .branch-grid { grid-template-columns: 1fr; }
  .plan-grid, .stat-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); transform: translateX(-110%); transition: 0.2s ease; z-index: 50; }
  .sidebar.open { transform: none; }
  .smi-menu-btn, .app-menu { display: inline-flex; align-items: center; justify-content: center; }
  .nav-drawer { display: none; position: absolute; left: 0; right: 0; top: 72px; background: rgba(7,11,20,0.96); border-bottom: 1px solid var(--line); padding: 16px 20px 20px; }
  body.smi-site .nav-drawer { background: rgba(247, 249, 252, 0.98); }
  .nav-drawer.open { display: flex; flex-direction: column; gap: 14px; }
  .nav-drawer .smi-nav-links, .nav-drawer .smi-nav-actions { display: flex; flex-direction: column; align-items: stretch; }
  .smi-nav-inner .smi-nav-links, .smi-nav-inner > .smi-nav-actions { display: none; }
  .hero { padding-top: 36px; }
  .hero-bleed { min-height: auto; padding: 48px 0 56px; align-items: center; }
  .hero-content { margin-left: auto; margin-right: auto; width: min(1180px, calc(100% - 40px)); max-width: none; }
  .media-frame-wide img { aspect-ratio: 16 / 9; min-height: 180px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .wallet-box { grid-template-columns: 1fr; }
  body.smi-site .smi-brand-name { max-width: 140px; font-size: 15px; }
}
@media (max-width: 680px) {
  .hero-grid, .grid-2, .plan-grid, .quote-grid, .stat-grid, .feature-grid, .hero-stats, .calc-metrics, .coins, .field-row, .offer-grid, .value-grid, .contact-grid, .capability-grid { grid-template-columns: 1fr; }
  .smi-footer { flex-direction: column; }
  .app-main { padding: 18px 16px 40px; }
  body.smi-site .smi-brand-name { display: none; }
}
