@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #F0F4F8; font-family: Georgia, serif; min-height: 100vh; }
input, select, button, textarea { font-family: sans-serif; }
input:focus, select:focus, button:focus { outline: none; }
a { text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f4f8; }
::-webkit-scrollbar-thumb { background: #CBD5E0; border-radius: 3px; }

/* ── ANIMATIONS ── */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ── GLOBAL TAB BAR ── */
#global-tabs {
  position: sticky; top: 0; z-index: 1000;
  background: #001F4D;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: center;
  padding: 0 20px;
}
.tab-bar { display: flex; gap: 4px; padding: 6px 0; }
.tab-btn {
  padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-weight: 700; font-size: 13px; transition: all 0.2s;
  background: transparent; color: rgba(255,255,255,0.5);
  border-bottom: 2px solid transparent;
}
.tab-btn.active { background: rgba(255,255,255,0.15); color: #fff; border-bottom-color: #7DD3FC; }
.tab-btn span { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0.5px; opacity: 0.7; margin-top: 1px; }

/* ── SHARED LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }

/* ── LOGO ── */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #7DD3FC;
}
.logo-name { color: #fff; font-family: 'Playfair Display', serif; font-weight: 900; font-size: 18px; line-height: 1; }
.logo-sub  { color: #7DD3FC; font-size: 10px; letter-spacing: 2px; font-family: sans-serif; }

/* ── HERO (AI DIRECTORY) ── */
.hero {
  background: linear-gradient(160deg, #003366 0%, #0055A4 50%, #006699 100%);
  padding: 0 0 40px; position: relative; overflow: hidden;
}
.hero-deco {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none;
}
.hero-deco-tr { top: -60px; right: -60px; width: 300px; height: 300px; }
.hero-deco-bl { bottom: -40px; left: 10%; width: 200px; height: 200px; }

.hero-nav {
  max-width: 1100px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; gap: 20px; }
.nav-links span { color: rgba(255,255,255,0.7); font-size: 13px; cursor: pointer; font-family: sans-serif; }

.hero-text { max-width: 700px; margin: 20px auto 0; padding: 0 20px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(125,211,252,0.15); border-radius: 20px; padding: 5px 14px;
  margin-bottom: 16px; font-size: 10px; color: #7DD3FC;
  letter-spacing: 2px; font-family: sans-serif; font-weight: 600;
}
.hero-text h1 {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(28px, 5vw, 48px); color: #fff; margin: 0 0 10px; line-height: 1.15;
}
.hero-accent { color: #7DD3FC; }
.hero-sub {
  color: rgba(255,255,255,0.7); font-size: clamp(14px,2vw,16px);
  margin: 0 0 28px; line-height: 1.6; font-family: 'Source Serif 4', serif; font-style: italic;
}

/* SEARCH BOX */
.search-box {
  background: #fff; border-radius: 16px; padding: 8px;
  display: flex; gap: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.search-icon { font-size: 18px; flex-shrink: 0; }
#dir-query {
  flex: 1; border: none; background: transparent; font-size: 15px;
  color: #0A1628; font-family: Georgia, serif; padding: 10px 0;
}
#dir-specialty {
  border: 1px solid #E5E7EB; border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: #374151; background: #F9FAFB; cursor: pointer; min-width: 130px;
}
.search-btn {
  padding: 10px 28px; background: linear-gradient(135deg, #0055A4, #0077CC);
  color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Playfair Display', serif; white-space: nowrap; transition: all 0.2s;
}
.search-btn:disabled { background: #93C5FD; cursor: not-allowed; }

/* QUICK ZIPS */
.quick-zips { display: flex; gap: 8px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.zip-btn {
  padding: 5px 12px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; color: #fff; font-size: 12px; cursor: pointer; font-family: sans-serif;
}

/* ── STATS BAR ── */
.stats-bar { background: #fff; border-bottom: 1px solid #E5E7EB; }
.stats-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; gap: 32px; overflow-x: auto;
}
.stat { text-align: center; flex-shrink: 0; }
.stat-val { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 16px; color: #0055A4; }
.stat-lbl { display: block; font-size: 11px; color: #6B7280; font-family: sans-serif; white-space: nowrap; }

/* ── LOADING ── */
.loading-state { text-align: center; padding: 60px 20px; }
.spinner {
  width: 48px; height: 48px; border: 3px solid #E5E7EB; border-top-color: #0055A4;
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
.loading-title { font-family: 'Playfair Display', serif; font-size: 18px; color: #0055A4; font-weight: 600; }
.loading-sub   { color: #6B7280; font-size: 13px; margin-top: 6px; font-family: sans-serif; }

/* ── ERROR ── */
.error-box {
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px;
  padding: 20px; text-align: center;
}
.error-icon { font-size: 24px; margin-bottom: 8px; }
.error-msg  { color: #DC2626; font-family: 'Playfair Display', serif; font-weight: 600; }
.error-tip  { font-size: 12px; color: #B91C1C; margin-top: 8px; font-family: sans-serif; }
.retry-btn  { margin-top: 12px; padding: 8px 20px; background: #DC2626; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-family: sans-serif; }

/* ── RESULTS HEADER ── */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.results-title { font-family: 'Playfair Display', serif; font-size: 20px; color: #0A1628; }
.results-title .hl { color: #0055A4; }
.results-sub   { font-size: 13px; color: #6B7280; font-family: sans-serif; margin-top: 2px; }
.results-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; cursor: pointer; font-family: sans-serif; }
#dir-sort { padding: 6px 10px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 13px; color: #374151; background: #fff; font-family: sans-serif; }
.refresh-btn { padding: 6px 14px; background: #EFF6FF; color: #0055A4; border: 1px solid #BFDBFE; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: sans-serif; }

/* ── DENTIST CARD GRID ── */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

.dentist-card {
  background: #fff; border-radius: 16px; border: 1px solid #E5E7EB; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: slideUp 0.4s ease both; cursor: pointer;
}
.dentist-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,85,120,0.12); }
.dentist-card-body  { padding: 20px 20px 0; }
.dentist-card-head  { display: flex; gap: 14px; align-items: flex-start; }
.dentist-avatar {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-family: 'Playfair Display', serif; font-weight: 700;
}
.dentist-info { flex: 1; min-width: 0; }
.dentist-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dentist-name { font-size: 16px; font-weight: 700; color: #0A1628; font-family: 'Playfair Display', serif; }
.accepting-badge { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; color: #059669; background: #D1FAE5; border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.dentist-title { font-size: 13px; color: #6B7280; margin-top: 2px; font-family: Georgia, serif; }
.star-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.star-count { font-size: 12px; color: #6B7280; margin-left: 2px; }

.dentist-details { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.detail-row { display: flex; align-items: flex-start; gap: 8px; }
.detail-icon { color: #0055A4; margin-top: 1px; flex-shrink: 0; }
.detail-text { font-size: 13px; color: #374151; }
.detail-link { font-size: 13px; color: #0055A4; font-weight: 600; }

.dentist-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 11px; border-radius: 6px; padding: 3px 8px; }
.tag-specialty { background: #EFF6FF; color: #1D4ED8; font-weight: 500; }
.tag-insurance { background: #F3F4F6; color: #4B5563; }
.tag-lang      { background: #FEF3C7; color: #92400E; }

.hours-toggle {
  margin: 14px 20px 0; padding: 10px 12px; background: #F8FAFC; border-radius: 10px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.hours-toggle-label { font-size: 13px; font-weight: 600; color: #374151; }
.toggle-arrow { color: #6B7280; font-size: 12px; transition: transform 0.2s; }
.hours-toggle.open .toggle-arrow { transform: rotate(180deg); }

.hours-panel { padding: 12px 20px; background: #F8FAFC; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.hours-row { display: flex; justify-content: space-between; font-size: 12px; color: #374151; padding: 2px 0; }
.hours-day  { color: #6B7280; font-weight: 500; }
.hours-time-open   { font-weight: 600; color: #059669; }
.hours-time-closed { font-weight: 600; color: #EF4444; }
.dentist-about { font-size: 13px; color: #4B5563; margin-top: 10px; line-height: 1.6; font-style: italic; font-family: Georgia, serif; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn-call { flex: 1; min-width: 100px; padding: 8px 16px; background: #0055A4; color: #fff; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 600; }
.btn-book { flex: 1; min-width: 100px; padding: 8px 16px; background: #fff; color: #0055A4; border: 2px solid #0055A4; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.card-spacer { height: 20px; }

/* ── NO RESULTS ── */
.no-results { text-align: center; padding: 60px 20px; }
.no-results-icon  { font-size: 48px; margin-bottom: 16px; }
.no-results-title { font-family: 'Playfair Display', serif; font-size: 22px; color: #0A1628; font-weight: 700; }
.no-results-sub   { color: #6B7280; margin-top: 8px; font-family: sans-serif; }

/* ── LANDING / HOW IT WORKS ── */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #0A1628; margin-bottom: 8px; }
.section-header p  { color: #6B7280; font-size: 14px; font-family: sans-serif; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.how-card { background: #fff; border-radius: 16px; padding: 24px 20px; text-align: center; border: 1px solid #E5E7EB; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.how-icon  { font-size: 32px; margin-bottom: 8px; }
.how-step  { font-size: 10px; font-weight: 700; color: #0055A4; letter-spacing: 2px; font-family: sans-serif; margin-bottom: 4px; }
.how-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px; color: #0A1628; margin-bottom: 6px; }
.how-desc  { font-size: 13px; color: #6B7280; font-family: sans-serif; line-height: 1.5; }

.specialty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sp-card { background: #fff; border-radius: 12px; padding: 14px 10px; cursor: pointer; text-align: center; transition: all 0.2s; border: 1px solid transparent; }
.sp-card:hover { transform: scale(1.03); }
.sp-icon  { font-size: 22px; margin-bottom: 4px; }
.sp-name  { font-size: 12px; font-weight: 600; font-family: sans-serif; }

/* ── FOOTER (AI DIRECTORY) ── */
.footer { background: #0A1628; margin-top: 60px; padding: 40px 20px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo  { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.footer-brand { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 18px; color: #fff; }
.footer-region{ color: #64748B; font-size: 11px; font-family: sans-serif; letter-spacing: 2px; }
.footer-cols  { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 24px; }
.footer-col-title { color: #fff; font-family: sans-serif; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.footer-link  { color: #64748B; font-size: 12px; font-family: sans-serif; margin-bottom: 6px; cursor: pointer; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom span { color: #64748B; font-size: 12px; font-family: sans-serif; }

/* ══════════════════════════
   NPI DATABASE TAB
══════════════════════════ */
.npi-hero { background: linear-gradient(135deg, #001F4D 0%, #003A8C 60%, #0055A4 100%); }
.npi-topbar {
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.npi-logo-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.npi-sub-label { font-weight: 400; opacity: 0.6; font-size: 14px; }
.npi-reg-link  { font-size: 11px; color: rgba(255,255,255,0.6); font-family: sans-serif; background: rgba(255,255,255,0.08); padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); }

.npi-panel-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 24px; }
.npi-panel {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 20px;
}
.mode-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 4px; width: fit-content; }
.mode-btn {
  padding: 6px 14px; border-radius: 7px; border: none; cursor: pointer; font-size: 12px;
  font-family: sans-serif; font-weight: 600; transition: all 0.2s; background: transparent;
  color: rgba(255,255,255,0.65);
}
.mode-btn.active { background: #fff; color: #0055A4; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }

.npi-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.mode-fields { display: contents; }
.npi-field { display: flex; flex-direction: column; }
.npi-field label { font-size: 10px; color: rgba(255,255,255,0.6); font-family: sans-serif; margin-bottom: 4px; letter-spacing: 1px; font-weight: 600; }
.npi-input {
  width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.npi-input::placeholder { color: rgba(255,255,255,0.4); }
.npi-input:focus { border-color: #7DD3FC; box-shadow: 0 0 0 3px rgba(125,211,252,0.2); }
.npi-select {
  width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(30,50,90,0.8); color: #fff; font-size: 14px;
}
.npi-field-btn { justify-content: flex-end; }
.npi-search-btn {
  width: 100%; padding: 10px 20px; background: linear-gradient(135deg, #0EA5E9, #0055A4);
  color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Playfair Display', serif; box-shadow: 0 4px 12px rgba(0,85,164,0.3); transition: all 0.2s;
}
.npi-search-btn:disabled { background: #60A5FA; cursor: not-allowed; }

.npi-quick { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.npi-quick-label { font-size: 10px; color: rgba(255,255,255,0.4); font-family: sans-serif; }
.npi-zip-btn { padding: 3px 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; color: rgba(255,255,255,0.7); font-size: 11px; cursor: pointer; font-family: sans-serif; }

/* NPI TOOLBAR */
.npi-toolbar {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
  flex-wrap: wrap; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 16px;
  border: 1px solid #E5E7EB; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.npi-result-count { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; color: #0A1628; }
.npi-result-count .hl { color: #0055A4; }
.npi-result-sub  { font-size: 12px; color: #6B7280; font-family: sans-serif; margin-top: 2px; }
.npi-toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.view-toggle { display: flex; background: #F1F5F9; border-radius: 8px; padding: 3px; }
.view-btn { padding: 5px 12px; border-radius: 6px; border: none; cursor: pointer; font-size: 12px; font-family: sans-serif; font-weight: 600; transition: all 0.15s; background: transparent; color: #6B7280; }
.view-btn.active { background: #fff; color: #0055A4; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.export-btn { padding: 7px 14px; background: #0A1628; color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: sans-serif; }
.export-btn:disabled { background: #E5E7EB; color: #6B7280; cursor: not-allowed; }

/* NPI CARDS */
.npi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; animation: fadeIn 0.3s ease; }
.npi-card {
  background: #fff; border-radius: 14px; border: 1px solid #E5E7EB;
  padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.npi-card:hover { box-shadow: 0 6px 20px rgba(0,85,164,0.1); border-color: #BFDBFE; }
.npi-card-head { display: flex; gap: 12px; align-items: flex-start; }
.npi-avatar { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; font-family: Georgia, serif; }
.npi-card-name { font-family: Georgia, serif; font-weight: 700; font-size: 14px; color: #0A1628; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npi-card-spec { font-size: 11px; color: #6B7280; font-family: sans-serif; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npi-badges    { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; border-radius: 20px; padding: 2px 8px; white-space: nowrap; font-family: sans-serif; }
.npi-addr-block { border-top: 1px solid #F1F5F9; padding-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.npi-addr-row   { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: #4B5563; font-family: sans-serif; line-height: 1.4; }
.npi-addr-phone { color: #0055A4; font-weight: 600; }
.npi-card-foot  { border-top: 1px solid #F1F5F9; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.npi-npi-label  { font-size: 10px; color: #9CA3AF; font-family: sans-serif; }
.npi-npi-num    { font-size: 12px; font-weight: 700; color: #374151; font-family: monospace; }
.copy-btn { background: none; border: none; cursor: pointer; padding: 2px 4px; color: #9CA3AF; font-size: 12px; }
.copy-btn.copied { color: #059669; }
.npi-lic-label { font-size: 10px; color: #6B7280; font-family: sans-serif; }

/* NPI TABLE */
.npi-table-wrap { background: #fff; border-radius: 14px; border: 1px solid #E5E7EB; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); animation: fadeIn 0.3s ease; }
.npi-table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
thead tr { background: #F8FAFC; border-bottom: 2px solid #E5E7EB; }
th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; color: #374151; letter-spacing: 0.5px; font-family: sans-serif; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #F1F5F9; transition: background 0.15s; }
tbody tr:hover { background: #F8FAFC; }
td { padding: 10px 12px; font-size: 12px; color: #374151; font-family: sans-serif; }
.td-name-wrap { display: flex; align-items: center; gap: 8px; }
.td-avatar { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; font-family: Georgia, serif; }
.td-name { font-size: 13px; font-weight: 700; color: #0A1628; font-family: Georgia, serif; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.td-npi  { font-size: 10px; color: #9CA3AF; font-family: sans-serif; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  padding: 7px 12px; background: #fff; color: #0055A4; border: 1px solid #E5E7EB;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-family: sans-serif; font-weight: 600;
}
.page-btn.active { background: #0055A4; color: #fff; }
.page-btn:disabled { background: #F1F5F9; color: #9CA3AF; cursor: default; }

/* NPI LANDING */
.npi-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 800px; margin: 0 auto 40px; }
.feature-card { background: #fff; border-radius: 14px; padding: 20px 16px; border: 1px solid #E5E7EB; text-align: center; }
.feature-icon  { font-size: 28px; margin-bottom: 8px; }
.feature-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 14px; color: #0A1628; margin-bottom: 6px; }
.feature-desc  { font-size: 12px; color: #6B7280; line-height: 1.5; font-family: sans-serif; }

.data-fields-box { background: #fff; border-radius: 16px; padding: 24px; max-width: 700px; margin: 0 auto; border: 1px solid #E5E7EB; }
.data-fields-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; color: #0A1628; margin-bottom: 12px; }
.data-fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.data-fields-grid span { font-size: 12px; color: #374151; font-family: sans-serif; }
.data-fields-grid span::first-letter { color: #059669; font-weight: 700; }
.npi-usa-note { margin-top: 14px; padding: 10px 14px; background: #FFF7ED; border-radius: 8px; border: 1px solid #FED7AA; font-size: 12px; color: #92400E; font-family: sans-serif; }

/* NPI FOOTER */
.npi-footer { background: #0A1628; margin-top: 40px; padding: 20px; text-align: center; font-size: 11px; color: #475569; font-family: sans-serif; line-height: 1.7; }
.npi-footer strong { color: #64748B; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero-nav { flex-wrap: wrap; gap: 10px; }
  .search-box { flex-direction: column; }
  #dir-specialty { min-width: auto; }
  .npi-topbar { flex-direction: column; align-items: flex-start; }
  .results-header { flex-direction: column; align-items: flex-start; }
  .npi-toolbar { flex-direction: column; align-items: flex-start; }
  .dir-grid { grid-template-columns: 1fr; }
  .npi-grid { grid-template-columns: 1fr; }
}
