/* ============ HealthBD — Modern UI ============ */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --navy: #0f2942;
  --navy-2: #163a5f;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7fafc;
  --white: #fff;
  --danger: #e11d48;
  --amber: #f59e0b;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15, 41, 66, .08);
  --shadow-lg: 0 12px 40px rgba(15, 41, 66, .14);
  --font: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--primary-dark); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: all .2s; font-family: var(--font); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 148, 136, .45); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #be123c; }
.btn-light { background: #fff; color: var(--navy); font-weight: 700; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-xs { padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 13.5px; padding: 7px 0; }
.topbar a { color: #5eead4; }
.topbar-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; color: var(--navy); font-family: 'Inter', var(--font); }
.brand-mark { font-size: 26px; }
.brand-logo { height: 42px; max-width: 170px; width: auto; object-fit: contain; display: block; }
.brand-text span { color: var(--primary); }
.brand-light .brand-text { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { color: var(--ink); font-weight: 600; font-size: 15.5px; position: relative; }
.main-nav > a:not(.btn):hover { color: var(--primary-dark); }
.main-nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2.5px; background: var(--primary); border-radius: 2px; transition: width .25s; }
.main-nav > a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #e2e8f0; padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse 55% 60% at 88% 8%, rgba(13, 148, 136, .35), transparent),
  radial-gradient(ellipse 45% 55% at 5% 100%, rgba(3, 105, 161, .3), transparent),
  linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #5eead4; display: inline-block; margin-right: 6px; box-shadow: 0 0 0 0 rgba(94, 234, 212, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }

/* Segmented search bar */
.search-bar { background: #fff; border-radius: 16px; padding: 10px; display: flex; align-items: stretch; gap: 0; box-shadow: 0 20px 50px rgba(2, 12, 27, .45); position: relative; }
.sb-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 18px; min-width: 150px; }
.sb-grow { flex: 1; }
.sb-field label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.sb-field select, .sb-field input { border: 0; padding: 2px 0; font-size: 15px; font-weight: 600; font-family: var(--font); color: var(--navy); background: #fff; width: 100%; }
.sb-field select:focus, .sb-field input:focus { outline: none; }
.sb-field input::placeholder { color: #a3b2c2; font-weight: 500; }
.sb-divider { width: 1px; background: var(--line); margin: 8px 0; }
.sb-btn { border-radius: 12px; padding: 0 30px; font-size: 15.5px; align-self: stretch; }

.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 13.5px; }
.hp-label { color: #7d93a8; font-weight: 700; }
.hero-popular a { color: #a7c4d8; font-weight: 600; border-bottom: 1px dashed rgba(167, 196, 216, .4); padding-bottom: 1px; }
.hero-popular a:hover { color: #5eead4; border-color: #5eead4; }

.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09); flex-wrap: wrap; }
.ht-item strong { display: block; font-size: 24px; color: #fff; font-family: 'Inter', var(--font); line-height: 1.15; }
.ht-item span { font-size: 12.5px; color: #7d93a8; font-weight: 600; }
.ht-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .1); }

/* Emergency panel */
.em-panel { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 20px; backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 8px; }
.em-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .09); margin-bottom: 4px; }
.em-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(225, 29, 72, .18); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.em-head strong { display: block; color: #fff; font-size: 16.5px; }
.em-head span { font-size: 12px; color: #7d93a8; font-weight: 600; }
.em-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; transition: background .18s; }
.em-row:hover { background: rgba(255, 255, 255, .07); }
.em-row-icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.em-row-label { flex: 1; font-size: 13.5px; color: #b6c6d5; font-weight: 600; }
.em-row strong { color: #5eead4; font-size: 18px; font-weight: 800; font-family: 'Inter', var(--font); }
.em-panel .btn-danger { margin-top: 8px; }

/* Area strip below hero */
.area-strip { background: #0c2237; border-top: 1px solid rgba(255, 255, 255, .06); padding: 14px 0; }
.area-strip-inner { display: flex; align-items: center; gap: 16px; }
.as-label { font-size: 13px; font-weight: 700; color: #7d93a8; white-space: nowrap; }
.as-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.as-chips::-webkit-scrollbar { display: none; }
.as-chip { border: 1px solid rgba(255, 255, 255, .12); color: #a7c4d8; border-radius: 999px; padding: 5px 15px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .18s; }
.as-chip:hover { border-color: #5eead4; color: #5eead4; background: rgba(94, 234, 212, .08); }
.hero-inner { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; position: relative; }
.hero-eyebrow { display: inline-block; background: rgba(94, 234, 212, .12); color: #5eead4; border: 1px solid rgba(94, 234, 212, .3); padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: #5eead4; }
.hero-copy > p { max-width: 620px; font-size: 17px; color: #b6c6d5; margin-bottom: 28px; }

.search-card { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: end; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.search-field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1; }
.search-field.grow { flex: 1.4; }
.search-field label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.search-field select, .search-field input { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff; }
.search-field select:focus, .search-field input:focus { outline: none; border-color: var(--primary); }
.search-btn { padding: 12px 26px; }

.hero-districts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.hero-districts-label { font-size: 13.5px; color: #93a8bb; font-weight: 600; margin-right: 4px; }
.hero-district-chip { border: 1px solid rgba(94, 234, 212, .3); color: #5eead4; border-radius: 999px; padding: 4px 13px; font-size: 13px; font-weight: 600; transition: all .18s; }
.hero-district-chip:hover { background: rgba(94, 234, 212, .12); }
.hero-stats { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; color: #5eead4; font-family: 'Inter', var(--font); }
.hero-stats span { font-size: 13.5px; color: #93a8bb; }

.emergency-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.emergency-card h3 { color: #fff; margin-bottom: 14px; font-size: 18px; }
.emergency-card ul { margin-bottom: 16px; }
.emergency-card li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); font-size: 14.5px; color: #b6c6d5; }
.emergency-card li a { color: #5eead4; font-size: 19px; font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: #eef5f4; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 4px; }

/* ---------- Specialty grid ---------- */
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 14px; }
.sp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: all .22s; position: relative; overflow: hidden; }
.sp-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g2)); opacity: 0; transition: opacity .22s; }
.sp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--g1), var(--g2)); opacity: 0; transition: opacity .22s; }
.sp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sp-card:hover::before { opacity: 1; }
.sp-card:hover::after { opacity: .06; }
.sp-icon { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 13%, #fff), color-mix(in srgb, var(--g2) 13%, #fff)); border: 1px solid color-mix(in srgb, var(--g1) 18%, #fff); transition: transform .22s; position: relative; z-index: 1; }
.sp-card:hover .sp-icon { transform: scale(1.1) rotate(-4deg); }
.sp-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; position: relative; z-index: 1; }
.sp-info strong { color: var(--navy); font-size: 15.5px; line-height: 1.3; }
.sp-info > span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sp-arrow { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: 15px; transition: all .22s; flex-shrink: 0; position: relative; z-index: 1; }
.sp-card:hover .sp-arrow { background: linear-gradient(135deg, var(--g1), var(--g2)); border-color: transparent; color: #fff; transform: translateX(3px); }

/* ---------- Doctor cards ---------- */
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 20px; }
.doctor-grid.two-col { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.doctor-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 20px 20px; position: relative; display: flex; flex-direction: column; gap: 12px; transition: all .22s; overflow: hidden; }
.doctor-card::before { content: ''; display: block; height: 74px; background: linear-gradient(120deg, #e6f4f2, #e8f0f8); margin: 0 -20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #b8dcd8; }
.badge-featured { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(245, 158, 11, .35); z-index: 2; }
.dc-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -46px; gap: 3px; }
.dc-avatar { width: 84px; height: 84px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; font-family: 'Inter', var(--font); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(15, 41, 66, .18); margin-bottom: 6px; }
.dc-avatar-photo { overflow: hidden; background: var(--line); }
.dc-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-name { line-height: 1.3; }
.dc-name a { color: var(--navy); font-size: 17.5px; }
.dc-name a:hover { color: var(--primary-dark); }
.dc-specialty { background: var(--primary-light); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; padding: 3px 13px; border-radius: 999px; margin-top: 3px; }
.dc-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.dc-degrees { font-size: 13px; color: var(--muted); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.dc-meta { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 12px; }
.dc-meta li { display: flex; align-items: baseline; gap: 8px; line-height: 1.45; flex-wrap: wrap; }
.dc-ico { flex-shrink: 0; }
.dc-verified { font-style: normal; color: #059669; font-weight: 800; }
.dc-btn { width: 100%; margin-top: auto; }
.avatar { width: 58px; height: 58px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; flex-shrink: 0; font-family: 'Inter', var(--font); box-shadow: 0 4px 12px rgba(15, 41, 66, .18); }
.avatar-xl { width: 108px; height: 108px; font-size: 34px; border: 4px solid rgba(255, 255, 255, .35); }
.avatar-sm { width: 42px; height: 42px; font-size: 14px; }
.avatar-photo { padding: 0; overflow: hidden; background: var(--line); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.photo-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.photo-preview img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }

/* ---------- Rich text editor (admin) ---------- */
.rte-wrap { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; background: var(--bg); border-bottom: 1.5px solid var(--line); }
.rte-toolbar button { border: 1px solid transparent; background: #fff; border-radius: 8px; padding: 6px 11px; font-size: 13.5px; cursor: pointer; font-family: var(--font); color: var(--ink); box-shadow: 0 1px 2px rgba(15,41,66,.06); }
.rte-toolbar button:hover { border-color: var(--primary); color: var(--primary-dark); }
.rte-toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13.5px; font-family: var(--font); background: #fff; width: auto; }
.rte-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.rte-editor { min-height: 280px; max-height: 560px; overflow-y: auto; padding: 16px 20px; font-size: 15px; line-height: 1.7; outline: none; }
.rte-editor:focus { box-shadow: inset 0 0 0 2px rgba(13,148,136,.15); }
.rte-editor h2 { font-size: 21px; margin: 12px 0 6px; }
.rte-editor h3 { font-size: 18px; margin: 10px 0 5px; }
.rte-editor h4 { font-size: 16px; margin: 8px 0 4px; }
.rte-editor ul, .rte-editor ol { padding-left: 24px; margin: 8px 0; list-style-position: outside; }
.rte-editor ul { list-style-type: disc; }
.rte-editor ol { list-style-type: decimal; }
.rte-editor blockquote { border-left: 3px solid var(--primary); margin: 10px 0; padding: 4px 14px; color: var(--muted); background: var(--bg); border-radius: 0 8px 8px 0; }
.rte-editor p { margin-bottom: 8px; }

/* ---------- Rich content (public profile "About") ---------- */
.rich-content p { margin-bottom: 12px; font-size: 15.5px; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 16px 0 8px; }
.rich-content h2 { font-size: 21px; }
.rich-content h3 { font-size: 18px; }
.rich-content h4 { font-size: 16px; }
.rich-content ul, .rich-content ol { padding-left: 26px; margin: 10px 0; list-style-position: outside; }
.rich-content ul { list-style-type: disc; }
.rich-content ol { list-style-type: decimal; }
.rich-content blockquote { border-left: 3px solid var(--primary); margin: 12px 0; padding: 8px 16px; color: var(--muted); background: var(--bg); border-radius: 0 10px 10px 0; }
.rich-content a { text-decoration: underline; }
.doctor-name a { color: var(--navy); font-size: 17.5px; }
.doctor-name a:hover { color: var(--primary-dark); }
.doctor-specialty { color: var(--primary-dark); font-weight: 600; font-size: 13.5px; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rating-row.light { color: #cbd5e1; margin-top: 8px; }
.stars { display: inline-flex; gap: 1px; color: #d1d9e2; }
.star.on { color: var(--amber); }
.doctor-degrees { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.doctor-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink); }
.doctor-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.fee { font-weight: 800; color: var(--navy); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; position: relative; }
.step-num { position: absolute; top: 14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-icon { font-size: 38px; display: block; margin-bottom: 12px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Hospitals ---------- */
.hospital-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.hospital-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; transition: all .22s; position: relative; overflow: hidden; }
.hospital-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.hc-cover { height: 64px; position: relative; display: flex; justify-content: flex-end; align-items: flex-start; padding: 12px 14px; }
.hc-cover::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .35), transparent 45%),
  repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 12px); }
.hc-cover.hc-private { background: linear-gradient(120deg, #0d9488, #0284c7); }
.hc-cover.hc-gov { background: linear-gradient(120deg, #2563eb, #6366f1); }
.hc-cover.hc-diag { background: linear-gradient(120deg, #7c3aed, #db2777); }
.hc-cover.hc-clinic { background: linear-gradient(120deg, #d97706, #ea580c); }
.hc-type { position: relative; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; backdrop-filter: blur(4px); }
.hc-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hc-icon { width: 58px; height: 58px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 41, 66, .14); display: flex; align-items: center; justify-content: center; font-size: 27px; margin-top: -30px; position: relative; transition: transform .22s; }
.hospital-card:hover .hc-icon { transform: scale(1.08) rotate(-3deg); }
.hc-name { font-size: 17px; line-height: 1.35; color: var(--navy); margin-top: 8px; }
.hospital-card:hover .hc-name { color: var(--primary-dark); }
.hc-loc { color: var(--muted); font-size: 13.5px; }
.hc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; gap: 8px; }
.hc-docs { display: inline-flex; align-items: center; gap: 8px; }
.hc-dots { display: inline-flex; }
.hc-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; display: inline-block; }
.hc-dots i + i { margin-left: -8px; }
.hc-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.hc-count strong { color: var(--navy); font-size: 14.5px; }
.hc-view { font-size: 13px; font-weight: 700; color: var(--primary-dark); border: 1.5px solid var(--primary); border-radius: 999px; padding: 7px 16px; display: inline-flex; align-items: center; gap: 5px; transition: all .2s; }
.hc-view span { transition: transform .2s; }
.hospital-card:hover .hc-view { background: linear-gradient(135deg, #10b3a1, #0284c7); border-color: transparent; color: #fff; }
.hospital-card:hover .hc-view span { transform: translateX(3px); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: all .22s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-cat { align-self: flex-start; background: var(--primary-light); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.post-card h3 a { color: var(--navy); font-size: 18px; }
.post-card h3 a:hover { color: var(--primary-dark); }
.post-card p { color: var(--muted); font-size: 14.5px; }
.post-meta { margin-top: auto; font-size: 13.5px; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary-dark), #075985); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 27px; margin-bottom: 6px; }
.cta-inner p { color: #bae6fd; max-width: 560px; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #b6c6d5; padding: 46px 0; }
.page-hero.danger { background: linear-gradient(140deg, #7f1d1d, #b91c1c); color: #fecaca; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 6px; }
.badge-light { background: rgba(255, 255, 255, .14); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.light-link { color: #5eead4; }

/* ---------- Listing / filters ---------- */
.listing-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 88px; }
.filter-panel h3 { margin-bottom: 14px; }
.filter-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: 13px; font-weight: 700; color: var(--muted); }
.filter-group input, .filter-group select { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14.5px; font-family: var(--font); }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--primary); }
.filter-panel .btn-ghost { margin-top: 6px; }
.inline-filter { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.inline-filter input, .inline-filter select { border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-family: var(--font); min-width: 220px; background: #fff; }
.inline-filter input:focus, .inline-filter select:focus { outline: none; border-color: var(--primary); }
.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); font-size: 16.5px; }
.empty-state.big { padding: 80px 24px; }
.empty-state.big h1 { margin: 12px 0 6px; }
.empty-state.big .btn { margin-top: 18px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-link { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-dots { align-self: center; color: var(--muted); }

/* ---------- Doctor profile ---------- */
.profile-hero { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #b6c6d5; padding: 46px 0; }
.profile-hero-inner { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.profile-head { flex: 1; min-width: 260px; }
.profile-hero h1 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.profile-specialty { color: #5eead4; font-weight: 700; margin: 4px 0; }
.profile-degrees { font-size: 14.5px; max-width: 640px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #e2e8f0; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.fee-box { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 20px 26px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.fee-box span { font-size: 13px; }
.fee-box strong { font-size: 30px; color: #5eead4; font-family: 'Inter', var(--font); }
.profile-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.card h2 { font-size: 20px; margin-bottom: 14px; }
.designation { margin-bottom: 10px; }
.chamber-box h3 { color: var(--primary-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chamber-box p { margin-bottom: 4px; font-size: 15px; }
.chamber-extra { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 18px; }
.badge-primary-chamber { background: var(--primary-light); color: var(--primary-dark); border: 0; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.chamber-district { font-size: 13px; color: var(--muted); font-weight: 600; }
.chamber-link { color: var(--primary-dark); }
.chamber-link:hover { text-decoration: underline; }
.chamber-more { background: #eef5f4; color: var(--primary-dark); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 4px; }
.text-link { font-weight: 700; }
.muted { color: var(--muted); }
.review-item { border-bottom: 1px dashed var(--line); padding: 14px 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-item p { font-size: 14.5px; margin-top: 4px; }
.review-date { font-size: 12.5px; color: var(--muted); }
.review-form { margin-top: 20px; background: var(--bg); border-radius: 12px; padding: 18px; }
.review-form h3 { margin-bottom: 10px; font-size: 16.5px; }
.appointment-card { border-top: 4px solid var(--primary); }
.mini-doctor { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mini-doctor:last-child { border-bottom: 0; }
.mini-doctor strong { display: block; color: var(--navy); font-size: 14.5px; }
.mini-doctor span { font-size: 12.5px; color: var(--muted); }

/* ---------- Doctor profile: banner + floating card ---------- */
.doc-banner { height: 200px; background: linear-gradient(120deg, var(--navy) 0%, #0d5c56 60%, var(--primary) 100%); position: relative; overflow: hidden; }
.doc-banner-deco { position: absolute; inset: 0; background:
  radial-gradient(circle at 85% -20%, rgba(94, 234, 212, .25), transparent 45%),
  radial-gradient(circle at 10% 120%, rgba(3, 105, 161, .45), transparent 50%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); margin-top: -110px; position: relative; z-index: 5; padding: 26px 30px 0; }
.doc-card-top { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.doc-photo { width: 168px; height: 168px; border-radius: 24px; overflow: hidden; flex-shrink: 0; margin-top: -70px; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(15, 41, 66, .25); background: var(--line); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-photo-initials { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 52px; font-weight: 800; font-family: 'Inter', var(--font); }
.doc-info { flex: 1; min-width: 260px; }
.doc-info h1 { font-size: clamp(23px, 3vw, 31px); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.doc-specialty { color: var(--primary-dark); font-weight: 700; font-size: 16px; margin-top: 2px; }
.doc-degrees { color: var(--muted); font-size: 14.5px; margin-top: 4px; max-width: 560px; }
.doc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.doc-badge { background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.doc-side { width: 240px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.doc-fee { text-align: center; }
.doc-fee span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.doc-fee strong { display: block; font-size: 30px; color: var(--primary-dark); font-family: 'Inter', var(--font); line-height: 1.2; }
.doc-fee em { font-style: normal; font-size: 12px; color: var(--muted); }
.doc-share { display: flex; justify-content: center; gap: 10px; }
.icon-btn-dark { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all .18s; }
.icon-btn-dark:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.doc-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 22px; }
.dstat { text-align: center; padding: 16px 8px; border-right: 1px solid var(--line); }
.dstat:last-child { border-right: 0; }
.dstat strong { display: block; font-size: 23px; color: var(--navy); font-family: 'Inter', var(--font); }
.dstat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) {
  .doc-banner { height: 150px; }
  .doc-card { padding: 20px 18px 0; margin-top: -80px; }
  .doc-card-top { gap: 14px; }
  .doc-photo { width: 120px; height: 120px; margin-top: -60px; border-radius: 18px; }
  .doc-photo-initials { font-size: 38px; }
  .doc-side { width: 100%; }
  .doc-stats { grid-template-columns: repeat(2, 1fr); }
  .dstat:nth-child(even) { border-right: 0; }
  .dstat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Smart profile ---------- */
.verified-badge { display: inline-flex; align-items: center; background: #d1fae5; color: #065f46; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.share-group { display: inline-flex; gap: 8px; margin-left: 4px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all .18s; }
.icon-btn:hover { background: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.fee-range { font-size: 12px; color: #93a8bb; }
.hero-divider { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 0 0; }
.pstat { text-align: center; padding: 4px; border-right: 1px solid rgba(255, 255, 255, .1); }
.pstat:last-child { border-right: 0; }
.pstat strong { display: block; font-size: 24px; color: #5eead4; font-family: 'Inter', var(--font); }
.pstat span { font-size: 12.5px; color: #93a8bb; font-weight: 600; }
.profile-nav { position: sticky; top: 68px; z-index: 90; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15,41,66,.05); margin-top: 22px; }
.profile-nav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; }
.profile-nav-inner a { padding: 13px 16px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2.5px solid transparent; }
.profile-nav-inner a.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.profile-nav-inner a.nav-book { margin-left: auto; color: #fff; background: linear-gradient(135deg, var(--primary), #0369a1); border-radius: 999px; padding: 8px 18px; align-self: center; border: 0; }
.chamber-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rating-summary { display: flex; gap: 28px; align-items: center; padding: 16px; background: var(--bg); border-radius: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.rating-big { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rating-big strong { font-size: 40px; color: var(--navy); font-family: 'Inter', var(--font); line-height: 1; }
.rating-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 5px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.rating-bar-row > span:first-child { width: 26px; }
.rating-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--amber); border-radius: 999px; }
.mobile-actions { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; z-index: 150; box-shadow: 0 -4px 20px rgba(15, 41, 66, .12); }
.mobile-actions .btn { flex: 1; }
@media (max-width: 860px) {
  .mobile-actions { display: flex; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .pstat:nth-child(even) { border-right: 0; }
  body:has(.mobile-actions) { padding-bottom: 70px; }
}

/* ---------- Forms (public) ---------- */
form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=date], form input[type=password], form input[type=number], form textarea, form select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 15px; font-family: var(--font); background: #fff; color: var(--ink); }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
form button[type=submit] { margin-top: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.alert { border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-weight: 600; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-danger-soft { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-weight: 600; }

/* ---------- Ambulance ---------- */
.ambulance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.ambulance-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 6px; transition: all .22s; }
.ambulance-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ambulance-icon { font-size: 38px; }
.amb-type { color: var(--danger); font-weight: 700; font-size: 13.5px; }
.amb-addr { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }

/* ---------- Contact / Join / Post ---------- */
.contact-layout, .post-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.contact-info li { padding: 7px 0; font-size: 15px; }
.contact-layout .emergency-card { background: var(--navy); border: 0; }
.benefit-list li { padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.benefit-list li:last-child { border: 0; }
.post-body p { margin-bottom: 14px; font-size: 16px; }
.post-disclaimer { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-top: 20px; }
.recent-post { display: block; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.recent-post:last-child { border: 0; }
.recent-post strong { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.45; }
.recent-post span { font-size: 12.5px; color: var(--muted); }

/* ---------- Dynamic finder ---------- */
.finder-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.finder-step h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.step-badge { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.district-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.district-pill { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 9px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .18s; font-family: var(--font); }
.district-pill:hover { border-color: var(--primary); color: var(--primary-dark); }
.district-pill.active { background: linear-gradient(135deg, var(--primary), #0369a1); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, .35); }
.finder-hospital { margin-bottom: 18px; max-width: 520px; }
.finder-hospital label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 5px; }
.finder-hospital select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 15px; font-family: var(--font); background: #fff; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr)); gap: 12px; }
.dept-card { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .18s; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font); }
.dept-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.dept-card.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 4px 14px rgba(13, 148, 136, .25); }
.dept-icon { font-size: 28px; }
.dept-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.dept-count { font-size: 12.5px; color: var(--primary-dark); font-weight: 600; }
.finder-loading { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); z-index: 200; }
.spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #93a8bb; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 34px; padding: 54px 20px 40px; }
.footer-about { margin-top: 14px; font-size: 14.5px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.site-footer li { padding: 5px 0; font-size: 14.5px; }
.site-footer a { color: #93a8bb; }
.site-footer a:hover { color: #5eead4; }
.hotlines li { display: flex; justify-content: space-between; }
.hotlines a { color: #5eead4; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disclaimer { color: #64798c; }

/* ---------- Admin ---------- */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--navy), #0d5c56); padding: 20px; }
.login-card { background: #fff; border-radius: 20px; padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card h1 { margin-top: 16px; }
.login-card .muted { margin-bottom: 10px; }

.admin-body { background: #eef2f6; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); padding: 24px 16px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-sidebar nav a { color: #b6c6d5; padding: 9px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.admin-sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-sidebar nav a.active { background: var(--primary); color: #fff; }
.nav-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #64798c; margin: 14px 14px 4px; font-weight: 700; }
.admin-user { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; color: #b6c6d5; font-size: 14px; }
.admin-user a { color: #f87171; font-weight: 700; }
.admin-main { padding: 0 28px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.admin-topbar h1 { font-size: 24px; }
.admin-content .card { margin-bottom: 20px; }

/* ---------- Modern admin dashboard ---------- */
.aicon { vertical-align: -3px; }
.admin-sidebar nav a .aicon, .seo-tab .aicon { margin-right: 4px; opacity: .85; }
.dash-hero { background: linear-gradient(120deg, var(--navy), #0d5c56); border-radius: 18px; padding: 24px 28px; color: #cbd5e1; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-hero h2 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.dash-hero p { font-size: 13.5px; }
.dash-hero code { background: rgba(255,255,255,.1); padding: 1px 8px; border-radius: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; animation: pulse 2s infinite; }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; transition: all .2s; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kc, var(--primary)); }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--kc, var(--primary)); margin-bottom: 8px; }
.kpi-card strong { font-size: 26px; color: var(--navy); font-family: 'Inter', var(--font); line-height: 1.1; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-sub { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; background: var(--bg); border: 1px solid var(--line); color: var(--primary-dark); padding: 3px 9px; border-radius: 999px; }
.k-teal { --kc: #0d9488; } .k-blue { --kc: #0284c7; } .k-indigo { --kc: #6366f1; } .k-amber { --kc: #f59e0b; }
.k-pink { --kc: #ec4899; } .k-yellow { --kc: #eab308; } .k-cyan { --kc: #06b6d4; } .k-violet { --kc: #8b5cf6; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-grid-3 .card { margin-bottom: 0; }
.dash-grid-3 h2 { font-size: 16.5px; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar-val { font-size: 12px; font-weight: 700; color: var(--muted); }
.bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, #10b3a1, #0284c7); border-radius: 7px 7px 3px 3px; min-height: 4px; transition: height .5s; }
.bar-day { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hbar-label { width: 110px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { flex: 1; height: 9px; background: #e9eef4; border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, #10b3a1, #0284c7); border-radius: 999px; }
.hbar-row strong { width: 24px; text-align: right; color: var(--navy); }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 130px; height: 130px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.donut::before { content: ''; position: absolute; inset: 16px; background: #fff; border-radius: 50%; }
.donut span { position: relative; font-size: 27px; font-weight: 800; color: var(--navy); font-family: 'Inter', var(--font); }
.donut small { font-size: 12px; color: var(--muted); font-weight: 600; }
.donut-legend { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.dl-row i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.dl-row strong { color: var(--navy); }
.dash-health { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dh-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-size: 13px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.dh-item strong { color: var(--navy); }
.dh-item.dh-warn { border-color: #fecaca; background: #fff1f2; }
.dh-item code { font-size: 11.5px; }
.act-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.act-row:last-of-type { border-bottom: 0; }
.act-ava { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.act-body { flex: 1; min-width: 0; }
.act-body strong { display: block; font-size: 13.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-body span { font-size: 12px; color: var(--muted); }
.act-stars { color: var(--amber); font-size: 12px; }
.act-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary-dark); }
@media (max-width: 1100px) { .dash-grid-3 { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; transition: all .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { font-size: 22px; }
.stat-card strong { font-size: 26px; color: var(--navy); font-family: 'Inter', var(--font); }
.stat-card > span:last-child { color: var(--muted); font-size: 13.5px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.admin-toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-search { display: flex; gap: 8px; }
.admin-search input { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 14.5px; min-width: 260px; font-family: var(--font); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; background: var(--bg); color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--line); }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.actions-col { white-space: nowrap; width: 140px; }
.inline-form { display: inline-block; }
.status { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed, .status-approved, .status-active { background: #d1fae5; color: #065f46; }
.status-completed { background: #dbeafe; color: #1e40af; }
.status-cancelled, .status-rejected, .status-inactive { background: #fee2e2; color: #991b1b; }
.form-card { max-width: 900px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.form-field.span-2 { grid-column: span 2; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; margin-top: 8px !important; font-size: 15px !important; color: var(--ink) !important; }
.checkbox-label input { width: auto !important; }
/* ---------- SEO landing pages ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--primary-dark); font-weight: 600; }
.link-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.link-chip { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.link-chip span { background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.link-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.link-chip.active { background: linear-gradient(135deg, var(--primary), #0369a1); border-color: transparent; color: #fff; }
.link-chip.active span { background: rgba(255,255,255,.2); color: #fff; }
.faq-item { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq-item p { margin-top: 8px; color: var(--muted); }
a.dept-card { text-decoration: none; }

/* ---------- SEO debug panel ---------- */
.seo-debug { position: fixed; bottom: 0; left: 0; right: 0; background: #0f2942; color: #cbd5e1; font-size: 12.5px; padding: 12px 20px; z-index: 999; max-height: 45vh; overflow: auto; border-top: 3px solid #0d9488; font-family: monospace; }
.seo-debug strong { color: #5eead4; }
.seo-debug .dbg-row { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ---------- SEO Command Center ---------- */
.seo-tabs, .seo-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.seo-subtabs { margin-bottom: 0; }
.seo-tab { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--ink); }
.seo-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.seo-tab.active { background: linear-gradient(135deg, var(--primary), #0369a1); border-color: transparent; color: #fff; }
.seo-score-row { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 20px; }
.seo-score-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.score-ring { width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), #e2e8f0 0); position: relative; }
.score-ring::before { content: ''; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.score-ring span { position: relative; font-size: 38px; font-weight: 800; color: var(--navy); font-family: 'Inter', var(--font); }
.cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-label { width: 150px; font-size: 14px; font-weight: 600; }
.cat-bar { flex: 1; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.cat-fill { height: 100%; border-radius: 999px; }
.seo-quick-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.issue-group { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.issue-group summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.issue-group table { margin-top: 10px; }
.bulk-table .bulk-input { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13.5px; font-family: var(--font); }
.bulk-table .bulk-input:focus { outline: none; border-color: var(--primary); }
.char-count { display: block; font-size: 11.5px; font-weight: 700; margin-top: 3px; }
.redirect-form { display: flex; gap: 6px; align-items: center; }
.redirect-form input[type=text] { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; width: 170px; font-family: var(--font); }
.serp-preview { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 620px; background: #fff; display: flex; flex-direction: column; gap: 3px; }
.serp-url { color: #202124; font-size: 13px; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; font-weight: 500; }
.serp-desc { color: #4d5156; font-size: 13.5px; line-height: 1.55; }
.checkbox-label.inline { display: inline-flex !important; margin: 0 10px 0 0 !important; }
@media (max-width: 900px) { .seo-score-row { grid-template-columns: 1fr; } }

.message-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.message-item:last-child { border: 0; }
.message-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- Premium polish layer ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--primary); color: #fff; }
h1, h2, h3 { letter-spacing: -.02em; }
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: #c3d0dc; border-radius: 999px; border: 3px solid var(--bg); }
body::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 41, 66, .09); }

.btn-primary { background: linear-gradient(135deg, #10b3a1, #0284c7); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(13, 148, 136, .35); outline-offset: 2px; }

.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content: ''; width: 26px; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), #0369a1); }

.specialty-card { border-radius: 16px; }
.specialty-card .specialty-icon { transition: transform .25s; display: inline-block; }
.specialty-card:hover .specialty-icon { transform: scale(1.18) rotate(-4deg); }

.steps-grid { position: relative; }
.step-card { border-radius: 18px; }
.step-card .step-num { background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; }
@media (min-width: 900px) {
  .step-card:not(:last-child)::after { content: '➜'; position: absolute; top: 50%; right: -19px; transform: translateY(-50%); color: #b8cbd9; font-size: 15px; z-index: 2; }
  .step-card { position: relative; }
}

.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .12), transparent 40%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 16px); }
.cta-inner { position: relative; }
.cta-band .btn-light { box-shadow: 0 10px 26px rgba(2, 12, 27, .3); }

.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #0369a1, #5eead4); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: all .18s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }

/* Scroll-reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.rv.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Super responsive layer ---------- */
html, body { overflow-x: hidden; }

/* Tablet & below */
@media (max-width: 1024px) {
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .em-panel { max-width: 560px; }
}

/* Large phones / small tablets */
@media (max-width: 860px) {
  .topbar-inner { justify-content: center; text-align: center; font-size: 12.5px; }
  .section-head { align-items: flex-start; }
  .section-head .btn { padding: 8px 18px; font-size: 14px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; max-width: 340px; }
  .hero h1 { font-size: clamp(27px, 7vw, 38px); }
  .hero-copy > p { font-size: 15.5px; }
}

/* Phones */
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .section-head h2 { font-size: 22px; }
  .hero { padding: 40px 0 36px; }
  .hero-eyebrow { font-size: 12px; }
  /* prevent iOS auto-zoom: form controls at 16px */
  .sb-field select, .sb-field input, .filter-group input, .filter-group select,
  form input[type=text], form input[type=email], form input[type=tel], form input[type=date],
  form textarea, form select { font-size: 16px; }
  .hero-popular { font-size: 12.5px; gap: 6px 12px; }
  .hero-trust { margin-top: 24px; padding-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ht-item strong { font-size: 21px; }
  .em-panel { max-width: none; }
  .steps-grid { gap: 14px; }
  .step-card { padding: 24px 18px; }
  .post-card { padding: 20px; }
  .footer-grid { padding: 40px 16px 30px; gap: 26px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
  .pagination { gap: 6px; }
  .page-link { min-width: 36px; height: 36px; font-size: 14px; }
}

/* Phones: specialty grid becomes a compact 2-per-row tile grid */
@media (max-width: 700px) {
  .specialty-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sp-card { flex-direction: column; text-align: center; padding: 16px 10px 14px; gap: 9px; }
  .sp-info { align-items: center; }
  .sp-info strong { font-size: 13.5px; }
  .sp-info > span { font-size: 11.5px; }
  .sp-icon { width: 46px; height: 46px; font-size: 23px; border-radius: 13px; }
  .sp-arrow { display: none; }
}

/* Small phones */
@media (max-width: 420px) {
  .sp-card { padding: 13px 8px 12px; gap: 7px; }
  .sp-info strong { font-size: 12.5px; }
  .brand { font-size: 20px; }
  .brand-mark { font-size: 22px; }
  .brand-logo { height: 34px; max-width: 130px; }
  .topbar-inner { font-size: 11.5px; gap: 4px; }
  .topbar-right { display: none; }
  .hero h1 { font-size: 26px; }
  .search-bar { padding: 10px; }
  .sb-field { padding: 7px 12px; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .as-chip { padding: 4px 12px; font-size: 12.5px; }
  .doctor-card { padding: 0 16px 16px; }
  .doctor-card::before { margin: 0 -16px; }
  .hc-body { padding: 0 16px 16px; }
  .hc-foot { flex-wrap: wrap; gap: 10px; }
  .em-row strong { font-size: 16px; }
  .cta-inner h2 { font-size: 22px; }
  .dstat strong { font-size: 19px; }
  .profile-nav-inner { padding: 0 10px; }
  .profile-nav-inner a { padding: 12px 10px; font-size: 13.5px; }
}

/* ---------- Print (SEO reports) ---------- */
@media print {
  .admin-sidebar, .admin-topbar, .seo-tabs, .no-print, .btn { display: none !important; }
  .admin-shell { display: block; }
  .admin-main { padding: 0; }
  .card { border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { order: 2; }
  .profile-layout, .contact-layout, .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 22px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 11px 8px; border-radius: 10px; }
  .main-nav > a:not(.btn):hover { background: var(--bg); }
  .main-nav > a::after { display: none; }
  .nav-cta { margin-top: 8px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
}
@media (max-width: 700px) {
  .search-bar { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; }
  .sb-field { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; }
  .sb-divider { display: none; }
  .sb-btn { padding: 13px; }
  .hero-trust { gap: 16px; }
  .ht-sep { display: none; }
  .ht-item { min-width: 40%; }
  .area-strip-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .as-chips { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .search-card { flex-direction: column; align-items: stretch; }
  .form-row, .form-grid { grid-template-columns: 1fr; }
  .form-field.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 52px; }
  .section { padding: 44px 0; }
}
