/* =============================================
   LifeIndexed — Design System
   Font: Inter (Google Fonts)
   ============================================= */

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

:root {
  --brand:      #4f46e5;
  --brand-dk:   #3730a3;
  --brand-lt:   #eef2ff;
  --accent:     #0ea5e9;
  --accent-lt:  #e0f2fe;
  --success:    #10b981;
  --text:       #0f172a;
  --text-md:    #334155;
  --muted:      #64748b;
  --bg:         #f8fafc;
  --card:       #ffffff;
  --border:     #e2e8f0;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --max-w:      960px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-dk); }

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

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; color: var(--text); }
h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--text); }
h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
p  { color: var(--text-md); }

/* =============================================
   LAYOUT
   ============================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { display: flex; align-items: center; flex-shrink: 0; }
.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--brand-lt); color: var(--brand); }
.nav-links a.active { background: var(--brand-lt); color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* =============================================
   PAGE TITLE BLOCK
   ============================================= */
.page-title-block { margin-bottom: 1.75rem; }
.page-title-block h1 { margin-bottom: 0.35rem; }
.page-subtitle { font-size: 0.95rem; color: var(--muted); }
.data-source-note { font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; padding: .4rem .75rem; background: var(--surface); border-left: 3px solid var(--border); border-radius: 0 6px 6px 0; }

/* ── Search bar ────────────────────────────────────────────────────────────── */
.hero-search-wrap { position: relative; width: 100%; max-width: 620px; margin: 1.5rem auto 1.5rem; }
.search-bar-wrap  { display: flex; gap: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.18); }
.search-input     { flex: 1; padding: .85rem 1.2rem; font-size: 1rem; font-family: inherit; border: none; outline: none; background: #fff; color: #1e293b; }
.search-input-lg  { padding: 1rem 1.4rem; font-size: 1.05rem; border-radius: 14px 0 0 14px; }
.search-btn       { padding: .85rem 1.5rem; background: #4f46e5; color: #fff; border: none; font-weight: 700; font-size: .95rem; cursor: pointer; font-family: inherit; transition: background .2s; white-space: nowrap; }
.search-btn:hover { background: #4338ca; }
.search-page-form .search-input { border-radius: 14px 0 0 14px; border: 1.5px solid var(--border); border-right: none; }
.search-page-form .search-btn   { border-radius: 0 14px 14px 0; }

/* ── Autocomplete dropdown ─────────────────────────────────────────────────── */
.search-dropdown  { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.12); list-style: none; margin: 0; padding: .4rem 0; z-index: 999; max-height: 480px; overflow-y: auto; }
.sd-group-label   { padding: .45rem 1rem .2rem; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sd-item          { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; text-decoration: none; color: var(--text); gap: .5rem; }
.sd-item:hover, .sd-item:focus { background: #f1f5f9; outline: none; }
.sd-item-label    { font-size: .92rem; font-weight: 500; }
.sd-item-sub      { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.sd-empty         { padding: .75rem 1rem; color: var(--muted); font-size: .9rem; }
.sd-footer        { border-top: 1px solid var(--border); margin-top: .3rem; }
.sd-footer a      { display: block; padding: .6rem 1rem; font-size: .85rem; color: #4f46e5; font-weight: 600; text-decoration: none; }
.sd-footer a:hover { background: #f1f5f9; }

/* ── Search results page ───────────────────────────────────────────────────── */
.search-results-section  { margin-bottom: 2rem; }
.search-results-heading  { font-size: 1.05rem; font-weight: 700; color: var(--sec-color, #4f46e5); margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--sec-color, #4f46e5); display: inline-block; }
.search-results-grid     { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.search-result-card      { display: flex; flex-direction: column; gap: .2rem; padding: .7rem 1rem; background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.search-result-card:hover { border-color: var(--sec-color, #4f46e5); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.src-title { font-size: .9rem; font-weight: 600; }
.src-meta  { font-size: .78rem; color: var(--muted); }

/* =============================================
   YEAR TABS
   ============================================= */
.year-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.year-tab {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  transition: all .15s;
}
.year-tab:hover { border-color: var(--brand); color: var(--brand); }
.year-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 8px rgba(79,70,229,.3); }

/* =============================================
   STATS GRID
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card.stat-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(79,70,229,.25);
}
.stat-card.stat-primary .stat-label,
.stat-card.stat-primary .stat-value,
.stat-card.stat-primary .stat-period { color: rgba(255,255,255,0.9); }
.stat-card.stat-primary .stat-value { color: #fff; }
.stat-card.stat-wide { grid-column: 1 / -1; }
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.stat-period { font-size: 0.75rem; color: var(--muted); }

/* =============================================
   AD SLOTS
   ============================================= */
.ad-slot {
  min-height: 90px;
  margin: 1.75rem 0;
  background: linear-gradient(135deg, #f1f5f9 0%, #e8edf5 100%);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =============================================
   CHART SECTIONS
   ============================================= */
.chart-section, .comparison-section { margin: 2.25rem 0; }
.section-header { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 0.2rem; }
.section-header p { font-size: 0.85rem; color: var(--muted); }

.chart-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.chart-wrapper canvas { max-height: 280px; }

/* =============================================
   DATA TABLE
   ============================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.data-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-md); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--brand-lt); }
.row-highlight td { background: var(--brand-lt) !important; color: var(--brand-dk); font-weight: 700; }
.row-highlight td a { color: var(--brand-dk); }

/* =============================================
   FAQ
   ============================================= */
.faq-section { margin: 2.25rem 0; }
.faq-section > h2 { margin-bottom: 1rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item h3 { color: var(--text); font-size: 0.95rem; margin-bottom: 0.4rem; }
.faq-item p { color: var(--muted); font-size: 0.875rem; }

/* =============================================
   RELATED / CROSS-LINKS
   ============================================= */
.related-section, .crosslink-section, .famous-section { margin: 2.25rem 0; }
.related-section > h2,
.crosslink-section > h2,
.famous-section > h2 { margin-bottom: 0.85rem; }

.related-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related-list li a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-md);
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.related-list li a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-lt);
  box-shadow: 0 2px 8px rgba(79,70,229,.15);
}

/* =============================================
   BABY NAMES
   ============================================= */
.name-tagline { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.name-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.name-list li a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-md);
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.name-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}

/* =============================================
   HOMEPAGE — HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 50%, #0c4a6e 100%);
  padding: 5rem 1.25rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(99,102,241,.25) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(14,165,233,.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.04em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #a5b4fc, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* =============================================
   SEARCH BAR
   ============================================= */
.search-form { width: 100%; }
.search-bar {
  display: flex;
  background: #fff;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  max-width: 600px;
  margin: 0 auto 0.85rem;
}
.search-select {
  border: none;
  outline: none;
  padding: 0 1.1rem 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  background: #eef2ff;
  border-right: 1px solid #e0e7ff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  min-width: 140px;
  font-family: var(--font);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  min-width: 0;
}
.search-input::placeholder { color: #94a3b8; }
.search-btn {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 1.75rem;
  cursor: pointer;
  transition: opacity .15s;
  font-family: var(--font);
  white-space: nowrap;
}
.search-btn:hover { opacity: .9; }
.search-hint { color: rgba(255,255,255,.55); font-size: 0.8rem; }
.search-hint em { font-style: normal; font-weight: 600; color: rgba(255,255,255,.85); }

/* =============================================
   HOMEPAGE — STATS BAR
   ============================================= */
.stats-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stats-bar-item { text-align: center; }
.stats-bar-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
  display: block;
}
.stats-bar-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* =============================================
   HOMEPAGE — MODULE CARDS
   ============================================= */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  text-decoration: none;
}
.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(79,70,229,.3);
}
.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
.module-icon.salary  { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.module-icon.cost    { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.module-icon.name    { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.module-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.module-card p { font-size: 0.85rem; color: var(--muted); flex: 1; margin: 0; line-height: 1.5; }
.module-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.module-cta::after { content: '→'; transition: transform .15s; }
.module-card:hover .module-cta::after { transform: translateX(4px); }

/* =============================================
   HOMEPAGE — POPULAR GRIDS
   ============================================= */
.popular-section { margin-bottom: 2.75rem; }
.popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.popular-header h2 { font-size: 1rem; font-weight: 700; }
.popular-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.5rem;
}
.popular-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-md);
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.popular-grid li a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-lt);
  box-shadow: 0 2px 8px rgba(79,70,229,.12);
}
.pop-value { font-size: 0.75rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.pop-origin {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid var(--border);
}
.name-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* =============================================
   HOMEPAGE — ABOUT BLURB
   ============================================= */
.about-blurb {
  background: linear-gradient(135deg, var(--brand-lt) 0%, var(--accent-lt) 100%);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.about-blurb h2 { font-size: 1rem; margin-bottom: 0.6rem; color: var(--brand-dk); }
.about-blurb p { color: var(--text-md); font-size: 0.9rem; margin-bottom: 0.6rem; }
.about-blurb p:last-child { margin-bottom: 0; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0f172a;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo { text-decoration: none; }
.footer-tagline { font-size: 0.85rem; color: #64748b; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #475569; margin-bottom: 0.25rem; }
.footer-col a { font-size: 0.875rem; color: #94a3b8; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: #475569; }

/* =============================================
   INNER PAGE — SALARY / COST / NAME
   ============================================= */
.page-salary .container,
.page-cost .container,
.page-name .container { padding-top: 1.75rem; }

/* =============================================
   LISTING PAGES
   ============================================= */
.listing-hero {
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.salary-hero { background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%); }
.cost-hero   { background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #0f766e 100%); }

/* ── Cost city cards (country hub) ─────────────────────────────────────────── */
.cost-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.cost-city-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s, transform .12s;
}
.cost-city-card:hover {
  box-shadow: 0 6px 24px rgba(79,70,229,.1);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.cost-city-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .85rem;
}
.cost-city-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
  margin-bottom: .9rem;
}
.cost-city-stat {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
}
.cost-stat-icon { font-size: 1rem; }
.cost-stat-label { color: var(--muted); flex: 1; }
.cost-stat-val { font-weight: 700; color: var(--text); white-space: nowrap; }
.cost-city-cta {
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: .25rem;
}

/* ── Monthly budget section ─────────────────────────────────────────────────── */
.cost-budget-section { margin: 2.5rem 0; }
.cost-budget-section > h2 { margin-bottom: .35rem; }
.section-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.budget-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.budget-icon { font-size: 2rem; margin-bottom: .5rem; }
.budget-label { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.budget-amount { font-size: 1.75rem; font-weight: 800; color: var(--brand); margin-bottom: 1rem; }
.budget-breakdown { border-top: 1px solid var(--border); padding-top: .85rem; display: flex; flex-direction: column; gap: .45rem; }
.budget-breakdown div { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-md); }
.budget-breakdown div span { font-weight: 600; color: var(--text); }
@media(max-width:600px) {
  .budget-grid { grid-template-columns: 1fr; }
  .cost-city-grid { grid-template-columns: 1fr; }
  .cost-city-stats { grid-template-columns: 1fr 1fr; }
}
.name-hero   { background: linear-gradient(135deg, #7c2d12 0%, #9a3412 60%, #c2410c 100%); }

.listing-hero-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.listing-hero h1 { color: #fff; font-size: 2.25rem; margin-bottom: 0.75rem; }
.listing-hero p  { color: rgba(255,255,255,.75); font-size: 1rem; }

.listing-section { margin-bottom: 3rem; }
.listing-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

/* ── Year filter ──────────────────────────────────────────────────────────── */
.year-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1.75rem;
  padding: .75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.year-filter-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: .25rem;
}
.year-tab {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg);
  color: var(--text-md);
  border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.year-tab:hover { background: var(--brand-lt); color: var(--brand); border-color: var(--brand); }
.year-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
@media(max-width:480px) { .year-filter { gap: .4rem; } .year-tab { font-size: .8rem; padding: .28rem .7rem; } }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.listing-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.listing-card-top { display: flex; flex-direction: column; gap: 0.15rem; }
.listing-card-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.listing-card-sub   { font-size: 0.75rem; color: var(--muted); }
.listing-card-value { font-size: 1.05rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; margin-top: 0.25rem; }
.listing-card-period { font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-left: 2px; }

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-md);
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.tag-item:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-lt); }
.tag-count { font-size: 0.72rem; color: var(--muted); font-weight: 500; background: var(--bg); padding: 0.1rem 0.45rem; border-radius: 100px; }

/* Name listing grid */
.names-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}
.name-listing-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.name-listing-card.female:hover { border-color: #ec4899; background: #fdf2f8; }
.name-listing-card.male:hover   { border-color: var(--accent); background: var(--accent-lt); }
.name-listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.name-listing-name   { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.name-listing-origin { font-size: 0.72rem; color: var(--muted); }

/* Name individual page */
.name-page-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.name-big-letter {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(79,70,229,.3);
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .module-cards { grid-template-columns: 1fr; }
  .stats-bar-inner { gap: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 0.75rem 1rem; box-shadow: var(--shadow); }
  .nav-links.open, .site-nav.open .nav-links { display: flex; }
  .nav-toggle { display: flex; }
  .search-bar { border-radius: var(--radius); flex-wrap: wrap; }
  .search-select { min-width: 100%; border-right: none; border-bottom: 1px solid #e0e7ff; border-radius: 0; }
  .search-input { flex: 1; }
  .search-bar .search-btn { width: 100%; padding: 0.85rem; border-radius: 0; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .popular-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .data-table { font-size: 0.78rem; width: 100%; table-layout: fixed; }
  .data-table th, .data-table td { padding: 0.45rem 0.5rem; white-space: normal; word-break: break-word; overflow-wrap: break-word; }
}

/* =============================================
   HOMEPAGE v2 — HERO
   ============================================= */
.hp-hero {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 45%, #24243e 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: visible;
}
.hp-hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: #4f46e5; top: -160px; left: -120px; animation-delay: 0s; }
.blob-2 { width: 420px; height: 420px; background: #0ea5e9; bottom: -140px; right: -80px; animation-delay: -3s; }
.blob-3 { width: 300px; height: 300px; background: #f59e0b; top: 40%; left: 55%; animation-delay: -5s; }
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.08); }
}
.hp-hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}
.hp-badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.4); }
}

.hp-title {
  font-size: 3.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.04em;
}
.hp-title-salary {
  background: linear-gradient(90deg, #a5b4fc, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hp-title-cost {
  background: linear-gradient(90deg, #6ee7b7, #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hp-title-names {
  background: linear-gradient(90deg, #fcd34d, #fb923c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hp-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 2.75rem;
  line-height: 1.7;
}

.hp-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  min-width: 190px;
  transition: transform .2s, box-shadow .2s;
  text-align: left;
}
.hp-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.hp-cta-icon { font-size: 1.5rem; flex-shrink: 0; }
.hp-cta strong { display: block; font-size: 0.95rem; font-weight: 700; color: #fff; }
.hp-cta small  { display: block; font-size: 0.75rem; opacity: .75; color: #fff; }
.hp-cta-arrow  { margin-left: auto; font-size: 1.1rem; color: rgba(255,255,255,.6); flex-shrink: 0; }
.hp-cta-salary { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 8px 24px rgba(79,70,229,.4); }
.hp-cta-cost   { background: linear-gradient(135deg, #059669, #0d9488); box-shadow: 0 8px 24px rgba(5,150,105,.4); }
.hp-cta-names  { background: linear-gradient(135deg, #d97706, #dc2626); box-shadow: 0 8px 24px rgba(217,119,6,.4); }

/* ═══ TRUST BAR ═══ */
.hp-trust {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
}
.hp-trust-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hp-trust-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.hp-trust-badges { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hp-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
}
.hp-trust-sep { color: var(--border); font-size: 1.1rem; }

/* ═══ FEATURE STRIP ═══ */
.hp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.hp-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-right: 1px solid var(--border);
}
.hp-feature:last-child { border-right: none; }
.hp-feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hp-feature strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.hp-feature span   { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* ═══ MAIN CONTAINER ═══ */
.hp-container { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

/* ═══ SECTIONS ═══ */
.hp-section {
  margin-bottom: 2rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border-top: 4px solid;
  overflow: hidden;
}
.hp-section-salary   { border-top-color: #4f46e5; }
.hp-section-cost     { border-top-color: #059669; }
.hp-section-names    { border-top-color: #d97706; }
.hp-section-property { border-top-color: #0284c7; }
.hp-section-tax      { border-top-color: #7c3aed; }
.hp-section-health   { border-top-color: #e11d48; }

.hp-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hp-section-badge {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  width: fit-content;
}
.hp-section-badge.salary   { background: #eef2ff; color: #4f46e5; }
.hp-section-badge.cost     { background: #ecfdf5; color: #059669; }
.hp-section-badge.names    { background: #fff7ed; color: #d97706; }
.hp-section-badge.property { background: #e0f2fe; color: #0284c7; }
.hp-section-badge.tax      { background: #f3e8ff; color: #7c3aed; }
.hp-section-badge.health   { background: #ffe4e6; color: #e11d48; }

.hp-section-head h2 {
  grid-column: 1;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.25;
}
.hp-section-head h2 span { font-style: italic; }
.hp-section-salary   h2 span { color: #4f46e5; }
.hp-section-cost     h2 span { color: #059669; }
.hp-section-names    h2 span { color: #d97706; }
.hp-section-property h2 span { color: #0284c7; }
.hp-section-tax      h2 span { color: #7c3aed; }
.hp-section-health   h2 span { color: #e11d48; }

.hp-section-head p {
  grid-column: 1;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}
.hp-section-link {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 2px solid;
  transition: all .18s;
}
.salary-link { color: #4f46e5; border-color: #c7d2fe; background: #eef2ff; }
.salary-link:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.cost-link   { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.cost-link:hover   { background: #059669; color: #fff; border-color: #059669; box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.names-link  { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.names-link:hover  { background: #d97706; color: #fff; border-color: #d97706; box-shadow: 0 4px 12px rgba(217,119,6,.3); }

/* ═══ CARDS ═══ */
.hp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Section footer — "View all" link */
.hp-section-footer { margin-top: 1.5rem; text-align: center; }

.hp-section-viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 2px solid;
  transition: all .18s;
}
.hp-section-salary   .hp-section-viewall { color: #4f46e5; border-color: #c7d2fe; background: #eef2ff; }
.hp-section-salary   .hp-section-viewall:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; box-shadow: 0 4px 14px rgba(79,70,229,.3); }
.hp-section-cost     .hp-section-viewall { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.hp-section-cost     .hp-section-viewall:hover { background: #059669; color: #fff; border-color: #059669; box-shadow: 0 4px 14px rgba(5,150,105,.3); }
.hp-section-names    .hp-section-viewall { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.hp-section-names    .hp-section-viewall:hover { background: #d97706; color: #fff; border-color: #d97706; box-shadow: 0 4px 14px rgba(217,119,6,.3); }
.hp-section-property .hp-section-viewall { color: #0284c7; border-color: #bae6fd; background: #e0f2fe; }
.hp-section-property .hp-section-viewall:hover { background: #0284c7; color: #fff; border-color: #0284c7; box-shadow: 0 4px 14px rgba(2,132,199,.3); }
.hp-section-tax      .hp-section-viewall { color: #7c3aed; border-color: #ddd6fe; background: #f3e8ff; }
.hp-section-tax      .hp-section-viewall:hover { background: #7c3aed; color: #fff; border-color: #7c3aed; box-shadow: 0 4px 14px rgba(124,58,237,.3); }
.hp-section-health   .hp-section-viewall { color: #e11d48; border-color: #fecdd3; background: #ffe4e6; }
.hp-section-health   .hp-section-viewall:hover { background: #e11d48; color: #fff; border-color: #e11d48; box-shadow: 0 4px 14px rgba(225,29,72,.3); }

/* Cost value badge */
.cost-value { color: #059669; background: #ecfdf5; padding: 0.2rem 0.5rem; border-radius: 6px; text-align: right; font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.cost-value small { display: block; font-size: 0.65rem; font-weight: 600; opacity: .75; margin-top: 1px; }

.hp-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.hp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  opacity: 0;
  transition: opacity .2s;
}
.hp-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.hp-card:hover::before { opacity: 1; }

.hp-card-salary::before  { background: #4f46e5; }
.hp-card-cost::before    { background: #059669; }
.hp-card-name::before    { background: #d97706; }
.hp-card-property::before{ background: #0284c7; }
.hp-card-tax::before     { background: #7c3aed; }
.hp-card-health::before  { background: #e11d48; }

.hp-card-flag { font-size: 1.65rem; flex-shrink: 0; line-height: 1; }
.hp-card-body { flex: 1; min-width: 0; }
.hp-card-title { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-card-sub   { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 0.1rem; }
.hp-card-arrow { color: var(--muted); font-size: 0.9rem; flex-shrink: 0; }
.hp-card-value { font-size: 0.82rem; font-weight: 800; white-space: nowrap; flex-shrink: 0; }

.hp-card-salary:hover { border-color: #a5b4fc; background: #eef2ff; }
.hp-card-salary:hover .hp-card-title { color: #4f46e5; }
.salary-value { color: #4f46e5; background: #eef2ff; padding: 0.25rem 0.6rem; border-radius: 6px; font-size: 0.85rem; }

.hp-card-cost:hover { border-color: #6ee7b7; background: #f0fdf8; }
.hp-card-cost:hover .hp-card-title { color: #059669; }

.hp-card-property:hover { border-color: #7dd3fc; background: #f0f9ff; }
.hp-card-property:hover .hp-card-title { color: #0284c7; }
.property-value { color: #0284c7; background: #e0f2fe; padding: 0.25rem 0.6rem; border-radius: 6px; }
.property-value small { font-size: 0.68rem; font-weight: 600; opacity: .8; margin-left: 1px; }

.hp-card-tax:hover { border-color: #c4b5fd; background: #faf5ff; }
.hp-card-tax:hover .hp-card-title { color: #7c3aed; }
.tax-value { color: #7c3aed; background: #f3e8ff; padding: 0.25rem 0.6rem; border-radius: 6px; text-align: right; }
.tax-value small { display: block; font-size: 0.65rem; font-weight: 600; opacity: .75; margin-top: 1px; }

.hp-card-health:hover { border-color: #fda4af; background: #fff1f2; }
.hp-card-health:hover .hp-card-title { color: #e11d48; }
.health-value { background: #f0fdf4; padding: 0.25rem 0.6rem; border-radius: 6px; text-align: right; font-size: 1rem; font-weight: 800; }
.health-value small { display: block; font-size: 0.65rem; font-weight: 600; opacity: .75; margin-top: 1px; }

.property-link { color: #0284c7; border-color: #bae6fd; background: #e0f2fe; }
.property-link:hover { background: #0284c7; color: #fff; border-color: #0284c7; box-shadow: 0 4px 12px rgba(2,132,199,.3); }
.tax-link { color: #7c3aed; border-color: #ddd6fe; background: #f3e8ff; }
.tax-link:hover { background: #7c3aed; color: #fff; border-color: #7c3aed; box-shadow: 0 4px 12px rgba(124,58,237,.3); }
.health-link { color: #e11d48; border-color: #fecdd3; background: #ffe4e6; }
.health-link:hover { background: #e11d48; color: #fff; border-color: #e11d48; box-shadow: 0 4px 12px rgba(225,29,72,.3); }

.hp-name-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900;
  color: #fff; flex-shrink: 0;
}
.hp-card-name.female .hp-name-avatar { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.hp-card-name.male   .hp-name-avatar { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.hp-card-name        .hp-name-avatar { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.hp-card-name.female:hover { border-color: #f9a8d4; background: #fdf2f8; }
.hp-card-name.male:hover   { border-color: #93c5fd; background: #eff6ff; }
.hp-name-gender { font-size: 1rem; flex-shrink: 0; color: var(--muted); }

/* ═══ HOW IT WORKS ═══ */
.hp-how {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid #e0e7ff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
}
.hp-how-title { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 2rem; color: var(--text); }
.hp-how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.hp-how-step { flex: 1; text-align: center; padding: 0 1rem; }
.hp-how-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #c7d2fe, #a5b4fc);
  align-self: center;
  margin-top: -2rem;
  flex-shrink: 0;
}
.hp-how-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.hp-how-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.hp-how-step p  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ═══ ABOUT ═══ */
.hp-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}
.hp-about-text h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.hp-about-text p  { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.5rem; }
.hp-about-text em { font-style: italic; color: var(--text-md); }
.hp-about-text strong { color: var(--brand); }

.hp-about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hp-about-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}
.hp-about-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -.03em;
}
.hp-about-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ═══ HOMEPAGE RESPONSIVE ═══ */
@media (max-width: 900px) {
  .hp-features { grid-template-columns: repeat(2, 1fr); }
  .hp-feature:nth-child(2) { border-right: none; }
  .hp-feature:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .hp-feature:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .hp-cards { grid-template-columns: repeat(2, 1fr); }
  .hp-about { grid-template-columns: 1fr; }
  .hp-section { padding: 1.5rem 1.5rem 1.25rem; }
}
@media (max-width: 720px) {
  .hp-title { font-size: 2.2rem; }
  .hp-cta-row { flex-direction: column; align-items: center; }
  .hp-cta { width: 100%; max-width: 320px; }
  .hp-section-head { grid-template-columns: 1fr; }
  .hp-section-link { grid-column: 1; grid-row: auto; width: fit-content; }
  .hp-section-head h2 { font-size: 1.3rem; }
  .hp-how-steps { flex-direction: column; align-items: center; gap: 1.5rem; }
  .hp-how-connector { width: 2px; height: 30px; background: linear-gradient(180deg, #c7d2fe, #a5b4fc); }
}
@media (max-width: 560px) {
  .hp-features { grid-template-columns: 1fr; }
  .hp-feature { border-right: none; border-bottom: 1px solid var(--border); }
  .hp-cards { grid-template-columns: 1fr; }
  .hp-about-stats { grid-template-columns: 1fr 1fr; }
  .hp-trust-inner { flex-direction: column; gap: 0.5rem; }
}

/* =============================================
   HOMEPAGE — HERO STATS ROW
   ============================================= */
.hp-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1rem 2rem;
  width: fit-content;
  margin: 0 auto;
  flex-wrap: wrap;
}
.hp-hero-stat { text-align: center; padding: 0 1.5rem; }
.hp-hero-stat span { display: block; font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.hp-hero-stat small { display: block; font-size: 0.72rem; color: rgba(255,255,255,.6); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-top: 0.1rem; }
.hp-hero-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* =============================================
   HOMEPAGE — AD SLOTS
   ============================================= */
.hp-ad-wrap {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  text-align: center;
}
.hp-ad-inline {
  text-align: center;
  margin: 2rem 0;
}
.ad-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.ad-leaderboard {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
}
.ad-rectangle {
  min-height: 280px;
  max-width: 336px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
}
.ad-banner {
  min-height: 60px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* =============================================
   HOMEPAGE — 7 MODULES GRID
   ============================================= */
.hp-modules { margin-bottom: 3.5rem; }
.hp-modules-header { text-align: center; margin-bottom: 2rem; }
.hp-modules-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.4rem; }
.hp-modules-header p  { color: var(--muted); font-size: 0.9rem; }

.hp-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.hp-mod {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all .2s;
  text-decoration: none;
  min-width: 0;
}
.hp-mod-live:hover {
  border-color: #a5b4fc;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.hp-mod-soon {
  opacity: 0.72;
  cursor: default;
  background: #fafafa;
}
.hp-mod-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hp-mod-body { flex: 1; min-width: 0; }
.hp-mod-title { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.hp-mod-desc  { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-mod-meta  { display: block; font-size: 0.68rem; color: #94a3b8; margin-top: 0.2rem; }

.hp-mod-badge {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}
.hp-mod-badge.live { background: #dcfce7; color: #16a34a; }
.hp-mod-badge.soon { background: #fef3c7; color: #d97706; }

/* =============================================
   HOMEPAGE — REGIONAL COVERAGE
   ============================================= */
.hp-regions { margin-bottom: 3.5rem; }
.hp-regions-header { text-align: center; margin-bottom: 1.5rem; }
.hp-regions-header h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; }
.hp-regions-header p  { color: var(--muted); font-size: 0.875rem; }

.hp-regions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.hp-region {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 0.75rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.hp-region:hover {
  border-color: var(--brand);
  background: var(--brand-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hp-region-emoji { font-size: 1.75rem; line-height: 1; }
.hp-region-name  { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.hp-region-sub   { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }

/* =============================================
   FOOTER — UPDATES
   ============================================= */
.footer-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.footer-regions span {
  font-size: 0.75rem;
  color: #475569;
  background: #1e293b;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.footer-soon {
  font-size: 0.875rem;
  color: #475569;
  display: block;
  padding: 0.1rem 0;
}
.footer-inner { grid-template-columns: 1.8fr 2fr; }
.footer-cols  { grid-template-columns: repeat(4, 1fr); }

/* =============================================
   RESPONSIVE — NEW SECTIONS
   ============================================= */
@media (max-width: 1024px) {
  .hp-modules-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-regions-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hp-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-regions-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-hero-stats { gap: 0; padding: 0.75rem 1rem; }
  .hp-hero-stat { padding: 0 0.85rem; }
  .hp-hero-stat span { font-size: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hp-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-regions-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-hero-stat-div { display: none; }
  .hp-hero-stats { gap: 0.75rem; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ── NAME MODULE — REGION & ORIGIN GRIDS ─────────────────────────────────── */
.name-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.name-region-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.name-region-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79,70,229,.12);
}
.name-region-emoji { font-size: 1.9rem; margin-bottom: .2rem; }
.name-region-label { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.name-region-desc  { font-size: .82rem; color: var(--text-md); line-height: 1.4; }
.name-region-meta  { font-size: .78rem; color: var(--brand); font-weight: 600; margin-top: .3rem; }

.origin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .9rem;
  margin-bottom: 2rem;
}
.origin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: all .18s;
}
.origin-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(79,70,229,.09);
  transform: translateY(-1px);
}
.origin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .6rem;
}
.origin-card-label  { font-size: .97rem; font-weight: 700; color: var(--text); }
.origin-card-count  { font-size: .75rem; font-weight: 700; color: var(--brand); background: rgba(79,70,229,.1); padding: .18rem .5rem; border-radius: 20px; white-space: nowrap; }
.origin-card-country { font-size: .76rem; color: var(--text-muted); margin-bottom: .65rem; }
.origin-card-samples { display: flex; gap: .3rem; flex-wrap: wrap; }
.origin-card-sample  { font-size: .75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: .12rem .45rem; color: var(--text-md); }

/* ── NAME GRID CARDS ─────────────────────────────────────────────────────── */
.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .8rem;
}
.name-grid-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top-width: 3px;
  border-radius: 12px;
  padding: .9rem .85rem;
  text-decoration: none;
  color: inherit;
  transition: all .18s;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.name-grid-card.female { border-top-color: #e879a0; }
.name-grid-card.male   { border-top-color: #60a5fa; }
.name-grid-card.neutral{ border-top-color: #34d399; }
.name-grid-card:hover  { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.name-grid-card.female:hover { border-color: #e879a0; }
.name-grid-card.male:hover   { border-color: #60a5fa; }

.name-grid-letter {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800;
}
.name-grid-card.female .name-grid-letter { background: #fdf2f8; color: #be185d; }
.name-grid-card.male   .name-grid-letter { background: #eff6ff; color: #1d4ed8; }
.name-grid-card.neutral .name-grid-letter { background: #f0fdf4; color: #166534; }

.name-grid-name    { font-size: .93rem; font-weight: 700; color: var(--text); }
.name-grid-meaning { font-size: .73rem; color: var(--text-muted); line-height: 1.35; }

.name-gender-badge {
  display: inline-block; font-size: .69rem; font-weight: 600;
  padding: .12rem .42rem; border-radius: 20px; margin-top: .1rem;
}
.name-gender-badge.female  { background: #fdf2f8; color: #be185d; }
.name-gender-badge.male    { background: #eff6ff; color: #1d4ed8; }
.name-gender-badge.neutral { background: #f0fdf4; color: #166534; }

/* ── GENDER FILTER TABS ──────────────────────────────────────────────────── */
.gender-filter {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  margin: .75rem 0 1.5rem; padding: .6rem .9rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
}
.gender-tab {
  display: inline-block; padding: .28rem .8rem; border-radius: 20px;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  background: var(--bg); color: var(--text-md); border: 1px solid var(--border); transition: all .15s;
}
.gender-tab:hover            { border-color: var(--brand); color: var(--brand); }
.gender-tab.active           { background: var(--brand); color: #fff; border-color: var(--brand); }
.gender-tab.female.active    { background: #be185d; border-color: #be185d; }
.gender-tab.male.active      { background: #1d4ed8; border-color: #1d4ed8; }

/* ── NAME DETAIL PAGE ────────────────────────────────────────────────────── */
.name-detail-header {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1.75rem; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 1.5rem;
}
.name-detail-big-letter {
  width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 900;
}
.name-detail-big-letter.female  { background: #fdf2f8; color: #be185d; }
.name-detail-big-letter.male    { background: #eff6ff; color: #1d4ed8; }
.name-detail-big-letter.neutral { background: #f0fdf4; color: #166534; }
.name-detail-title   { font-size: 1.9rem; font-weight: 800; color: var(--text); margin: 0; }
.name-detail-tagline { color: var(--text-md); margin: .3rem 0 0; font-size: .9rem; }

/* ── RELATED NAMES GRID ──────────────────────────────────────────────────── */
.related-names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .55rem;
}
.related-name-item {
  display: block; padding: .45rem .65rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px; text-decoration: none;
  color: var(--text); font-size: .83rem; font-weight: 600; text-align: center;
  transition: all .15s;
}
.related-name-item:hover            { border-color: var(--brand); color: var(--brand); }
.related-name-item.female:hover     { border-color: #be185d; color: #be185d; }
.related-name-item.male:hover       { border-color: #1d4ed8; color: #1d4ed8; }

/* ── NAME MODULE RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .name-region-grid { grid-template-columns: repeat(2, 1fr); }
  .origin-grid      { grid-template-columns: repeat(2, 1fr); }
  .name-grid        { grid-template-columns: repeat(2, 1fr); }
  .related-names-grid { grid-template-columns: repeat(3, 1fr); }
  .name-detail-header { padding: 1.25rem; gap: 1rem; }
  .name-detail-big-letter { width: 60px; height: 60px; font-size: 1.8rem; }
  .name-detail-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .name-region-grid { grid-template-columns: repeat(2, 1fr); }
  .origin-grid      { grid-template-columns: repeat(2, 1fr); }
  .name-grid        { grid-template-columns: repeat(2, 1fr); }
  .related-names-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── NEW MODULE HEROES ───────────────────────────────────────────────────── */
.property-hero { background: linear-gradient(135deg, #0369a1 0%, #0284c7 60%, #0ea5e9 100%); }
.tax-hero      { background: linear-gradient(135deg, #7c3aed 0%, #a21caf 60%, #c026d3 100%); }
.health-hero   { background: linear-gradient(135deg, #be123c 0%, #e11d48 60%, #f43f5e 100%); }

/* ── MODULE REGION GRID (shared by property/tax/health listing) ──────────── */
.module-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.module-region-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 1.4rem 1.25rem;
  text-decoration: none; color: inherit;
  transition: all .2s; display: flex; flex-direction: column; gap: .3rem;
}
.module-region-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(79,70,229,.13); }
.module-region-emoji { font-size: 2rem; margin-bottom: .15rem; }
.module-region-label { font-size: 1.05rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.module-region-flags { font-size: 1.1rem; letter-spacing: .1rem; margin: .15rem 0; line-height: 1; }
.module-region-meta  { font-size: .78rem; color: var(--brand); font-weight: 600; margin-top: .1rem; }

/* ── PROPERTY PRICES ─────────────────────────────────────────────────────── */
.prop-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .9rem;
}
.prop-city-card {
  background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid #0284c7; border-radius: 12px;
  padding: 1rem; text-decoration: none; color: inherit;
  transition: all .18s; display: flex; flex-direction: column; gap: .3rem;
}
.prop-city-card:hover { border-color: #0284c7; box-shadow: 0 4px 16px rgba(2,132,199,.1); transform: translateY(-2px); }
.prop-city-name    { font-size: .95rem; font-weight: 700; color: var(--text); }
.prop-city-country { font-size: .75rem; color: var(--text-muted); }
.prop-city-price   { font-size: .85rem; font-weight: 600; color: #0284c7; }
.prop-city-rent    { font-size: .78rem; color: var(--text-md); }
.prop-city-meta    { font-size: .75rem; color: var(--text-muted); }

.country-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem;
}
.country-listing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem;
  text-decoration: none; color: inherit; transition: all .18s;
}
.country-listing-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.clc-name { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.clc-meta { font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }
.clc-stats { display: flex; flex-direction: column; gap: .25rem; }
.clc-stats span { font-size: .78rem; color: var(--text-md); }

/* ── TAX RATES ───────────────────────────────────────────────────────────── */
.tax-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .85rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.data-table th {
  background: var(--bg); padding: .65rem .8rem;
  text-align: left; font-weight: 700; font-size: .78rem;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: .6rem .8rem; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table td:first-child a { color: var(--brand); font-weight: 600; text-decoration: none; }
.data-table td:first-child a:hover { text-decoration: underline; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg); }

/* ── HEALTHCARE ──────────────────────────────────────────────────────────── */
.health-rank-list {
  display: flex; flex-direction: column; gap: .55rem;
}
.health-rank-item {
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: .75rem 1rem;
  text-decoration: none; color: inherit; transition: all .15s;
}
.health-rank-item:hover { border-color: var(--brand); background: var(--bg); }
.health-rank-num   { font-size: .8rem; font-weight: 800; color: var(--text-muted); min-width: 22px; }
.health-rank-name  { font-size: .92rem; font-weight: 700; color: var(--text); min-width: 140px; }
.health-index-badge { font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 20px; white-space: nowrap; }
.health-rank-life  { font-size: .78rem; color: var(--text-md); }
.health-rank-cost  { font-size: .78rem; color: var(--text-md); }
.health-rank-cover { font-size: .78rem; color: var(--text-muted); margin-left: auto; }

@media (max-width: 720px) {
  .module-region-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-city-grid { grid-template-columns: repeat(2, 1fr); }
  .country-listing-grid { grid-template-columns: repeat(2, 1fr); }
  .health-rank-name { min-width: 100px; }
  .health-rank-cover { margin-left: 0; }
}

/* =============================================
   LOGO ACCENT + NAV 6-LINK UPDATES
   ============================================= */
.logo-text-accent { color: var(--brand); }
.logo-text { font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; }

/* Nav with 6 links — reduce padding slightly on medium screens */
.nav-links a { padding: .38rem .65rem; font-size: .82rem; }

@media (max-width: 900px) {
  .nav-links a { padding: .35rem .5rem; font-size: .78rem; }
}

/* On tablets, show hamburger at 860px so links don't wrap */
@media (max-width: 860px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .75rem 1rem; box-shadow: var(--shadow); z-index: 199; }
  .nav-links.open, .site-nav.open .nav-links { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .6rem 1rem; font-size: .9rem; border-radius: var(--radius-sm); }
}

/* =============================================
   STATIC PAGES (About, Privacy, Contact)
   ============================================= */
.page-static { padding-bottom: 4rem; }
.page-static .container { max-width: 900px; }

.static-hero { text-align: center; padding: 3rem 1rem 2.5rem; }
.static-hero-icon { font-size: 3rem; margin-bottom: .75rem; }
.static-hero h1 { font-size: 2.4rem; font-weight: 900; color: var(--text); margin: 0 0 .75rem; }
.static-lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

.static-content { padding: 0 .5rem; }
.static-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.static-section:last-child { border-bottom: none; }
.static-section h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin: 0 0 1rem; }
.static-section p { color: var(--text-md); line-height: 1.7; margin: 0 0 .85rem; }
.static-section a { color: var(--brand); }
.static-section ul { padding-left: 1.25rem; color: var(--text-md); line-height: 1.8; }
.static-section ul li { margin-bottom: .4rem; }

.static-prose p, .static-prose li { font-size: .95rem; }

.static-cta, .static-section .static-cta { display: inline-block; background: var(--brand); color: #fff !important; padding: .7rem 1.5rem; border-radius: var(--radius); font-weight: 700; font-size: .9rem; text-decoration: none; margin-top: .5rem; transition: opacity .15s; }
.static-cta:hover { opacity: .88; }

/* Source grid (About page) */
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.source-card { display: flex; align-items: flex-start; gap: .85rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.source-icon { font-size: 1.5rem; flex-shrink: 0; }
.source-card strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.source-card span { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* Modules grid (About page) */
.modules-about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; }
.module-about-card { display: flex; flex-direction: column; gap: .4rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.module-about-card:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.module-about-icon { font-size: 1.75rem; }
.module-about-card strong { font-size: .92rem; font-weight: 700; color: var(--text); }
.module-about-card span { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* Principles grid (About page) */
.principles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem; }
.principle-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.principle-icon { font-size: 1.75rem; display: block; margin-bottom: .5rem; }
.principle-card h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin: 0 0 .4rem; }
.principle-card p { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-reasons h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin: 0 0 1.25rem; }
.contact-reason-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-reason { display: flex; gap: .9rem; align-items: flex-start; }
.contact-reason-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-reason strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.contact-reason p { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 0; }

.contact-form-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .65rem .85rem; font-size: .88rem; font-family: inherit; color: var(--text); background: #fff; transition: border-color .15s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; background: var(--brand); color: #fff; border: none; padding: .8rem 1.5rem; border-radius: var(--radius); font-size: .92rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.form-submit:hover { opacity: .88; }
.form-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1.25rem; }
.form-errors p { font-size: .85rem; color: #dc2626; margin: 0 0 .3rem; }
.form-errors p:last-child { margin: 0; }
.contact-success { text-align: center; padding: 2rem 1rem; }
.contact-success-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.contact-success h3 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0 0 .5rem; }
.contact-success p { color: var(--muted); margin: 0 0 1.5rem; }

/* =============================================
   COMPREHENSIVE RESPONSIVE FIXES
   ============================================= */

/* Homepage hero responsive */
@media (max-width: 768px) {
  .hp-title { font-size: 2rem; }
  .hp-hero-stats { flex-wrap: wrap; gap: .75rem; justify-content: center; }
  .hp-hero-stat-div { display: none; }
  .hp-modules-grid { grid-template-columns: 1fr; }
  .hp-regions-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-cards { grid-template-columns: 1fr; }
  .hp-section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hp-how-steps { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hp-how-connector { display: none; }
}
@media (max-width: 480px) {
  .hp-title { font-size: 1.65rem; }
  .hp-sub { font-size: .9rem; }
  .hp-regions-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .hp-region { padding: .9rem .75rem; }
  .hp-region-emoji { font-size: 1.6rem; }
  .hp-modules-grid { grid-template-columns: 1fr; gap: .7rem; }
}

/* Stats grid responsive */
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-wide { grid-column: 1 / -1; }
  .stat-value { font-size: 1.2rem; }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Property city grid */
@media (max-width: 540px) {
  .prop-city-grid { grid-template-columns: 1fr; }
}

/* Tax table overflow */
@media (max-width: 640px) {
  .tax-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tax-table-wrap .data-table { min-width: 520px; }
}

/* Health rank list */
@media (max-width: 540px) {
  .health-rank-item { gap: .5rem; }
  .health-rank-life, .health-rank-cost, .health-rank-cover { display: none; }
}

/* Name grids */
@media (max-width: 540px) {
  .name-grid { grid-template-columns: repeat(2, 1fr); }
  .origin-grid { grid-template-columns: 1fr 1fr; }
  .related-names-grid { grid-template-columns: repeat(3, 1fr); }
}

/* FAQ section */
@media (max-width: 600px) {
  .faq-section { padding: 1.5rem 1rem; }
  .faq-item { padding: 1rem; }
}

/* Breadcrumb */
@media (max-width: 480px) {
  .breadcrumb { font-size: .78rem; flex-wrap: wrap; gap: .2rem; }
}

/* Year filter */
@media (max-width: 420px) {
  .year-filter { flex-wrap: wrap; }
  .year-tab { font-size: .78rem; padding: .25rem .6rem; }
}

/* Footer */
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-regions { flex-wrap: wrap; gap: .5rem; }
}
@media (max-width: 400px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Static page responsive */
@media (max-width: 720px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .source-grid { grid-template-columns: 1fr; }
  .modules-about-grid { grid-template-columns: 1fr 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .static-hero h1 { font-size: 1.8rem; }
  .form-row-half { grid-template-columns: 1fr; }
  .modules-about-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
}

/* Listing hero */
@media (max-width: 600px) {
  .listing-hero-inner h1 { font-size: 1.8rem; }
  .listing-hero { padding: 2.5rem 1.25rem; }
  .name-detail-header { flex-direction: column; text-align: center; }
  .name-detail-big-letter { margin: 0 auto; }
}

/* =============================================
   BLOG — LISTING PAGE
   ============================================= */
.page-blog-listing { padding-bottom: 4rem; }

.blog-listing-hero { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%); padding: 3.5rem 1.5rem; text-align: center; color: #fff; }
.blog-listing-hero .hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: #e0e7ff; font-size: .78rem; font-weight: 700; padding: .35rem 1rem; border-radius: 100px; letter-spacing: .05em; margin-bottom: 1rem; }
.blog-listing-hero h1 { font-size: 2.2rem; font-weight: 900; color: #fff; margin: 0 0 .75rem; letter-spacing: -.03em; }
.blog-listing-hero p { font-size: 1rem; color: rgba(255,255,255,.8); max-width: 500px; margin: 0 auto; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; margin: 2rem 0 3rem; }

.blog-card { display: flex; flex-direction: column; gap: .75rem; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-decoration: none; transition: box-shadow .2s, border-color .2s, transform .2s; }
.blog-card:hover { box-shadow: var(--shadow); border-color: var(--brand); transform: translateY(-2px); }

.blog-card-top { display: flex; align-items: center; justify-content: space-between; }
.blog-cat-badge { font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 100px; }
.blog-read-time { font-size: .72rem; color: var(--muted); }

.blog-card-title { font-size: 1.1rem; font-weight: 800; color: var(--text); line-height: 1.35; margin: 0; letter-spacing: -.02em; }
.blog-card:hover .blog-card-title { color: var(--brand); }
.blog-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.6; margin: 0; flex: 1; }
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .25rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.blog-card-author { font-size: .75rem; color: var(--muted); }
.blog-card-date { font-size: .75rem; color: var(--muted); }

/* =============================================
   BLOG — POST PAGE
   ============================================= */
.page-blog-post { padding-bottom: 4rem; }
.blog-post-container { max-width: 780px; }

.post-header { padding: 2rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.post-meta-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.post-header h1 { font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1.25; margin: 0 0 .85rem; letter-spacing: -.03em; }
.post-lead { font-size: 1.05rem; color: var(--muted); line-height: 1.65; margin: 0 0 1rem; }
.post-byline { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }

.post-body { font-size: .95rem; line-height: 1.75; color: var(--text-md); }
.post-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 2.25rem 0 .85rem; letter-spacing: -.02em; padding-top: .5rem; border-top: 1px solid var(--border); }
.post-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 .6rem; }
.post-body p { margin: 0 0 1rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.post-body li { margin-bottom: .4rem; }
.post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.post-body strong { color: var(--text); }
.post-body em { color: var(--muted); font-size: .88rem; }

.post-highlight-box { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.25rem; margin: 0 0 1.75rem; font-size: .92rem; line-height: 1.6; }
.post-highlight-box strong { color: var(--brand); }

.post-data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
.post-data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.post-data-table thead tr { background: var(--bg); }
.post-data-table th { padding: .65rem .9rem; text-align: left; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.post-data-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--border); color: var(--text-md); vertical-align: top; }
.post-data-table tr:last-child td { border-bottom: none; }
.post-data-table tbody tr:hover { background: var(--bg); }

.post-compare-header { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.5rem; background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--border); margin: 1.5rem 0; }
.post-compare-city { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.post-compare-flag { font-size: 2.5rem; }
.post-compare-city strong { font-size: .92rem; font-weight: 700; color: var(--text); }
.post-compare-vs { font-size: 1rem; font-weight: 900; color: var(--muted); background: var(--border); padding: .5rem .85rem; border-radius: var(--radius); }

.post-cta-box { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: var(--radius-lg); padding: 1.75rem; margin: 2.5rem 0 1rem; }
.post-cta-box h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); margin: 0 0 .4rem; }
.post-cta-box p { font-size: .88rem; color: var(--muted); margin: 0 0 1rem; }
.post-cta-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.post-cta-links a { background: #fff; border: 1.5px solid #c7d2fe; color: var(--brand); font-size: .82rem; font-weight: 700; padding: .45rem 1rem; border-radius: var(--radius); text-decoration: none; transition: background .15s, color .15s; }
.post-cta-links a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-header h1 { font-size: 1.55rem; }
  .post-body h2 { font-size: 1.2rem; }
  .post-compare-header { gap: 1rem; }
  .post-compare-flag { font-size: 1.75rem; }
  .post-cta-links { flex-direction: column; }
  .post-cta-links a { text-align: center; }
}
