/* =====================================================
   FeeRadar - 工具站视觉系统 v2
   配色：near-black + radar yellow + accent green
   字体：Playfair Display（标题）/ Inter（正文）
   ===================================================== */

:root {
  --color-bg: #fafaf7;
  --color-bg-dark: #1a1a1a;
  --color-surface: #ffffff;
  --color-surface-2: #f5f5f0;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-light: #999999;
  --color-border: #e8e8e8;
  --color-accent: #f0b90b;
  --color-accent-dark: #c79a07;
  --color-success: #14b870;
  --color-danger: #d93025;
  --color-info: #0052ff;
  --color-purple: #8247e5;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Monaco, Menlo, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --max-width: 1200px;
  --reading-width: 720px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 40px rgba(240, 185, 11, 0.25);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: var(--space-3); }
h3 { font-size: 1.375rem; margin-bottom: var(--space-2); font-weight: 700; }
h4 { font-size: 1.125rem; margin-bottom: var(--space-1); font-weight: 700; font-family: var(--font-sans); }
p { margin-bottom: var(--space-2); color: var(--color-text); }
small { font-size: 0.85rem; color: var(--color-muted); }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
.reading { max-width: var(--reading-width); margin: 0 auto; }
.section { padding: var(--space-5) 0; }
.section-divider { border-top: 1px solid var(--color-border); }

/* === Affiliate Disclosure Banner === */
.affiliate-banner {
  background: linear-gradient(90deg, #fff8e1 0%, #fffbeb 100%);
  border-bottom: 1px solid #ffe082;
  padding: 12px var(--space-3);
  font-size: 0.85rem;
  color: #5d4037;
  text-align: center;
  position: relative;
  z-index: 50;
}
.affiliate-banner strong { color: #3e2723; }
.affiliate-banner a { color: var(--color-accent-dark); text-decoration: underline; font-weight: 600; }
.affiliate-banner code { background: rgba(0, 0, 0, 0.05); padding: 2px 6px; border-radius: 3px; font-size: 0.85em; }

/* === Header === */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: '';
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f0b90b 0%, #14b870 100%);
  border-radius: 50%;
  position: relative;
  background-image: radial-gradient(circle at 50% 50%, #1a1a1a 8%, transparent 9%, transparent 100%),
                    conic-gradient(from 270deg at 50% 50%, transparent 0deg, transparent 60deg, rgba(240, 185, 11, 0.8) 90deg, transparent 91deg);
  animation: radarPulse 3s linear infinite;
}
@keyframes radarPulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.brand span { color: var(--color-accent); }
.nav-links { display: flex; gap: var(--space-3); align-items: center; }
.nav-links a {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.nav-links a:hover::after { transform: scaleX(1); }

.site-header .lang-switcher.lang-switcher-dropdown {
  position: relative;
  display: block;
  flex: 0 0 auto;
  gap: 0;
  align-items: initial;
  max-width: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.85rem;
  white-space: normal;
}
.site-header .lang-switcher.lang-switcher-dropdown .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.site-header .lang-switcher.lang-switcher-dropdown .lang-current svg {
  width: 20px;
  height: 20px;
}
.site-header .lang-switcher.lang-switcher-dropdown .lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  min-width: 220px;
  overflow: hidden;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}
html[dir="rtl"] .site-header .lang-switcher.lang-switcher-dropdown .lang-menu {
  right: auto;
  left: 0;
}
.site-header .lang-switcher.lang-switcher-dropdown.open .lang-menu {
  display: block;
}
.site-header .lang-switcher.lang-switcher-dropdown .lang-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 8px 18px;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
html[dir="rtl"] .site-header .lang-switcher.lang-switcher-dropdown .lang-menu a {
  justify-content: flex-end;
  text-align: right;
}
.site-header .lang-switcher.lang-switcher-dropdown .lang-menu a::after { display: none; }
.site-header .lang-switcher.lang-switcher-dropdown .lang-menu a:hover {
  background: var(--color-surface-2);
}
.site-header .lang-switcher.lang-switcher-dropdown .lang-menu a.active {
  background: #fff8e1;
  color: var(--color-accent-dark);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav { gap: var(--space-2); }
  .site-header .lang-switcher.lang-switcher-dropdown {
    margin-left: auto;
  }
  html[dir="rtl"] .site-header .lang-switcher.lang-switcher-dropdown {
    margin-left: 0;
    margin-right: auto;
  }
  .site-header .lang-switcher.lang-switcher-dropdown .lang-current {
    min-height: 40px;
    padding: 8px 12px;
  }
  .site-header .lang-switcher.lang-switcher-dropdown .lang-menu {
    min-width: 210px;
  }
}

/* === Hero === */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(240, 185, 11, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(20, 184, 112, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0, 82, 255, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><path d='M 60 0 L 0 0 0 60' fill='none' stroke='%23e8e8e8' stroke-width='0.5'/></svg>");
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  font-weight: 500;
}
.partner-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--color-success);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20, 184, 112, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(20, 184, 112, 0); }
}

.hero h1 {
  margin-bottom: var(--space-2);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .subtitle {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto var(--space-4);
  line-height: 1.6;
}
.hero-cta { display: inline-flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ffc933 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(240, 185, 11, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 185, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: white;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(2px); }
.cta-note {
  display: block;
  font-size: 0.78rem;
  color: var(--color-light);
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

.cta-perk {
  display: inline-block;
  font-size: 1rem;
  color: #b8860b;
  background: linear-gradient(to right, rgba(240,185,11,0.18), rgba(240,185,11,0.10));
  border: 1px solid rgba(240,185,11,0.45);
  border-radius: 999px;
  padding: 7px 18px;
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(240,185,11,0.15);
  max-width: 92%;
  line-height: 1.5;
  box-sizing: border-box;
}
.cta-perk::before {
  display: inline-block;
  margin-right: 6px;
  color: #f0b90b;
}

/* === Trust Row（交易所 Logo bar）=== */
.trust-row-section {
  padding: var(--space-3) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: var(--space-4);
}
.trust-row-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.exchanges-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: 12px 0;
  filter: grayscale(0.4);
  transition: filter 0.3s;
}
.exchanges-strip:hover { filter: grayscale(0); }
.exchanges-strip img {
  height: 28px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.exchanges-strip img:hover { opacity: 1; }

/* === Hero preview table === */
.hero-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-preview h3 { display: flex; align-items: center; gap: 8px; }
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-success);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(20, 184, 112, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: auto;
}
.live-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* === Cards === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.card {
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-success));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.10) 0%, rgba(20, 184, 112, 0.08) 100%);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  position: relative;
}
.card .icon svg {
  width: 28px;
  height: 28px;
  stroke: #1a1a1a;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card.tag-card .tag {
  display: inline-block;
  background: rgba(240, 185, 11, 0.12);
  color: var(--color-accent-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

/* === Steps === */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}
.step::before {
  content: counter(step);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
  color: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === Calculator === */
.calculator {
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-2);
  max-width: 560px;
  margin: var(--space-3) auto 0;
  box-shadow: var(--shadow-md);
}
.calculator label {
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
}
.calculator input {
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  transition: border-color 0.2s;
}
.calculator input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15); }
.calc-result {
  margin-top: var(--space-2);
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(20, 184, 112, 0.06) 100%);
  border-radius: var(--radius);
  text-align: center;
}
.calc-result .savings {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.calc-result small { display: block; margin-top: 6px; font-size: 0.78rem; }

/* === Anti-fraud === */
.anti-fraud {
  background: linear-gradient(135deg, #fff5f5 0%, #fff8e1 100%);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid #ffe082;
  margin-top: var(--space-3);
  position: relative;
}
.anti-fraud h3 { color: #b71c1c; margin-bottom: var(--space-2); }
.fraud-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.fraud-card {
  padding: var(--space-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: white;
}
.fraud-card.real { border-left: 3px solid var(--color-success); }
.fraud-card.fake { border-left: 3px solid var(--color-danger); }
.fraud-card .label { font-weight: 700; font-family: var(--font-sans); margin-bottom: 6px; font-size: 0.9rem; }

/* === FAQ === */
.faq-list { margin-top: var(--space-3); }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 8px 32px 8px 0;
  outline: none;
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--color-accent-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { margin-top: var(--space-2); color: var(--color-muted); font-size: 0.95rem; }

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #b3b3b3;
  padding: var(--space-5) 0 var(--space-3);
  font-size: 0.9rem;
  margin-top: var(--space-5);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.footer-grid a {
  color: #b3b3b3;
  display: block;
  padding: 4px 0;
  transition: color 0.2s, padding-left 0.2s;
  font-size: 0.85rem;
}
.footer-grid a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: var(--space-3);
  font-size: 0.8rem;
  color: #888;
  line-height: 1.6;
}
.footer-bottom p { margin-bottom: var(--space-1); }
.geo-notice {
  background: #2a2a2a;
  padding: 14px;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-danger);
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: #1a1a1a;
  color: #fff;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: 0.85rem;
  z-index: 200;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { color: #ccc; margin-bottom: var(--space-2); }
.cookie-banner .actions { display: flex; gap: 8px; }
.cookie-banner button {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  transition: all 0.2s;
}
.cookie-banner button.accept { background: var(--color-accent); color: #000; }
.cookie-banner button.accept:hover { background: #ffc933; }
.cookie-banner button.reject { background: transparent; border: 1px solid #555; color: #fff; }
.cookie-banner button.reject:hover { border-color: #999; }

/* === Article === */
.article {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}
.article header { margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.article .breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin-bottom: var(--space-2); }
.article .meta { font-size: 0.85rem; color: var(--color-muted); display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.article h2 { margin-top: var(--space-4); }
.article h3 { margin-top: var(--space-3); }
.article ul, .article ol { padding-left: 1.5em; margin-bottom: var(--space-2); }
.article ul li, .article ol li { margin-bottom: 6px; }
.article blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-2);
  margin: var(--space-2) 0;
  color: var(--color-muted);
  font-style: italic;
}
.article code {
  font-family: var(--font-mono);
  background: #f1f1ef;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.disclosure-inline {
  background: linear-gradient(135deg, #fff8e1 0%, #fffbeb 100%);
  border: 1px solid #ffe082;
  padding: var(--space-2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: var(--space-3);
  color: #5d4037;
}

.risk-disclaimer {
  background: linear-gradient(135deg, #f5f5f0 0%, #fafaf7 100%);
  border-left: 3px solid var(--color-muted);
  padding: var(--space-3);
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  border-radius: var(--radius);
}

/* === Utility === */
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.tag {
  display: inline-block;
  background: rgba(240, 185, 11, 0.12);
  color: var(--color-accent-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Stats grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  text-align: center;
  transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.stat-card .stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 600;
}

/* === Animation utils === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-up-delay-1 { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.fade-in-up-delay-2 { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.fade-in-up-delay-3 { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }

/* === Tool Page System === */
.tool-hero {
  position: relative;
  padding: var(--space-4) 0 var(--space-3);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(240, 185, 11, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><path d='M 60 0 L 0 0 0 60' fill='none' stroke='%23e8e8e8' stroke-width='0.5'/></svg>");
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 0%, transparent 70%);
}
.tool-hero > .container { position: relative; z-index: 1; }
.tool-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tool-hero h1 .accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tool-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}
.tool-hero .breadcrumb a {
  color: var(--color-muted);
  transition: color 0.2s;
}
.tool-hero .breadcrumb a:hover { color: var(--color-text); }
.tool-hero .description {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 700px;
}

.tool-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}

.tool-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
.tool-controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-success) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tool-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}
.tool-controls input,
.tool-controls select {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}
.tool-controls input:focus,
.tool-controls select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15);
}
.tool-controls label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  cursor: pointer;
}
.tool-controls label.checkbox input[type="checkbox"] {
  padding: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.tool-results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-3);
}
.tool-results-table th {
  background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
  padding: 16px 14px;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.tool-results-table th.num { text-align: right; }
.tool-results-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--color-border);
}
.tool-results-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}
.tool-results-table tbody tr {
  transition: background 0.2s;
}
.tool-results-table tbody tr:hover { background: var(--color-bg); }
.tool-results-table .winner {
  background: linear-gradient(90deg, rgba(20, 184, 112, 0.08) 0%, rgba(20, 184, 112, 0.03) 100%);
  font-weight: 600;
}
.tool-results-table .winner td:first-child { border-left: 3px solid var(--color-success); }
.tool-results-table .loser {
  background: linear-gradient(90deg, rgba(217, 48, 37, 0.04) 0%, rgba(217, 48, 37, 0.01) 100%);
}
.tool-results-table .loser td:first-child { border-left: 3px solid var(--color-danger); }
.tool-results-table .ex-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-results-table .ex-name img { height: 22px; }
.tool-results-table .pos-medal {
  display: inline-flex;
  width: 24px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-muted);
}
.tool-results-table .official-link {
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  text-decoration: none;
}
.tool-results-table .official-link:hover { text-decoration: underline; }
.savings-vs { font-size: 0.78rem; color: var(--color-muted); display: block; }

/* === Price strip (CoinGecko live prices) === */
.price-strip-wrap {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, #2a2a2a 100%);
  color: #fff;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
}
.price-strip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--space-3);
}
.price-strip::-webkit-scrollbar { display: none; }
.price-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-family: var(--font-mono);
  padding: 4px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.price-cell:last-child { border-right: none; }
.price-sym {
  font-weight: 800;
  color: #f0b90b;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}
.price-val {
  color: #fff;
  font-weight: 600;
}
.price-chg {
  font-size: 0.82rem;
  font-weight: 600;
}
.price-chg.up { color: #14b870; }
.price-chg.down { color: #ff5252; }
.price-cell.price-error {
  color: #ff9a9a;
  font-style: italic;
}
.price-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 var(--space-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}
.price-strip-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #14b870;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.price-strip-source {
  font-size: 0.7rem;
  color: #666;
  text-align: center;
  padding: 6px var(--space-3) 0;
}
.price-strip-source a { color: #888; text-decoration: underline; }

/* Ref button in tool tables */
.ref-btn {
  display: inline-block;
  padding: 7px 14px;
  background: linear-gradient(135deg, #f0b90b 0%, #ffc933 100%);
  color: #1a1a1a;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(240, 185, 11, 0.25);
  white-space: nowrap;
}
.ref-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(240, 185, 11, 0.45); }
.ref-na { color: var(--color-light); font-size: 0.92rem; }

.tool-info-box {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.06) 0%, rgba(240, 185, 11, 0.02) 100%);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.tool-info-box.danger {
  background: linear-gradient(135deg, rgba(217, 48, 37, 0.06) 0%, rgba(217, 48, 37, 0.02) 100%);
  border-left-color: var(--color-danger);
}

.affiliate-suggest-box {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.affiliate-suggest-box h4 {
  margin-bottom: 4px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.affiliate-suggest-box h4::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Tool result card (single value display) */
.tool-result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-top: var(--space-3);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.tool-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-success) 100%);
}
.tool-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
}
.tool-result-row:last-child { border-bottom: none; }
.tool-result-row .label { color: var(--color-muted); font-size: 0.92rem; font-weight: 500; }
.tool-result-row .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}
.tool-result-row.highlight .value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tool-result-row.danger .value { color: var(--color-danger); }
.tool-result-row.warning .value { color: var(--color-accent-dark); }

/* === Blog post visual === */
.post-cover {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(240, 185, 11, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(20, 184, 112, 0.18) 0%, transparent 60%);
}
.post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M 40 0 L 0 0 0 40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/></svg>");
  background-size: 40px 40px;
}
.post-cover .cover-icon {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(240, 185, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-cover .cover-icon svg {
  width: 56px;
  height: 56px;
  stroke: #f0b90b;
  stroke-width: 1.5;
  fill: none;
}
.post-cover .cover-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}

/* === Mobile === */
@media (max-width: 720px) {
  .hero { padding: var(--space-4) 0; }
  .section { padding: var(--space-4) 0; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .exchanges-strip { gap: var(--space-2); }
  .exchanges-strip img { height: 22px; }
}
