/* ============================================
   TGFast Proxy — Pro Design System
   ============================================ */

:root {
  --bg: #0a0e1a;
  --bg-2: #0d1220;
  --card: #111827;
  --card-2: #161f33;
  --border: #1e293b;
  --border-2: #2a3548;
  --primary: #0088cc;
  --primary-2: #00b4ff;
  --primary-dark: #0066aa;
  --text: #ffffff;
  --text-muted: #a0aec0;
  --text-dim: #6b7689;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --glow: 0 0 24px rgba(0, 136, 204, 0.35);
  --glow-strong: 0 0 40px rgba(0, 180, 255, 0.5);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --container: 1200px;
  --header-h: 72px;
}

[data-theme="light"] {
  --bg: #f7fafc;
  --bg-2: #edf2f7;
  --card: #ffffff;
  --card-2: #f1f5f9;
  --border: #e2e8f0;
  --border-2: #cbd5e0;
  --text: #0a0e1a;
  --text-muted: #4a5568;
  --text-dim: #718096;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--primary-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; position: relative; }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 26, 0.6);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

[data-theme="light"] .site-header { background: rgba(247, 250, 252, 0.6); }
[data-theme="light"] .site-header.scrolled { background: rgba(247, 250, 252, 0.85); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: inline-flex;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--glow);
}

.logo-text { color: var(--primary-2); }

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-list a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width var(--transition);
}

.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover { border-color: var(--primary); box-shadow: var(--glow); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .nav-list { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-primary { display: none; }

  .nav-list.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-list.open a { font-size: 18px; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.5), var(--glow);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(0, 136, 204, 0.08);
  border-color: var(--primary);
  color: var(--primary-2);
  transform: translateY(-2px);
}

.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 90px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 136, 204, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 180, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  z-index: 0;
  animation: meshShift 20s ease-in-out infinite;
}

@keyframes meshShift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-20px, 30px); }
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: var(--primary-2);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-2) 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2.hero-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.live-counter {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-counter strong {
  color: var(--primary-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* "Last verified [Month YYYY]" pill — visible freshness/trust signal in
   hero. Shown on home + country pages so SERP screenshots and live
   visitors can confirm the page was updated this month.
   NOTE: distinct class from the smaller `.verified-badge` author byline
   icon used on article pages. */
.freshness-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .35);
  color: #d1fae5;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  line-height: 1.4;
}
.freshness-badge .freshness-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #052e1a;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}
.freshness-badge strong {
  color: #fff;
  font-weight: 700;
}
.country-hero .freshness-badge {
  margin-top: 22px;
}
@media (prefers-reduced-motion: no-preference) {
  .freshness-badge { transition: transform .2s ease; }
  .freshness-badge:hover { transform: translateY(-1px); }
}

/* ============================================
   Proxy Cards
   ============================================ */
.proxy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.proxy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.proxy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.proxy-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow);
}

.proxy-card:hover::before { opacity: 1; }

.proxy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.proxy-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-pill .dot {
  width: 8px; height: 8px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.status-pill[data-status="checking"] {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.25);
}

.status-pill[data-status="offline"] {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Ping bars — 4-segment signal-strength widget that sits next to
   the "Ping: XX ms" text. Bars fill in proportional to ping speed
   (see pingBars() in templates.js / bucketBars() in proxy.js). */
.ping-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ping-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  vertical-align: middle;
}
.ping-bar {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.25);
  transition: background-color 0.2s ease, height 0.2s ease;
}
.ping-bar:nth-child(1) { height: 4px; }
.ping-bar:nth-child(2) { height: 7px; }
.ping-bar:nth-child(3) { height: 10px; }
.ping-bar:nth-child(4) { height: 13px; }
.ping-bars-online .ping-bar.on { background: var(--success); box-shadow: 0 0 4px rgba(16,185,129,0.6); }
.ping-bars-offline .ping-bar { background: rgba(239, 68, 68, 0.25); }
.ping-bars-checking .ping-bar { background: rgba(245, 158, 11, 0.35); animation: pingBarPulse 1.4s ease-in-out infinite; }
.ping-bars-checking .ping-bar:nth-child(2) { animation-delay: 0.15s; }
.ping-bars-checking .ping-bar:nth-child(3) { animation-delay: 0.3s; }
.ping-bars-checking .ping-bar:nth-child(4) { animation-delay: 0.45s; }
@keyframes pingBarPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ping-bars-checking .ping-bar { animation: none; opacity: 0.55; }
}

.proxy-info {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 10px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
}

[data-theme="light"] .proxy-info { background: var(--card-2); }

.proxy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.proxy-row .label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.proxy-row .value {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  text-align: right;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  background: rgba(0, 136, 204, 0.08);
}

.copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.proxy-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.proxy-meta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
  justify-content: space-between;
}

.proxy-meta .ping { color: var(--success); font-weight: 600; }

/* ============================================
   Country preset grid (50 home cards)
   ============================================ */

/* Search + result-count toolbar above the grid */
.preset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.preset-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px 0 38px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.preset-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.18);
}
.preset-search-icon {
  position: absolute;
  left: 14px;
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.preset-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  padding: 12px 6px;
  font-size: 15px;
  width: 100%;
}
.preset-search input::placeholder { color: var(--text-dim); }
.preset-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(45deg, transparent 45%, var(--text-muted) 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--text-muted) 45% 55%, transparent 55%);
  cursor: pointer;
  opacity: .8;
}

.preset-results {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The 50-card grid itself */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* Responsive collapse — match the breakpoints used elsewhere on
   the site (920 / 720 / 480) so the grid feels native, not bolted on. */
@media (max-width: 1100px) { .preset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 920px)  { .preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 380px)  { .preset-grid { grid-template-columns: 1fr; } }

.preset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px 14px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
  overflow: hidden;
}

.preset-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.preset-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--glow);
}
.preset-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .preset-card,
  .preset-card:hover { transform: none; transition: none; }
}

.preset-flag {
  display: block;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.preset-flag img {
  display: block;
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
}
@media (max-width: 600px) {
  .preset-flag img { width: 36px; height: 27px; }
}

.preset-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 56px;
}

.preset-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

/* Compact pill variant — tighter than the full proxy-card pill */
.preset-pill {
  font-size: 10px;
  padding: 2px 8px;
  letter-spacing: 0.03em;
}
.preset-pill .dot { width: 6px; height: 6px; }

.preset-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: auto;
}
.preset-connect {
  padding: 8px 10px;
  font-size: 13px;
  gap: 4px;
  min-height: 0;
}
.preset-qr {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preset-guide {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
}
.preset-guide:hover { text-decoration: underline; opacity: 1; }

/* "0 results" empty state shown by the JS filter */
.preset-empty {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
}
.preset-empty p { margin-bottom: 12px; }
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.preset-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.preset-chip:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  background: rgba(0, 136, 204, 0.08);
}

/* Honesty legend underneath the grid */
.preset-honesty {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.preset-honesty-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(16,185,129,0.6);
  animation: pingBarPulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .preset-honesty-dot { animation: none; }
}

/* Hidden state used by the JS filter */
.preset-card[hidden] { display: none !important; }

/* RTL: flip preset card actions */
html[dir="rtl"] .preset-actions { direction: rtl; }
html[dir="rtl"] .preset-search { padding: 0 38px 0 14px; }
html[dir="rtl"] .preset-search-icon { left: auto; right: 14px; }

/* ============================================
   Fleet UI — extends .preset-card with stats / chips / sort
   ============================================ */

/* ============================================
   Home-page fleet section (Task #9)
   Two stacked panels:
     1. .fleet-panel#fleet-country-panel — bordered country chip grid
     2. .fleet-panel#fleet-table-panel   — classic # / Country / Ping
                                           / Action table + pagination
   Premium-but-restrained aesthetic: 1px hairline border, single soft
   shadow, ≤2px hover lift, no glassmorphism, no neon, no animated
   counters. Light + dark themes both look right. Renders below the
   "Pick your country" section heading rendered in renderHomeBody.
   ============================================ */
.fleet-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 8px 0 4px;
}
.fleet-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .fleet-panel {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 22px rgba(15, 23, 42, 0.06);
}
.fleet-panel-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
@media (max-width: 600px) {
  .fleet-panel { padding: 16px 14px 14px; border-radius: 14px; }
  .fleet-panel-title { font-size: 16px; }
}

/* ── Panel 1: country chip grid ──────────────────────────────── */
.fleet-cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fleet-cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  min-height: 36px;
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
[data-theme="light"] .fleet-cc-chip { color: var(--primary); }
.fleet-cc-chip:hover {
  border-color: var(--primary-dark);
  background: rgba(0, 136, 204, 0.06);
  transform: translateY(-1px);
}
.fleet-cc-chip:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}
.fleet-cc-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.fleet-cc-chip.is-active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.fleet-cc-chip-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}
.fleet-cc-chip-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fleet-cc-chip-flag-all {
  background: rgba(0, 136, 204, 0.12);
  color: var(--primary);
  border-radius: 4px;
}
.fleet-cc-chip.is-active .fleet-cc-chip-flag-all {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.fleet-cc-chip-name {
  font-weight: 600;
  letter-spacing: 0;
}
.fleet-cc-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
  background: rgba(0, 136, 204, 0.10);
  border-radius: 999px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--primary-2);
  line-height: 1.6;
}
[data-theme="light"] .fleet-cc-chip-count {
  background: rgba(0, 136, 204, 0.10);
  color: var(--primary);
}
.fleet-cc-chip.is-active .fleet-cc-chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
/* ── Panel 2: Play-store-style proxy cards ───────────────────── */
.fleet-status {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.fleet-status strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fleet-clear {
  background: transparent;
  border: 0;
  padding: 0 0 0 6px;
  margin-left: 4px;
  font: inherit;
  font-size: 13px;
  color: var(--primary-2);
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
  line-height: 1.2;
}
.fleet-clear:hover { color: var(--primary); }

/* Card grid: 2-3 columns on desktop, 1 column on mobile */
.fleet-pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
/* Country-chip filter relies on `r.hidden = true` to hide cards. The default
   browser rule `[hidden] { display: none }` has the lowest possible specificity
   and is overridden by the author `display: grid` rule below — so without this
   explicit guard the chip click silently does nothing visible. */
.fleet-row[hidden],
.fleet-row.fleet-pl-card[hidden] { display: none !important; }
.fleet-row.fleet-pl-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.fleet-row.fleet-pl-card:hover {
  border-color: var(--primary);
  background: rgba(0, 136, 204, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .fleet-row.fleet-pl-card:hover {
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

/* Square rounded "app icon" containing the country flag + rank badge */
.fleet-pl-icon {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.10), rgba(0, 136, 204, 0.04));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  text-decoration: none;
}
.fleet-pl-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fleet-pl-rank {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  letter-spacing: 0;
  line-height: 1;
}

/* Body: name + meta line + online status pill */
.fleet-pl-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fleet-pl-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fleet-pl-meta {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.fleet-pl-id {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fleet-pl-bullet { opacity: 0.6; }
.fleet-row-ping {
  color: var(--success);
  font-weight: 600;
  white-space: nowrap;
}
.fleet-row-ping-unit { color: var(--text-muted); font-weight: 500; font-size: 12px; }
.fleet-row-ping-val { transition: opacity 220ms ease; }
.fleet-row-ping-val.is-fading { opacity: 0.35; }
.fleet-pl-status {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fleet-pl-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* Action stack: filled "Connect" pill + outlined QR pill */
.fleet-pl-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
}
.fleet-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background: transparent;
  border: 1.5px solid var(--primary-2);
  border-radius: 999px;
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}
.fleet-act svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.fleet-act-connect {
  background: var(--primary-2);
  color: #fff;
}
.fleet-act-connect:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.fleet-act-qr:hover {
  background: var(--primary-2);
  color: #fff;
  border-color: var(--primary-2);
}
.fleet-act:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
[data-theme="light"] .fleet-act-connect {
  background: var(--primary);
  border-color: var(--primary);
}
[data-theme="light"] .fleet-act-connect:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
[data-theme="light"] .fleet-act-qr {
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="light"] .fleet-act-qr:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Mobile: single column, tighter padding, smaller icon */
@media (max-width: 600px) {
  .fleet-pl-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .fleet-row.fleet-pl-card {
    padding: 10px 12px;
    gap: 10px;
  }
  .fleet-pl-icon { width: 52px; height: 52px; border-radius: 12px; }
  .fleet-pl-name { font-size: 14px; }
  .fleet-act { padding: 7px 11px; font-size: 12px; }
}
@media (max-width: 380px) {
  .fleet-act-qr span { display: none; }
  .fleet-act-qr { padding: 7px 9px; }
}

.fleet-table-empty {
  margin: 14px 0 0;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .fleet-cc-chip,
  .fleet-act,
  .fleet-row,
  .fleet-row-ping-val { transition: none; }
  .fleet-cc-chip:hover { transform: none; }
}

/* ============================================
   END Task #9 fleet section
   The classes below (.fleet-card, .fleet-stats, .fleet-uptime,
   .fleet-actions, .fleet-pill, .fleet-id, .fleet-headline,
   .fleet-grid, .fleet-name, .fleet-premium-mark, .fleet-flag,
   .fleet-ribbon) are still consumed by renderFleetCard which
   powers the per-country landing pages and the status page.
   Do not remove them.
   ============================================ */

/* Fleet card extensions on top of .preset-card */
.fleet-card { padding: 14px 12px 12px; gap: 8px; }
.fleet-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.fleet-flag img { width: 32px; height: 24px; }
.fleet-headline { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fleet-name {
  font-size: 13px;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fleet-premium-mark {
  color: #fbbf24;
  font-size: 11px;
}
.fleet-id {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: left;
}
.fleet-pill { font-size: 9px; padding: 2px 6px; }

.fleet-ribbon {
  position: absolute;
  top: 8px;
  right: -22px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 24px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(251,191,36,0.4);
}

.fleet-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
  padding: 8px;
  background: rgba(0,0,0,0.18);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
html[data-theme="light"] .fleet-stats { background: rgba(0,0,0,0.04); }
.fleet-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
}
.fleet-stat-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 9px; font-weight: 600; }
.fleet-stat-value { color: var(--text); font-weight: 700; font-size: 12px; }
.fleet-stat-value small { font-weight: 500; color: var(--text-muted); margin-left: 1px; font-size: 9px; }
.fleet-stat-value[data-stat-flash="1"] { animation: fleetStatFlash 600ms ease-out; }
@keyframes fleetStatFlash {
  0%   { color: var(--success); transform: scale(1.06); }
  100% { color: var(--text);    transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-stat-value[data-stat-flash="1"] { animation: none; }
}

.fleet-uptime {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
html[data-theme="light"] .fleet-uptime { background: rgba(0,0,0,0.06); }
.fleet-uptime-bar {
  display: block;
  height: 100%;
  width: var(--pct, 99%);
  background: linear-gradient(90deg, var(--success), var(--primary));
  border-radius: 2px;
}
.fleet-uptime-label {
  position: absolute;
  inset: -16px 0 auto 0;
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.fleet-actions { margin-top: 18px; }

/* Adjust grid sizing for fleet density */
.fleet-grid { gap: 12px; }
@media (min-width: 1101px) { .fleet-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Fleet status page — summary + per-country tables */
.fleet-status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.fleet-summary-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.fleet-summary-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fleet-summary-num small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.fleet-summary-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fleet-status-countries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fleet-status-country {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fleet-status-country[open] { border-color: var(--primary); }
.fleet-status-country-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.fleet-status-country-head::-webkit-details-marker { display: none; }
.fleet-status-country-head::marker { content: ''; }
.fleet-status-flag img { display: block; border-radius: 2px; }
.fleet-status-name { font-weight: 600; color: var(--text); }
.fleet-status-count, .fleet-status-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .fleet-status-country-head {
    grid-template-columns: auto 1fr auto;
    row-gap: 6px;
  }
  .fleet-status-meta, .fleet-status-count { grid-column: 2 / 4; }
}
.fleet-status-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.fleet-status-row {
  display: grid;
  grid-template-columns: 80px repeat(4, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.fleet-status-row:last-child { border-bottom: 0; }
.fleet-status-row:hover { background: rgba(0,136,204,0.05); color: var(--text); }
.fleet-status-row-id { font-weight: 700; color: var(--primary-2); letter-spacing: 0.04em; }
.fleet-status-row-stat { text-align: right; }

@media (max-width: 600px) {
  .fleet-card-head { grid-template-columns: auto 1fr; }
  .fleet-card-head .fleet-pill { grid-column: 2; justify-self: end; }
  .fleet-stats { grid-template-columns: repeat(2, 1fr); }
  .fleet-status-row {
    grid-template-columns: 70px 1fr 1fr auto;
    font-size: 11px;
  }
  .fleet-status-row-stat:nth-child(4),
  .fleet-status-row-stat:nth-child(5) { display: none; }
  .fleet-chips-wrap { top: 56px; }
}

/* ============================================
   Features
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 24px rgba(0, 136, 204, 0.18);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.18), rgba(0, 180, 255, 0.08));
  border: 1px solid rgba(0, 136, 204, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-2);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ============================================
   How To Steps
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.step-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: var(--glow);
}

.step-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.step-card p { color: var(--text-muted); font-size: 15px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--border-2); }
.faq-item.open { border-color: var(--primary); }

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 20px 56px 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  position: relative;
  line-height: 1.4;
}

.faq-q::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--primary-2);
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.open .faq-a { max-height: 600px; padding: 0 24px 22px; }

/* ============================================
   Stats
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08), rgba(0, 180, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================
   Channel CTA Banner
   ============================================ */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(0, 136, 204, 0.12), rgba(0, 180, 255, 0.06)),
    var(--card);
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 180, 255, 0.2), transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

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

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.sitemap-section h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.sitemap-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.sitemap-section a {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.sitemap-section a:hover { color: var(--primary-2); }

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.faq-item[open] {
  border-color: var(--primary-2);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 32px;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--primary-2);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.faq-answer a { color: var(--primary-2); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--primary-2); }

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================
   Toast
   ============================================ */
#toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--card);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(20px); }
}

/* ============================================
   Modal
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), var(--glow-strong);
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--border); color: var(--text); }

.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

#qr-canvas {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin: 0 auto 16px;
  display: block;
}

/* ============================================
   Sticky Mobile CTA
   ============================================ */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 90;
  display: none;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.mobile-cta.show { transform: translateY(0); }

@media (max-width: 880px) {
  .mobile-cta { display: block; }
}


/* ============================================
   Trust Strip (header sub-bar, every page)
   ============================================ */
.trust-strip {
  background: linear-gradient(180deg, rgba(0, 136, 204, 0.05), rgba(10, 14, 26, 0.25));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 8px 16px;
  max-width: 1280px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}
.trust-pill svg {
  width: 13px !important;
  height: 13px !important;
  color: #6fc3ff;
  opacity: 0.85;
  display: inline-block !important;
  flex-shrink: 0;
  vertical-align: middle;
}
.trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: trust-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes trust-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.trust-live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--text);
}
.trust-live strong {
  color: #34d399;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.25);
}
.trust-live .pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
/* Progressive trim as viewport shrinks so the strip always fits without scroll */
@media (max-width: 1100px) {
  .trust-strip-inner { gap: 14px; }
  .trust-pill { font-size: 11.5px; }
}
@media (max-width: 960px) {
  .trust-strip-inner { gap: 12px; padding: 7px 14px; }
  .trust-pill-extra { display: none; } /* hide "180+ countries served" first */
}
@media (max-width: 760px) {
  .trust-strip-inner { gap: 10px; padding: 6px 12px; }
  .trust-pill { font-size: 11px; }
  .trust-pill-secondary { display: none; } /* then "Zero logs" */
}
@media (max-width: 540px) {
  .trust-pill-tertiary { display: none; } /* then "99.9% uptime" */
  .trust-strip-inner { justify-content: space-between; }
}

/* ============================================
   Social-Proof Toast ("Sara from Iran joined…")
   ============================================ */
.social-proof {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 240;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  padding: 10px 32px 10px 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  transform: translateX(-110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2, .9, .25, 1.1), opacity 0.3s ease;
}
.social-proof.show { transform: translateX(0); opacity: 1; }
.sp-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sp-avatar img {
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.sp-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sp-body strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}
.sp-body .sp-from {
  color: var(--text-muted);
  font-weight: 400;
}
.sp-body span {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.3;
}
.sp-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}
.sp-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 560px) {
  .social-proof { bottom: 160px; left: 8px; max-width: calc(100vw - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .social-proof { transition: opacity 0.2s ease; transform: none; }
}

/* ============================================
   Sticky Channel CTA inside Article TOC sidebar
   ============================================ */
.toc-channel-cta {
  margin-top: 22px;
  padding: 16px 14px;
  background: linear-gradient(160deg, rgba(0, 136, 204, 0.18), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(0, 136, 204, 0.45);
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.toc-channel-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(76, 184, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.toc-cta-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(0, 136, 204, 0.25);
  display: grid;
  place-items: center;
  color: #4cb8ff;
  position: relative;
}
.toc-channel-cta strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
}
.toc-channel-cta p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
  position: relative;
}
.toc-channel-cta p strong {
  display: inline;
  color: #10b981;
  font-size: inherit;
  font-weight: 700;
}
.toc-channel-cta .btn {
  position: relative;
  font-size: 13px;
  padding: 10px 14px;
  width: 100%;
  justify-content: center;
}
.btn-block { display: flex !important; width: 100%; justify-content: center; }

/* ============================================
   "Was this article helpful?" widget
   ============================================ */
.article-helpful {
  margin: 40px 0 30px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.07), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-align: center;
}
.article-helpful > strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 14px;
  font-weight: 700;
}
.helpful-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.helpful-btn:hover:not(:disabled) {
  background: rgba(0, 136, 204, 0.15);
  border-color: rgba(0, 136, 204, 0.5);
  transform: translateY(-1px);
}
.helpful-btn:disabled { opacity: 0.55; cursor: default; }
.helpful-btn.selected {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.55);
  color: #10b981;
  opacity: 1;
}
.helpful-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.helpful-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0088cc, #4cb8ff);
  color: #fff !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}
.helpful-share:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 136, 204, 0.45); }
.helpful-thanks {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}


/* ============================================
   Page Hero (subpages)
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(0, 136, 204, 0.18), transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary-2); }

/* ============================================
   Blog
   ============================================ */
.blog-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-tab {
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.cat-tab:hover { border-color: var(--primary); color: var(--text); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow);
  color: inherit;
}

.cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.cat-tag[data-cat="setup"] { background: rgba(0, 136, 204, 0.15); color: var(--primary-2); border: 1px solid rgba(0, 136, 204, 0.3); }
.cat-tag[data-cat="country"] { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-tag[data-cat="technical"] { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-tag[data-cat="tips"] { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.read-more {
  color: var(--primary-2);
  font-weight: 600;
  font-size: 13px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================
   Article Page
   ============================================ */
.read-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  z-index: 99;
  width: 0;
  transition: width 0.1s linear;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 240px 1fr; }
}

.article-toc {
  display: none;
}

@media (min-width: 1024px) {
  .article-toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
}

.article-toc h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.article-toc ul { list-style: none; display: grid; gap: 8px; }
.article-toc a {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.article-toc a:hover, .article-toc a.active {
  color: var(--primary-2);
  background: rgba(0, 136, 204, 0.06);
  border-left-color: var(--primary);
}

.article-content {
  max-width: 760px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.article-meta-row .dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; opacity: 0.5; align-self: center; }

.prose { color: var(--text); font-size: 17px; line-height: 1.8; }
.prose > * { margin-bottom: 20px; }
.prose h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--primary-2); border-bottom: 1px solid rgba(0, 180, 255, 0.3); }
.prose a:hover { border-bottom-color: var(--primary-2); }
.prose ul, .prose ol { margin-left: 24px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  background: rgba(0, 136, 204, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}
.prose code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', monospace;
  font-size: 0.9em;
  color: var(--primary-2);
}
.prose pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 14px;
}
.prose pre code { background: transparent; padding: 0; color: var(--text); }

.toc-inline {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.toc-inline h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 700;
}

.toc-inline ol { margin-left: 20px; color: var(--text-muted); font-size: 14px; }
.toc-inline li { margin-bottom: 6px; }
.toc-inline a { color: var(--primary-2); }

.proxy-inline {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.06), rgba(0, 180, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.proxy-inline h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}

.proxy-inline ul { list-style: none; margin: 0; display: grid; gap: 8px; }
.proxy-inline li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg-2); border-radius: var(--radius-sm); align-items: center; }
.proxy-inline li strong { color: var(--text); }
.proxy-inline a { white-space: nowrap; }

.cta-inline {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(0, 180, 255, 0.05));
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.cta-inline h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.cta-inline p { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; }

.related-articles {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ============================================
   404 page
   ============================================ */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-page .code {
  font-size: clamp(96px, 18vw, 160px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}

.error-page h1 { font-size: 32px; margin: 12px 0 16px; }
.error-page p { color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }

/* ============================================
   Reveal animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Status page
   ============================================ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.status-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-card h3 { font-size: 16px; font-weight: 700; }
.status-card .meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ============================================
   Contact form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-card h3 { font-size: 18px; margin-bottom: 12px; }
.info-card p { color: var(--text-muted); margin-bottom: 16px; }

/* ============================================
   Animations
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   SEO Pro Upgrade Styles (Task #2)
   ============================================ */

/* TL;DR aside on articles */
.article-tldr {
  margin: 24px 0 32px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0,136,204,0.10), rgba(0,180,255,0.05));
  border: 1px solid rgba(0,136,204,0.28);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
}
.article-tldr .tldr-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.article-tldr p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

/* Article byline + verified badge */
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.byline-avatar {
  border-radius: 50%;
  background: var(--primary);
  padding: 4px;
  flex-shrink: 0;
}
.byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.byline-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.byline-role {
  font-size: 12px;
  color: var(--text-muted);
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  padding: 2px;
}
.verified-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Article summary + meta refinements */
.article-summary {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 8px 0 16px;
}

/* Per-article FAQ section */
.article-faq {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-faq h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Rating strip (homepage social proof) */
.rating-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 28px;
  padding: 14px 22px;
  max-width: 640px;
  background: linear-gradient(135deg, rgba(255,180,0,0.08), rgba(0,136,204,0.06));
  border: 1px solid rgba(255,180,0,0.22);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  text-align: center;
}
.rating-stars {
  font-size: 20px;
  letter-spacing: 2px;
  color: #ffb400;
  text-shadow: 0 1px 2px rgba(255,180,0,0.25);
}

/* ============================================
   Testimonials (homepage social proof grid)
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 24px rgba(0, 136, 204, 0.15);
}
.testimonial-stars {
  color: #ffb400;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255, 180, 0, 0.2);
}
.testimonial-quote {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after  { content: "\201D"; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.22), rgba(0, 180, 255, 0.10));
  border: 1px solid rgba(0, 136, 204, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-2);
  flex-shrink: 0;
}
.testimonial-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.testimonial-author-name {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.testimonial-author-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Country page hero */
.country-hero {
  text-align: center;
}
.country-hero .country-flag {
  font-size: 76px;
  line-height: 1;
  margin: 0 auto 8px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4));
}
.country-hero .breadcrumbs {
  justify-content: center;
  margin: 18px auto 0;
}

/* City chips on country pages */
.city-chip {
  display: inline-block;
  padding: 5px 12px;
  margin: 4px 4px 4px 0;
  background: rgba(0,136,204,0.10);
  border: 1px solid rgba(0,136,204,0.25);
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .article-byline { padding: 10px 12px; }
  .byline-avatar { width: 36px; height: 36px; }
  .article-tldr { padding: 14px 16px; }
  .country-hero .country-flag { font-size: 60px; }
  .rating-strip { font-size: 13px; padding: 10px 16px; gap: 8px; }
}

/* Author byline link */
.byline-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,136,204,0.45);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.byline-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* Team grid on /about.html */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0 8px;
}
.team-card {
  padding: 18px 18px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.team-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--text);
}
.team-card .team-role {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.team-card p { margin: 6px 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.team-card p strong { color: var(--text); }

/* Per-country performance table */
.perf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 14px;
  font-size: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.perf-table th,
.perf-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.perf-table thead {
  background: rgba(0,136,204,0.08);
}
.perf-table th {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.perf-table tbody tr:last-child td { border-bottom: 0; }
.perf-table td:first-child { font-weight: 700; color: var(--primary); }

/* =============================================================
   Global :focus-visible — keyboard accessibility for ALL controls
   Uses two-tone outline (offset + box-shadow halo) so the focus
   ring is visible against both light and dark surfaces.
   ============================================================= */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--primary, #0088cc) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.25);
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary, #0088cc) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.30);
}
.btn:focus-visible {
  outline-offset: 4px;
}
/* Skip-to-content link (created by main.js if present) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--primary, #0088cc);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 10000;
  transition: top .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: 2px solid #fff !important;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =============================================================
   Blog → Hub link grid (entry points to setup-guides /
   country-guides / technical-articles)
   ============================================================= */
.hub-links { padding: 32px 0 8px; }
.hub-links-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 .25em;
  color: #fff;
  font-weight: 800;
}
.hub-links-sub {
  color: #b8c2d6;
  margin: 0 0 1.4em;
  max-width: 720px;
}
.hub-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.hub-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(0,136,204,0.10) 0%, rgba(0,136,204,0.04) 100%);
  border: 1px solid rgba(0,136,204,0.25);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
}
.hub-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76,184,255,0.55);
  box-shadow: 0 12px 30px rgba(0,136,204,0.18);
  text-decoration: none;
}
.hub-link-card h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}
.hub-link-card p {
  margin: 0;
  color: #b8c2d6;
  font-size: .95rem;
  line-height: 1.55;
}
.hub-link-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.hub-link-cta {
  margin-top: auto;
  color: #4cb8ff;
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =============================================================
   RTL support — applied when <html dir="rtl"> is set on fa/ar.
   The English-LTR layout already uses logical flex/grid in most
   places, so we only need to flip a small set of hard-coded
   text-align/margins/padding rules to get a clean RTL look.
   ============================================================= */
html[dir="rtl"],
html.rtl {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] body,
html.rtl body {
  text-align: right;
}

/* Hero + page hero — re-center, since hero is centered in LTR too */
html[dir="rtl"] .hero,
html[dir="rtl"] .hero-inner,
html[dir="rtl"] .page-hero,
html[dir="rtl"] .hero-cta,
html[dir="rtl"] .cta-banner,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .stats-bar,
html[dir="rtl"] .rating-strip,
html[dir="rtl"] .live-counter {
  text-align: center;
}

/* Header nav — flip ordering so the logo stays on the start side
   (visually right in RTL) and the link list flows from right to left. */
html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
html[dir="rtl"] .header-cta {
  flex-direction: row-reverse;
}

/* Footer columns retain their grid order — only text alignment flips. */
html[dir="rtl"] footer,
html[dir="rtl"] .footer-grid > div,
html[dir="rtl"] .footer-bottom {
  text-align: right;
}
html[dir="rtl"] .footer-grid ul {
  padding-right: 0;
}

/* Breadcrumbs separator + ordering */
html[dir="rtl"] .breadcrumbs {
  text-align: right;
}

/* Card grids — reverse internal flex rows so icons sit on the right */
html[dir="rtl"] .feature-card,
html[dir="rtl"] .step-card,
html[dir="rtl"] .article-card,
html[dir="rtl"] .testimonial-card {
  text-align: right;
}
html[dir="rtl"] .testimonial-author {
  flex-direction: row-reverse;
}
html[dir="rtl"] .article-meta {
  flex-direction: row-reverse;
}

/* Proxy card — server name + status badge swap sides */
html[dir="rtl"] .proxy-card,
html[dir="rtl"] .proxy-card .row,
html[dir="rtl"] .proxy-card .meta {
  text-align: right;
}
html[dir="rtl"] .proxy-card .row {
  flex-direction: row-reverse;
}
html[dir="rtl"] .proxy-card .actions {
  flex-direction: row-reverse;
}

/* Mobile bottom CTA bar — flip the row */
html[dir="rtl"] .mobile-cta,
html[dir="rtl"] .mobile-cta-inner {
  flex-direction: row-reverse;
}


/* Lists / prose — leading marker spacing flips in RTL */
html[dir="rtl"] .prose ul,
html[dir="rtl"] .prose ol {
  padding-right: 1.5rem;
  padding-left: 0;
}
html[dir="rtl"] .prose li {
  text-align: right;
}

/* FAQ accordion — chevron flips to the left edge */
html[dir="rtl"] .faq-item summary {
  flex-direction: row-reverse;
  text-align: right;
}

/* Code/keyboard glyphs stay LTR even inside an RTL paragraph
   so secrets, IPs and ports remain readable. */
html[dir="rtl"] code,
html[dir="rtl"] kbd,
html[dir="rtl"] .secret,
html[dir="rtl"] .port,
html[dir="rtl"] .server {
  direction: ltr;
  unicode-bidi: embed;
  text-align: left;
  display: inline-block;
}

/* Locale-specific typography tweaks for Persian / Arabic — the
   default system UI stack handles fa/ar reasonably, but we bump
   line-height for legibility of vowel marks and tatweel runs. */
html.locale-fa,
html.locale-ar {
  line-height: 1.75;
}
html.locale-fa h1, html.locale-ar h1,
html.locale-fa h2, html.locale-ar h2,
html.locale-fa h3, html.locale-ar h3 {
  line-height: 1.4;
}

/* Chinese tighter line-height for denser glyphs. */
html.locale-zh {
  line-height: 1.7;
}

/* ============================================================
   Press / community mentions strip (homepage)
   Renders below the proxy grid as a calm "as recommended on"
   row. Logos are typographic marks (no third-party imagery), so
   no extra HTTP requests, no licensing concerns, no LCP impact.
   ============================================================ */
.press-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.press-strip {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
}
.press-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.press-logo:hover {
  color: var(--text);
  border-color: rgba(0,180,255,0.25);
  background: rgba(0,180,255,0.04);
}
.press-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #ff6600;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}
.press-mark-reddit { background: #ff4500; }
.press-mark-tg { background: #0088cc; }
.press-mark-tg svg { width: 12px; height: 12px; }
.press-mark-gh { background: #24292f; }
.press-mark-ph { background: #da552f; }
.press-mark-success { background: #10b981; }
.press-mark-info { background: #00b4ff; }
.press-mark-shield { background: #6366f1; }
[data-theme="light"] .press-logo {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
@media (max-width: 640px) {
  .press-strip { gap: 10px 16px; }
  .press-logo { font-size: 12px; padding: 6px 12px; }
}

/* ============================================================
   Compare page — TGFast vs other free Telegram proxies
   ============================================================ */
.compare-table-wrap {
  overflow-x: auto;
  margin: 24px 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--card-bg, rgba(255,255,255,0.02));
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.compare-table thead th {
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  position: sticky;
  top: 0;
  z-index: 1;
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255,255,255,0.015);
}
.compare-th-us {
  background: linear-gradient(180deg, rgba(0,180,255,0.18), rgba(0,136,204,0.10)) !important;
  color: #fff !important;
  position: relative;
}
.compare-badge-us {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: #00b4ff;
  color: #001a33;
  vertical-align: middle;
}
.compare-td-us {
  background: rgba(0,180,255,0.04);
  color: var(--text);
}
.compare-td-winner {
  background: rgba(16,185,129,0.10);
  color: var(--text);
  font-weight: 600;
}
.compare-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: -3px;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-footnote {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin: 8px 0 32px;
}
[data-theme="light"] .compare-table-wrap {
  background: rgba(0,0,0,0.01);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .compare-table thead th { background: rgba(0,0,0,0.03); }
[data-theme="light"] .compare-table tbody th { background: rgba(0,0,0,0.015); }
[data-theme="light"] .compare-th-us {
  background: linear-gradient(180deg, rgba(0,136,204,0.20), rgba(0,180,255,0.10)) !important;
  color: #002a4d !important;
}
[data-theme="light"] .compare-td-us { background: rgba(0,136,204,0.06); }
[data-theme="light"] .compare-td-winner { background: rgba(16,185,129,0.12); }

/* =============================================================
   Fleet Section additions — Sort dropdown + Premium chip ★
   Added by T003/T004 plan. Self-contained so the rest of the
   fleet UI keeps working without any cascade changes.
   ============================================================= */
.fleet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.fleet-panel-head .fleet-panel-title { margin: 0; }

.fleet-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted, #97a3b6);
}
.fleet-sort-label { font-weight: 500; }
.fleet-sort select {
  appearance: none;
  -webkit-appearance: none;
  background: #1a2035;
  color: #e6edf6;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color-scheme: dark;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a3b6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fleet-sort select:hover,
.fleet-sort select:focus-visible {
  border-color: var(--brand, #0088cc);
  outline: none;
}

/* Premium chip ★ badge */
.fleet-cc-chip.is-premium .fleet-cc-chip-name { padding-right: 2px; }
.fleet-cc-chip-star {
  color: #ffd66b;
  font-size: 12px;
  line-height: 1;
  margin-left: 4px;
  text-shadow: 0 0 6px rgba(255, 214, 107, 0.4);
  flex-shrink: 0;
}
.fleet-cc-chip.is-premium {
  border-color: rgba(255, 214, 107, 0.35);
}
.fleet-cc-chip.is-premium.is-active {
  border-color: #ffd66b;
  box-shadow: 0 0 0 1px rgba(255, 214, 107, 0.4), 0 4px 12px rgba(255, 214, 107, 0.15);
}
