:root {
    --ink: #101b19;
    --muted: #65726f;
    --line: #e1e9e6;
    --paper: #f6faf8;
    --panel: rgba(255, 255, 255, .86);
    --green: #087f6f;
    --green-2: #18bf8f;
    --blue: #315df4;
    --amber: #f5b84b;
    --rose: #ff6f61;
    --shadow: 0 22px 70px rgba(16, 27, 25, .12);
    --soft-shadow: 0 14px 34px rgba(16, 27, 25, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(8,127,111,.05) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(0deg, rgba(8,127,111,.04) 1px, transparent 1px) 0 0 / 44px 44px,
        var(--paper);
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
    padding-bottom: 76px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(225,233,230,.95);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(16,27,25,.07);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    font-size: 1.04rem;
}
.brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 10px 24px rgba(8,127,111,.28);
}
.desktop-nav { display: none; gap: 6px; align-items: center; color: #53625e; font-weight: 800; }
.desktop-nav a { padding: 10px 14px; border-radius: 999px; transition: .2s ease; }
.desktop-nav a:hover { color: var(--green); background: rgba(8,127,111,.08); }
.icon-btn {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 15px;
    background: #eef8f5;
}
.icon-btn span { width: 17px; height: 2px; border-radius: 9px; background: var(--green); }
.mobile-menu { display: grid; gap: 10px; }
.mobile-menu a { padding: 14px 16px; border-radius: 16px; background: #f6faf8; font-weight: 800; }

.hero {
    position: relative;
    display: grid;
    gap: 24px;
    margin: 0 10px;
    padding: 42px 18px 30px;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 15%, rgba(24,191,143,.18), transparent 34%),
        linear-gradient(135deg, #eefdf8 0%, #fffaf0 48%, #eef4ff 100%);
    min-height: 610px;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -34% 24%;
    height: 310px;
    background: repeating-linear-gradient(115deg, rgba(8,127,111,.09), rgba(8,127,111,.09) 8px, transparent 8px, transparent 18px);
    border-radius: 50%;
    opacity: .8;
    pointer-events: none;
}
.hero-copy, .search-panel { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    width: max-content;
    color: var(--green);
    background: rgba(8,127,111,.09);
    border: 1px solid rgba(8,127,111,.12);
    border-radius: 999px;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .72rem;
    font-weight: 900;
}
.hero h1 {
    margin: 16px 0 14px;
    max-width: 760px;
    font-size: clamp(2.6rem, 9vw, 5.6rem);
    line-height: .93;
    font-weight: 850;
}
.hero p { max-width: 610px; color: #53625e; font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.primary-link, .soft-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 900;
}
.primary-link { color: #fff; background: var(--ink); box-shadow: 0 16px 32px rgba(16,27,25,.16); }
.soft-link { color: var(--green); background: #fff; border: 1px solid var(--line); }
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
    max-width: 520px;
}
.quick-stats span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 12px 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.78);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
}
.quick-stats strong { color: var(--ink); font-size: 1.05rem; }

.search-panel {
    align-self: center;
    display: grid;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}
.search-title { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; font-weight: 900; }
.search-title small { color: var(--green); background: rgba(24,191,143,.12); border-radius: 999px; padding: 6px 10px; }
input, select, textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(16,27,25,.09);
    border-radius: 18px;
    padding: 13px 16px;
    color: var(--ink);
    background: rgba(255,255,255,.92);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: rgba(8,127,111,.36);
    box-shadow: 0 0 0 5px rgba(8,127,111,.09);
    background: #fff;
}
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
    background-position: calc(100% - 20px) 23px, calc(100% - 14px) 23px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
textarea { min-height: 120px; resize: vertical; }
.filter-grid, .form-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.suggestions {
    position: absolute;
    top: 112px;
    left: 14px;
    right: 14px;
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 20;
}
.suggestions button { width: 100%; border: 0; background: #fff; padding: 13px 16px; text-align: left; font-weight: 800; }
.suggestions button:hover { background: #f0faf6; }

.content-band, .directory-row, .trust-band, .profile-details { padding: 30px 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
h1, h2, h3 { letter-spacing: 0; }
h2 { font-size: clamp(1.28rem, 2.6vw, 1.85rem); margin: 0 0 14px; font-weight: 850; }
.filter-btn, .load-more, .directory-filter {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.9);
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(16,27,25,.06);
}
.doctor-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
.doctor-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(205,221,216,.86);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.84)),
        radial-gradient(circle at 15% 0%, rgba(24,191,143,.18), transparent 34%);
    box-shadow: 0 18px 48px rgba(16,27,25,.09);
    transform: translateY(12px);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease, box-shadow .25s ease, border-color .25s ease;
}
.doctor-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 96px;
    background:
        linear-gradient(135deg, rgba(8,127,111,.12), rgba(49,93,244,.10)),
        repeating-linear-gradient(120deg, rgba(255,255,255,.45), rgba(255,255,255,.45) 1px, transparent 1px, transparent 13px);
    pointer-events: none;
}
.doctor-card:hover {
    border-color: rgba(8,127,111,.24);
    box-shadow: 0 24px 68px rgba(16,27,25,.14);
    transform: translateY(-4px);
}
.doctor-card.in { transform: none; opacity: 1; }
.doctor-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px 0;
}
.doctor-photo {
    position: relative;
    width: 104px;
    height: 104px;
    padding: 5px;
    border-radius: 28px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 18px 36px rgba(16,27,25,.14);
}
.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 23px;
    background: #eaf3ef;
}
.doctor-status {
    display: grid;
    gap: 7px;
    justify-items: end;
    margin-top: 14px;
}
.doctor-status span,
.doctor-status strong {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .76rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(16,27,25,.08);
}
.doctor-status span {
    color: #fff;
    background: rgba(16,27,25,.82);
}
.doctor-status strong {
    color: var(--green);
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(8,127,111,.12);
}
.doctor-card-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding: 18px 20px 20px;
}
.doctor-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    margin-bottom: 9px;
    color: var(--green);
    font-size: .72rem;
    font-weight: 900;
}
.verified-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green-2);
    box-shadow: 0 0 0 5px rgba(24,191,143,.13);
}
.doctor-card h3 { margin: 0; font-size: 1.18rem; font-weight: 900; line-height: 1.22; }
.qualification, .doctor-card p { margin: 0; color: var(--muted); line-height: 1.48; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span, .pill-list a, .pill-list button {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(8,127,111,.13);
    border-radius: 999px;
    padding: 7px 11px;
    background: #f4fbf8;
    color: #39524c;
    font-weight: 850;
    font-size: .92rem;
}
.doctor-card .chips span {
    background: rgba(255,255,255,.78);
    border-color: rgba(8,127,111,.16);
    box-shadow: 0 8px 18px rgba(16,27,25,.04);
}
.symptom-line {
    display: -webkit-box;
    min-height: 42px;
    font-size: .92rem;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-actions, .sticky-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.btn {
    min-height: 46px;
    border-radius: 999px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
}
.doctor-card .btn {
    min-height: 48px;
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.doctor-card .btn:hover { transform: translateY(-1px); }
.btn-call { background: linear-gradient(135deg, #315df4, #2349d8); color: #fff; box-shadow: 0 14px 28px rgba(49,93,244,.20); }
.btn-wa { background: linear-gradient(135deg, #20c997, #12aa7e); color: #06231d; box-shadow: 0 14px 28px rgba(24,191,143,.18); }
.profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 0;
    padding: 11px 14px;
    color: var(--green);
    background: rgba(8,127,111,.07);
    border: 1px solid rgba(8,127,111,.10);
    border-radius: 16px;
    font-weight: 900;
}
.profile-link::after { content: "->"; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.directory-page {
    display: grid;
    gap: 16px;
}
.directory-page .breadcrumb {
    margin: 0;
    font-size: .92rem;
}
.directory-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    max-width: none;
    margin-top: 4px;
    padding: 18px 20px;
    border: 1px solid rgba(225,233,230,.82);
    border-radius: 24px;
    background: rgba(255,255,255,.68);
    box-shadow: 0 12px 32px rgba(16,27,25,.05);
}
.directory-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.02;
    font-weight: 850;
}
.directory-hero p:not(.eyebrow) {
    margin: 0;
    max-width: 360px;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.55;
}
.directory-pills {
    gap: 8px;
    padding: 0 2px 2px;
}
.directory-pills .directory-filter {
    min-height: 42px;
    border-radius: 999px;
    padding: 9px 15px;
    color: #294842;
    background: rgba(255,255,255,.72);
    border-color: rgba(8,127,111,.13);
    box-shadow: 0 8px 18px rgba(16,27,25,.04);
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.directory-pills .directory-filter:hover,
.directory-pills .directory-filter.active {
    transform: translateY(-1px);
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 14px 30px rgba(8,127,111,.18);
}
.directory-page .doctor-grid {
    margin-top: 6px;
}
.directory-row, .trust-grid, .two-col { display: grid; gap: 22px; }
.directory-row > div, .two-col > div {
    padding: 20px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(225,233,230,.88);
    box-shadow: 0 12px 32px rgba(16,27,25,.05);
}
.trust-band {
    margin: 10px;
    border-radius: 28px;
    background: linear-gradient(135deg, #101b19, #0b5148);
    color: #fff;
}
.trust-grid { grid-template-columns: repeat(2, 1fr); }
.trust-grid div, .mini-post, details {
    padding: 16px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    font-weight: 800;
}
.two-col .mini-post, .two-col details { background: #fff; color: var(--ink); border-color: var(--line); margin-bottom: 10px; }
.info-section {
    display: grid;
    gap: 18px;
}
.info-panel {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(225,233,230,.9);
    box-shadow: 0 16px 40px rgba(16,27,25,.06);
}
.info-panel h2 {
    margin: 6px 0 18px;
}
.faq-list,
.article-list {
    display: grid;
    gap: 12px;
}
.faq-item {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(243,250,247,.9));
    border: 1px solid rgba(8,127,111,.13);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(16,27,25,.04);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-weight: 900;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--green);
    background: rgba(22,189,143,.12);
    font-size: 1.2rem;
    line-height: 1;
}
.faq-item[open] summary::after {
    content: "-";
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
}
.faq-item p {
    margin: 0;
    padding: 0 56px 16px 16px;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 700;
}
.article-card {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 16px 46px 16px 16px;
    min-height: 82px;
    border-radius: 18px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(225,233,230,.92);
    box-shadow: 0 8px 20px rgba(16,27,25,.035);
}
.article-card::after {
    content: "->";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-weight: 950;
}
.article-card span {
    color: var(--green);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}
.article-card strong {
    font-size: 1rem;
    line-height: 1.35;
}
.bottom-nav {
    position: fixed;
    z-index: 35;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.bottom-nav a { display: grid; place-items: center; gap: 2px; padding: 9px 4px; color: var(--muted); font-size: 1.08rem; }
.bottom-nav span { font-size: .68rem; font-weight: 900; }
.site-footer {
    display: grid;
    gap: 14px;
    margin: 10px;
    padding: 26px 20px 102px;
    color: #53625e;
    background: #eaf4f0;
    border-radius: 28px 28px 0 0;
}
.site-footer div:last-child { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 850; }

.profile-hero {
    display: grid;
    gap: 20px;
    margin: 0 10px;
    padding: 24px 18px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fffaf0, #eaf8f4);
}
.profile-hero img { width: 100%; border-radius: 24px; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: var(--shadow); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.profile-details { display: grid; gap: 14px; }
.profile-details > div {
    background: rgba(255,255,255,.84);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(16,27,25,.05);
}
iframe { width: 100%; min-height: 260px; border: 0; border-radius: 18px; }

.admin-login { min-height: 75vh; display: grid; place-items: center; padding: 24px; }
.admin-form { display: grid; gap: 16px; width: min(100%, 760px); background: #fff; border: 1px solid #dbe6f4; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.admin-shell { display: grid; min-height: 80vh; }
.admin-pro { width: min(calc(100% - 24px), 1480px); margin: 18px auto 32px; gap: 18px; }
.admin-sidebar {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 12px 28px rgba(16,27,25,.06);
}
.admin-brand { display: none; }
.admin-shell aside a { white-space: nowrap; padding: 11px 14px; border-radius: 14px; color: var(--muted); font-weight: 850; transition: background .2s ease, color .2s ease, transform .2s ease; }
.admin-shell aside a:hover { color: var(--green); background: rgba(8,127,111,.07); }
.admin-shell aside .active { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 12px 24px rgba(8,127,111,.16); }
.admin-main { padding: 0; display: grid; gap: 14px; min-width: 0; }
.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,250,248,.88));
    box-shadow: 0 12px 30px rgba(16,27,25,.05);
}
.admin-page-head h1 { margin: 6px 0 5px; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 850; line-height: .96; }
.admin-page-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.admin-page-head .btn { flex: 0 0 auto; min-height: 48px; padding: 0 18px; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-metrics div {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.88);
    box-shadow: 0 10px 24px rgba(16,27,25,.045);
}
.admin-metrics div::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green-2);
    box-shadow: 0 0 0 6px rgba(24,191,143,.12);
}
.admin-metrics span { display: block; color: var(--muted); font-weight: 850; font-size: .8rem; }
.admin-metrics strong { display: block; margin-top: 6px; font-size: 2rem; line-height: 1; }
.admin-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 30px rgba(16,27,25,.05);
}
.admin-toolbar label {
    display: grid;
    gap: 6px;
    color: #516461;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-toolbar input,
.admin-toolbar select {
    min-height: 46px;
    border-radius: 15px;
    padding: 10px 14px;
    font-size: .96rem;
    text-transform: none;
}
.admin-list-summary {
    color: var(--muted);
    font-weight: 850;
    padding: 0 4px;
}
.admin-table { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-empty-state {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px dashed #cfe0f6;
    border-radius: 22px;
    color: #64748b;
    background: rgba(255,255,255,.72);
}
.admin-empty-state strong { color: #14233a; font-size: 1.05rem; }
.admin-doctor-list { gap: 10px; }
.admin-doctor-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 24px rgba(16,27,25,.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.admin-doctor-card:hover {
    border-color: rgba(8,127,111,.22);
    box-shadow: 0 14px 30px rgba(16,27,25,.07);
    transform: translateY(-1px);
}
.admin-doctor-card img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.admin-doctor-info { display: grid; gap: 2px; min-width: 0; }
.admin-doctor-info strong { font-size: 1rem; line-height: 1.25; }
.admin-doctor-info span, .admin-doctor-info small, .quiet-text { color: var(--muted); font-weight: 750; }
.admin-meta-line {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.admin-meta-line div {
    display: grid;
    gap: 5px;
}
.admin-meta-line b {
    color: #516461;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-meta-line span {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-meta-line em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(8,127,111,.13);
    border-radius: 999px;
    color: #294842;
    background: #f4fbf8;
    font-style: normal;
    font-size: .8rem;
    font-weight: 850;
}
.status-pill { display: inline-flex; align-items: center; justify-content: center; width: max-content; min-height: 32px; padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 900; background: #eef4f2; color: var(--muted); }
.status-pill.pending { background: #fff5dc; color: #a16400; }
.status-pill.verified { background: #dcfff3; color: var(--green); }
.status-pill.rejected { background: #ffe8e8; color: #d7263d; }
.status-pill.active { background: #dcfff3; color: var(--green); }
.status-pill.inactive { background: #eef2f7; color: #64748b; }
.admin-doctor-card > .status-pill,
.admin-doctor-card > .admin-row-actions {
    grid-column: 2;
}
.admin-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: start; }
.mini-btn { min-height: 36px; padding: 0 14px; font-size: .82rem; box-shadow: none; }
.mini-btn.danger { background: #fff0f0; color: #d7263d; border: 1px solid #ffd5d5; box-shadow: none; }
.admin-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0 20px;
}
.admin-pager button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green);
    background: #fff;
    font-weight: 900;
}
.admin-pager button:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.admin-pager span {
    color: var(--muted);
    font-weight: 850;
}
.modern-form { gap: 18px; }
.modal-dialog-scrollable {
    min-height: calc(100vh - 32px);
    height: auto;
    margin: 16px auto;
}
#doctorModal.show,
#entityModal.show {
    display: grid !important;
    place-items: center;
    padding: 16px;
}
#doctorModal .modal-dialog,
#entityModal .modal-dialog {
    width: min(100%, 960px);
    max-width: 960px;
    min-height: 0;
    margin: 0 !important;
}
#doctorModal .modal-xl {
    width: min(100%, 960px);
    max-width: 960px;
}
#entityModal .modal-lg {
    width: min(100%, 760px);
    max-width: 760px;
}
.modal-dialog-centered.modal-dialog-scrollable {
    display: flex;
    align-items: center;
}
.modal-dialog-scrollable .modern-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    overflow: hidden;
}
.modal-dialog-scrollable .modern-form .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 24px 30px;
    overscroll-behavior: contain;
}
.modal-dialog-scrollable .modern-form .modal-footer,
.modal-dialog-scrollable .modern-form .modal-header {
    flex: 0 0 auto;
}
.modal-dialog-scrollable .modern-form .modal-footer {
    border-top: 1px solid #dbe6f4;
    padding: 16px 24px;
    background: #fff;
}
.form-modal-head { align-items: start; padding: 22px 24px; border-bottom: 1px solid #dbe6f4; }
.form-modal-head h5, .form-title h1 { margin: 0; color: #15253b; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; }
.form-modal-head p, .form-title p { margin: 4px 0 0; color: #667797; font-weight: 750; }
.form-grid { grid-template-columns: 1fr; gap: 14px; }
.form-span { grid-column: 1 / -1; }
.float-field {
    position: relative;
    display: block;
}
.float-field input,
.float-field select,
.float-field textarea {
    min-height: 72px;
    border: 1.5px solid #cfe0f6;
    border-radius: 14px;
    background: #fff;
    padding: 24px 18px 10px;
    color: #14233a;
    font-size: 1rem;
    font-weight: 650;
}
.float-field textarea { min-height: 124px; padding-top: 30px; }
.float-field span {
    position: absolute;
    left: 18px;
    top: 23px;
    color: #64799b;
    font-weight: 850;
    pointer-events: none;
    transform-origin: left top;
    transition: .16s ease;
}
.float-field input:focus,
.float-field select:focus,
.float-field textarea:focus {
    border-color: #2f64ff;
    box-shadow: 0 0 0 4px rgba(47,100,255,.08);
}
.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span,
.float-field input:-webkit-autofill + span,
.float-field textarea:focus + span,
.float-field textarea:not(:placeholder-shown) + span,
.float-field.has-value span,
.float-field select + span {
    top: 11px;
    color: #2f64ff;
    font-size: .78rem;
}
.float-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #eaf2ff inset;
    -webkit-text-fill-color: #14233a;
}
.float-field.is-loading::after {
    content: "Fetching...";
    position: absolute;
    right: 16px;
    top: 12px;
    color: #2f64ff;
    font-size: .72rem;
    font-weight: 900;
}
.tag-field {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 118px;
    padding: 15px 16px 12px;
    border: 1.5px solid #cfe0f6;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.tag-field:focus-within {
    border-color: #2f64ff;
    box-shadow: 0 0 0 4px rgba(47,100,255,.08);
}
.tag-label {
    color: #2f64ff;
    font-size: .78rem;
    font-weight: 900;
}
.tag-input-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}
.tag-list {
    display: contents;
}
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 9px 7px 12px;
    border-radius: 999px;
    color: #143126;
    background: #eaf8f3;
    border: 1px solid rgba(8,127,111,.14);
    font-weight: 850;
    font-size: .88rem;
}
.tag-chip button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(16,27,25,.54);
    line-height: 1;
    font-weight: 900;
}
.tag-field [data-tag-input] {
    flex: 1 1 150px;
    min-width: 120px;
    width: auto;
    min-height: 36px;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #14233a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 34px;
}
.tag-field [data-tag-input]:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}
.tag-field small {
    display: block;
    color: #72819a;
    font-weight: 750;
    font-size: .76rem;
    line-height: 1.35;
}
.tag-suggestions {
    position: absolute;
    z-index: 12;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dbe6f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20,35,58,.16);
}
.tag-field.show-suggestions .tag-suggestions {
    display: grid;
    gap: 4px;
}
.tag-suggestions button {
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    color: #243854;
    background: transparent;
    font-weight: 800;
    text-align: left;
}
.tag-suggestions button:hover,
.tag-suggestions button:focus {
    color: var(--green);
    background: #eef9f5;
}
.tag-suggestions button.d-none {
    display: none;
}
.form-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.form-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5edf8;
}
.form-section-head strong {
    color: #14233a;
    font-size: 1.02rem;
}
.form-section-head span {
    color: #64799b;
    font-size: .82rem;
    font-weight: 800;
}
.location-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.location-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5edf8;
}
.location-head strong { color: #14233a; font-size: 1.05rem; }
.location-head span { color: #64799b; font-weight: 800; font-size: .86rem; }
.location-result {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.location-result.d-none { display: none !important; }
.location-result .float-field input[readonly] {
    background: #eef5ff;
    color: #243854;
    cursor: not-allowed;
}
.image-uploader {
    position: relative;
    width: 170px;
    min-height: 170px;
}
.image-file-input { display: none; }
.upload-empty,
.upload-preview {
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 2px dashed #bfc8d6;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.upload-cloud {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, #6d7cf6, #2f64ff);
    font-size: 1.5rem;
    font-weight: 900;
}
.upload-empty strong { color: #344050; font-size: 1.2rem; font-weight: 900; }
.upload-empty small { color: #72819a; font-weight: 750; text-align: center; }
.upload-preview {
    position: relative;
    overflow: hidden;
    border-color: #3f6cff;
}
.upload-preview img { width: 136px; height: 136px; object-fit: cover; border-radius: 2px; }
.upload-actions { position: absolute; right: 10px; top: 10px; display: flex; gap: 7px; }
.upload-actions button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(20,35,58,.18);
}
.upload-actions .image-view { background: #6078e8; }
.upload-actions .image-remove { background: #ff4b55; }
.upload-actions svg { width: 19px; height: 19px; fill: currentColor; }
.crop-dialog { max-width: min(920px, calc(100vw - 24px)); margin: 12px auto; }
.crop-modal {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    max-height: calc(100vh - 24px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    background: #11131f;
}
.crop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; color: #fff; background: #11131f; border-bottom: 1px solid rgba(255,255,255,.08); }
.crop-head h5 { margin: 0; font-size: 1.25rem; font-weight: 900; }
.crop-head p { margin: 4px 0 0; color: #dbe4ee; font-weight: 800; }
.crop-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.10);
    font-size: 1.6rem;
    line-height: 1;
}
.crop-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 18px; background: #181827; border-bottom: 1px solid rgba(255,255,255,.08); }
.move-pad { display: flex; gap: 8px; flex-wrap: wrap; }
.crop-icon-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #f8fbff;
    background: rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    padding: 0;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.crop-icon-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); }
.crop-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.zoom-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 320px);
}
.crop-tools input[type="range"] {
    flex: 1;
    width: 190px;
    min-height: 0;
    padding: 0;
    box-shadow: none;
    accent-color: #4b8dff;
}
.crop-stage {
    min-height: 0;
    padding: 20px;
    background: radial-gradient(circle at 50% 35%, #202036, #11131f 68%);
    display: grid;
    place-items: center;
    gap: 8px;
}
.crop-stage canvas {
    width: min(100%, 760px);
    max-height: min(58vh, 480px);
    aspect-ratio: 760 / 480;
    background: #080a12;
    cursor: grab;
    touch-action: none;
    user-select: none;
    border-radius: 2px;
    box-shadow: 0 26px 60px rgba(0,0,0,.34);
}
.crop-stage canvas.dragging { cursor: grabbing; }
.crop-stage p { margin: 0; color: #cbd4e3; font-weight: 750; font-size: .9rem; text-align: center; }
.crop-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 14px 18px; background: #181827; border-top: 1px solid rgba(255,255,255,.08); }
.crop-foot .soft-cancel { color: #eaf0fa; background: rgba(255,255,255,.10); }
.crop-parent-paused { pointer-events: none; }
.crop-parent-paused .modal-dialog { filter: blur(1px); }
.image-preview-dialog {
    max-width: min(760px, calc(100vw - 24px));
    margin: 12px auto;
}
.image-preview-modal {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(78vh, 720px);
    padding: 54px 18px 18px;
    border: 0;
    border-radius: 24px;
    background: #0f111a;
    box-shadow: 0 34px 90px rgba(0,0,0,.38);
    overflow: hidden;
}
.image-preview-modal img {
    max-width: 100%;
    max-height: calc(78vh - 82px);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0,0,0,.32);
}
.image-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-size: 1.7rem;
    line-height: 1;
}
.soft-cancel { background: #eef2f7; color: #344050; box-shadow: none; }
.auth-page { width: min(calc(100% - 32px), 760px); margin: 36px auto; }
.auth-card { display: grid; gap: 18px; padding: 28px; border: 1px solid #dbe6f4; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-card.compact { width: min(100%, 520px); margin: 0 auto; }
.form-title { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #dbe6f4; }
.form-title span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #2f64ff; border-radius: 9px; color: #2f64ff; font-size: 1.4rem; }
.auth-switch { margin: 0; color: var(--muted); font-weight: 750; }
.auth-switch a { color: #2f64ff; font-weight: 900; }
.skeleton-grid:empty::before {
    content: "";
    display: block;
    min-height: 260px;
    border-radius: 28px;
    background: linear-gradient(90deg,#e8f2ee,#fff,#e8f2ee);
    animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 0% { opacity: .55; } 50% { opacity: 1; } 100% { opacity: .55; } }

@media (max-width: 420px) {
    .hero { min-height: auto; }
    .directory-hero { display: grid; padding: 16px; }
    .directory-hero p:not(.eyebrow) { max-width: none; }
    .modal-dialog-scrollable {
        min-height: calc(100vh - 16px);
        height: auto;
        margin: 8px;
    }
    #doctorModal.show,
    #entityModal.show {
        padding: 8px;
    }
    #doctorModal .modal-dialog,
    #entityModal .modal-dialog {
        width: 100%;
    }
    .modal-dialog-scrollable .modern-form {
        max-height: calc(100vh - 16px);
    }
    .modal-dialog-scrollable .modern-form .modal-body {
        max-height: calc(100vh - 200px);
        padding: 18px;
    }
    .quick-stats { grid-template-columns: 1fr; }
    .card-actions { grid-template-columns: 1fr; }
    .doctor-card-top { align-items: flex-start; }
    .doctor-photo { width: 96px; height: 96px; border-radius: 26px; }
    .doctor-photo img { border-radius: 21px; }
    .doctor-status { gap: 6px; }
}
@media (min-width: 720px) {
    body { padding-bottom: 0; }
    .desktop-nav { display: flex; }
    .bottom-nav { display: none; }
    .app-topbar { margin: 16px auto; width: min(calc(100% - 32px), 1180px); padding: 12px 14px; }
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
        align-items: center;
        width: min(calc(100% - 32px), 1180px);
        margin: 0 auto;
        padding: 56px 48px;
        min-height: 560px;
    }
    .filter-grid, .form-grid { grid-template-columns: repeat(2, 1fr); }
    .location-card > .form-grid { grid-template-columns: 1fr; }
    .location-result { grid-template-columns: repeat(3, 1fr); }
    .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .directory-row, .two-col, .info-section, .profile-hero { grid-template-columns: 1fr 1fr; }
    .content-band, .directory-row, .profile-details { width: min(calc(100% - 32px), 1180px); margin: 0 auto; padding: 38px 0; }
    .directory-page { padding-top: 38px; gap: 16px; }
    .trust-band { width: min(calc(100% - 32px), 1180px); margin: 10px auto; padding: 42px; }
    .profile-details { grid-template-columns: repeat(2, 1fr); }
    .profile-hero { width: min(calc(100% - 32px), 1180px); margin: 0 auto; padding: 36px; }
    .profile-hero img { max-width: 420px; }
    .site-footer { grid-template-columns: 1fr auto; width: min(calc(100% - 32px), 1180px); margin: 20px auto 0; padding: 32px; }
}
@media (min-width: 1040px) {
    .hero h1 { font-size: 5.25rem; }
    .doctor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .directory-page .doctor-grid { gap: 18px; }
    .directory-page .doctor-card-body { padding: 17px 18px 18px; }
    .directory-page .doctor-card-top { padding: 18px 18px 0; }
    .directory-page .doctor-photo { width: 96px; height: 96px; }
    .directory-page .doctor-card h3 { font-size: 1.1rem; }
    .directory-page .btn { min-height: 44px; font-size: .9rem; }
    .admin-shell { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
    .admin-sidebar { position: sticky; top: 104px; display: grid; align-content: start; overflow: visible; min-height: calc(100vh - 132px); padding: 14px; }
    .admin-brand { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
    .admin-brand span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-2)); font-weight: 900; }
    .admin-brand strong, .admin-brand small { display: block; }
    .admin-brand small { color: var(--muted); font-weight: 800; }
    .admin-row span small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 850;
}
.admin-row { grid-template-columns: 1.2fr 1fr auto auto; align-items: center; }
    .admin-toolbar { grid-template-columns: minmax(260px, 1fr) 170px 130px; align-items: end; }
    .admin-doctor-card { grid-template-columns: 64px minmax(260px, 1fr) minmax(360px, 1.55fr) auto; gap: 18px; }
    .admin-doctor-card img { width: 64px; height: 64px; }
    .admin-doctor-info { display: contents; }
    .admin-doctor-info > strong,
    .admin-doctor-info > small { grid-column: 2; }
    .admin-meta-line { grid-column: 3; grid-row: 1 / span 3; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: center; margin-top: 0; }
    .admin-doctor-card > .status-pill { grid-column: 4; grid-row: 1; justify-self: end; }
    .admin-doctor-card > .admin-row-actions { grid-column: 4; grid-row: 2 / span 2; justify-content: end; align-self: end; }
}

/* Admin dashboard polish: reliable desktop rows and no sticky-nav overlap. */
body:has(.admin-pro) .app-topbar {
    position: relative;
    top: auto;
}
.admin-pro {
    margin-top: 22px;
}
.admin-doctor-profile {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.admin-doctor-profile strong {
    font-size: 1.02rem;
    line-height: 1.25;
}
.admin-doctor-profile small {
    color: var(--muted);
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-doctor-card > .admin-meta-line,
.admin-doctor-card > .status-pill,
.admin-doctor-card > .admin-row-actions {
    grid-column: 2;
}
.admin-doctor-card .status-pill.verified {
    background: #dcfff3;
    box-shadow: none;
}
@media (min-width: 900px) {
    .admin-pro {
        width: min(calc(100% - 40px), 1500px);
    }
    .admin-page-head {
        min-height: 136px;
    }
    .admin-doctor-card {
        grid-template-columns: 72px minmax(220px, .8fr) minmax(360px, 1.6fr) minmax(120px, auto);
        grid-template-rows: auto auto;
        gap: 16px 20px;
        align-items: center;
        padding: 16px 18px;
    }
    .admin-doctor-card img {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
    .admin-doctor-profile {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .admin-doctor-card > .admin-meta-line {
        grid-column: 3;
        grid-row: 1 / span 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
    }
    .admin-doctor-card > .status-pill {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
    }
    .admin-doctor-card > .admin-row-actions {
        grid-column: 4;
        grid-row: 2;
        justify-content: end;
        align-self: end;
    }
    .admin-doctor-card > .admin-row-actions .quiet-text {
        display: none;
    }
}
@media (max-width: 899px) {
    .admin-page-head {
        display: grid;
    }
    .admin-metrics {
        grid-template-columns: 1fr;
    }
}

/* Admin mobile refinement and local cache-friendly layout. */
body:has(.admin-pro) {
    padding-bottom: 0;
}
body:has(.admin-pro) .bottom-nav {
    display: none;
}
body:has(.admin-pro) .site-footer {
    padding-bottom: 26px;
}
@media (max-width: 899px) {
    body:has(.admin-pro) .app-topbar {
        margin: 8px 6px;
        border-radius: 18px;
    }
    .admin-pro {
        width: min(calc(100% - 10px), 560px);
        margin: 8px auto 22px;
        gap: 10px;
    }
    .admin-sidebar {
        gap: 6px;
        padding: 8px;
        border-radius: 18px;
        box-shadow: 0 8px 20px rgba(16,27,25,.045);
    }
    .admin-shell aside a {
        padding: 9px 12px;
        border-radius: 12px;
        font-size: .9rem;
    }
    .admin-main {
        gap: 10px;
    }
    .admin-page-head {
        gap: 12px;
        padding: 16px;
        border-radius: 18px;
    }
    .admin-page-head h1 {
        margin: 4px 0;
        font-size: 2.25rem;
    }
    .admin-page-head p:not(.eyebrow) {
        font-size: .92rem;
        line-height: 1.5;
    }
    .admin-page-head .btn {
        width: 100%;
        min-height: 44px;
        border-radius: 16px;
    }
    .admin-metrics {
        gap: 8px;
    }
    .admin-metrics div {
        padding: 12px 14px;
        min-height: 68px;
        border-radius: 16px;
    }
    .admin-metrics div::after {
        top: 13px;
        right: 13px;
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 5px rgba(24,191,143,.12);
    }
    .admin-metrics span {
        font-size: .7rem;
    }
    .admin-metrics strong {
        margin-top: 5px;
        font-size: 1.65rem;
    }
    .admin-doctor-list {
        gap: 8px;
    }
    .admin-doctor-card {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        gap: 10px 12px;
        align-items: center;
        padding: 12px;
        border-radius: 17px;
    }
    .admin-doctor-card img {
        grid-column: 1;
        grid-row: 1;
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
    .admin-doctor-profile {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }
    .admin-doctor-profile strong {
        font-size: .94rem;
    }
    .admin-doctor-profile small {
        font-size: .72rem;
    }
    .admin-doctor-card > .admin-meta-line {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 2px;
        padding: 10px;
        border: 1px solid rgba(225,233,230,.82);
        border-radius: 14px;
        background: rgba(246,250,248,.72);
    }
    .admin-meta-line div {
        gap: 4px;
        min-width: 0;
    }
    .admin-meta-line b {
        font-size: .58rem;
        color: #65726f;
    }
    .admin-meta-line span {
        gap: 4px;
    }
    .admin-meta-line em {
        min-height: 23px;
        padding: 3px 7px;
        font-size: .68rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-doctor-card > .status-pill {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        min-height: 28px;
        padding: 6px 9px;
        font-size: .68rem;
    }
    .admin-doctor-card > .admin-row-actions {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: stretch;
    }
    .admin-row-actions .btn {
        flex: 1 1 auto;
        min-height: 36px;
        border-radius: 13px;
    }
    .admin-row-actions .quiet-text {
        display: none;
    }
}
@media (max-width: 360px) {
    .admin-doctor-card > .admin-meta-line {
        grid-template-columns: 1fr;
    }
}

/* Admin doctor app-style filters. */
.admin-doctor-filters {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 24px rgba(16,27,25,.045);
}
.admin-doctor-search {
    display: grid;
    gap: 6px;
    margin: 0;
}
.admin-doctor-search span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-doctor-search input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f8fbfa;
    color: var(--ink);
    font-weight: 800;
    outline: none;
}
.admin-doctor-search input:focus {
    border-color: rgba(8,127,111,.34);
    box-shadow: 0 0 0 4px rgba(8,127,111,.08);
    background: #fff;
}
.admin-status-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.admin-status-tabs::-webkit-scrollbar {
    display: none;
}
.admin-status-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(8,127,111,.13);
    border-radius: 999px;
    color: #294842;
    background: #f4fbf8;
    font-weight: 900;
}
.admin-status-tabs button.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 10px 22px rgba(8,127,111,.16);
}
@media (min-width: 900px) {
    .admin-doctor-filters {
        grid-template-columns: minmax(280px, 1fr) auto;
        align-items: end;
    }
    .admin-status-tabs {
        justify-content: end;
        padding-bottom: 0;
    }
}
@media (max-width: 899px) {
    .admin-doctor-filters {
        position: sticky;
        top: 0;
        z-index: 20;
        gap: 9px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255,255,255,.94);
        backdrop-filter: blur(16px);
    }
    .admin-doctor-search span {
        display: none;
    }
    .admin-doctor-search input {
        min-height: 42px;
        border-radius: 999px;
        padding: 9px 15px;
        font-size: .9rem;
    }
    .admin-status-tabs button {
        min-height: 34px;
        padding: 0 12px;
        font-size: .78rem;
    }
    #adminDoctorSummary {
        padding: 0 4px;
        font-size: .78rem;
    }
}

/* Doctor list visual refresh. */
.admin-doctor-list {
    gap: 12px;
}
.admin-doctor-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(8,127,111,.12);
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,252,250,.93));
}
.admin-doctor-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green), var(--green-2));
    opacity: 0;
    transition: opacity .2s ease;
}
.admin-doctor-card:hover::before {
    opacity: 1;
}
.admin-doctor-card img {
    border: 3px solid #fff;
    box-shadow: 0 12px 26px rgba(16,27,25,.12);
}
.admin-doctor-profile strong {
    color: #0d1f1b;
    font-weight: 900;
}
.admin-doctor-profile small {
    color: #6b7b77;
}
.admin-meta-line {
    align-items: start;
}
.admin-meta-line div {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(225,233,230,.72);
    border-radius: 14px;
    background: rgba(255,255,255,.62);
}
.admin-meta-line b {
    color: #6a7975;
    font-size: .66rem;
}
.admin-meta-line em {
    background: #eefaf6;
    border-color: rgba(8,127,111,.15);
    color: #214842;
}
.admin-doctor-card > .status-pill {
    box-shadow: 0 10px 20px rgba(24,191,143,.10);
}
.admin-row-actions .mini-btn {
    min-width: 84px;
    border-radius: 13px;
    background: #101b19;
    color: #fff;
}
.admin-row-actions .mini-btn:hover {
    background: var(--green);
}
@media (min-width: 900px) {
    .admin-doctor-card {
        grid-template-columns: 84px minmax(260px, .9fr) minmax(520px, 1.7fr) 112px;
        min-height: 150px;
        padding: 18px 20px 18px 22px;
        border-radius: 18px;
    }
    .admin-doctor-card img {
        width: 84px;
        height: 84px;
        border-radius: 20px;
    }
    .admin-doctor-profile {
        gap: 8px;
    }
    .admin-doctor-profile strong {
        font-size: 1.18rem;
    }
    .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
    .admin-meta-line div:last-child {
        grid-column: span 1;
    }
    .admin-meta-line span {
        max-height: 78px;
        overflow: hidden;
    }
    .admin-doctor-card > .status-pill {
        align-self: start;
    }
    .admin-doctor-card > .admin-row-actions {
        align-self: end;
    }
}
@media (max-width: 899px) {
    .admin-doctor-card {
        box-shadow: 0 10px 24px rgba(16,27,25,.055);
    }
    .admin-doctor-card::before {
        width: 3px;
        opacity: 1;
    }
    .admin-doctor-card > .admin-meta-line {
        grid-template-columns: 1fr 1fr;
        background: rgba(248,252,250,.9);
    }
    .admin-meta-line div {
        padding: 8px;
    }
    .admin-doctor-card > .admin-meta-line div:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 420px) {
    .admin-doctor-card > .admin-meta-line {
        grid-template-columns: 1fr;
    }
    .admin-doctor-card > .admin-meta-line div:last-child {
        grid-column: auto;
    }
}

/* Compact admin doctor rows with +more detail chips. */
.admin-pro .admin-doctor-list {
    gap: 8px;
}

.admin-pro .admin-doctor-card {
    min-height: 0;
    padding: 12px 14px;
    border-radius: 16px;
}

.admin-pro .admin-doctor-card img {
    width: 58px;
    height: 58px;
    border-width: 2px;
    border-radius: 16px;
}

.admin-pro .admin-doctor-profile {
    min-width: 0;
}

.admin-pro .admin-doctor-profile strong {
    font-size: 1rem;
    line-height: 1.15;
}

.admin-pro .admin-doctor-profile small {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-pro .admin-meta-line {
    gap: 8px;
}

.admin-pro .admin-meta-line div,
.admin-pro .admin-meta-group {
    min-height: 0;
    padding: 8px 9px;
    border-radius: 12px;
}

.admin-pro .admin-meta-line b,
.admin-pro .admin-meta-group b {
    margin-bottom: 5px;
    font-size: .6rem;
    letter-spacing: .01em;
}

.admin-pro .admin-meta-line span,
.admin-pro .admin-meta-group span {
    gap: 4px;
    max-height: none;
    overflow: visible;
}

.admin-pro .admin-meta-line em,
.admin-pro .admin-more-chip {
    min-height: 24px;
    padding: 3px 8px;
    font-size: .74rem;
    line-height: 1.15;
}

.admin-pro .admin-more-chip {
    border: 1px solid rgba(49, 93, 244, .18);
    border-radius: 999px;
    background: #eef4ff;
    color: #315df4;
    font-weight: 900;
    cursor: pointer;
}

.admin-pro .admin-more-chip:hover {
    background: #dfe9ff;
}

.admin-pro .admin-row-actions .mini-btn {
    min-height: 34px;
    min-width: 76px;
    padding: 8px 14px;
}

.admin-more-modal {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

.admin-more-modal .modal-header {
    border-bottom: 1px solid rgba(8, 127, 111, .1);
}

.admin-more-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-more-list span {
    padding: 7px 10px;
    border: 1px solid rgba(8, 127, 111, .14);
    border-radius: 999px;
    background: #eefaf6;
    color: #214842;
    font-weight: 850;
}

@media (min-width: 900px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 60px minmax(190px, .7fr) minmax(500px, 1.85fr) 92px;
        gap: 12px 16px;
        min-height: 108px;
        padding: 12px 14px 12px 16px;
    }

    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-pro .admin-doctor-card > .status-pill {
        min-height: 30px;
        padding: 8px 12px;
        font-size: .72rem;
    }
}

@media (max-width: 899px) {
    .admin-pro .admin-doctor-card {
        padding: 10px;
        gap: 9px;
    }

    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        padding: 8px;
    }

    .admin-pro .admin-doctor-card img {
        width: 52px;
        height: 52px;
    }
}

.admin-pro .admin-row-actions .map-link {
    background: #eef4ff;
    color: #315df4;
    border: 1px solid rgba(49, 93, 244, .16);
}

.admin-pro .admin-row-actions .map-link:hover {
    background: #dfe9ff;
}

/* Compact doctor action controls. */
.admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-self: center;
    justify-self: end;
    width: 112px;
}

.admin-pro .compact-actions .mini-btn {
    min-width: 0;
    min-height: 30px;
    width: 100%;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: .72rem;
    line-height: 1;
    white-space: nowrap;
}

.admin-pro .compact-actions .status-toggle {
    border: 1px solid rgba(8, 127, 111, .18);
    background: #ecfdf5;
    color: #087f6f;
}

.admin-pro .compact-actions .status-toggle.is-inactive {
    border-color: rgba(215, 38, 61, .18);
    background: #fff0f0;
    color: #d7263d;
}

@media (min-width: 900px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 60px minmax(180px, .68fr) minmax(500px, 1.9fr) 112px;
    }
}

@media (max-width: 899px) {
    .admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-self: stretch;
    }
}

/* Visible compact verification + active state controls. */
.admin-pro .doctor-status-stack {
    grid-column: 4;
    grid-row: 1;
    display: grid;
    gap: 6px;
    justify-items: stretch;
    align-self: start;
    justify-self: end;
    width: 94px;
}

.admin-pro .doctor-status-stack .status-pill {
    justify-content: center;
    min-height: 28px;
    padding: 7px 10px;
    font-size: .72rem;
}

.admin-pro .compact-status {
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(8, 127, 111, .18);
    border-radius: 999px;
    background: #ecfdf5;
    color: #087f6f;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.admin-pro .compact-status.is-inactive {
    border-color: rgba(215, 38, 61, .18);
    background: #fff0f0;
    color: #d7263d;
}

.admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
    grid-row: 2;
    width: 112px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: end;
}

@media (max-width: 899px) {
    .admin-pro .doctor-status-stack {
        grid-column: 2;
        grid-row: 1;
        width: 92px;
    }
}

/* Final doctor card action alignment pass. */
@media (min-width: 900px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 60px minmax(180px, .62fr) minmax(520px, 1.9fr) 142px !important;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 14px;
        row-gap: 8px;
        min-height: 118px;
        overflow: visible;
    }

    .admin-pro .admin-doctor-card > img,
    .admin-pro .admin-doctor-card > .admin-doctor-profile {
        grid-row: 1 / span 2;
        align-self: center;
    }

    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .admin-pro .doctor-status-stack {
        grid-column: 4 !important;
        grid-row: 1 !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 142px;
        align-self: end;
        justify-self: end;
    }

    .admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
        grid-column: 4 !important;
        grid-row: 2 !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 142px;
        align-self: start;
        justify-self: end;
    }
}

.admin-pro .doctor-status-stack .status-pill,
.admin-pro .doctor-status-stack .compact-status,
.admin-pro .admin-row-actions.compact-actions .mini-btn {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 7px 8px;
    border-radius: 13px;
    font-size: .72rem;
    line-height: 1;
    text-align: center;
}

.admin-pro .doctor-status-stack .status-pill,
.admin-pro .doctor-status-stack .compact-status {
    border-radius: 999px;
}

@media (max-width: 899px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 52px minmax(0, 1fr) 82px !important;
        align-items: start;
        overflow: visible;
        row-gap: 8px;
    }

    .admin-pro .admin-doctor-card > img {
        grid-column: 1;
        grid-row: 1;
    }

    .admin-pro .admin-doctor-card > .admin-doctor-profile {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .admin-pro .doctor-status-stack {
        grid-column: 3 !important;
        grid-row: 1 !important;
        grid-template-columns: 1fr;
        gap: 5px;
        width: 82px;
        align-self: start;
        justify-self: end;
    }

    .admin-pro .doctor-status-stack .status-pill,
    .admin-pro .doctor-status-stack .compact-status {
        min-height: 24px;
        padding: 5px 6px;
        font-size: .58rem;
    }

    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0;
        width: 100%;
    }

    .admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        justify-self: stretch;
        align-self: stretch;
        margin-top: 0;
    }

    .admin-pro .admin-row-actions.compact-actions .mini-btn {
        min-height: 30px;
        border-radius: 12px;
    }
}

/* App toast notifications replace blocking browser alerts. */
.app-toast-host {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px 12px 14px;
    border: 1px solid rgba(8, 127, 111, .16);
    border-radius: 16px;
    background: rgba(246, 255, 251, .96);
    color: #10201b;
    box-shadow: 0 18px 45px rgba(16, 27, 25, .14);
    font-weight: 850;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
}

.app-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-toast.is-error {
    border-color: rgba(215, 38, 61, .18);
    background: rgba(255, 246, 246, .96);
}

.app-toast button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 27, 25, .08);
    color: #10201b;
    font-size: 1rem;
    line-height: 1;
    font-weight: 900;
}

@media (max-width: 640px) {
    .app-toast-host {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Home smart filter replaces long symptom/specialty dumps. */
.smart-directory {
    display: grid;
    gap: 16px;
    margin: 0 18px;
    padding: 18px;
    border: 1px solid rgba(205,221,216,.88);
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 16px 42px rgba(16,27,25,.07);
}
.smart-filter-head {
    display: grid;
    gap: 14px;
    align-items: end;
}
.smart-filter-head h2 { margin: 10px 0 6px; }
.smart-filter-head p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.smart-filter-search {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-weight: 900;
    color: #4f615c;
    text-transform: uppercase;
    font-size: .72rem;
}
.smart-filter-search input {
    min-height: 48px;
    border-radius: 16px;
    text-transform: none;
    font-size: .94rem;
    font-weight: 800;
}
.smart-filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(8,127,111,.10);
    border-radius: 18px;
    background: rgba(244,251,248,.86);
}
.smart-filter-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    color: #2f4d47;
    background: transparent;
    font-weight: 900;
}
.smart-filter-tabs button small {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(8,127,111,.08);
    color: var(--green);
}
.smart-filter-tabs button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 12px 28px rgba(8,127,111,.18);
}
.smart-filter-tabs button.active small { color: #fff; background: rgba(255,255,255,.18); }
.smart-filter-panels {
    min-height: 188px;
}
.smart-filter-panel { display: none; }
.smart-filter-panel.active { display: grid; gap: 12px; }
.smart-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #53625e;
    font-size: .9rem;
}
.smart-panel-title strong { color: var(--ink); font-size: 1rem; }
.smart-panel-title span { font-weight: 850; }
.smart-pill-list {
    max-height: 176px;
    overflow: hidden;
    align-content: start;
}
.smart-directory.expanded .smart-pill-list,
.smart-directory.is-searching .smart-pill-list {
    max-height: none;
}
.smart-pill-list .directory-filter {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
}
.smart-pill-list .directory-filter.is-hidden { display: none; }
.smart-pill-list .directory-filter:hover,
.smart-pill-list .directory-filter.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--green-2));
}
.smart-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
}
.smart-filter-actions button,
.smart-filter-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 14px;
    font-weight: 900;
}
.smart-filter-actions button {
    border: 0;
    color: #fff;
    background: var(--ink);
}
.smart-filter-actions a {
    color: var(--green);
    border: 1px solid rgba(8,127,111,.16);
    background: rgba(244,251,248,.86);
}
.smart-empty {
    padding: 18px;
    border: 1px dashed rgba(8,127,111,.22);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(244,251,248,.68);
    font-weight: 850;
}
@media (min-width: 860px) {
    .smart-directory {
        max-width: 1220px;
        margin: 0 auto;
        padding: 24px;
    }
    .smart-filter-head {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    }
}
@media (max-width: 640px) {
    .smart-directory {
        margin: 0 10px;
        padding: 14px;
        border-radius: 22px;
    }
    .smart-filter-tabs { grid-template-columns: 1fr; }
    .smart-pill-list { max-height: 152px; gap: 7px; }
    .smart-filter-actions { align-items: stretch; flex-direction: column; }
    .smart-filter-actions button,
    .smart-filter-actions a { width: 100%; }
}

/* Category-first public search flow. */
.category-search-panel {
    gap: 14px;
}
.category-step,
.find-step {
    display: grid;
    gap: 10px;
}
.step-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #49615b;
    font-weight: 900;
    font-size: .9rem;
}
.step-label b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #fff;
    background: var(--green);
    font-size: .8rem;
}
.provider-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 164px;
    overflow: auto;
    padding-right: 2px;
}
.provider-category-list button {
    min-height: 42px;
    border: 1px solid rgba(8,127,111,.13);
    border-radius: 14px;
    padding: 8px 10px;
    color: #294842;
    background: rgba(244,251,248,.92);
    font-weight: 900;
    text-align: center;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.provider-category-list button:hover,
.provider-category-list button.active {
    transform: translateY(-1px);
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 10px 24px rgba(8,127,111,.16);
}
.find-step input {
    border-radius: 18px;
    font-weight: 800;
}
@media (min-width: 620px) {
    .provider-category-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
    .provider-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .provider-category-list { grid-template-columns: 1fr; max-height: 188px; }
}

/* Separate public category selector below hero. */
.browse-categories {
    display: grid;
    gap: 14px;
    max-width: 1220px;
    margin: 18px auto 0;
    padding: 18px;
    border: 1px solid rgba(205,221,216,.88);
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 14px 36px rgba(16,27,25,.06);
}
.browse-categories-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}
.browse-categories-head h2 {
    margin: 9px 0 0;
}
.browse-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.browse-category {
    min-height: 48px;
    border: 1px solid rgba(8,127,111,.13);
    border-radius: 16px;
    padding: 10px 12px;
    color: #294842;
    background: rgba(244,251,248,.92);
    font-weight: 900;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.browse-category:hover,
.browse-category.active {
    transform: translateY(-1px);
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 12px 28px rgba(8,127,111,.18);
}
.browse-categories-head .browse-category {
    min-width: 130px;
}
@media (min-width: 720px) {
    .browse-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
    .browse-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .browse-categories {
        margin: 12px 10px 0;
        padding: 14px;
        border-radius: 22px;
    }
    .browse-categories-head {
        align-items: stretch;
        flex-direction: column;
    }
    .browse-categories-head .browse-category { width: 100%; }
}

/* Stable mobile bottom nav icons and labels. */
.bottom-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    padding: 8px 4px 9px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.05;
}
.bottom-nav a::before {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: var(--green);
    font-size: .92rem;
    line-height: 1;
    font-family: Arial, sans-serif;
    font-weight: 900;
}
.bottom-nav .nav-home::before { content: "H"; }
.bottom-nav .nav-symptoms::before { content: "+"; }
.bottom-nav .nav-specialty::before { content: "S"; }
.bottom-nav .nav-contact::before { content: "C"; }
.bottom-nav span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .66rem;
    font-weight: 900;
}
.bottom-nav a:hover,
.bottom-nav a:focus-visible {
    color: var(--green);
}

/* Directory list search/filter. */
.directory-search-card {
    display: grid;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(205,221,216,.88);
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 30px rgba(16,27,25,.05);
}
.directory-search-card label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #4f615c;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.directory-search-card input {
    min-height: 48px;
    border-radius: 16px;
    text-transform: none;
    font-size: .95rem;
    font-weight: 800;
}
.directory-search-card strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--green);
    background: rgba(8,127,111,.08);
    font-size: .88rem;
    font-weight: 900;
}
.directory-filter.is-hidden { display: none; }
.directory-empty {
    padding: 18px;
    border: 1px dashed rgba(8,127,111,.22);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(244,251,248,.72);
    font-weight: 850;
}
@media (min-width: 720px) {
    .directory-search-card { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Simplified public search panel. */
.simple-search-panel {
    align-self: center;
    grid-template-columns: 1fr;
    gap: 12px;
}
.simple-search-panel .search-title {
    margin-bottom: 2px;
}
.simple-search-panel select,
.simple-search-panel input {
    min-height: 54px;
    border-radius: 18px;
    font-weight: 850;
}
.simple-search-panel input {
    grid-column: 1 / -1;
}
@media (min-width: 700px) {
    .simple-search-panel {
        grid-template-columns: 1fr 1fr;
    }
    .simple-search-panel .search-title {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .simple-search-panel {
        padding: 12px;
        border-radius: 22px;
    }
}

/* Align hero search card and full suggestions dropdown. */
.simple-search-panel {
    overflow: visible;
    position: relative;
}
.simple-search-panel #suggestions {
    top: calc(100% - 10px);
    left: 14px;
    right: 14px;
    max-height: 320px;
    overflow-y: auto;
    border-radius: 20px;
    padding: 6px;
}
.simple-search-panel #suggestions button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 12px 13px;
}
.simple-search-panel #suggestions button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.simple-search-panel #suggestions button small {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--green);
    background: rgba(8,127,111,.08);
    font-size: .68rem;
    font-weight: 900;
}
@media (min-width: 720px) {
    .hero .simple-search-panel {
        align-self: end;
        margin-bottom: 76px;
    }
}
@media (min-width: 1040px) {
    .hero .simple-search-panel {
        margin-bottom: 92px;
    }
}
@media (max-width: 719px) {
    .simple-search-panel #suggestions {
        top: calc(100% - 6px);
        left: 10px;
        right: 10px;
        max-height: 260px;
    }
}

/* Search action button. */
.search-action-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    grid-column: 1 / -1;
}
.search-action-row .btn {
    min-height: 54px;
    border-radius: 18px;
}
@media (min-width: 560px) {
    .search-action-row {
        grid-template-columns: minmax(0, 1fr) 132px;
    }
}

/* Dropdown-only search and scrollable category chips. */
.search-action-row select {
    min-height: 54px;
    border-radius: 18px;
    font-weight: 850;
}
.search-action-row .btn {
    padding: 0 22px;
    white-space: nowrap;
}
.browse-categories {
    overflow: hidden;
}
.browse-categories-head {
    align-items: center;
}
.browse-categories-head h2 {
    margin-bottom: 0;
}
.browse-category-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
}
.browse-category-grid .browse-category {
    flex: 0 0 auto;
    min-width: 148px;
    scroll-snap-align: start;
}
@media (min-width: 560px) {
    .search-action-row {
        grid-template-columns: minmax(0, 1fr) 118px;
    }
}
@media (max-width: 640px) {
    .browse-category-grid .browse-category {
        min-width: 140px;
    }
}





/* Cleaner provider list cards. */
.admin-pro .admin-doctor-list {
    display: grid;
    gap: 12px;
}
.admin-pro .admin-doctor-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(190px, 300px) minmax(0, 1fr) 156px;
    grid-template-areas:
        "photo profile meta status"
        "photo profile meta actions";
    align-items: center;
    gap: 14px 16px;
    min-height: 128px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(8,127,111,.16);
    box-shadow: 0 12px 30px rgba(16,27,25,.045);
}
.admin-pro .admin-doctor-card::before {
    width: 4px;
    border-radius: 20px 0 0 20px;
}
.admin-pro .admin-doctor-card > img {
    grid-area: photo;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    align-self: center;
}
.admin-pro .admin-doctor-profile {
    grid-area: profile;
    min-width: 0;
    padding: 0;
    align-self: center;
}
.admin-pro .admin-doctor-profile strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 6px;
    font-size: 1.06rem;
    line-height: 1.16;
}
.admin-pro .admin-doctor-profile small {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #64746f;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
}
.admin-pro .admin-doctor-card > .admin-meta-line {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(4, minmax(126px, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.admin-pro .admin-meta-line div,
.admin-pro .admin-meta-group {
    min-width: 0;
    min-height: 76px;
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(225,233,230,.9);
    box-shadow: none;
}
.admin-pro .admin-meta-line b,
.admin-pro .admin-meta-group b {
    margin-bottom: 8px;
    color: #657570;
    font-size: .68rem;
    letter-spacing: .02em;
}
.admin-pro .admin-meta-line span,
.admin-pro .admin-meta-group span {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 56px;
    overflow: hidden;
}
.admin-pro .admin-meta-line em,
.admin-pro .admin-more-chip {
    max-width: 100%;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .78rem;
    line-height: 1.1;
}
.admin-pro .doctor-status-stack {
    grid-area: status;
    display: grid;
    gap: 8px;
    justify-self: stretch;
    align-self: end;
    width: 100%;
}
.admin-pro .doctor-status-stack .status-pill,
.admin-pro .doctor-status-stack .compact-status {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: .82rem;
}
.admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-self: stretch;
    align-self: start;
    width: 100%;
    margin: 0;
}
.admin-pro .compact-actions .mini-btn {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: .82rem;
}
@media (max-width: 1380px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 66px minmax(170px, 250px) minmax(0, 1fr) 132px;
        gap: 12px;
        padding: 14px;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}
@media (max-width: 1080px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 60px minmax(0, 1fr) 132px;
        grid-template-areas:
            "photo profile status"
            "meta meta meta"
            "actions actions actions";
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        grid-template-areas:
            "photo profile status"
            "meta meta meta"
            "actions actions actions";
        min-height: 0;
        padding: 12px;
        border-radius: 16px;
    }
    .admin-pro .admin-doctor-card > img {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }
    .admin-pro .admin-doctor-profile strong {
        font-size: .95rem;
        -webkit-line-clamp: 1;
    }
    .admin-pro .admin-doctor-profile small {
        font-size: .76rem;
    }
    .admin-pro .doctor-status-stack {
        width: 86px;
        gap: 6px;
        align-self: center;
    }
    .admin-pro .doctor-status-stack .status-pill,
    .admin-pro .doctor-status-stack .compact-status {
        min-height: 28px;
        padding: 6px 8px;
        font-size: .7rem;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 64px;
        padding: 8px;
        border-radius: 12px;
    }
    .admin-pro .admin-meta-line b,
    .admin-pro .admin-meta-group b {
        margin-bottom: 5px;
        font-size: .58rem;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        min-height: 23px;
        padding: 4px 7px;
        font-size: .64rem;
    }
    .admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-pro .compact-actions .mini-btn {
        min-height: 34px;
        border-radius: 11px;
        font-size: .74rem;
    }
}

/* Laptop-focused provider list refinement. */
@media (min-width: 1180px) {
    .admin-pro .admin-doctor-list {
        gap: 10px;
    }
    .admin-pro .admin-doctor-card {
        grid-template-columns: 58px minmax(210px, 280px) minmax(0, 1fr) 132px;
        grid-template-areas:
            "photo profile meta status"
            "photo profile meta actions";
        align-items: center;
        gap: 10px 14px;
        min-height: 112px;
        padding: 12px 14px 12px 18px;
        border-radius: 18px;
    }
    .admin-pro .admin-doctor-card > img {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
    .admin-pro .admin-doctor-profile strong {
        margin-bottom: 5px;
        font-size: 1rem;
        line-height: 1.15;
    }
    .admin-pro .admin-doctor-profile small {
        font-size: .82rem;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 66px;
        max-height: 74px;
        padding: 8px 9px;
        border-radius: 13px;
        overflow: hidden;
    }
    .admin-pro .admin-meta-line b,
    .admin-pro .admin-meta-group b {
        margin-bottom: 6px;
        font-size: .62rem;
    }
    .admin-pro .admin-meta-line span,
    .admin-pro .admin-meta-group span {
        gap: 5px;
        max-height: 42px;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        display: inline-block;
        max-width: 100%;
        min-height: 24px;
        padding: 4px 8px;
        overflow: hidden;
        border-radius: 999px;
        font-size: .7rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-pro .doctor-status-stack {
        gap: 7px;
        align-self: end;
    }
    .admin-pro .doctor-status-stack .status-pill,
    .admin-pro .doctor-status-stack .compact-status {
        min-height: 31px;
        padding: 6px 10px;
        font-size: .76rem;
    }
    .admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
        gap: 7px;
        align-self: start;
    }
    .admin-pro .compact-actions .mini-btn {
        min-height: 34px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: .76rem;
    }
}
@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 54px minmax(180px, 230px) minmax(0, 1fr) 118px;
        gap: 9px 11px;
        padding: 11px 12px 11px 16px;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(5, minmax(86px, 1fr));
        gap: 6px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 62px;
        max-height: 70px;
        padding: 7px 8px;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        max-width: 100px;
        font-size: .66rem;
    }
    .admin-pro .doctor-status-stack .status-pill,
    .admin-pro .doctor-status-stack .compact-status,
    .admin-pro .compact-actions .mini-btn {
        min-height: 30px;
        font-size: .72rem;
    }
}

/* Final laptop provider row fix: no clipped pills. */
@media (min-width: 1180px) {
    .admin-pro .admin-doctor-card {
        min-height: 104px;
        align-items: center;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        align-items: stretch;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        display: grid;
        align-content: start;
        min-height: 58px;
        max-height: none;
        overflow: visible;
    }
    .admin-pro .admin-meta-line span,
    .admin-pro .admin-meta-group span {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 5px;
        max-height: none;
        min-width: 0;
        overflow: hidden;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 118px;
    }
    .admin-pro .admin-more-chip {
        flex: 0 0 auto;
    }
}
@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card {
        min-height: 96px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 54px;
        padding: 7px;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        max-width: 92px;
    }
}

/* Laptop compact typography for provider admin list. */
@media (min-width: 1180px) {
    .admin-pro .admin-list-summary {
        font-size: 1rem;
        margin: 14px 4px 10px;
    }
    .admin-pro .admin-doctor-card {
        grid-template-columns: 50px minmax(190px, 260px) minmax(0, 1fr) 118px;
        min-height: 88px;
        padding: 10px 12px 10px 16px;
        gap: 8px 10px;
    }
    .admin-pro .admin-doctor-card > img {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .admin-pro .admin-doctor-profile strong {
        font-size: .9rem;
        line-height: 1.12;
        margin-bottom: 4px;
    }
    .admin-pro .admin-doctor-profile small {
        font-size: .74rem;
        line-height: 1.2;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(5, minmax(82px, 1fr));
        gap: 6px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 50px;
        padding: 6px 7px;
        border-radius: 12px;
    }
    .admin-pro .admin-meta-line b,
    .admin-pro .admin-meta-group b {
        margin-bottom: 5px;
        font-size: .56rem;
        line-height: 1;
    }
    .admin-pro .admin-meta-line span,
    .admin-pro .admin-meta-group span {
        gap: 4px;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        max-width: 84px;
        min-height: 22px;
        padding: 4px 7px;
        font-size: .62rem;
        line-height: 1;
    }
    .admin-pro .doctor-status-stack {
        gap: 6px;
    }
    .admin-pro .doctor-status-stack .status-pill,
    .admin-pro .doctor-status-stack .compact-status {
        min-height: 28px;
        padding: 5px 8px;
        font-size: .68rem;
    }
    .admin-pro .admin-doctor-card > .admin-row-actions.compact-actions {
        gap: 6px;
    }
    .admin-pro .compact-actions .mini-btn {
        min-height: 30px;
        padding: 0 8px;
        border-radius: 10px;
        font-size: .68rem;
    }
}
@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 48px minmax(170px, 230px) minmax(0, 1fr) 108px;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(5, minmax(76px, 1fr));
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        max-width: 72px;
        font-size: .58rem;
    }
}

/* Provider cards: comfortable laptop height. */
@media (min-width: 1180px) {
    .admin-pro .admin-doctor-card {
        min-height: 118px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 64px;
        padding-top: 9px;
        padding-bottom: 9px;
    }
    .admin-pro .admin-doctor-card > img {
        width: 52px;
        height: 52px;
    }
}
@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card {
        min-height: 110px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 60px;
    }
}

/* Show at least two provider chips comfortably. */
@media (min-width: 1180px) {
    .admin-pro .admin-doctor-card {
        min-height: 136px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 82px;
        padding: 9px 10px;
        overflow: visible;
    }
    .admin-pro .admin-meta-line span,
    .admin-pro .admin-meta-group span {
        flex-wrap: wrap;
        align-content: flex-start;
        max-height: none;
        overflow: visible;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        max-width: 96px;
    }
}
@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card {
        min-height: 128px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 76px;
        padding: 8px;
    }
    .admin-pro .admin-meta-line em,
    .admin-pro .admin-more-chip {
        max-width: 82px;
    }
}

/* Smaller +more chips in provider admin cards. */
.admin-pro .admin-more-chip {
    min-height: 20px;
    padding: 3px 6px;
    font-size: .56rem;
    line-height: 1;
    font-weight: 850;
}
@media (min-width: 1180px) {
    .admin-pro .admin-more-chip {
        max-width: 70px;
        min-height: 20px;
        padding: 3px 6px;
        font-size: .54rem;
    }
}
@media (max-width: 640px) {
    .admin-pro .admin-more-chip {
        min-height: 20px;
        padding: 3px 6px;
        font-size: .54rem;
    }
}

/* Tiny +more badge in provider list. */
.admin-pro .admin-more-chip {
    min-height: 16px !important;
    height: 16px;
    padding: 1px 5px !important;
    border-radius: 8px !important;
    font-size: .48rem !important;
    line-height: 14px !important;
    font-weight: 850 !important;
    background: #f3f7ff !important;
    border-color: #cfddff !important;
    box-shadow: none !important;
}
.admin-pro .admin-meta-line span,
.admin-pro .admin-meta-group span {
    gap: 3px;
}
@media (min-width: 1180px) {
    .admin-pro .admin-more-chip {
        max-width: 54px !important;
        font-size: .46rem !important;
    }
}

/* Provider details readable layout. */
@media (min-width: 1180px) {
    .admin-pro .admin-doctor-card {
        min-height: 150px;
        align-items: center;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        align-items: stretch;
        gap: 10px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 92px;
        padding: 10px 11px;
        overflow: visible;
    }
    .admin-pro .admin-meta-line span,
    .admin-pro .admin-meta-group span {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: flex-start;
        gap: 6px;
        overflow: visible;
        max-height: none;
    }
    .admin-pro .admin-meta-line em {
        max-width: 100% !important;
        min-height: 24px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.15;
    }
    .admin-pro .admin-more-chip {
        flex: 0 0 auto;
        max-width: none !important;
        margin-top: 1px;
    }
}
@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card {
        min-height: 142px;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
        gap: 8px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 86px;
        padding: 9px;
    }
    .admin-pro .admin-meta-line em {
        font-size: .6rem;
    }
}

/* Balanced provider detail layout: readable but not oversized. */
@media (min-width: 1180px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 56px minmax(240px, 330px) minmax(0, 1fr) 128px;
        min-height: 132px;
        padding: 14px 14px 14px 18px;
        gap: 10px 14px;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
        gap: 8px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 78px;
        padding: 9px 10px;
        border-radius: 14px;
    }
    .admin-pro .admin-meta-line b,
    .admin-pro .admin-meta-group b {
        margin-bottom: 7px;
        font-size: .6rem;
    }
    .admin-pro .admin-meta-line span,
    .admin-pro .admin-meta-group span {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        overflow: visible;
    }
    .admin-pro .admin-meta-line em {
        max-width: 112px !important;
        min-height: 24px;
        padding: 4px 8px;
        overflow: hidden;
        font-size: .64rem;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-pro .admin-more-chip {
        height: 18px;
        min-height: 18px !important;
        padding: 2px 6px !important;
        font-size: .5rem !important;
        line-height: 14px !important;
    }
    .admin-pro .doctor-status-stack .status-pill,
    .admin-pro .doctor-status-stack .compact-status {
        min-height: 31px;
    }
    .admin-pro .compact-actions .mini-btn {
        min-height: 34px;
    }
}
@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card {
        grid-template-columns: 54px minmax(230px, 320px) minmax(0, 1fr) 122px;
        min-height: 126px;
    }
    .admin-pro .admin-meta-line div,
    .admin-pro .admin-meta-group {
        min-height: 74px;
        padding: 8px;
    }
    .admin-pro .admin-meta-line em {
        max-width: 96px !important;
        font-size: .6rem;
    }
}

/* Wider provider detail cards when a row has fewer sections. */
@media (min-width: 1180px) {
    .admin-pro .admin-doctor-card > .admin-meta-line.meta-count-2 {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
    .admin-pro .admin-doctor-card > .admin-meta-line.meta-count-2 .admin-meta-group {
        min-height: 92px;
    }
    .admin-pro .admin-meta-line.meta-count-2 em {
        max-width: 210px !important;
    }
}

@media (min-width: 1180px) and (max-width: 1500px) {
    .admin-pro .admin-doctor-card > .admin-meta-line.meta-count-2 {
        grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
    }
    .admin-pro .admin-meta-line.meta-count-2 em {
        max-width: 170px !important;
    }
}

/* Dedicated public providers filter page. */
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(8,127,111,.14);
    border-radius: 999px;
    color: var(--green);
    background: rgba(255,255,255,.84);
    font-weight: 900;
    text-decoration: none;
}
.section-link:hover { color: #fff; background: var(--green); }
.providers-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1220px;
    margin: 22px auto 16px;
    padding: 38px 34px;
    border: 1px solid rgba(205,221,216,.88);
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 18px 42px rgba(16,27,25,.07);
}
.providers-hero h1 {
    margin: 10px 0 8px;
    max-width: 760px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: .95;
    font-weight: 900;
}
.providers-hero p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 700;
}
.providers-filter-card {
    display: grid;
    gap: 14px;
    max-width: 1220px;
    margin: 0 auto 22px;
    padding: 16px;
    border: 1px solid rgba(205,221,216,.88);
    border-radius: 24px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 14px 34px rgba(16,27,25,.06);
}
.providers-filter-form {
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(170px, .8fr) minmax(260px, 1.2fr) auto;
    gap: 10px;
    align-items: end;
}
.providers-filter-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #536761;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.providers-filter-form select,
.providers-filter-form input {
    min-height: 52px;
    width: 100%;
    border: 1px solid rgba(205,221,216,.9);
    border-radius: 16px;
    padding: 0 16px;
    color: #10211d;
    background: rgba(252,254,253,.96);
    font-size: .98rem;
    font-weight: 900;
}
.providers-filter-form .btn {
    min-height: 52px;
    min-width: 128px;
    border-radius: 16px;
}
.providers-filter-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}
.providers-filter-cats .browse-category {
    min-height: 38px;
    min-width: max-content;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: .82rem;
}
.providers-results-section {
    margin-top: 0;
}
@media (max-width: 900px) {
    .providers-hero {
        align-items: stretch;
        flex-direction: column;
        margin: 12px 10px;
        padding: 24px 18px;
        border-radius: 22px;
    }
    .providers-filter-card {
        margin: 0 10px 16px;
        padding: 12px;
        border-radius: 20px;
    }
    .providers-filter-form {
        grid-template-columns: 1fr;
    }
    .providers-filter-form .btn {
        width: 100%;
    }
}

/* Direct filter first providers page. */
.providers-filter-first {
    margin-top: 22px;
}
.providers-filter-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 4px;
}
.providers-filter-head h1 {
    margin: 6px 0 0;
    color: #10211d;
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: .98;
}
.providers-filter-head > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
    font-weight: 800;
    text-align: right;
}
@media (max-width: 900px) {
    .providers-filter-first { margin-top: 12px; }
    .providers-filter-head {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }
    .providers-filter-head > p {
        max-width: none;
        text-align: left;
    }
}

/* Clean shared admin category pages. */
.admin-shell[data-entity] .admin-main {
    gap: 14px;
}
.admin-shell[data-entity] .admin-page-head {
    min-height: 150px;
    padding: 26px 28px;
    border-radius: 24px;
}
.admin-shell[data-entity] .admin-page-head h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}
.admin-shell[data-entity] .admin-page-head .btn {
    min-width: 92px;
    border-radius: 18px;
}
.admin-shell[data-entity] .admin-toolbar {
    grid-template-columns: minmax(260px, 1fr) 180px 140px;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
}
.admin-shell[data-entity] .admin-toolbar input,
.admin-shell[data-entity] .admin-toolbar select {
    min-height: 48px;
    border-radius: 15px;
    font-size: .9rem;
    font-weight: 850;
}
.admin-shell[data-entity] .admin-list-summary {
    margin: 10px 4px 4px;
    font-size: .96rem;
}
.admin-shell[data-entity] #entityRows {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(205,221,216,.88);
    border-radius: 22px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 14px 34px rgba(16,27,25,.045);
}
.admin-shell[data-entity] .entity-row {
    grid-template-columns: minmax(220px, 1fr) 132px 82px 92px;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid rgba(205,221,216,.72);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.admin-shell[data-entity] .entity-row:last-child {
    border-bottom: 0;
}
.admin-shell[data-entity] .entity-row:hover {
    background: rgba(244,251,248,.72);
}
.admin-shell[data-entity] .entity-row > span:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: #10211d;
    font-size: .98rem;
    font-weight: 850;
    line-height: 1.22;
}
.admin-shell[data-entity] .entity-row > span:first-child small {
    overflow: hidden;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-shell[data-entity] .entity-row > .status-pill {
    justify-self: start;
    min-height: 30px;
    padding: 6px 11px;
    font-size: .72rem;
}
.admin-shell[data-entity] .entity-row .edit-entity,
.admin-shell[data-entity] .entity-row .delete-entity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: none;
}
.admin-shell[data-entity] .entity-row .edit-entity {
    border: 1px solid rgba(47,89,234,.22);
    color: var(--blue);
    background: rgba(47,89,234,.08);
}
.admin-shell[data-entity] .entity-row .delete-entity {
    border: 1px solid rgba(215,38,61,.18);
    color: #d7263d;
    background: rgba(215,38,61,.06);
}
.admin-shell[data-entity] .entity-row .edit-entity:hover {
    color: #fff;
    background: var(--blue);
}
.admin-shell[data-entity] .entity-row .delete-entity:hover {
    color: #fff;
    background: #d7263d;
}

@media (max-width: 899px) {
    .admin-shell[data-entity] {
        width: min(calc(100% - 8px), 620px);
        gap: 8px;
    }
    .admin-shell[data-entity] .admin-sidebar {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        min-height: auto;
        padding: 8px;
        border-radius: 16px;
    }
    .admin-shell[data-entity] .admin-brand {
        display: none;
    }
    .admin-shell[data-entity] .admin-sidebar a {
        flex: 0 0 auto;
        padding: 9px 12px;
        border-radius: 12px;
        font-size: .78rem;
    }
    .admin-shell[data-entity] .admin-page-head {
        min-height: auto;
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
    }
    .admin-shell[data-entity] .admin-page-head .eyebrow {
        font-size: .62rem;
    }
    .admin-shell[data-entity] .admin-page-head h1 {
        font-size: 1.65rem;
        line-height: 1.05;
    }
    .admin-shell[data-entity] .admin-page-head p:not(.eyebrow) {
        font-size: .78rem;
        line-height: 1.35;
    }
    .admin-shell[data-entity] .admin-page-head .btn {
        width: 100%;
        min-height: 40px;
        border-radius: 14px;
        font-size: .88rem;
    }
    .admin-shell[data-entity] .admin-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
    }
    .admin-shell[data-entity] .admin-toolbar label {
        gap: 5px;
        font-size: .62rem;
    }
    .admin-shell[data-entity] .admin-toolbar input,
    .admin-shell[data-entity] .admin-toolbar select {
        min-height: 42px;
        border-radius: 12px;
        padding: 8px 12px;
        font-size: .78rem;
    }
    .admin-shell[data-entity] .admin-list-summary {
        margin: 4px 2px;
        font-size: .76rem;
    }
    .admin-shell[data-entity] #entityRows {
        gap: 8px;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .admin-shell[data-entity] .entity-row {
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        min-height: auto;
        padding: 10px;
        border: 1px solid rgba(205,221,216,.88);
        border-radius: 14px;
        background: rgba(255,255,255,.92);
        box-shadow: 0 8px 18px rgba(16,27,25,.04);
    }
    .admin-shell[data-entity] .entity-row > span:first-child {
        grid-column: 1 / -1;
        font-size: .82rem;
    }
    .admin-shell[data-entity] .entity-row > span:first-child small {
        font-size: .66rem;
    }
    .admin-shell[data-entity] .entity-row > .status-pill {
        grid-column: 1;
        min-height: 26px;
        padding: 5px 9px;
        font-size: .62rem;
    }
    .admin-shell[data-entity] .entity-row .edit-entity,
    .admin-shell[data-entity] .entity-row .delete-entity {
        min-height: 28px;
        padding: 0 10px;
        font-size: .64rem;
    }
}

/* Category slider arrows for public filters. */
.category-slider {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
}
.category-rail,
.category-slider .browse-category-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}
.category-rail::-webkit-scrollbar,
.category-slider .browse-category-grid::-webkit-scrollbar {
    display: none;
}
.category-slider .browse-category {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
}
.category-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(8,127,111,.16);
    border-radius: 999px;
    color: var(--green);
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(16,27,25,.06);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}
.category-arrow:hover {
    transform: translateY(-1px);
    color: #fff;
    background: var(--green);
}
.category-arrow:disabled {
    opacity: .38;
    cursor: not-allowed;
    transform: none;
}
.providers-filter-cats {
    overflow: visible;
    padding: 0;
}
.providers-filter-cats .category-rail {
    padding: 2px 0;
}
@media (max-width: 640px) {
    .category-slider {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px;
    }
    .category-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
    .category-slider .browse-category {
        min-height: 38px;
        padding: 8px 12px;
        font-size: .78rem;
    }
}

/* Homepage category tabs match providers filter. */
.home-filter-tabs {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 24px;
}
.home-filter-tabs.providers-filter-card {
    gap: 0;
}
.home-filter-tabs .providers-filter-cats {
    width: 100%;
}
.home-filter-tabs .category-rail {
    min-height: 48px;
    align-items: center;
}
.home-filter-tabs .browse-category {
    min-height: 44px;
    padding: 9px 17px;
    border-radius: 999px;
    font-size: .9rem;
}
.home-filter-tabs .category-arrow {
    width: 40px;
    height: 40px;
}
@media (max-width: 640px) {
    .home-filter-tabs {
        margin: 12px 10px 0;
        padding: 10px;
        border-radius: 18px;
    }
    .home-filter-tabs .browse-category {
        min-height: 36px;
        padding: 7px 12px;
        font-size: .76rem;
    }
}

/* Polished public provider profile cards. */
.doctor-grid {
    gap: 18px;
}
.doctor-card {
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 34px rgba(16,27,25,.07);
}
.doctor-card::before {
    height: 78px;
    background:
        linear-gradient(135deg, rgba(8,127,111,.11), rgba(49,93,244,.09));
}
.doctor-card:hover {
    box-shadow: 0 18px 46px rgba(16,27,25,.11);
    transform: translateY(-2px);
}
.doctor-card-top {
    align-items: flex-start;
    padding: 16px 16px 0;
}
.doctor-photo {
    width: 82px;
    height: 82px;
    padding: 4px;
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(16,27,25,.12);
}
.doctor-photo img {
    border-radius: 18px;
}
.doctor-status {
    gap: 6px;
    margin-top: 8px;
}
.doctor-status span,
.doctor-status strong {
    min-height: 28px;
    padding: 6px 10px;
    font-size: .68rem;
    box-shadow: 0 8px 16px rgba(16,27,25,.07);
}
.doctor-card-body {
    gap: 10px;
    padding: 22px 16px 16px;
}
.verified-badge {
    margin-bottom: 7px;
    font-size: .68rem;
}
.verified-badge::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(24,191,143,.13);
}
.doctor-card h3 {
    font-size: 1.05rem;
    line-height: 1.18;
    letter-spacing: 0;
}
.qualification {
    margin-top: 3px;
    font-size: .82rem;
    font-weight: 750;
}
.chips {
    gap: 6px;
}
.doctor-card .chips span {
    min-height: 30px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 850;
    box-shadow: none;
}
.symptom-line {
    min-height: 38px;
    color: #526763;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.45;
}
.doctor-card .card-actions {
    gap: 8px;
    margin-top: 2px;
}
.doctor-card .btn {
    min-height: 42px;
    font-size: .88rem;
}
.profile-link {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: .88rem;
}
@media (min-width: 1120px) {
    .doctor-grid {
        gap: 18px;
    }
    .doctor-card-body {
        min-height: 272px;
    }
}
@media (max-width: 640px) {
    .doctor-card {
        border-radius: 18px;
    }
    .doctor-card::before {
        height: 66px;
    }
    .doctor-card-top {
        padding: 12px 12px 0;
    }
    .doctor-photo {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }
    .doctor-photo img {
        border-radius: 14px;
    }
    .doctor-status span,
    .doctor-status strong {
        min-height: 24px;
        padding: 5px 8px;
        font-size: .58rem;
    }
    .doctor-card-body {
        gap: 8px;
        padding: 18px 12px 12px;
    }
    .doctor-card h3 {
        font-size: .94rem;
    }
    .doctor-card .chips span {
        min-height: 26px;
        padding: 4px 8px;
        font-size: .68rem;
    }
    .symptom-line {
        min-height: 34px;
        font-size: .74rem;
    }
    .doctor-card .btn,
    .profile-link {
        min-height: 38px;
        font-size: .8rem;
    }
}

/* Services provider type admin filter. */
@media (min-width: 900px) {
    .admin-shell[data-entity="services"] .admin-toolbar {
        grid-template-columns: minmax(260px, 1fr) 190px 150px 120px;
    }
}

/* Improved mobile admin header and top nav. */
@media (max-width: 899px) {
    body:has(.admin-pro) {
        padding-top: 0;
    }
    body:has(.admin-pro) .app-topbar {
        position: sticky;
        top: 6px;
        z-index: 50;
        width: calc(100% - 14px);
        min-height: 46px;
        margin: 6px auto 8px;
        padding: 6px 8px;
        border-radius: 18px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 10px 24px rgba(16,27,25,.08);
        backdrop-filter: blur(14px);
    }
    body:has(.admin-pro) .brand {
        gap: 8px;
        min-width: 0;
        font-size: .82rem;
        font-weight: 900;
    }
    body:has(.admin-pro) .brand span {
        width: 30px;
        height: 30px;
        border-radius: 11px;
        font-size: .9rem;
    }
    body:has(.admin-pro) .icon-btn {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        background: rgba(8,127,111,.07);
        border-color: rgba(8,127,111,.11);
    }
    body:has(.admin-pro) .icon-btn span {
        width: 14px;
    }
    .admin-shell[data-entity] {
        margin-top: 6px;
    }
    .admin-shell[data-entity] .admin-sidebar {
        position: sticky;
        top: 58px;
        z-index: 35;
        display: flex;
        gap: 7px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 8px 10px;
        border-radius: 16px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 8px 20px rgba(16,27,25,.055);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .admin-shell[data-entity] .admin-sidebar::-webkit-scrollbar {
        display: none;
    }
    .admin-shell[data-entity] .admin-sidebar::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 3px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--green), rgba(8,127,111,.12));
        opacity: .55;
        pointer-events: none;
    }
    .admin-shell[data-entity] .admin-sidebar a {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 8px 12px;
        border-radius: 12px;
        color: #4d625d;
        background: rgba(244,251,248,.7);
        font-size: .7rem;
        font-weight: 900;
        line-height: 1;
    }
    .admin-shell[data-entity] .admin-sidebar a.active,
    .admin-shell[data-entity] .admin-sidebar a:hover {
        color: #fff;
        background: linear-gradient(135deg, var(--green), var(--green-2));
        box-shadow: 0 8px 18px rgba(8,127,111,.14);
    }
    .admin-shell[data-entity] .admin-main {
        gap: 8px;
    }
    .admin-shell[data-entity] .admin-page-head {
        padding: 16px 14px;
        border-radius: 18px;
    }
    .admin-shell[data-entity] .admin-page-head h1 {
        font-size: 1.82rem;
        letter-spacing: 0;
    }
    .admin-shell[data-entity] .admin-page-head p:not(.eyebrow) {
        max-width: 260px;
        font-size: .76rem;
    }
}

/* Fix mobile admin hamburger icon. */
@media (max-width: 899px) {
    body:has(.admin-pro) .icon-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(8,127,111,.12);
        background: rgba(244,251,248,.95);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
    }
    body:has(.admin-pro) .icon-btn span {
        display: block;
        width: 15px;
        height: 2px;
        margin: 0;
        border-radius: 999px;
        background: var(--green);
        transform: none;
    }
    body:has(.admin-pro) .icon-btn span:first-child {
        width: 11px;
        align-self: center;
    }
    body:has(.admin-pro) .icon-btn:hover,
    body:has(.admin-pro) .icon-btn:focus-visible {
        background: rgba(8,127,111,.1);
        outline: none;
    }
}

/* True three-line mobile hamburger. */
@media (max-width: 899px) {
    body:has(.admin-pro) .icon-btn {
        gap: 3px;
    }
    body:has(.admin-pro) .icon-btn span,
    body:has(.admin-pro) .icon-btn span:first-child,
    body:has(.admin-pro) .icon-btn span:last-child {
        width: 15px;
        height: 2px;
        align-self: center;
    }
    body:has(.admin-pro) .mobile-menu {
        gap: 7px;
    }
    body:has(.admin-pro) .mobile-menu a {
        min-height: 44px;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: .86rem;
    }
}

/* Final mobile admin drawer polish. */
@media (max-width: 899px) {
    body:has(.admin-pro) .app-topbar {
        min-height: 44px;
        padding: 5px 7px;
    }
    body:has(.admin-pro) .icon-btn {
        width: 32px;
        height: 32px;
        gap: 4px;
        border-radius: 11px;
        background: #eef8f5;
        border: 1px solid rgba(8,127,111,.16);
        box-shadow: none;
    }
    body:has(.admin-pro) .icon-btn span,
    body:has(.admin-pro) .icon-btn span:first-child,
    body:has(.admin-pro) .icon-btn span:last-child {
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: #087f6f;
    }
    body:has(.admin-pro) .offcanvas.offcanvas-end {
        width: min(82vw, 292px);
        border-left: 1px solid rgba(205,221,216,.8);
        border-radius: 18px 0 0 18px;
        background: rgba(255,255,255,.98);
        box-shadow: -18px 0 44px rgba(16,27,25,.16);
    }
    body:has(.admin-pro) .offcanvas-header {
        min-height: 54px;
        padding: 14px 16px 10px;
        border-bottom: 1px solid rgba(205,221,216,.65);
    }
    body:has(.admin-pro) .offcanvas-title {
        margin: 0;
        color: #10211d;
        font-size: .98rem;
        font-weight: 900;
    }
    body:has(.admin-pro) .btn-close {
        width: 30px;
        height: 30px;
        margin: 0;
        padding: 0;
        border-radius: 999px;
        background-size: 11px;
        opacity: .7;
    }
    body:has(.admin-pro) .btn-close:hover {
        background-color: rgba(8,127,111,.08);
        opacity: 1;
    }
    body:has(.admin-pro) .mobile-menu {
        display: grid;
        gap: 6px;
        padding: 10px 12px 14px;
    }
    body:has(.admin-pro) .mobile-menu a {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 38px;
        padding: 9px 12px 9px 34px;
        border: 1px solid rgba(205,221,216,.55);
        border-radius: 12px;
        color: #10211d;
        background: rgba(244,251,248,.72);
        font-size: .8rem;
        font-weight: 900;
        line-height: 1.15;
    }
    body:has(.admin-pro) .mobile-menu a::before {
        content: "";
        position: absolute;
        left: 13px;
        top: 50%;
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: var(--green-2);
        box-shadow: 0 0 0 4px rgba(24,191,143,.11);
        transform: translateY(-50%);
    }
    body:has(.admin-pro) .mobile-menu a:hover,
    body:has(.admin-pro) .mobile-menu a:focus-visible {
        color: var(--green);
        border-color: rgba(8,127,111,.16);
        background: rgba(232,249,243,.94);
        outline: none;
    }
}

/* Blog and testimonial media cards */
.home-media-panel .home-media-slider,
.testimonial-showcase .home-media-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding-bottom: 4px;
}
.home-media-panel .home-media-slider::-webkit-scrollbar,
.testimonial-showcase .home-media-slider::-webkit-scrollbar { height: 6px; }
.home-media-panel .home-media-slider::-webkit-scrollbar-thumb,
.testimonial-showcase .home-media-slider::-webkit-scrollbar-thumb { background: rgba(8, 127, 110, .24); border-radius: 999px; }
.media-article-card,
.testimonial-card {
    scroll-snap-align: start;
    min-height: 100%;
}
.blog-image-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
    gap: 8px;
    overflow-x: auto;
    margin: -8px -8px 12px;
    padding: 8px;
}
.blog-image-strip img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #eef8f5;
}
.media-article-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.45;
}
.testimonial-showcase { margin-top: 28px; }
.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    padding: 18px;
    box-shadow: 0 18px 44px rgba(15, 44, 38, .06);
}
.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.testimonial-person img,
.testimonial-person > span {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    object-fit: cover;
    background: #e8faf5;
    border: 1px solid var(--line);
    color: var(--teal);
    font-weight: 900;
}
.testimonial-person small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}
.testimonial-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.entity-image-upload .image-uploader { min-height: 190px; }
@media (max-width: 640px) {
    .home-media-panel .home-media-slider,
    .testimonial-showcase .home-media-slider { grid-auto-columns: minmax(230px, 88vw); }
    .blog-image-strip { grid-auto-columns: 150px; }
}

/* Blog rich text editor */
.float-field .ck-editor {
    margin-top: 18px;
    width: 100%;
}
.float-field .ck-editor__editable {
    min-height: 220px;
    border-color: var(--line) !important;
    box-shadow: none !important;
}
.float-field .ck-toolbar {
    border-color: var(--line) !important;
    border-radius: 14px 14px 0 0 !important;
}
.float-field textarea[data-rich-editor] + span {
    top: 8px;
    transform: none;
    color: var(--muted);
    font-size: .78rem;
}

/* Clear dropdown caret for all selects */
select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 46px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23087f6f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 18px 18px !important;
}
.admin-toolbar select,
.float-field select,
.simple-search-panel select,
.providers-filter-form select {
    background-color: rgba(255,255,255,.96) !important;
}

/* Full-width blog CKEditor field in admin modal */
.rich-editor-field {
    grid-column: 1 / -1;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}
.rich-editor-field > span {
    position: static;
    display: block;
    transform: none;
    margin: 0 0 8px;
    padding: 0;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    pointer-events: none;
}
.rich-editor-field textarea[data-rich-editor] {
    min-height: 260px;
}
.rich-editor-field .ck-editor {
    width: 100%;
    margin: 0;
}
.rich-editor-field .ck-toolbar {
    border-radius: 16px 16px 0 0 !important;
    border-color: rgba(13, 84, 75, .16) !important;
    background: rgba(255,255,255,.96) !important;
}
.rich-editor-field .ck-editor__editable {
    min-height: 280px;
    border-radius: 0 0 16px 16px !important;
    border-color: rgba(13, 84, 75, .16) !important;
    background: #fff !important;
    padding: 18px !important;
}
.rich-editor-field .ck-editor__editable:focus {
    box-shadow: 0 0 0 5px rgba(8,127,111,.09) !important;
}

/* Blog add/edit modal layout */
.entity-form-blogs .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.entity-form-blogs .blog-title-field { grid-column: span 2; }
.entity-form-blogs .blog-slug-field,
.entity-form-blogs .blog-status-field,
.entity-form-blogs .blog-image-upload { grid-column: span 1; }
.entity-form-blogs .blog-excerpt-field,
.entity-form-blogs .rich-editor-field { grid-column: 1 / -1; }
.entity-form-blogs .blog-image-upload .image-uploader {
    min-height: 168px;
    height: 100%;
}
.entity-form-blogs input[readonly] {
    color: var(--muted);
    background: rgba(8,127,111,.045);
}
@media (max-width: 860px) {
    .entity-form-blogs .form-grid { grid-template-columns: 1fr; }
    .entity-form-blogs .blog-title-field,
    .entity-form-blogs .blog-slug-field,
    .entity-form-blogs .blog-status-field,
    .entity-form-blogs .blog-image-upload { grid-column: 1 / -1; }
}

/* Blog slug should sit on its own second line */
.entity-form-blogs .blog-title-field,
.entity-form-blogs .blog-slug-field {
    grid-column: 1 / -1;
}
.entity-form-blogs .blog-status-field { grid-column: span 1; }

/* CKEditor label above toolbar */
.rich-editor-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
}
.rich-editor-field > span {
    order: -1;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
}
.rich-editor-field .ck-editor {
    order: 1;
}
.rich-editor-field textarea[data-rich-editor] {
    order: 1;
}

/* Entity rows: keep status visible between title and actions */
.admin-shell[data-entity] .entity-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto !important;
    align-items: center;
    gap: 12px;
}
.admin-shell[data-entity] .entity-row > .status-pill {
    display: inline-flex !important;
    justify-self: end;
    min-width: 86px;
}
@media (max-width: 700px) {
    .admin-shell[data-entity] .entity-row {
        grid-template-columns: 1fr auto auto !important;
    }
    .admin-shell[data-entity] .entity-row > .status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
/* Public blog cards and detail page */
.article-card {
    text-decoration: none;
}
.article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 111, .28);
    box-shadow: 0 16px 34px rgba(15, 44, 38, .08);
}
.media-article-card {
    align-content: start;
    min-height: 0;
}
.blog-image-strip {
    grid-auto-columns: minmax(160px, 1fr);
    align-items: start;
    scrollbar-width: none;
}
.blog-image-strip::-webkit-scrollbar { display: none; }
.blog-image-strip img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: 190px;
    object-fit: contain;
    border-radius: 16px;
    background: #f3faf7;
}
.blog-detail-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 28px auto 40px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 24px 70px rgba(15, 44, 38, .08);
}
.blog-detail-head {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}
.blog-detail-head h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 5.2rem);
    line-height: .96;
    letter-spacing: 0;
}
.blog-detail-head p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 750;
}
.blog-detail-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 14px;
    overflow-x: auto;
    align-items: start;
    padding-bottom: 8px;
    margin: 8px 0 28px;
    scroll-snap-type: inline mandatory;
}
.blog-detail-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #f3faf7;
    scroll-snap-align: start;
}
.blog-detail-body {
    max-width: 820px;
    color: #18322f;
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 650;
}
.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4 {
    line-height: 1.2;
    margin: 1.4em 0 .55em;
}
.blog-detail-body p { margin: 0 0 1em; }
.blog-detail-body a { color: var(--green); font-weight: 900; }
.blog-empty-state { display: grid; gap: 14px; }

/* Blog images use free ratio instead of forced square or banner crop */
.entity-form-blogs .blog-image-upload .image-uploader,
.entity-form-blogs .blog-image-upload .upload-empty,
.entity-form-blogs .blog-image-upload .upload-preview {
    width: 100%;
    min-height: 150px;
    height: auto;
}
.entity-form-blogs .blog-image-upload .upload-preview {
    padding: 10px;
}
.entity-form-blogs .blog-image-upload .upload-preview img {
    width: 100%;
    height: auto;
    max-height: 240px;
    border-radius: 12px;
    object-fit: contain;
}
.entity-form-blogs .blog-image-upload .upload-empty {
    padding: 14px;
}
@media (max-width: 640px) {
    .blog-detail-shell { width: min(100% - 16px, 1080px); padding: 20px; border-radius: 22px; }
    .blog-detail-gallery { grid-auto-columns: minmax(240px, 86vw); }
}
/* Blog ratio cleanup */
.blog-image-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: -8px -8px 14px;
    padding: 8px;
    scroll-snap-type: inline mandatory;
}
.blog-image-strip img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 16px;
    background: #f3faf7;
    scroll-snap-align: start;
}
.media-article-card {
    min-height: 0;
    padding: 16px 42px 18px 16px;
}
.media-article-card strong {
    font-size: 1rem;
    line-height: 1.32;
}
.media-article-card p {
    font-size: .92rem;
    line-height: 1.42;
}
.blog-detail-shell {
    width: min(980px, calc(100% - 32px));
    padding: 34px;
}
.blog-detail-head {
    margin-bottom: 18px;
}
.blog-detail-head h1 {
    max-width: 820px;
    font-size: 3.2rem;
    line-height: 1.04;
}
.blog-detail-head p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.45;
}
.blog-detail-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    margin: 8px 0 26px;
    scroll-snap-type: inline mandatory;
}
.blog-detail-gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    object-fit: contain;
    border-radius: 18px;
    background: #f3faf7;
    scroll-snap-align: start;
}
.blog-detail-body {
    font-size: 1rem;
    line-height: 1.68;
}
.entity-form-blogs .blog-image-upload .upload-preview,
.entity-form-blogs .blog-image-upload .upload-empty {
    aspect-ratio: 16 / 9;
}
.entity-form-blogs .blog-image-upload .upload-preview img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}
@media (max-width: 720px) {
    .blog-detail-shell { width: min(100% - 16px, 980px); padding: 20px; }
    .blog-detail-head h1 { font-size: 2.1rem; line-height: 1.08; }
    .blog-detail-gallery img { max-height: 320px; }
}

/* Blog card single-image layout and detail slider */
.media-article-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 14px 42px 18px 14px;
}
.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f3faf7;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.blog-card-copy {
    display: grid;
    gap: 8px;
}
.blog-card-copy strong {
    font-size: 1rem;
    line-height: 1.32;
}
.blog-card-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.42;
}
.blog-detail-slider {
    position: relative;
    margin: 10px 0 28px;
}
.blog-detail-slider .blog-detail-gallery {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #f3faf7;
}
.blog-detail-slider .blog-detail-gallery::-webkit-scrollbar { display: none; }
.blog-detail-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    scroll-snap-align: start;
}
.blog-detail-slide img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.blog-slider-btn {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--green);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15,44,38,.12);
}
.blog-slider-btn.prev { left: 14px; }
.blog-slider-btn.next { right: 14px; }
.blog-detail-head h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
}
@media (max-width: 720px) {
    .blog-slider-btn { width: 38px; height: 38px; font-size: 1.7rem; }
    .blog-slider-btn.prev { left: 8px; }
    .blog-slider-btn.next { right: 8px; }
}

/* Admin blog upload preview must contain the full image */
.entity-form-blogs .blog-image-upload .image-uploader,
.entity-form-blogs .blog-image-upload .upload-preview,
.entity-form-blogs .blog-image-upload .upload-empty {
    width: 100% !important;
    min-height: 150px !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
}
.entity-form-blogs .blog-image-upload .upload-preview {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 10px !important;
    background: #f3faf7 !important;
}
.entity-form-blogs .blog-image-upload .upload-preview img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
}

/* Fix hidden state after deleting uploaded blog images */
.entity-form-blogs .blog-image-upload .upload-preview.d-none,
.entity-form-blogs .blog-image-upload .upload-empty.d-none {
    display: none !important;
}
.entity-form-blogs .blog-image-upload .upload-preview:not(.d-none) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Keep blog upload action buttons fully inside the image box */
.entity-form-blogs .blog-image-upload .upload-actions {
    top: 12px !important;
    right: 12px !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 3 !important;
}
.entity-form-blogs .blog-image-upload .upload-actions button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    padding: 0 !important;
}
.entity-form-blogs .blog-image-upload .upload-preview {
    padding-right: 66px !important;
}
@media (max-width: 760px) {
    .entity-form-blogs .blog-image-upload .upload-actions {
        top: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }
    .entity-form-blogs .blog-image-upload .upload-actions button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-basis: 36px !important;
    }
    .entity-form-blogs .blog-image-upload .upload-preview {
        padding-right: 54px !important;
    }
}

/* Cleaner blog upload preview controls */
.entity-form-blogs .blog-image-upload .upload-preview {
    padding: 10px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.entity-form-blogs .blog-image-upload .upload-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
.entity-form-blogs .blog-image-upload .upload-actions {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    display: flex !important;
    gap: 6px !important;
    z-index: 5 !important;
}
.entity-form-blogs .blog-image-upload .upload-actions button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    padding: 0 !important;
    border: 2px solid rgba(255,255,255,.82) !important;
    box-shadow: 0 8px 18px rgba(12, 24, 36, .18) !important;
}
.entity-form-blogs .blog-image-upload .upload-actions svg {
    width: 16px !important;
    height: 16px !important;
}
.entity-form-blogs .blog-image-upload .image-view {
    background: rgba(82, 107, 245, .92) !important;
}
.entity-form-blogs .blog-image-upload .image-remove {
    background: rgba(255, 70, 86, .94) !important;
}

/* Final compact icon placement for blog upload previews */
.entity-form-blogs .blog-image-upload .upload-actions {
    top: 7px !important;
    right: 7px !important;
    gap: 4px !important;
    padding: 3px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .82) !important;
    border: 1px solid rgba(210, 224, 232, .9) !important;
    box-shadow: 0 8px 20px rgba(14, 31, 45, .12) !important;
    backdrop-filter: blur(10px) !important;
}
.entity-form-blogs .blog-image-upload .upload-actions button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    flex-basis: 28px !important;
    border: 0 !important;
    box-shadow: none !important;
}
.entity-form-blogs .blog-image-upload .upload-actions svg {
    width: 14px !important;
    height: 14px !important;
}
.entity-form-blogs .blog-image-upload .image-view {
    background: #5368ee !important;
}
.entity-form-blogs .blog-image-upload .image-remove {
    background: #ff4354 !important;
}

/* Prevent blog image delete icon from clipping on the right edge */
.entity-form-blogs .blog-image-upload .upload-preview {
    overflow: visible !important;
}
.entity-form-blogs .blog-image-upload .upload-actions {
    left: auto !important;
    right: 16px !important;
    top: 10px !important;
    transform: none !important;
    max-width: calc(100% - 32px) !important;
}
.entity-form-blogs .blog-image-upload .upload-actions button {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    flex: 0 0 26px !important;
}
.entity-form-blogs .blog-image-upload .upload-actions svg {
    width: 13px !important;
    height: 13px !important;
}

/* Manage large directory option lists */
.directory-list-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(205,221,216,.88);
    border-radius: 22px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 30px rgba(16,27,25,.045);
}
.directory-alpha {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.directory-alpha::-webkit-scrollbar { display: none; }
.directory-alpha button {
    flex: 0 0 auto;
    min-width: 34px;
    min-height: 34px;
    border: 1px solid rgba(8,127,111,.14);
    border-radius: 999px;
    color: #294842;
    background: rgba(255,255,255,.82);
    font-size: .82rem;
    font-weight: 900;
}
.directory-alpha button.active,
.directory-alpha button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
}
.directory-pills.is-compact {
    max-height: 270px;
    overflow: hidden;
    position: relative;
}
.directory-pills .directory-filter {
    min-height: 36px;
    padding: 7px 13px;
    font-size: .92rem;
}
.directory-list-actions {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(8,127,111,.08);
    padding-top: 12px;
}
.directory-show-more {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(8,127,111,.16);
    border-radius: 999px;
    color: var(--green);
    background: rgba(8,127,111,.08);
    font-weight: 950;
}
.directory-show-more:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
}
@media (max-width: 640px) {
    .directory-pills.is-compact { max-height: 220px; }
    .directory-pills .directory-filter { font-size: .84rem; min-height: 34px; padding: 6px 11px; }
}

/* Dynamic contact page */
.dynamic-contact-page {
    display: grid;
    gap: 22px;
}
.contact-hero-panel,
.contact-form-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 22px 60px rgba(15,44,38,.07);
}
.contact-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
    padding: clamp(22px, 4vw, 40px);
}
.contact-hero-panel h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1;
}
.contact-hero-panel p:not(.eyebrow) {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-weight: 750;
    line-height: 1.55;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.contact-info-card {
    display: grid;
    gap: 7px;
    min-height: 98px;
    padding: 16px;
    border: 1px solid rgba(8,127,111,.12);
    border-radius: 18px;
    color: var(--ink);
    text-decoration: none;
    background: rgba(244,251,248,.8);
}
.contact-info-card span {
    color: var(--green);
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}
.contact-info-card strong {
    overflow-wrap: anywhere;
    font-size: .98rem;
    line-height: 1.35;
}
.contact-info-wide { grid-column: 1 / -1; }
.contact-form-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: clamp(18px, 3vw, 28px);
}
.contact-form-head,
.contact-form-panel .btn-call,
.contact-form-panel .form-span {
    grid-column: 1 / -1;
}
.contact-form-head h2 {
    margin: 4px 0 0;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}
@media (max-width: 860px) {
    .contact-hero-panel,
    .contact-form-panel { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
}

/* Enquiry rows need enough context in the compact admin list */
.admin-shell[data-entity="contact_messages"] .entity-row > span:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.admin-shell[data-entity="contact_messages"] .entity-row > span:first-child small.entity-row-message {
    display: block;
    max-width: 920px;
    color: #52645f;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.45;
    white-space: normal;
}
@media (max-width: 720px) {
    .admin-shell[data-entity="contact_messages"] .entity-row > span:first-child small.entity-row-message {
        font-size: .78rem;
    }
}
