/* FFFA VPN — style.css — Light theme, teal brand, mockup-matched */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary:      #2F7478;
  --primary-dark: #175B60;
  --primary-hover:#246A6E;
  --primary-soft: #E6F5F6;
  --primary-pale: #DDF3F7;

  --lime:    #70D544;
  --success: #43B93E;
  --cyan:    #41C7D7;
  --warning: #FFB020;
  --danger:  #EF4444;
  --info:    #2F80ED;

  --text:         #0F172A;
  --text-muted:   #475569;
  --text-light:   #7A8899;
  --border-muted: #A7B1BE;

  --bg:      #F3F7FB;
  --card-bg: #FFFFFF;
  --surface: #F8FBFD;
  --surface-teal: #EDF9F9;
  --border:  #DDE8EE;

  --header-bg: #FFFFFF;
  --footer-bg: #0F172A;

  --font: "Inter","PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 10px 30px rgba(15,23,42,.06);
  --shadow-lg:   0 8px 32px rgba(15,23,42,.12);
  --transition:  0.2s ease;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(15,23,42,.05);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 72px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap; position: relative;
}
.nav-links > li > a:hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.nav-links > li > a.active {
  color: var(--primary); font-weight: 600;
}
.nav-links > li > a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 12px; right: 12px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }

/* Login button */
.btn-login {
  color: var(--primary); border: 1.5px solid var(--primary);
  padding: 8px 18px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; display: inline-block;
  transition: all var(--transition); white-space: nowrap;
}
.btn-login:hover { background: var(--primary-soft); text-decoration: none; }

/* ─── CTA BUTTONS ─── */
.btn-cta {
  background: var(--primary); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn-cta.btn-lg { padding: 16px 40px; font-size: 17px; font-weight: 700; border-radius: var(--radius-lg); }
.btn-cta.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-cta-hero { padding: 14px 32px; font-size: 16px; font-weight: 700; border-radius: var(--radius-lg); }

.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 10px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

.btn-outline-dark {
  border: 2px solid var(--text); color: var(--text);
  padding: 12px 28px; border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 600; display: inline-block;
  transition: all var(--transition); white-space: nowrap;
}
.btn-outline-dark:hover { background: var(--text); color: #fff; text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 22px; padding: 6px; order: 99;
}

/* mob-cta-item: hidden on desktop, shown in mobile menu */
.mob-cta-item { display: none; }

/* ─── HERO (shared) ─── */
.hero {
  min-height: 520px; background: var(--bg);
  display: flex; align-items: center;
  background-size: cover; background-position: center right;
  position: relative; overflow: hidden;
}
.hero-body {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: var(--space-xl) var(--space-sm);
}
.hero-text { max-width: 580px; }
.hero-text h1 {
  font-size: clamp(30px, 4.5vw, 56px); font-weight: 800;
  color: var(--text); margin-bottom: var(--space-sm); line-height: 1.15;
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); color: var(--text-muted);
  margin-bottom: var(--space-sm); line-height: 1.7;
}
.hero-tagline {
  font-size: 15px; color: var(--text-light);
  margin-bottom: var(--space-md);
}
.hero-cta-row {
  display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center;
}

/* Hero background images */
.hero--home {
  background-image:
    linear-gradient(90deg, rgba(243,247,251,.98) 0%, rgba(243,247,251,.92) 40%, rgba(243,247,251,.60) 65%, rgba(243,247,251,.10) 100%),
    url('/assets/images/fffa-home-hero-clean.png');
  background-position: center right;
}
.hero--plans {
  min-height: 380px;
  background-image:
    linear-gradient(180deg, rgba(243,247,251,.94) 0%, rgba(243,247,251,.90) 100%),
    url('/assets/images/fffa-plans-hero-clean.png');
  background-position: center;
}
.hero--plans .hero-text { max-width: 680px; margin: 0 auto; }
.hero--download {
  background-image:
    linear-gradient(90deg, rgba(243,247,251,.98) 0%, rgba(243,247,251,.92) 45%, rgba(243,247,251,.60) 70%, rgba(243,247,251,.15) 100%),
    url('/assets/images/fffa-download-hero-clean.png');
  background-position: center right;
}
.hero--nodes {
  min-height: 340px;
  background-image:
    linear-gradient(90deg, rgba(243,247,251,.98) 0%, rgba(243,247,251,.92) 45%, rgba(243,247,251,.60) 70%, rgba(243,247,251,.15) 100%),
    url('/assets/images/fffa-node-status-hero-clean.png');
  background-position: center right;
}
.hero--faq {
  min-height: 380px;
  background-image:
    linear-gradient(180deg, rgba(243,247,251,.95) 0%, rgba(243,247,251,.90) 100%),
    url('/assets/images/fffa-help-center-hero-clean.png');
  background-position: center;
}
.hero--faq .hero-body { display: flex; justify-content: center; }
.hc-hero-text { max-width: 700px; }
.hero--support {
  min-height: 340px;
  background-image:
    linear-gradient(90deg, rgba(243,247,251,.98) 0%, rgba(243,247,251,.92) 45%, rgba(243,247,251,.60) 70%, rgba(243,247,251,.15) 100%),
    url('/assets/images/fffa-support-hero-clean.png');
  background-position: center right;
}

/* Plans page eyebrow */
.plans-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 12px;
}

/* Basic prose-page hero */
.page-hero--basic {
  min-height: 240px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-pale) 100%);
  padding: 60px var(--space-sm);
}
.page-hero-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.page-hero-inner h1 { font-size: clamp(24px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); }
.page-hero-inner p  { font-size: 17px; color: var(--text-muted); margin: 0; }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) var(--space-sm); }
.section-alt { background: var(--surface-teal); }
.container { max-width: 1160px; margin: 0 auto; }
.view-all-link {
  color: var(--primary); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: color var(--transition);
}
.view-all-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ─── FEATURE STRIP (home) ─── */
.fstrip-section { background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-md) var(--space-sm); }
.fstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.fstrip-card {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm); border-radius: var(--radius-md);
  cursor: pointer; transition: background var(--transition);
  position: relative;
}
.fstrip-card:hover { background: var(--primary-soft); }
.fstrip-icon { font-size: 28px; flex-shrink: 0; }
.fstrip-body strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.fstrip-body p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.fstrip-arrow { font-size: 22px; color: var(--text-light); margin-left: auto; flex-shrink: 0; }

/* ─── ANNOUNCEMENT BANNER (home) ─── */
.announce-section { padding: 0 var(--space-sm) var(--space-lg); }
.announce-banner {
  background: var(--footer-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg); overflow: hidden; position: relative;
  background-image: radial-gradient(circle at 80% 50%, rgba(47,116,120,.25) 0%, transparent 60%);
}
.announce-left { flex: 1; }
.announce-badge {
  display: inline-block; background: rgba(47,116,120,.3); color: #7EEAEF;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.announce-text { font-size: 16px; color: rgba(255,255,255,.9); margin-bottom: 8px; font-weight: 500; }
.announce-date { font-size: 13px; color: rgba(255,255,255,.4); }
.announce-right { text-align: right; flex-shrink: 0; }
.ann-right-main { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 4px; }
.ann-right-sub { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* ─── HOME PRICING PREVIEW ─── */
.home-pricing-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-md); margin-bottom: var(--space-lg);
}
.home-pricing-hd h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; margin: 0 0 8px; }
.home-pricing-sub { font-size: 15px; color: var(--text-muted); margin: 0; }
.hpc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.hpc-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.hpc-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.hpc-featured { border-color: var(--primary); border-width: 2px; box-shadow: 0 0 0 4px rgba(47,116,120,.07); }
.hpc-top { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-sm); flex-wrap: wrap; }
.hpc-icon { font-size: 24px; flex-shrink: 0; }
.hpc-name-wrap { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hpc-name { font-size: 15px; font-weight: 700; color: var(--text); }
.hpc-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.hpc-price { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; margin-left: auto; flex-shrink: 0; }
.hpc-period { font-size: 12px; color: var(--text-light); }
.hpc-feat { margin: 0 0 var(--space-sm); }
.hpc-feat li { font-size: 13px; color: var(--text-muted); padding: 4px 0; display: flex; gap: 6px; }
.hpc-feat li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.hpc-btn { display: block; text-align: center; width: 100%; padding: 11px 0; font-size: 14px; font-weight: 700; border-radius: var(--radius-md); }

/* ─── PLAN CARDS (detailed, plans page) ─── */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); align-items: start; }
.plan-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: box-shadow var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-card); }
.plan-card.featured { border-color: var(--primary); border-width: 2px; box-shadow: 0 0 0 4px rgba(47,116,120,.07); }
.plan-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-sm); }
.plan-icon { font-size: 28px; flex-shrink: 0; }
.plan-name { font-size: 16px; font-weight: 700; color: var(--text); }
.plan-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 100px; margin-top: 4px; }
.plan-price {
  font-size: 40px; font-weight: 800; color: var(--text); line-height: 1;
  margin-bottom: 4px;
}
.plan-price sup { font-size: 22px; vertical-align: top; margin-top: 6px; }
.plan-period { font-size: 13px; color: var(--text-light); margin-bottom: var(--space-sm); }
.plan-section-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-light); margin: var(--space-sm) 0 6px; }
.plan-detail-list li, .plan-service-list li {
  font-size: 13.5px; color: var(--text-muted); padding: 4px 0;
  display: flex; gap: 7px; align-items: flex-start;
}
.plan-detail-list li::before { content: '▸'; color: var(--primary); flex-shrink: 0; }
.plan-service-list li::before { content: '✓'; color: var(--success); flex-shrink: 0; }
.plan-cta-btn {
  display: block; text-align: center; width: 100%;
  padding: 12px 0; margin-top: var(--space-md);
  border-radius: var(--radius-md); font-size: 14px; font-weight: 700;
}

/* ─── NODE MINI TABLE (plans page) ─── */
.node-mini-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-md); margin-bottom: var(--space-md);
}
.node-mini-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.node-mini-sub { font-size: 14px; color: var(--text-muted); margin: 0; }
.node-pulse-icon { margin-right: 6px; }
.node-mini-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.node-mini-tbl { width: 100%; border-collapse: collapse; }
.node-mini-tbl th { background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 10px 16px; text-align: left; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.node-mini-tbl td { padding: 12px 16px; font-size: 14px; border-top: 1px solid var(--border); }
.node-mini-tbl tr:hover td { background: var(--primary-soft); }

/* Status dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-green  { background: var(--success); }
.dot-blue   { background: var(--cyan); }
.dot-orange { background: var(--warning); }
.dot-red    { background: var(--danger); }

/* Rate badge */
.rate-badge { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 100px; }

/* Node tags */
.ntag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; margin-right: 4px; }
.ntag--recommend { background: rgba(112,213,68,.15); color: #3a7c15; }
.ntag--stream    { background: rgba(41,199,215,.15); color: #0a7a8a; }
.ntag--native    { background: rgba(47,128,237,.15); color: #1255b8; }
.ntag--maintenance { background: rgba(255,176,32,.15); color: #8a5500; }

/* ─── DOWNLOAD PAGE ─── */
.dl-badges { display: flex; gap: var(--space-md); flex-wrap: wrap; margin: var(--space-md) 0 var(--space-sm); }
.dl-badge { display: flex; align-items: center; gap: 10px; }
.dl-badge-icon { font-size: 24px; flex-shrink: 0; }
.dl-badge strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.dl-badge p { font-size: 12px; color: var(--text-muted); margin: 0; }
.dl-tagline { font-size: 14px; color: var(--text-light); margin-top: var(--space-sm); }

.plat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
.plat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.plat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.plat-icon { font-size: 36px; color: var(--primary); }
.plat-card .plat-name { font-size: 16px; font-weight: 700; color: var(--text); }
.plat-card .plat-ver { font-size: 12px; color: var(--text-light); }
.plat-card .plat-ver span { display: block; font-size: 11px; }
.plat-feats { text-align: left; width: 100%; margin: 4px 0; }
.plat-feats li { font-size: 12px; color: var(--text-muted); padding: 3px 0; display: flex; gap: 5px; }
.plat-feats li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.btn-plat { width: 100%; text-align: center; margin-top: 4px; font-size: 13px; padding: 9px 0; }
.btn-plat-doc {
  width: 100%; text-align: center; display: block;
  border: 1.5px solid var(--border); color: var(--text-muted);
  padding: 8px 0; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
}
.btn-plat-doc:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* 4-step guide */
.steps-header { text-align: center; margin-bottom: var(--space-lg); }
.steps-num-h { font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: var(--primary); }
.steps-sub { font-size: 16px; color: var(--text-muted); margin-top: 8px; }
.steps-4 {
  display: flex; align-items: flex-start; gap: 0;
  justify-content: center;
}
.step-item {
  flex: 1; text-align: center; padding: 0 var(--space-sm);
  position: relative;
}
.step-num-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-icon-wrap {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--primary); margin: 0 auto 12px;
}
.step-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-item p  { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.step-arrow {
  font-size: 28px; color: var(--text-light); padding-top: 60px;
  flex-shrink: 0;
}

/* ─── NODES PAGE ─── */
.stats-strip-section { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: var(--space-lg) var(--space-sm); }
.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.stat-card {
  text-align: center; padding: var(--space-md);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.stat-desc { font-size: 12px; color: var(--text-light); }

/* Nodes 2-col layout */
.nodes-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-lg); align-items: start; }
.nodes-main-col { min-width: 0; }
.nodes-sidebar { display: flex; flex-direction: column; gap: var(--space-md); }

.node-tbl-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap; }
.node-tbl-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.node-tbl-sub { font-size: 14px; color: var(--text-muted); margin: 0; }

.node-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 8px 14px;
  flex-shrink: 0; min-width: 220px;
}
.node-search-wrap i { color: var(--text-light); font-size: 14px; }
.node-search { border: none; background: none; font-size: 14px; width: 100%; outline: none; font-family: var(--font); }

.node-tbl-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.node-tbl { width: 100%; border-collapse: collapse; }
.node-tbl th { background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 12px 14px; text-align: left; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.node-tbl td { padding: 12px 14px; font-size: 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.node-tbl tr:hover td { background: var(--primary-soft); }
.node-name-cell { font-weight: 600; }
.tags-cell { min-width: 140px; }
.op-link { font-size: 13px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.op-link:hover { text-decoration: underline; }

/* Sidebar cards */
.sidebar-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-md); }
.sidebar-card-title { font-size: 16px; font-weight: 700; margin-bottom: var(--space-sm); color: var(--text); }
.legend-list { display: flex; flex-direction: column; gap: 12px; }
.legend-item { display: flex; align-items: flex-start; gap: 10px; }
.legend-item strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.legend-item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tips-list li { font-size: 13px; color: var(--text-muted); line-height: 1.5; padding-left: 2px; }

.mascot-card {
  background: var(--primary-soft); border: 1px solid var(--primary-pale);
  border-radius: var(--radius-lg); padding: var(--space-md); text-align: center;
}
.mascot-logo { width: 60px; height: auto; margin: 0 auto var(--space-sm); }
.mascot-card p { font-size: 13px; color: var(--primary-dark); font-weight: 500; margin: 0; line-height: 1.6; }

/* ─── FAQ / HELP CENTER ─── */
.hc-search-bar { display: flex; gap: 8px; margin: var(--space-md) 0 var(--space-sm); }
.hc-search-input-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 16px;
}
.hc-search-input-wrap i { color: var(--text-light); }
.hc-search-input-wrap input { border: none; background: none; font-size: 15px; width: 100%; outline: none; font-family: var(--font); }
.hc-search-btn { background: var(--primary); color: #fff; border: none; padding: 10px 24px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hc-search-btn:hover { background: var(--primary-dark); }

.hc-hot-searches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hot-label { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.hot-tag { display: inline-block; background: var(--card-bg); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; padding: 4px 12px; border-radius: 100px; transition: all var(--transition); }
.hot-tag:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.hc-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.hc-cat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-md); display: flex; align-items: center; gap: var(--space-sm);
  cursor: pointer; transition: box-shadow var(--transition), transform var(--transition);
}
.hc-cat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.hc-cat-icon { font-size: 28px; flex-shrink: 0; }
.hc-cat-card strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.hc-cat-card p { font-size: 13px; color: var(--text-muted); margin: 0; }
.hc-cat-arr { font-size: 20px; color: var(--text-light); margin-left: auto; flex-shrink: 0; }

.hc-faq-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.hc-faq-title { font-size: 22px; font-weight: 800; margin: 0; }

/* Contact strip */
.hc-contact-strip { background: var(--footer-bg); padding: var(--space-lg) var(--space-sm); }
.hc-contact-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap;
}
.hc-contact-mascot { display: flex; align-items: center; gap: var(--space-md); }
.hc-mascot-img { width: 56px; height: auto; filter: brightness(0) invert(1); flex-shrink: 0; }
.hc-contact-mascot h3 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.hc-contact-mascot em { font-style: normal; color: var(--cyan); }
.hc-contact-mascot p { font-size: 14px; color: rgba(255,255,255,.65); margin: 0; }
.hc-contact-methods { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hc-contact-item { display: flex; align-items: center; gap: 10px; }
.hc-ci-icon { font-size: 20px; }
.hc-contact-item strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.hc-contact-item p { font-size: 12px; color: rgba(255,255,255,.5); margin: 0; }
.hc-contact-btn { flex-shrink: 0; padding: 12px 28px; font-size: 15px; font-weight: 700; }

/* ─── SUPPORT PAGE ─── */
.supp-badges { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin: var(--space-md) 0 var(--space-sm); }
.supp-badge { display: flex; align-items: center; gap: 10px; }
.supp-badge span { font-size: 22px; flex-shrink: 0; }
.supp-badge strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.supp-badge p { font-size: 12px; color: var(--text-muted); margin: 0; }

.supp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.supp-left h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.supp-methods-sub { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-md); }

.supp-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-md); }
.supp-method {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md);
  cursor: pointer; transition: all var(--transition);
}
.supp-method:hover { border-color: var(--primary); }
.supp-method.selected { border-color: var(--primary); background: var(--primary-soft); }
.sm-icon { font-size: 22px; flex-shrink: 0; }
.supp-method strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.supp-method p { font-size: 13px; color: var(--text-muted); margin: 0; }
.sm-arr { font-size: 18px; color: var(--text-light); margin-left: auto; flex-shrink: 0; }

.selfcheck-panel {
  background: var(--primary-soft); border: 1px solid var(--primary-pale);
  border-radius: var(--radius-lg); padding: var(--space-md);
}
.selfcheck-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--space-sm); }
.selfcheck-icon { font-size: 22px; flex-shrink: 0; }
.selfcheck-header strong { display: block; font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.selfcheck-header p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.selfcheck-grid { display: flex; flex-direction: column; gap: 8px; }
.selfcheck-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.sc-check { font-size: 16px; flex-shrink: 0; }

/* Ticket form */
.supp-form-panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-lg);
}
.form-panel-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--space-lg); }
.form-panel-icon { font-size: 24px; flex-shrink: 0; }
.form-panel-header h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.form-panel-header p { font-size: 14px; color: var(--text-muted); margin: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-sm); }
.form-field label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-input {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; font-family: var(--font); background: var(--bg);
  transition: border-color var(--transition); width: 100%;
}
.form-input:focus { outline: none; border-color: var(--primary); }
select.form-input { cursor: pointer; }
textarea.form-input { min-height: 120px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--text-light); margin: 2px 0 0; }
.textarea-count { font-size: 12px; color: var(--text-light); text-align: right; margin-top: 4px; }
.btn-form-submit { width: 100%; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; border-radius: var(--radius-md); }

/* ─── FAQ ACCORDION ─── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); font-family: var(--font);
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ─── PROSE ─── */
.prose { max-width: 820px; margin: 0 auto; font-size: 15px; line-height: 1.85; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; color: var(--primary-dark); }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p  { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 12px 0 16px 24px; list-style: disc; }
.prose ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ─── FOOTER ─── */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: var(--space-xl) var(--space-sm) var(--space-md); }
.footer-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 40px; width: auto; margin-bottom: var(--space-sm); filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { max-width: 1160px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-sm); display: flex; justify-content: center; align-items: center; }
.footer-bottom p { font-size: 13px; margin: 0; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 8px; position: relative; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--header-bg);
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
    padding: 8px 0; z-index: 999;
    border-top: 1px solid var(--border);
    max-height: none; overflow: visible; height: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a {
    display: block; width: 100%; padding: 14px 0;
    font-size: 17px; color: var(--text);
  }
  .nav-links > li > a.active::after { display: none; }

  /* Mobile CTA item (hidden on desktop) */
  .mob-cta-item { display: block; padding: 12px 24px; border-top: 1px solid var(--border); }
  .mob-cta-item .btn-cta { display: block; text-align: center; width: 100%; max-width: 100%; }

  .nav-right .btn-login { display: none; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  .hero-text { max-width: 100%; }
  .hero h1, .hero-text h1 { font-size: clamp(26px, 7vw, 40px); }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero--home { background-image: linear-gradient(180deg, rgba(243,247,251,.97) 60%, rgba(243,247,251,.80) 100%), url('/assets/images/fffa-home-hero-clean.png'); background-position: center bottom; }

  .fstrip { grid-template-columns: repeat(2, 1fr); }
  .announce-banner { flex-direction: column; gap: var(--space-md); }
  .announce-right { text-align: left; }
  .hpc-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .nodes-layout { grid-template-columns: 1fr; }
  .nodes-sidebar { order: -1; }
  .hc-cats { grid-template-columns: repeat(2, 1fr); }
  .hc-contact-inner { flex-direction: column; align-items: flex-start; }
  .supp-layout { grid-template-columns: 1fr; }
  .steps-4 { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dl-badges { gap: var(--space-sm); }

  /* CTA centering (§14) */
  .btn-cta, .btn-cta.btn-lg, .btn-outline {
    display: block; margin-left: auto; margin-right: auto;
    text-align: center; width: max-content; max-width: 90%;
  }
  .btn-plat, .hpc-btn, .plan-cta-btn, .btn-form-submit { max-width: 100%; }
}

@media (max-width: 480px) {
  .plat-grid { grid-template-columns: 1fr; }
  .fstrip { grid-template-columns: 1fr; }
  .hc-cats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .node-tbl th, .node-tbl td, .node-mini-tbl th, .node-mini-tbl td { padding: 10px 10px; font-size: 12px; }
  .supp-form-panel { padding: var(--space-md); }
  .hpc-top { flex-wrap: wrap; }
}

/* ─── UTILITIES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); border: 1px solid var(--primary-pale);
  color: var(--primary-dark); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
}
