/* ================================================================
   ZIP Directory — Premium Wide Layout
   Design: 宽屏 · 大气 · 简洁 · 有设计感
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --max-w: 1320px;
  --bg-base: #06080f;
  --bg-raised: #0b1020;
  --bg-surface: rgba(255, 255, 255, 0.025);
  --bg-surface-hover: rgba(255, 255, 255, 0.05);
  --text-1: #e8ecf4;
  --text-2: #8494a7;
  --text-3: #4a5567;
  --accent: #818cf8;
  --accent-dim: rgba(129, 140, 248, 0.10);
  --accent-strong: #6366f1;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(129, 140, 248, 0.25);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --speed: 0.2s;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-base: #f4f5f7;
    --bg-raised: #ffffff;
    --bg-surface: rgba(0, 0, 0, 0.025);
    --bg-surface-hover: rgba(0, 0, 0, 0.05);
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --accent: #6366f1;
    --accent-dim: rgba(99, 102, 241, 0.08);
    --accent-strong: #4f46e5;
    --border: rgba(0, 0, 0, 0.06);
    --border-accent: rgba(99, 102, 241, 0.2);
  }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ── Layout Shell ──────────────────────────────────────────────── */
.inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Header ────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(6, 8, 15, 0.75);
}

@media (prefers-color-scheme: light) {
  .header { background: rgba(244, 245, 247, 0.85); }
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-1);
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent) 30%, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--speed) var(--ease);
}

.nav a:hover, .nav a.active { color: var(--text-1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Language Picker */
.lang-picker { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  transition: all var(--speed) var(--ease);
}

.lang-btn:hover { border-color: var(--text-3); color: var(--text-1); }

.lang-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  min-width: 130px;
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--speed) var(--ease);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.lang-picker:hover .lang-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-drop a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-2);
  border-radius: 0.5rem;
  transition: all var(--speed) var(--ease);
}

.lang-drop a:hover, .lang-drop a.active {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── Hero Section (Full-bleed) ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(129, 140, 248, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-1) 50%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* Hero Stats Row */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat { display: flex; flex-direction: column; gap: 0.25rem; }

.hero-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-3);
  transition: color var(--speed) var(--ease);
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep { opacity: 0.4; }

/* ── Main Content ──────────────────────────────────────────────── */
.main {
  flex: 1;
  padding-bottom: 5rem;
}

.main-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section Titles ────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 600;
}

.section-count {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 400;
}

/* ── Search Box ────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  margin-bottom: 2.5rem;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  transition: all var(--speed) var(--ease);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-raised);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.search-count {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Grid Layouts ──────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 0.75rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Item Links (State/City navigation) ────────────────────────── */
.item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-1);
  transition: all var(--speed) var(--ease);
}

.item-link::after {
  content: '→';
  color: var(--text-3);
  font-size: 0.85rem;
  transition: all var(--speed) var(--ease);
}

.item-link:hover {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.item-link:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}

.item-count {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  margin-left: 0.5rem;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 12px 40px -8px rgba(0, 0, 0, 0.04);
}

.card + .card { margin-top: 1.5rem; }

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* ── Stats Dashboard (inline within cards) ─────────────────────── */
.stats-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Zip Code Grid ─────────────────────────────────────────────── */
.zip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.zip-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 0.6rem;
  transition: all var(--speed) var(--ease);
}

.zip-wrapper:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.zip-wrapper:hover .zip-badge {
  color: #fff;
}

.zip-wrapper:hover .zip-copy-btn {
  color: rgba(255, 255, 255, 0.85);
}

.zip-badge {
  display: inline-flex;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-1);
  letter-spacing: 0.04em;
  transition: color var(--speed) var(--ease);
}

.zip-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.zip-copy-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.zip-copy-btn.copied {
  color: #34d399 !important;
  background: rgba(52, 211, 153, 0.15) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
}

/* ── Phone Number List ─────────────────────────────────────────── */
.phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.phone-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem !important;
  background: var(--bg-raised) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.02), 0 10px 30px -8px rgba(0, 0, 0, 0.03) !important;
  transition: all var(--speed) var(--ease) !important;
}

.phone-list li:hover {
  border-color: var(--border-accent) !important;
  box-shadow: 0 8px 25px -4px rgba(99, 102, 241, 0.05), 0 12px 35px -8px rgba(99, 102, 241, 0.06) !important;
  transform: translateY(-1px);
}

/* ── Premium Verification Reference Card List ─────────────────── */
.ref-list li {
  padding: 0 !important;
}

.ref-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  color: var(--text-1) !important;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  transition: color var(--speed) var(--ease);
}

.ref-link:hover {
  color: var(--accent) !important;
}

.ref-arrow {
  color: var(--text-3);
  font-size: 0.9rem;
  transition: transform var(--speed) var(--ease), color var(--speed) var(--ease);
}

.ref-link:hover .ref-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.phone-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: var(--accent-strong);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--speed) var(--ease);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
}

.btn svg {
  display: block;
  flex-shrink: 0;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn:active { transform: translateY(1px); }

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}

.copy-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  transition: all var(--speed) var(--ease);
}

.copy-btn:hover {
  color: var(--text-1);
  border-color: var(--text-3);
  background: var(--bg-surface-hover);
}

.copy-btn.copied {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
}

/* ── Dialing Guide Grid ────────────────────────────────────────── */
.dial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.dial-step {
  padding: 1.5rem;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dial-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dial-step p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ── FAQ Accordion ─────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  counter-reset: faq-counter;
}

.faq-item {
  background: var(--bg-raised) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.02), 0 10px 30px -8px rgba(0, 0, 0, 0.03) !important;
  transition: all var(--speed) var(--ease) !important;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--border-accent) !important;
  box-shadow: 0 8px 25px -4px rgba(99, 102, 241, 0.05), 0 12px 35px -8px rgba(99, 102, 241, 0.06) !important;
}

.faq-item summary {
  padding: 1.25rem 1.5rem 1.25rem 3rem !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  padding-right: 3rem;
  transition: color var(--speed) var(--ease);
}

.faq-item summary::before {
  counter-increment: faq-counter;
  content: counter(faq-counter, decimal-leading-zero);
  position: absolute;
  left: 1.25rem !important;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.8;
  font-family: 'Outfit', sans-serif;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 1.25rem !important;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

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

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

.faq-item[open] summary {
  color: var(--accent);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--accent);
}

.faq-body {
  padding: 0 1.5rem 1.5rem 3rem !important;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: none !important;
  padding-top: 0;
}

/* ── Share Section ─────────────────────────────────────────────── */
.share-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--speed) var(--ease);
  cursor: pointer;
}

.share-btn:hover {
  color: var(--text-1);
  border-color: var(--text-3);
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(3, 4, 8, 0.6);
  padding: 4rem 0 2rem;
}

@media (prefers-color-scheme: light) {
  .footer { background: rgba(0, 0, 0, 0.02); }
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-brand .logo { font-size: 1.2rem; }

.footer-about {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-socials { display: flex; gap: 0.75rem; }

.footer-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all var(--speed) var(--ease);
}

.footer-social:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--text-1);
}

.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--speed) var(--ease);
}

.footer-links a:hover { color: var(--accent); }

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

.footer-bottom-links { display: flex; gap: 1.5rem; }

.footer-bottom-links a {
  color: var(--text-3);
  transition: color var(--speed) var(--ease);
}

.footer-bottom-links a:hover { color: var(--accent); }

/* ── Utility ───────────────────────────────────────────────────── */
.filtered-out { display: none !important; }
.mt-section { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
  .inner, .header-inner, .hero-inner, .main-inner, .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .search-count { display: none; }

  .hero { padding: 3.5rem 0 2.5rem; }

  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  .hero-stats { flex-direction: column; gap: 1.25rem; }

  .header-inner { height: 56px; }

  .nav { display: none; }

  .grid-4, .grid-3 { grid-template-columns: 1fr; }

  .card { padding: 1.75rem; border-radius: var(--radius); }

  .dial-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .stats-row { flex-direction: column; gap: 1rem; }



  /* ── Responsive Details Table (Post Offices): full stack on mobile ── */
  .zip-table:has(thead th:nth-child(3)) tbody tr {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .zip-table:has(thead th:nth-child(3)) tbody tr td {
    text-align: left !important;
    padding: 0.25rem 0 !important;
  }

  .zip-table:has(thead th:nth-child(3)) tbody tr td:first-child {
    padding-top: 0 !important;
  }

  /* ── Key-value detail table (zip.ejs address detail) ── */
  .zip-table tbody tr th {
    padding: 0.75rem 1rem;
    border-bottom: none;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .zip-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .item-link { padding: 0.9rem 1rem; font-size: 0.9rem; }
}

/* ── Country Cards & Global Portal ───────────────────────────────── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.country-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--speed) var(--ease);
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
  pointer-events: none;
}

.country-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
}

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

.country-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.country-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.country-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.country-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
}

.country-code-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.country-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.country-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.country-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.country-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.country-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--speed) var(--ease);
}

.country-card:hover .country-card-link {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ── Hero Search Bar (Global Portal) ───────────────────────────── */
.hero-search-wrap {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  max-width: 720px;
  width: 100%;
}

.hero-search-input {
  padding: 1.5rem 1.5rem 1.5rem 4rem !important;
  font-size: 1.25rem !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-accent) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: all var(--speed) var(--ease) !important;
}

.hero-search-input:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--accent) !important;
}

.hero-search-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15), 0 0 0 4px var(--accent-dim) !important;
}

@media (prefers-color-scheme: light) {
  .hero-search-input {
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15) !important;
  }
  .hero-search-input:hover {
    background: #fff !important;
    border-color: var(--accent) !important;
  }
  .hero-search-input:focus {
    background: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.12), 0 0 0 4px var(--accent-dim) !important;
  }
}

.hero-search-wrap .search-icon {
  font-size: 1.4rem;
  left: 1.6rem;
}

/* ── Centered Hero layout (Global Portal) ───────────────────────── */
.hero-center {
  text-align: center;
}

.hero-center .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center .hero-desc {
  margin-left: auto;
  margin-right: auto;
}

.hero-center .hero-search-wrap {
  margin-left: auto;
  margin-right: auto;
}

.hero-center .hero-stats {
  justify-content: center;
}

/* ── Premium Sibling Section Descriptions ──────────────────────── */
.section-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-top: -1.25rem;
  margin-bottom: 1.75rem;
  display: block;
}

/* ── Zip Table (Granular Neighborhood mapping - Premium Card Table) ── */
.zip-table-container {
  background: var(--bg-raised) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.02), 0 10px 30px -8px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden;
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
}

.zip-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.zip-table thead {
  display: table-header-group !important;
}

.zip-table th {
  padding: 1.1rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
}

.zip-table td {
  padding: 1.1rem 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-1);
}

.zip-table tr:last-child td {
  border-bottom: none !important;
}

.zip-table tbody tr {
  background: transparent !important;
  transition: background-color var(--speed) var(--ease);
}

.zip-table tbody tr:hover {
  background-color: var(--bg-surface-hover) !important;
}

.zip-table .zip-wrapper {
  display: inline-flex;
}

.district-name {
  font-weight: 500;
  color: var(--text-1);
}

/* Premium Mobile View inside the single Card block */
@media (max-width: 768px) {
  .zip-table thead {
    display: none !important;
  }
  
  .zip-table tbody {
    display: flex;
    flex-direction: column;
  }
  
  .zip-table tbody tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    gap: 0.75rem;
  }
  
  .zip-table tbody tr:last-child {
    border-bottom: none !important;
  }
  
  .zip-table tbody tr td {
    padding: 0 !important;
    border-bottom: none !important;
  }
  
  .zip-table tbody tr td:last-child:not(:first-child) {
    flex: 1;
    min-width: 0;
    text-align: right;
  }
}
