/* ============================================================
   MediHelp — Premium Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables: Dark Mode (Default) --- */
:root {
  --bg: #080c14;
  --bg-elevated: #0f1724;
  --bg-card: #131c2d;
  --bg-card-hover: #1a2640;
  --bg-glass: rgba(19, 28, 45, 0.7);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --accent-light: #22d3ee;
  --accent-dim: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-h: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(6, 182, 212, 0.4);
  --shadow: 0 4px 40px rgba(0,0,0,0.4);
  --shadow-accent: 0 0 40px rgba(6, 182, 212, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Light Mode --- */
[data-theme="light"] {
  --bg: #f0f4f8;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --accent: #0891b2;
  --accent-glow: rgba(8, 145, 178, 0.15);
  --accent-light: #06b6d4;
  --accent-dim: #0e7490;
  --text-h: #0f172a;
  --text-body: #334155;
  --text-muted: #94a3b8;
  --border: rgba(0,0,0,0.08);
  --border-accent: rgba(8, 145, 178, 0.5);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-accent: 0 0 40px rgba(8, 145, 178, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.8px;
  flex-shrink: 0;
}

.nav-brand img {
  height: 44px;
  width: 44px;
  border-radius: 4px; /* Square with slight rounding */
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Theme Toggle --- */
#theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   HERO SECTION — Compact
   ============================================================ */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin: 0 auto 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-h);
  letter-spacing: -1.5px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

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

/* --- Navigation Brand (Logo) --- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.8px;
  flex-shrink: 0;
}

.nav-brand img {
  height: 44px;
  width: 44px;
  border-radius: 4px; /* Square with slight rounding */
  object-fit: contain;
}

/* --- PDF Drop Zone (Audit) --- */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: var(--bg-elevated);
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 24px;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.drop-zone svg { color: var(--accent); margin-bottom: 12px; }
.drop-zone p { font-size: 14px; color: var(--text-body); font-weight: 600; margin: 0; }
.drop-zone .hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-body);
  border: 1px solid var(--border);
}

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

/* ============================================================
   TOOL SUITE (Tab UI)
   ============================================================ */
.suite-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 80px;
  box-shadow: var(--shadow);
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.02em;
}

.tab-btn:hover { color: var(--text-body); }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-card);
}

.tab-panel {
  display: none;
  padding: 40px 40px 48px;
}

.tab-panel.active { display: block; }

/* --- Global Region Toggle --- */
.region-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.region-bar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.region-pills {
  display: flex;
  gap: 8px;
}

.region-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.region-pill.active, .region-pill:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-light);
}

/* --- Search Box --- */
.search-box {
  position: relative;
  margin-bottom: 28px;
}

.search-box svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 16px 20px 16px 52px;
  border-radius: var(--radius);
  color: var(--text-h);
  font-size: 16px;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-accent);
  background: var(--bg-card);
}

/* --- Results Grid --- */
.results-area {
  min-height: 60px;
}

.result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.result-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.result-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.result-desc { font-size: 14px; color: var(--text-body); flex: 1; }

.result-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
  flex-shrink: 0;
}

.result-badge.carc { background: rgba(239,68,68,0.1); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.result-badge.rarc { background: rgba(245,158,11,0.1); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.result-badge.icd  { background: var(--accent-glow); color: var(--accent-light); border-color: var(--border-accent); }
.result-badge.uk   { background: rgba(63,131,248,0.1); color: #93c5fd; border-color: rgba(63,131,248,0.3); }
.result-badge.me   { background: rgba(167,139,250,0.1); color: #c4b5fd; border-color: rgba(167,139,250,0.3); }

/* Rx Cards */
.rx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.rx-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: block;
}

.rx-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

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

.rx-search { display: flex; gap: 12px; margin-bottom: 28px; }
.rx-search .search-input { flex: 1; }
.rx-search .btn { padding: 16px 24px; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-h);
  margin-bottom: 48px;
  text-align: center;
}

.faq-grid {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

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

.faq-item:hover { border-color: var(--border-accent); }

.faq-item.open { border-color: var(--border-accent); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  color: var(--text-h);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  transition: var(--transition);
}

.faq-q:hover { color: var(--accent); }

.faq-q svg {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-item.open .faq-a { display: block; }

/* ============================================================
   BILL AUDIT PAGE
   ============================================================ */
.audit-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 80px;
  box-shadow: var(--shadow);
}

.audit-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.audit-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.audit-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.bill-textarea {
  width: 100%;
  min-height: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text-h);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: var(--transition);
  display: block;
}

.bill-textarea::placeholder { color: var(--text-muted); }

.bill-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: var(--bg-card);
}

.audit-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.audit-results {
  margin-top: 32px;
  display: none;
}

.audit-results.visible { display: block; }

.audit-finding {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.audit-finding .finding-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.finding-icon.warn { background: rgba(245,158,11,0.1); color: var(--warning); }
.finding-icon.danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.finding-icon.ok { background: rgba(16,185,129,0.1); color: var(--success); }

/* ============================================================
   PROVIDER SEARCH
   ============================================================ */
.provider-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.provider-card:hover { border-color: var(--border-accent); }

.provider-name { font-size: 17px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.provider-npi { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.provider-specialty { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.provider-address { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-hero-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.blog-hero-post:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-accent); }

.blog-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.blog-hero-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.blog-hero-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-h);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.blog-hero-body p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

.blog-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: block;
}

.blog-card:hover { border-color: var(--border-accent); transform: translateY(-5px); box-shadow: var(--shadow-accent); }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; color: var(--text-h); margin-bottom: 10px; line-height: 1.35; }
.blog-card-body p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.blog-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   BLOG POST READER
   ============================================================ */
.post-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.post-header { margin-bottom: 32px; }
.post-header h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: var(--text-h); line-height: 1.15; letter-spacing: -1px; }

.post-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.post-stats-bar span { display: flex; align-items: center; gap: 6px; }

.post-body { max-width: 760px; }
.post-body h1, .post-body h2, .post-body h3 { color: var(--text-h); margin: 36px 0 14px; font-weight: 700; line-height: 1.3; }
.post-body h1 { font-size: 28px; }
.post-body h2 { font-size: 22px; }
.post-body h3 { font-size: 18px; color: var(--accent); }
.post-body p  { font-size: 17px; color: var(--text-body); margin-bottom: 22px; line-height: 1.8; }
.post-body img { width: 100%; border-radius: var(--radius); margin: 28px 0; border: 1px solid var(--border); }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 16px 24px; margin: 28px 0; background: var(--bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-body blockquote p { margin: 0; font-style: italic; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body li { color: var(--text-body); font-size: 16px; line-height: 1.8; }
.post-body strong { color: var(--text-h); }
.post-body code { font-family: var(--font-mono); background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; font-size: 14px; color: var(--accent); }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* Suggested Posts */
.suggested-section { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  margin-top: 0;
}

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

.footer-brand h3 { font-size: 22px; font-weight: 800; color: var(--text-h); margin-bottom: 12px; }
.footer-brand p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { text-decoration: none; font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.status-msg {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 30px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-hero-post { grid-template-columns: 1fr; }
  .blog-hero-img { height: 240px; }
}

@media (max-width: 600px) {
  .tab-panel { padding: 24px 20px 32px; }
  .hero { padding: 40px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .audit-area { padding: 24px; }
  .nav-links a { font-size: 13px; padding: 6px 10px; }
}
