/* ── Glees / Muice — Financial Market Intelligence ── */
:root {
  --fx-bg: #060a12;
  --fx-bg-elevated: #0c1220;
  --fx-surface: #111827;
  --fx-surface-2: #162033;
  --fx-border: rgba(148, 163, 184, 0.14);
  --fx-border-strong: rgba(148, 163, 184, 0.28);
  --fx-text: #e8eef7;
  --fx-muted: #94a3b8;
  --fx-dim: #64748b;
  --fx-green: #22c55e;
  --fx-green-soft: rgba(34, 197, 94, 0.14);
  --fx-red: #ef4444;
  --fx-red-soft: rgba(239, 68, 68, 0.14);
  --fx-amber: #f59e0b;
  --fx-blue: #38bdf8;
  --fx-blue-soft: rgba(56, 189, 248, 0.12);
  --fx-accent: #3dd6c6;
  --fx-accent-soft: rgba(61, 214, 198, 0.12);
  --fx-radius: 12px;
  --fx-radius-lg: 18px;
  --fx-font: "IBM Plex Sans", "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  --fx-mono: "IBM Plex Mono", ui-monospace, monospace;
  --fx-max: 1120px;
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body.fx-page {
  font-family: var(--fx-font);
  background: var(--fx-bg);
  color: var(--fx-text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.fx-page a { color: inherit; text-decoration: none; }

.fx-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(15, 23, 42, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, #060a12 0%, #080e18 100%);
}

.fx-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 75%);
}

.fx-wrap { position: relative; z-index: 1; }

/* Header */
.fx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fx-border);
}

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

.fx-logo img { height: 28px; width: auto; }

.fx-logo-mark {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fx-text);
}

.fx-logo-mark span { color: var(--fx-accent); font-weight: 500; }

.fx-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  flex: 1;
  min-width: 0;
}

.fx-nav a {
  color: var(--fx-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s var(--fx-ease);
}

.fx-nav a:hover,
.fx-nav a[aria-current="page"] { color: var(--fx-text); }

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--fx-ease), border-color 0.2s, color 0.2s, transform 0.15s;
}

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

.fx-btn-primary {
  background: linear-gradient(135deg, #1fa89c 0%, #2dd4bf 100%);
  color: #041016;
}

.fx-btn-primary:hover { background: linear-gradient(135deg, #22b8ab 0%, #5eead4 100%); }

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

.fx-btn-ghost:hover { border-color: var(--fx-accent); color: var(--fx-accent); }

.fx-header-cta { flex-shrink: 0; }

.fx-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

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

.fx-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(8, 14, 24, 0.98);
  border-bottom: 1px solid var(--fx-border);
}

.fx-mobile-nav.open { display: flex; }

.fx-mobile-nav a {
  color: var(--fx-muted);
  font-size: 0.95rem;
  padding: 0.55rem 0.25rem;
}

.fx-mobile-nav a:hover { color: var(--fx-text); }

@media (max-width: 860px) {
  .fx-nav, .fx-header-cta { display: none; }
  .fx-nav-toggle { display: flex; }
}

/* Layout */
.fx-section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 3vw, 1.75rem);
}

.fx-inner {
  max-width: var(--fx-max);
  margin: 0 auto;
}

.fx-inner--narrow { max-width: 760px; }

.fx-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-accent);
  margin-bottom: 0.85rem;
}

.fx-h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.fx-h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.fx-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.fx-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--fx-muted);
  max-width: 42rem;
  margin-bottom: 0.75rem;
}

.fx-sub {
  font-size: 0.95rem;
  color: var(--fx-dim);
  max-width: 40rem;
}

.fx-en {
  font-size: 0.9rem;
  color: var(--fx-dim);
  font-weight: 400;
}

/* Hero */
.fx-hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.fx-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

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

.fx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.fx-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--fx-dim);
}

.fx-hero-meta strong { color: var(--fx-muted); font-weight: 600; }

/* Chart card */
.fx-chart-card {
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95) 0%, rgba(12, 18, 32, 0.98) 100%);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.fx-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.fx-chart-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fx-muted);
}

.fx-chart-return {
  font-family: var(--fx-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fx-green);
  letter-spacing: -0.02em;
}

.fx-chart-wrap {
  position: relative;
  height: 220px;
  margin: 0.25rem 0 0.75rem;
}

.fx-chart-disclaimer {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--fx-muted);
  border-top: 1px solid var(--fx-border);
  padding-top: 0.75rem;
}

/* Trust / sources strip */
.fx-strip {
  border-top: 1px solid var(--fx-border);
  border-bottom: 1px solid var(--fx-border);
  background: rgba(12, 18, 32, 0.55);
  padding: 1.1rem clamp(1rem, 3vw, 1.75rem);
}

.fx-strip-inner {
  max-width: var(--fx-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.fx-strip-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-dim);
  margin-right: 0.5rem;
}

.fx-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  font-size: 0.78rem;
  color: var(--fx-muted);
}

/* Steps */
.fx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

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

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

.fx-step {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 1.15rem 1.1rem;
}

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

.fx-step p {
  font-size: 0.88rem;
  color: var(--fx-muted);
  margin-top: 0.35rem;
}

/* Two-col feature */
.fx-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .fx-two { grid-template-columns: 1fr; }
}

/* RSS panel (inspired by multi-source ticker dashboard) */
.fx-rss-panel {
  background: var(--fx-bg-elevated);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
}

.fx-rss-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--fx-border);
  background: rgba(22, 32, 51, 0.6);
}

.fx-ticker-tab {
  font-family: var(--fx-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--fx-border);
  color: var(--fx-dim);
  background: transparent;
}

.fx-ticker-tab.is-active {
  color: var(--fx-text);
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--fx-blue-soft);
}

.fx-rss-list { list-style: none; }

.fx-rss-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--fx-border);
  font-size: 0.82rem;
}

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

.fx-rss-src {
  font-family: var(--fx-mono);
  font-size: 0.68rem;
  color: var(--fx-blue);
  background: var(--fx-blue-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.fx-rss-item p { color: var(--fx-muted); line-height: 1.4; }

.fx-rss-time {
  font-family: var(--fx-mono);
  font-size: 0.68rem;
  color: var(--fx-dim);
  white-space: nowrap;
}

.fx-panel-caption {
  font-size: 0.72rem;
  color: var(--fx-dim);
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--fx-border);
}

/* Telegram-style alert card */
.fx-alert-phone {
  max-width: 380px;
  margin: 0 auto;
  background: #0e1621;
  border: 1px solid var(--fx-border-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.fx-alert-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: #8b9aab;
}

.fx-alert-bar strong { color: #e4eaf1; font-weight: 600; }

.fx-alert-body { padding: 1rem; }

.fx-alert-bubble {
  background: #182533;
  border-radius: 12px 12px 12px 4px;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d6dee8;
  white-space: pre-wrap;
  font-family: var(--fx-font);
}

.fx-alert-bubble .hl { color: #6ee7b7; font-weight: 600; }
.fx-alert-bubble .warn { color: #fbbf24; }
.fx-alert-bubble .meta { color: #8b9aab; font-size: 0.78rem; }

.fx-alert-time {
  text-align: right;
  font-size: 0.7rem;
  color: #6b7a8a;
  margin-top: 0.35rem;
}

.fx-example-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

/* Channels */
.fx-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .fx-channels { grid-template-columns: 1fr; }
}

.fx-channel {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 1.2rem 1.15rem;
}

.fx-channel a {
  color: var(--fx-accent);
  font-size: 0.88rem;
  word-break: break-all;
}

.fx-channel a:hover { text-decoration: underline; }

.fx-channel p {
  font-size: 0.85rem;
  color: var(--fx-muted);
  margin-top: 0.4rem;
}

/* Disclaimer — readable small print (not tiny gray) */
.fx-disclaimer {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--fx-radius);
  padding: 1.2rem 1.3rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.fx-disclaimer strong { color: var(--fx-text); font-weight: 650; }

/* Footer */
.fx-footer {
  border-top: 1px solid var(--fx-border);
  padding: 2.5rem clamp(1rem, 3vw, 1.75rem) 2rem;
  background: rgba(4, 8, 14, 0.85);
}

.fx-footer-grid {
  max-width: var(--fx-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .fx-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .fx-footer-grid { grid-template-columns: 1fr; }
}

.fx-footer-brand {
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.fx-footer p, .fx-footer a {
  font-size: 0.85rem;
  color: var(--fx-dim);
}

.fx-footer a:hover { color: var(--fx-text); }

.fx-footer-col h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fx-muted);
  margin-bottom: 0.65rem;
}

.fx-footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fx-footer-bottom {
  max-width: var(--fx-max);
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fx-border);
  font-size: 0.78rem;
  color: var(--fx-dim);
}

/* Cookie reuse minimal */
.fx-page .cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
}

/* Product page extras */
.fx-prose { max-width: 720px; }

.fx-prose p {
  color: var(--fx-muted);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.fx-prose ul {
  margin: 0.5rem 0 1.1rem 1.15rem;
  color: var(--fx-muted);
}

.fx-prose li { margin-bottom: 0.4rem; }

.fx-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .fx-metric-row { grid-template-columns: 1fr; }
}

.fx-metric {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 1rem;
  text-align: center;
}

.fx-metric strong {
  display: block;
  font-family: var(--fx-mono);
  font-size: 1.25rem;
  color: var(--fx-accent);
  margin-bottom: 0.25rem;
}

.fx-metric span {
  font-size: 0.78rem;
  color: var(--fx-dim);
}

.hidden { display: none !important; }

/* Contact form */
.fx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .fx-contact-grid { grid-template-columns: 1fr; }
}

.fx-contact-card {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: 1.35rem 1.25rem;
}

.fx-field { margin-bottom: 0.95rem; }

.fx-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fx-muted);
  margin-bottom: 0.35rem;
}

.fx-field input,
.fx-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-bg-elevated);
  color: var(--fx-text);
  font-family: inherit;
  font-size: 0.95rem;
}

.fx-field input:focus,
.fx-field textarea:focus {
  outline: none;
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px var(--fx-accent-soft);
}

.fx-field textarea { min-height: 120px; resize: vertical; }

.fx-form-note {
  font-size: 0.78rem;
  color: var(--fx-dim);
  margin: 0.75rem 0 0;
}

.fx-form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  display: none;
}

.fx-form-status.is-ok {
  display: block;
  background: var(--fx-green-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.fx-form-status.is-err {
  display: block;
  background: var(--fx-red-soft);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Readable bilingual small print — avoid tiny unreadable gray */
.fx-legal-small {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-top: 0.85rem;
}

.fx-legal-small a { color: #7dd3fc; text-decoration: underline; }

.fx-disclaimer-block {
  margin-top: 1rem;
}

.fx-disclaimer + .fx-disclaimer { margin-top: 0.85rem; }

.fx-disclaimer--muted {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

.fx-footer-bottom .fx-legal-small {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Lang toggle */
.fx-lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--fx-border-strong);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.fx-lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fx-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.fx-lang-btn.is-active {
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
}
.fx-lang-btn:hover { color: var(--fx-text); }
.fx-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .fx-header-actions .fx-header-cta { display: none; }
  .fx-header-actions { margin-left: auto; }
  .fx-nav, .fx-header-cta { display: none; }
}
.fx-logo img { height: 32px; width: auto; max-width: 160px; }
.fx-logo-mark { display: none; }
