/* SoloFXTrader — dark fintech theme (green glow) */
:root {
  --bg: #03070a;
  --bg-2: #070d11;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e8f0ee;
  --muted: #8b9aa3;
  --accent: #19e6a5;
  --accent-2: #0a8f6a;
  --accent-soft: rgba(25, 230, 165, 0.12);
  --up: #19e6a5;
  --dn: #ff5c6c;
  --amber: #f5c451;
  --radius: 20px;
  --font: "Inter", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Noto Sans TC", "Inter", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 50% -200px, rgba(25, 230, 165, 0.16), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.up { color: var(--up); } .dn { color: var(--dn); } .flat { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100% - 1240px) / 2)); transition: background .2s, border-color .2s; border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(3, 7, 10, 0.78); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent); }
.nav-pill {
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: 0 0 40px rgba(25,230,165,.06) inset;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; color: #c9d4d1; font: 500 14px var(--font);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-item.active > .nav-link { color: #fff; background: rgba(25, 230, 165, 0.1); }
.nav-item.active > .nav-link { box-shadow: inset 0 0 0 1px rgba(25,230,165,.35); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 290px; padding: 8px;
  background: #0a1216; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: .16s;
}
.has-menu:hover .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; }
.menu-link:hover { background: var(--accent-soft); color: var(--text); }
.menu-link b { display: block; font-weight: 600; font-size: 14px; }
.menu-link small { display: block; color: var(--muted); font-size: 12px; }
.menu-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); flex: none; }
.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: none; color: var(--muted); font: 600 12px var(--font); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang-btn.active { background: var(--accent); color: #022; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: #fff; }
.btn-glow { background: linear-gradient(180deg, #f4fffb, #c9f7e6); color: #02261b; border: 0; box-shadow: 0 0 24px rgba(25,230,165,.45), 0 0 0 1px rgba(25,230,165,.6); }
.btn-glow:hover { color: #000; box-shadow: 0 0 34px rgba(25,230,165,.7), 0 0 0 1px rgba(25,230,165,.9); }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: none; padding: 10px 9px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

@media (max-width: 1080px) {
  .burger { display: block; }
  .hide-sm { display: none; }
  .nav-pill {
    position: fixed; inset: 68px 12px auto 12px; flex-direction: column; border-radius: 18px; background: #081014; padding: 10px;
    max-height: calc(100vh - 90px); overflow: auto; display: none;
  }
  body.nav-open .nav-pill { display: flex; }
  .menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; margin: 4px 0; min-width: 0; }
  .has-menu.open .menu { display: block; transform: none; }
  .has-menu:hover .menu { transform: none; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; text-align: center; padding: 70px 0 40px; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13px; color: #cfe; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 92px); margin: 22px 0 10px; font-weight: 600; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 30%, #9fb3ad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h2 { font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 26px; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.globe { position: absolute; left: 50%; bottom: -420px; width: 900px; height: 600px; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(25,230,165,.35), rgba(25,230,165,.08) 60%, transparent 72%); filter: blur(2px); }
.globe::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(95,255,200,.55) 1px, transparent 1.4px) 0 0/14px 14px; mask: radial-gradient(closest-side, #000 50%, transparent 72%); -webkit-mask: radial-gradient(closest-side, #000 50%, transparent 72%); opacity: .5; }
.page-hero { padding: 46px 0 18px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; background: linear-gradient(180deg,#fff 40%,#a9bbb5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--muted); max-width: 760px; }

/* ----------------------------------------------------------------- cards */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; margin: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.card.glow { background: linear-gradient(180deg, rgba(25,230,165,.08), rgba(255,255,255,.015) 60%); border-color: rgba(25,230,165,.22); }
.card h3 { font-size: 17px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat .label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font: 600 26px var(--display); margin: 4px 0; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 13px; font-weight: 600; }
.tile { padding: 14px 16px; }
.tile .value { font-size: 20px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); }
.badge.healthy, .badge.bull { color: var(--up); border-color: rgba(25,230,165,.4); background: rgba(25,230,165,.08); }
.badge.caution, .badge.neutral { color: var(--amber); border-color: rgba(245,196,81,.4); background: rgba(245,196,81,.08); }
.badge.meltdown, .badge.bear { color: var(--dn); border-color: rgba(255,92,108,.4); background: rgba(255,92,108,.08); }
.feature-card { display: flex; flex-direction: column; gap: 8px; transition: .2s; min-height: 100%; }
.feature-card:hover { border-color: rgba(25,230,165,.4); transform: translateY(-2px); color: var(--text); }
.feature-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); font-size: 20px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14px; }
.kicker { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255,255,255,.025); }
table.data .num { text-align: right; }
table.compact td, table.compact th { padding: 8px 10px; font-size: 13px; }

/* calendar (green band headers) */
.cal { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #060b0e; }
.cal-day { padding: 22px 28px; background: radial-gradient(500px 160px at 50% 0, rgba(25,230,165,.35), rgba(10,60,45,.55) 60%, rgba(6,30,24,.9)); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cal-day::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cal table.data th { padding: 18px 28px; } .cal table.data td { padding: 18px 28px; font-weight: 500; }
.impact { display: inline-block; width: 22px; height: 18px; border-radius: 3px 3px 4px 4px; position: relative; background: var(--amber); }
.impact::before { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 6px; border-radius: 3px 3px 0 0; background: inherit; }
.impact.High { background: #f0705f; } .impact.Low { background: #6c7c83; } .impact.Holiday { background: #4b9cff; }
.flag { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 6px; }

/* ---------------------------------------------------------------- charts */
.chart-wrap { position: relative; }
.chart-wrap .tip { position: absolute; background: #0b1519; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12px; pointer-events: none; min-width: 150px; z-index: 3; }
.chart-wrap .tip i, .legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.hbar-l { color: #cbd7d3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { position: relative; height: 10px; background: rgba(255,255,255,.04); border-radius: 6px; }
.hbar-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.hbar-fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.hbar-fill.pos { background: linear-gradient(90deg, rgba(25,230,165,.4), var(--up)); }
.hbar-fill.neg { background: linear-gradient(270deg, rgba(255,92,108,.4), var(--dn)); }
.hbar-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 520px) { .hbar { grid-template-columns: 100px 1fr 56px; } }

/* --------------------------------------------------------------- article */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 24px; margin-top: 1.8em; padding-top: .4em; }
.article h3 { font-size: 19px; margin-top: 1.4em; }
.article p, .article li { color: #d3ddda; font-size: 16.5px; line-height: 1.8; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; display: block; overflow-x: auto; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.article a { color: var(--accent); }
.sec-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 14px; margin-right: 10px; vertical-align: 3px; }
.toc { position: sticky; top: 90px; font-size: 13.5px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); }
.toc a:hover { color: var(--accent); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
@media (max-width: 1000px) { .layout-side { grid-template-columns: 1fr; } .toc { position: static; } }
.list-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border: 0; }
.list-item h3 { margin: 0 0 4px; font-size: 18px; }
.list-item p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .list-item { grid-template-columns: 1fr; gap: 4px; } }
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.tab { border: 0; background: none; color: var(--muted); padding: 7px 16px; border-radius: 999px; font: 600 13px var(--font); cursor: pointer; }
.tab.active { background: var(--accent); color: #022; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.notice { font-size: 13px; color: var(--muted); padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }

/* lamps / thermometer */
.lamp { display: flex; gap: 14px; align-items: flex-start; }
.lamp-bulb { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #1a2226; border: 2px solid #2b363b; }
.lamp.on.warn .lamp-bulb { background: radial-gradient(circle at 35% 35%, #ffd1d6, var(--dn)); box-shadow: 0 0 22px var(--dn); border-color: #ff8f9a; }
.lamp.on.good .lamp-bulb { background: radial-gradient(circle at 35% 35%, #d8fff1, var(--up)); box-shadow: 0 0 22px var(--up); border-color: #7fffd4; }
.thermo-bar { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin: 10px 0; }
.thermo-bar span { height: 16px; border-radius: 3px; background: rgba(255,255,255,.06); }
.thermo-bar span.on.h { background: var(--up); } .thermo-bar span.on.c { background: var(--amber); } .thermo-bar span.on.m { background: var(--dn); }
.lv { display: inline-block; width: 20px; height: 20px; border-radius: 5px; background: rgba(255,255,255,.06); }
.lv.l1 { background: var(--amber); } .lv.l2 { background: var(--dn); }
.cell-g { background: rgba(25,230,165,.16); } .cell-r { background: rgba(255,92,108,.2); } .cell-dg { background: rgba(25,230,165,.38); } .cell-dr { background: rgba(255,92,108,.42); }

/* mood */
.mood-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.05); }
.mood-bar span { display: block; }
.ticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ticker-card { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.ticker-card b { font-family: var(--display); font-size: 16px; }

/* --------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 40px 0 24px; background: linear-gradient(180deg, transparent, rgba(25,230,165,.03)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid a:not(.brand) { display: block; padding: 4px 0; color: #c2cfcb; font-size: 14px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

/* Trader Watch */
.tw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tw-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); background: var(--accent-soft); color: var(--accent); }
.tw-sum { margin: 4px 0 6px; font-size: 15px; }
.tw-text { color: #c9d4d1; white-space: normal; }
.tw-post details summary { cursor: pointer; }
.tw-bar { position: relative; height: 66px; margin: 26px 8px 4px; }
.tw-track { position: absolute; left: 0; right: 0; top: 30px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,77,94,.5), rgba(245,196,81,.5), rgba(25,230,165,.5)); }
.tw-mark { position: absolute; top: 26px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; }
.tw-lab { position: absolute; top: 42px; transform: translateX(-50%); font-size: 10.5px; line-height: 1.2; text-align: center; white-space: nowrap; }
.tw-now { position: absolute; top: 22px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.7); }
.tw-nowlab { position: absolute; top: -2px; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; }
