/* 袋鼠返佣 — K线主题 · 冰川蓝 · 昼夜切换 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root,
[data-theme="dark"] {
  --bg-deep: #070b12;
  --bg: #0c121c;
  --bg-elevated: #121a27;
  --bg-panel: rgba(18, 26, 39, 0.78);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef7;
  --text-muted: #8b9bb4;
  --text-dim: #5c6b82;
  --bull: #4BA3C7;
  --bull-strong: #3d8fb0;
  --bull-dim: rgba(75, 163, 199, 0.16);
  --bear: #f07178;
  --bear-dim: rgba(240, 113, 120, 0.15);
  --gold: #c4a35a;
  --gold-soft: rgba(196, 163, 90, 0.18);
  --accent: #5eb3e4;
  --header-bg: rgba(7, 11, 18, 0.82);
  --ambient-1: rgba(75, 163, 199, 0.1);
  --ambient-2: rgba(196, 163, 90, 0.06);
  --ambient-3: rgba(94, 179, 228, 0.06);
  --hero-fade-side: rgba(7, 11, 18, 0.9);
  --hero-fade-end: rgba(7, 11, 18, 0.95);
  --chart-grid: rgba(148, 163, 184, 0.08);
  --chart-candle-up: #4BA3C7;
  --chart-candle-down: #f07178;
  --chart-ma: rgba(196, 163, 90, 0.55);
  --chart-opacity: 0.38;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --logo-filter: none;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-deep: #f4f8fb;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.88);
  --line: rgba(15, 40, 60, 0.1);
  --line-strong: rgba(15, 40, 60, 0.18);
  --text: #152433;
  --text-muted: #5a6f82;
  --text-dim: #8a9aab;
  --bull: #2f8fb8;
  --bull-strong: #24779a;
  --bull-dim: rgba(47, 143, 184, 0.12);
  --bear: #d9555c;
  --bear-dim: rgba(217, 85, 92, 0.1);
  --gold: #b0892e;
  --gold-soft: rgba(176, 137, 46, 0.12);
  --accent: #4BA3C7;
  --header-bg: rgba(255, 255, 255, 0.9);
  --ambient-1: rgba(75, 163, 199, 0.12);
  --ambient-2: rgba(176, 137, 46, 0.06);
  --ambient-3: rgba(47, 143, 184, 0.08);
  --hero-fade-side: rgba(244, 248, 251, 0.92);
  --hero-fade-end: rgba(244, 248, 251, 0.97);
  --chart-grid: rgba(15, 40, 60, 0.07);
  --chart-candle-up: #2f8fb8;
  --chart-candle-down: #d9555c;
  --chart-ma: rgba(176, 137, 46, 0.5);
  --chart-opacity: 0.2;
  --shadow: 0 20px 50px rgba(30, 60, 90, 0.1);
  /* 浅色底上加深线稿 Logo，避免发白看不清 */
  --logo-filter: brightness(0.28) saturate(2.1) contrast(1.35);
  color-scheme: light;
}

:root {
  --radius: 12px;
  --nav-h: 108px;
  --font-display: 'Sora', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* 主题切换：View Transitions 交叉淡入淡出（Chrome/Safari 等） */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation-name: theme-fade-out;
}

::view-transition-new(root) {
  animation-name: theme-fade-in;
}

@keyframes theme-fade-out {
  from { opacity: 1; filter: brightness(1); }
  to { opacity: 0; filter: brightness(1.08); }
}

@keyframes theme-fade-in {
  from { opacity: 0; filter: brightness(0.92); }
  to { opacity: 1; filter: brightness(1); }
}

/* 不支持 View Transitions 时的柔和遮罩回退 */
.theme-veil {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg-deep, #0c121c) 72%, #4ba3c7 8%);
  opacity: 0;
  transition: opacity 0.38s ease;
}

.theme-veil.on {
  opacity: 0.55;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

.chart-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--chart-opacity);
  /* 上下淡出，避免 K 线铺满抢视线 */
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 78%,
    transparent 100%
  );
}

.chart-bg canvas {
  width: 100%;
  height: 100%;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, var(--ambient-1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, var(--ambient-2), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, var(--ambient-3), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, var(--bg-deep) 100%);
  transition: background 0.35s ease;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  filter: var(--logo-filter);
}

[data-theme="light"] .brand-logo,
[data-theme="light"] .hero-brand img,
[data-theme="light"] .hero-brand .brand-logo-lg,
[data-theme="light"] .footer-brand img {
  filter: brightness(0.2) saturate(2.35) contrast(1.45);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-name span:last-child {
  color: var(--bull);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.4rem 0.65rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bull-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  border-color: var(--bull);
  background: var(--bull-dim);
}

.lang-switch {
  min-width: 42px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bull) 0%, var(--bull-strong) 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(75, 163, 199, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(75, 163, 199, 0.38);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--bull);
  background: var(--bull-dim);
}

.btn-gold {
  background: linear-gradient(135deg, #c4a35a 0%, #a88632 100%);
  color: #1a1205;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-kline {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-kline canvas {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--hero-fade-side) 0%, rgba(7, 11, 18, 0.28) 42%, rgba(7, 11, 18, 0.22) 100%),
    linear-gradient(180deg, transparent 70%, var(--hero-fade-end) 100%);
  transition: background 0.35s ease;
}

[data-theme="light"] .hero-fade {
  background:
    linear-gradient(90deg, var(--hero-fade-side) 0%, rgba(244, 248, 251, 0.38) 42%, rgba(244, 248, 251, 0.28) 100%),
    linear-gradient(180deg, transparent 70%, var(--hero-fade-end) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  min-height: calc(100vh - var(--nav-h));
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy {
  justify-self: start;
  align-self: center;
  max-width: 34rem;
  text-align: left;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-brand img,
.hero-brand .brand-logo-lg {
  width: 132px;
  height: 132px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  object-fit: contain;
  filter: var(--logo-filter);
}

.hero-brand h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-brand h1 em {
  font-style: normal;
  color: var(--bull);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 34rem;
  margin-bottom: 0;
}

.hero-cta {
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  min-width: 220px;
}

.hero-cta .btn {
  width: 100%;
  min-height: 48px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bull);
  margin-bottom: 0.75rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  padding: 1.75rem 1.25rem;
  border-right: 1px solid var(--line);
  position: relative;
  background: var(--bg-panel);
}

.step:last-child {
  border-right: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step::after {
  content: '';
  position: absolute;
  left: 1.25rem;
  bottom: 0;
  width: 40%;
  height: 2px;
  background: var(--bull);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.step:hover::after {
  transform: scaleX(1);
}

.broker-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  overflow: hidden;
}

@media (min-width: 900px) {
  .broker-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* 仅两张 CTA 卡：左对齐，不再撑满 6 列留下灰带 */
.broker-strip.broker-strip--pair {
  grid-template-columns: repeat(2, minmax(0, 220px));
  width: fit-content;
  max-width: 100%;
  gap: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.broker-strip.broker-strip--pair .broker-cell {
  border-right: 1px solid var(--line);
  min-width: 0;
}

.broker-strip.broker-strip--pair .broker-cell:last-child {
  border-right: none;
}

@media (max-width: 560px) {
  .broker-strip.broker-strip--pair {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .broker-strip.broker-strip--pair .broker-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .broker-strip.broker-strip--pair .broker-cell:last-child {
    border-bottom: none;
  }
}

/* 经纪商页：全宽咨询合作条，与上方表格同宽 */
.broker-consult {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.broker-consult:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--bg-elevated) 88%, var(--bull) 12%);
}

.broker-consult-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px dashed var(--bull);
  color: var(--bull);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.broker-consult-body {
  flex: 1;
  min-width: 0;
}

.broker-consult-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.broker-consult-email {
  color: var(--bull);
  font-size: 0.95rem;
  word-break: break-all;
}

.broker-consult-cta {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.broker-consult:hover .broker-consult-cta {
  color: var(--bull);
  border-color: color-mix(in srgb, var(--bull) 40%, var(--line));
}

@media (max-width: 640px) {
  .broker-consult {
    flex-wrap: wrap;
  }

  .broker-consult-cta {
    width: 100%;
    text-align: center;
  }
}

.broker-cell {
  background: var(--bg-elevated);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: background 0.25s;
}

.broker-cell:hover {
  background: var(--bull-dim);
}

.broker-cell.more-broker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: none;
  cursor: default;
}

.broker-cell.more-broker .broker-mark {
  border-style: dashed;
  background: transparent;
  color: var(--bull);
  font-size: 1.4rem;
}

.broker-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--line-strong);
}

.broker-cell h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.broker-cell .rate {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--bull);
  font-weight: 600;
}

.broker-cell .unit {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.ic { background: linear-gradient(145deg, #1a3a5c, #0f2438); color: #7ec8ff; }
.cmc { background: linear-gradient(145deg, #1e3a4a, #122430); color: #7dcaff; }
.infinox { background: linear-gradient(145deg, #1a3548, #0f2230); color: #8fd0ef; }
.pepper { background: linear-gradient(145deg, #1a3048, #101e30); color: #9ec9ef; }
.fxpro { background: linear-gradient(145deg, #1a2e48, #101c30); color: #a8c8f0; }

[data-theme="light"] .ic,
[data-theme="light"] .cmc,
[data-theme="light"] .infinox,
[data-theme="light"] .pepper,
[data-theme="light"] .fxpro {
  background: linear-gradient(145deg, #e8f4fa, #d5ebf5);
  color: #24779a;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bull-dim);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bull-dim);
}

.mono {
  font-family: var(--font-mono);
}

.bull {
  color: var(--bull);
}

.bear {
  color: var(--bear);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bull-dim);
  color: var(--bull);
  border: 1px solid rgba(75, 163, 199, 0.25);
}

.badge-warn {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: rgba(196, 163, 90, 0.3);
}

.calc-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  padding: 2rem;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

[data-theme="light"] .field input,
[data-theme="light"] .field select {
  background: #fff;
}

.field input:focus,
.field select:focus {
  border-color: var(--bull);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-left: 1px solid var(--line);
  position: relative;
}

.calc-result::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: linear-gradient(180deg, var(--bull), var(--gold));
}

.calc-result .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.calc-result .value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--bull);
  letter-spacing: -0.03em;
}

.calc-result .hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.tip-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.tip-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  transition: background 0.2s;
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-item:hover {
  background: var(--bull-dim);
}

.tip-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bull-dim);
  color: var(--bull);
  border: 1px solid rgba(75, 163, 199, 0.25);
}

.tip-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.tip-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.warning-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(240, 113, 120, 0.35);
  background: var(--bear-dim);
  margin-bottom: 2rem;
}

.warning-banner strong {
  color: var(--bear);
  font-family: var(--font-display);
  display: block;
  margin-bottom: 0.35rem;
}

.warning-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-list {
  border: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.faq-q::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--bull);
  font-size: 1.2rem;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  display: none;
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-item.open .faq-a {
  display: block;
  animation: riseIn 0.35s ease both;
}

.auth-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 0 4rem;
}

.auth-box {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-box h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.auth-box .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.auth-box .form-grid {
  margin-bottom: 1.25rem;
}

.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--bull);
  font-weight: 600;
}

.form-msg {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.form-msg.error {
  display: block;
  background: var(--bear-dim);
  border: 1px solid rgba(240, 113, 120, 0.35);
  color: var(--bear);
}

.form-msg.success {
  display: block;
  background: var(--bull-dim);
  border: 1px solid rgba(75, 163, 199, 0.35);
  color: var(--bull);
}

.form-msg.info {
  display: block;
  background: var(--gold-soft);
  border: 1px solid rgba(196, 163, 90, 0.35);
  color: var(--gold);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

.stat {
  background: var(--bg-elevated);
  padding: 1.5rem;
}

.stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat .value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 36rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--bg-elevated);
  padding: 1.75rem 1.5rem;
  transition: background 0.2s;
}

.contact-card:hover {
  background: var(--bull-dim);
}

.contact-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bull);
  margin-bottom: 0.6rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.contact-card a,
.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  word-break: break-all;
}

.contact-card a:hover {
  color: var(--bull);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--bg-panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  filter: var(--logo-filter);
}

.footer-brand strong {
  font-family: var(--font-display);
}

.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--bull);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(2) {
    border-right: none;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .calc-panel {
    grid-template-columns: 1fr;
  }

  .calc-result {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
  }

  .calc-result::before {
    left: 15%;
    right: 15%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, var(--bull), var(--gold));
  }

  .dash-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
  }

  .nav.open {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0 1rem;
  }

  .nav.open .brand {
    flex: 1;
  }

  .nav.open .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
  }

  .nav.open .nav-actions {
    order: 4;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 0.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: auto;
    padding: 2.25rem 0 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.75rem;
    padding: 0.5rem 0 0;
  }

  .hero-copy,
  .hero-cta {
    justify-self: stretch;
  }

  .hero-cta {
    align-items: stretch;
  }

  .hero-fade {
    background:
      linear-gradient(180deg, rgba(7, 11, 18, 0.35) 0%, var(--hero-fade-side) 70%, var(--hero-fade-end) 100%);
  }

  [data-theme="light"] .hero-fade {
    background:
      linear-gradient(180deg, rgba(244, 248, 251, 0.2) 0%, var(--hero-fade-side) 70%, var(--hero-fade-end) 100%);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
