/*
Theme Name:  Fynerce
Theme URI:   https://fynerce.com
Author:      Fynerce
Author URI:  https://fynerce.com
Description: Official Fynerce marketing theme — pixel-perfect match to the React app design system.
Version:     4.2.0
License:     Private
Text Domain: fynerce
*/

/* ============================================================
   FYNERCE DESIGN TOKENS
   Keep in sync with: frontend/src/styles/globals.css
                      frontend/src/styles/wordpresstokens.css
   ============================================================ */
:root {
  /* ── Backgrounds ────────────────────────────────────────── */
  --bg-primary:   #05080F;
  --bg-card:      #0C1322;
  --bg-elevated:  #111C30;

  /* ── Borders ────────────────────────────────────────────── */
  --border:       #1A2A44;
  --border-focus: #4E9EFF;

  /* ── Brand & Semantic Colours ───────────────────────────── */
  --accent:        #00C896;
  --accent-hover:  #00A87E;
  --bull:          #00C896;
  --bear:          #FF3A5C;
  --warn:          #FFB800;
  --blue:          #4E9EFF;
  --purple:        #8B5CF6;

  /* ── Text ───────────────────────────────────────────────── */
  --text-primary:   #F0F6FF;   /* brighter headings & body */
  --text-secondary: #A8BDD4;   /* brighter subtext & labels */
  --text-muted:     #5A7090;   /* brighter placeholders */

  /* ── Typography ─────────────────────────────────────────── */
  --font-brand: 'Rajdhani', sans-serif;
  --font-ui:    'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* ── Border Radius ──────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* ── Shadows ────────────────────────────────────────────── */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(0,200,150,0.15);
  --shadow-bear: 0 0 20px rgba(255,58,92,0.15);

  /* ── Transitions ────────────────────────────────────────── */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

p { color: var(--text-secondary); margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-hover); }

ul, ol { margin: 0; padding: 0; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.fynerce-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fynerce-section {
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Divider */
.fynerce-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Accent highlight in headings */
.accent { color: var(--accent); }



/* ============================================================
   BODY OFFSET — compensates for fixed header + ticker
   ============================================================ */
body {
  padding-top: 100px; /* 64px header + 36px ticker */
}
@media (max-width: 900px) {
  body { padding-top: 92px; } /* 56px header + 36px ticker */
}

/* ============================================================
   HEADER — position:fixed so it always shows on every device
   Layout: [logo left] [nav centred absolutely] [ctas right]
   ============================================================ */
.fy-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex !important;
  align-items: center;
  padding: 0 32px;
}

/* Logo */
.fy-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}
.fy-logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: block; flex-shrink: 0;
}
.fy-logo-text { display: flex; flex-direction: column; line-height: 1; }
.fy-logo-name {
  font-family: var(--font-brand);
  font-size: 19px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.fy-logo-sub {
  font-family: var(--font-mono);
  font-size: 8px; color: var(--text-muted);
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px;
}

/* Nav — absolutely centred in header */
.fy-nav {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  z-index: 1;
}
.fy-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.fy-nav a {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.fy-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* CTAs — pushed to right */
.fy-ctas {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-left: auto; z-index: 2;
}

.fy-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px;
  background: var(--accent); color: #05080F !important;
  font-family: var(--font-brand); font-size: 14px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius-md);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.fy-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(0,200,150,0.3);
  color: #05080F !important;
}
.fy-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 22px;
  background: transparent; color: var(--accent) !important;
  font-family: var(--font-brand); font-size: 14px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border: 2px solid var(--accent); border-radius: var(--radius-md);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.fy-btn-outline:hover {
  background: rgba(0,200,150,0.08);
  box-shadow: 0 0 16px rgba(0,200,150,0.2);
}

/* Hamburger — hidden on desktop */
.fy-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 40px; height: 40px;
  flex-shrink: 0; border-radius: var(--radius-md);
  transition: background 0.15s; z-index: 2;
}
.fy-burger:hover { background: rgba(255,255,255,0.06); }
.fy-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.fy-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fy-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fy-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ──────────────────────────────────────────── */
.fy-drawer {
  display: none;           /* JS adds .open to show */
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 100vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 10000;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.5);
}
.fy-drawer.open { display: flex; transform: translateX(0); }

.fy-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: var(--bg-primary);
}
.fy-drawer-close {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 16px; cursor: pointer;
  padding: 6px 10px; border-radius: var(--radius-md); line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.fy-drawer-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

.fy-drawer-nav { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.fy-drawer-nav li { border-bottom: 1px solid var(--border); }
.fy-drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  font-family: var(--font-brand); font-size: 21px; font-weight: 700;
  color: var(--text-primary); text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.15s, background 0.15s;
}
.fy-drawer-nav a::after { content: '›'; font-size: 24px; color: var(--text-muted); }
.fy-drawer-nav a:hover  { color: var(--accent); background: rgba(0,200,150,0.04); }
.fy-drawer-nav a:hover::after { color: var(--accent); }

.fy-drawer-ctas { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.fy-drawer-ctas .fynerce-btn-primary,
.fy-drawer-ctas .fynerce-btn-secondary {
  width: 100% !important; justify-content: center !important;
  padding: 16px 24px !important; font-size: 15px !important;
  border-radius: var(--radius-lg) !important;
}
.fy-drawer-note {
  text-align: center; font-size: 12px; color: var(--text-muted);
  font-family: var(--font-ui); padding: 14px 20px 0; margin: 0;
}

/* Overlay */
.fy-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.72); z-index: 9999;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fy-overlay.show { display: block; }

/* ── MOBILE ≤900px ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .fy-header {
    height: 56px; padding: 0 16px;
    display: flex !important;
    justify-content: space-between; /* logo left, burger right */
  }
  .fy-logo-icon { width: 30px; height: 30px; }
  .fy-logo-name { font-size: 16px; }
  .fy-logo-sub  { display: none; }
  .fy-nav   { display: none !important; }
  .fy-ctas  { display: none !important; }
  .fy-burger {
    display: flex;
    margin-left: auto; /* belt-and-suspenders: push to far right */
  }
  .fy-ticker { top: 56px; }
}

/* ── TICKER BAR — fixed below header ───────────────────────── */
.fy-ticker {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 990;
  height: 36px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex !important;
  align-items: center;
}
.fy-ticker-inner {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  animation: fy-scroll 55s linear infinite;
  will-change: transform;
}
.fy-ticker:hover .fy-ticker-inner { animation-play-state: paused; cursor: default; }

@keyframes fy-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ti {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; border-right: 1px solid var(--border);
  height: 36px; font-family: var(--font-mono); font-size: 11.5px;
}
.ti-p { color: var(--text-muted);   font-weight: 500; letter-spacing: 0.04em; }
.ti-v { color: var(--text-primary); font-weight: 600; }
.ti-c.up { color: var(--bull); font-weight: 700; }
.ti-c.dn { color: var(--bear); font-weight: 700; }

/* ── SUPPRESS OLD CACHED CLASSES ────────────────────────────── */
.fynerce-logo-link, .fynerce-logo-img { display: none; }
.fynerce-header, .fynerce-nav-wrap, .fynerce-header-actions,
.fynerce-menu-toggle, .fynerce-mobile-drawer,
.fynerce-drawer-overlay { display: none !important; }


/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#fy-back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 8000;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #05080F;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,200,150,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
#fy-back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#fy-back-top:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(0,200,150,0.5);
}
@media (max-width: 900px) {
  #fy-back-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.fynerce-btn-primary,
.fynerce-btn-secondary,
.fynerce-btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

/* Primary — teal fill */
.fynerce-btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: #05080F;
  font-size: 16px;
  border: 2px solid transparent;
}
.fynerce-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  color: #05080F;
}

/* Secondary — teal outline */
.fynerce-btn-secondary {
  padding: 12px 30px;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  border: 2px solid var(--accent);
}
.fynerce-btn-secondary:hover {
  background: rgba(0,200,150,0.08);
  box-shadow: var(--shadow-glow);
  color: var(--accent);
}

/* Hero variant — larger */
.fynerce-btn-hero {
  padding: 18px 48px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

/* Compact nav variant */
.fynerce-btn-nav {
  padding: 8px 20px !important;
  font-size: 14px !important;
}

/* Purple PRO variant */
.fynerce-btn-pro {
  background: var(--purple) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.fynerce-btn-pro:hover {
  background: #7c3aed !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(139,92,246,0.25) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.fynerce-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  /* Subtle chart grid lines - no oval, no radial gradient */
  background-image:
    linear-gradient(rgba(26,42,68,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,42,68,0.4) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
}

/* Very subtle teal glow at top — NOT a solid shape */
.fynerce-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(0,200,150,0.04) 0%, transparent 100%);
  pointer-events: none;
}

/* Bottom border fade */
.fynerce-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.fynerce-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.fynerce-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
}

.fynerce-hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.fynerce-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.fynerce-hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fynerce-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .fynerce-hero-ctas { flex-direction: column; width: 100%; }
  .fynerce-hero-ctas .fynerce-btn-primary,
  .fynerce-hero-ctas .fynerce-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
  }
  .fynerce-hero { padding: 60px 0 48px; }
  .fynerce-hero h1 { font-size: 36px; }
}

.fynerce-hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.fynerce-stats {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fynerce-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .fynerce-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-value {
  font-family: var(--font-brand);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.fynerce-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 900px) {
  .fynerce-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fynerce-features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.feature-card:hover {
  border-color: rgba(0,200,150,0.3);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,200,150,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-section {
  padding: 80px 0 100px;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-toggle-track {
  width: 48px;
  height: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}
.pricing-toggle-track.active { background: var(--accent); }

.pricing-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}
.pricing-toggle-track.active .pricing-toggle-thumb {
  transform: translateX(22px);
}

.pricing-save-badge {
  background: rgba(0,200,150,0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,200,150,0.25);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent), var(--shadow-glow);
}
.pricing-card.featured:hover {
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent), 0 0 32px rgba(0,200,150,0.25);
}

.pricing-card.pro { border-color: rgba(139,92,246,0.4); }
.pricing-card.pro:hover {
  box-shadow: var(--shadow-card), 0 0 24px rgba(139,92,246,0.2);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #05080F;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card.pro .pricing-badge {
  background: var(--purple);
  color: #fff;
}

.pricing-plan-name {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.pricing-price {
  font-family: var(--font-brand);
  font-size: 52px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-price span {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  margin-top: 4px;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
  font-size: 13px;
  margin-top: 1px;
}

.pricing-features li.locked {
  color: var(--text-muted);
}
.pricing-features li.locked::before {
  content: '—';
  color: var(--text-muted);
}

/* Pro-only badge inline */
.pro-tag {
  font-size: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  white-space: nowrap;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.fynerce-faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.faq-item.open .faq-icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.fynerce-cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}

.fynerce-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,200,150,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.fynerce-cta-banner h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 16px;
}

.fynerce-cta-banner p {
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.fynerce-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

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

@media (max-width: 900px) {
  .fynerce-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .fynerce-footer-grid { grid-template-columns: 1fr; }
}

.footer-logo-img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 260px;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--text-muted);
  font-size: 13px;
}
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   WORDPRESS CONTENT AREA (for blog/pages)
   ============================================================ */
.fynerce-content-wrap {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}

.fynerce-content-wrap h1,
.fynerce-content-wrap h2,
.fynerce-content-wrap h3 { margin-top: 1.5em; }

.fynerce-content-wrap p { color: var(--text-secondary); line-height: 1.75; }

.fynerce-content-wrap a { color: var(--accent); }

.fynerce-content-wrap ul,
.fynerce-content-wrap ol {
  padding-left: 1.5em;
  color: var(--text-secondary);
  line-height: 1.75;
}

.fynerce-content-wrap blockquote {
  border-left: 3px solid var(--accent);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.fynerce-content-wrap code {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.875em;
  color: var(--accent);
}

.fynerce-content-wrap pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
}

.fynerce-content-wrap pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,200,150,0.04) 0%, transparent 100%);
}

.legal-effective {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.legal-effective strong { color: var(--text-secondary); }

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 56px;
}

.legal-toc h2 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc ol li a {
  font-size: 14px;
  color: var(--text-secondary);
}
.legal-toc ol li a:hover { color: var(--accent); }

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-top: 8px;
}

.legal-section h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
  margin-top: 24px;
  font-weight: 600;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul li { list-style: disc; }
.legal-section ol li { list-style: decimal; }

.legal-warning {
  background: rgba(255,58,92,0.08);
  border: 1px solid rgba(255,58,92,0.25);
  border-left: 3px solid var(--bear);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 24px;
}

.legal-contact-box p {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

/* ============================================================
   BLOG & NEWS ARCHIVE
   ============================================================ */
.posts-archive {
  padding: 64px 0 100px;
}

.posts-archive-header {
  margin-bottom: 56px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.post-card:hover { border-color: rgba(0,200,150,0.3); transform: translateY(-3px); }

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-no-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card-tag {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.post-card-tag.news-tag {
  color: var(--blue);
  background: rgba(78,158,255,0.1);
  border-color: rgba(78,158,255,0.2);
}

.post-card h3 {
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
}
.post-card h3 a { color: var(--text-primary); }
.post-card h3 a:hover { color: var(--accent); }

.post-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.post-card-footer {
  padding: 0 24px 24px;
}

.post-card-read-more {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-card-read-more:hover { color: var(--accent-hover); gap: 10px; }
.post-card-read-more::after { content: '→'; transition: margin var(--transition-fast); }

.posts-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.posts-pagination .page-numbers {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition-fast);
}
.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,200,150,0.06);
}

/* ============================================================
   SINGLE POST / NEWS
   ============================================================ */
.single-post-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.single-post-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.single-post-body { color: var(--text-secondary); line-height: 1.8; font-size: 16px; }
.single-post-body h2, .single-post-body h3 { margin-top: 2em; color: var(--text-primary); }
.single-post-body p { margin-bottom: 1.4em; }
.single-post-body a { color: var(--accent); }
.single-post-body ul, .single-post-body ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.single-post-body li { margin-bottom: 0.4em; }
.single-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2em 0;
  font-style: italic;
}
.single-post-body img { border-radius: var(--radius-md); margin: 2em 0; }

/* ============================================================
   EDUCATION / PDF LIBRARY
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .edu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .edu-grid { grid-template-columns: 1fr; } }

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.edu-card:hover { border-color: rgba(0,200,150,0.3); transform: translateY(-3px); }

.edu-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.edu-card-category {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.edu-card h3 {
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
}

.edu-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.edu-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.edu-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.25);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.edu-download-btn:hover {
  background: rgba(0,200,150,0.15);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,200,150,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 768px) { .about-values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.value-card .feature-icon { margin: 0 auto 16px; }

.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p  { font-size: 14px; margin: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding: 72px 0 100px;
  align-items: start;
}
@media (max-width: 768px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.contact-info-item a { color: var(--accent); }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-form-card h2 { font-size: 22px; margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(78,158,255,0.12);
}

.form-group select option { background: var(--bg-elevated); }

.form-group textarea { resize: vertical; min-height: 130px; }

.form-success {
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--accent);
  font-size: 15px;
  display: none;
  margin-top: 16px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   WORDPRESS GUTENBERG OVERRIDES
   ============================================================ */
.wp-block-image img { border-radius: var(--radius-md); }

.wp-block-quote {
  border-left: 3px solid var(--accent) !important;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2em 0;
}

.wp-block-separator { border-color: var(--border) !important; }

.wp-block-button__link {
  background: var(--accent) !important;
  color: #05080F !important;
  font-family: var(--font-brand) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 32px !important;
  border: none !important;
}
.wp-block-button__link:hover {
  background: var(--accent-hover) !important;
  box-shadow: var(--shadow-glow) !important;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}
.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

/* ============================================================
   BLOG PAGE — archive (page-blog.php)
   ============================================================ */
.blog-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.blog-wrap {
  padding: 48px 24px 80px;
}

/* Featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-featured:hover {
  border-color: rgba(0,200,150,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,200,150,0.15);
}
.blog-featured-img {
  position: relative;
  min-height: 320px;
  background: var(--bg-elevated) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.blog-featured-placeholder { font-size: 56px; }
.blog-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg-card));
}
.blog-featured-body {
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
}
.blog-featured-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.blog-featured-badge {
  font-family: var(--font-brand); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.25); padding: 2px 10px; border-radius: 10px;
}
.blog-featured-title {
  font-family: var(--font-brand); font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700; color: var(--text-primary); line-height: 1.2; margin: 0;
}
.blog-featured-excerpt {
  font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 200px; }
  .blog-featured-body { padding: 24px; }
  .blog-featured-overlay { background: linear-gradient(180deg, transparent 60%, var(--bg-card)); }
}

/* Category filter pills */
.blog-cats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.blog-cat-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.blog-cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.blog-cat-btn.active {
  background: rgba(0,200,150,0.1);
  border-color: var(--accent);
  color: var(--accent);
}
.blog-cat-count {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-elevated); padding: 1px 6px; border-radius: 8px;
}

/* Post card footer with author */
.post-card-footer {
  padding: 0 24px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.post-author-avatar {
  width: 24px !important; height: 24px !important;
  border-radius: 50%; object-fit: cover;
}

/* Empty state */
.blog-empty {
  text-align: center; padding: 100px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.blog-empty-icon { font-size: 56px; }
.blog-empty h3 { font-size: 24px; margin: 0; }
.blog-empty p { color: var(--text-muted); margin: 0; }

/* ============================================================
   SINGLE POST — single.php
   ============================================================ */
.single-post-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.single-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 13px;
  color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap;
}
.single-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.single-breadcrumb a:hover { color: var(--accent); }
.single-breadcrumb span { color: var(--border); }

.single-read-time {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); padding: 3px 10px;
  background: var(--bg-elevated); border-radius: 10px;
}

.single-post-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; line-height: 1.15;
  margin: 16px 0 24px;
  color: var(--text-primary);
}

.single-author-row {
  display: flex; align-items: center; gap: 12px;
}
.single-author-avatar {
  width: 40px !important; height: 40px !important;
  border-radius: 50%; object-fit: cover; border: 2px solid var(--border);
}
.single-author-name {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--text-primary);
}

.single-post-thumb {
  border-radius: var(--radius-xl); overflow: hidden;
  margin: 32px 0 0; border: 1px solid var(--border);
}

/* Two-column layout: content + sidebar */
.single-post-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-sidebar { display: none; } /* sidebar hides on mobile */
}

/* Post body typography */
.single-post-body { color: var(--text-secondary); font-size: 16px; line-height: 1.85; }
.single-post-body h2 { font-size: 26px; color: var(--text-primary); margin: 2em 0 0.6em; scroll-margin-top: 110px; }
.single-post-body h3 { font-size: 20px; color: var(--text-primary); margin: 1.6em 0 0.5em; scroll-margin-top: 110px; }
.single-post-body p  { margin: 0 0 1.4em; }
.single-post-body a  { color: var(--accent); }
.single-post-body ul, .single-post-body ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.single-post-body li { margin-bottom: 0.4em; }
.single-post-body img { border-radius: var(--radius-md); margin: 2em 0; max-width: 100%; }
.single-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 2em 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}
.single-post-body code {
  font-family: var(--font-mono); font-size: 0.875em;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2px 6px; color: var(--accent);
}
.single-post-body pre {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; overflow-x: auto; margin: 2em 0;
}
.single-post-body pre code { background: none; border: none; padding: 0; }

/* Tags */
.single-post-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 0;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.single-tag {
  font-size: 12px; font-family: var(--font-ui);
  color: var(--text-secondary); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px;
}

/* Share row */
.single-share-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px; flex-wrap: wrap;
}
.single-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; font-size: 13px; font-weight: 600;
  font-family: var(--font-ui);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-secondary);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.single-share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Prev/Next nav */
.single-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border);
}
.single-nav-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.single-nav-card:hover { border-color: rgba(0,200,150,0.3); transform: translateY(-2px); }
.single-nav-card--right { text-align: right; }
.single-nav-label { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.single-nav-title { font-family: var(--font-brand); font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
@media (max-width: 560px) { .single-post-nav { grid-template-columns: 1fr; } }

/* ── Sidebar ─────────────────────────────────────────────── */
.single-post-sidebar {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 20px;
}
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.sidebar-card-title {
  font-family: var(--font-brand); font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 16px;
}

/* Table of Contents */
#fy-toc a {
  display: block; font-size: 13px; color: var(--text-secondary);
  text-decoration: none; padding: 5px 0;
  border-left: 2px solid var(--border); padding-left: 12px;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
#fy-toc a:hover, #fy-toc a.active { color: var(--accent); border-left-color: var(--accent); }
#fy-toc .toc-h3 { padding-left: 24px; font-size: 12px; }

/* Related articles */
.sidebar-related { display: flex; flex-direction: column; gap: 16px; }
.sidebar-related-item {
  display: flex; gap: 12px; align-items: flex-start; text-decoration: none;
  transition: opacity 0.15s;
}
.sidebar-related-item:hover { opacity: 0.8; }
.sidebar-related-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  overflow: hidden; flex-shrink: 0; background: var(--bg-elevated);
}
.sidebar-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-related-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.sidebar-related-date  { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-family: var(--font-mono); }

/* Sidebar CTA */
.sidebar-cta-card { text-align: center; background: var(--bg-elevated); }
.sidebar-cta-icon { font-size: 32px; margin-bottom: 10px; }
.sidebar-cta-card h4 { font-size: 17px; margin: 0 0 8px; color: var(--text-primary); }
.sidebar-cta-card p  { font-size: 13px; color: var(--text-secondary); margin: 0 0 16px; }
