/* ─────────────────────────────────────────────────────────────────────
   Krishna Dental Center — design system (mobile-first, responsive)
   ─────────────────────────────────────────────────────────────────────*/
:root {
    --sky: #0ea5e9; --blue: #0369a1; --blue-dark: #075985; --sky-soft: #e0f2fe;
    --teal: #0d9488; --teal-soft: #ccfbf1;
    --green: #059669; --green-soft: #d1fae5;
    --amber: #d97706; --amber-soft: #fef3c7;
    --red: #dc2626; --red-soft: #fee2e2;
    --gray-badge: #64748b; --gray-soft: #f1f5f9;
    --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --muted-2: #94a3b8;
    --line: #e2e8f0; --line-2: #cbd5e1; --bg: #f8fafc; --bg-2: #f1f5f9;
    --radius: 14px; --radius-lg: 18px; --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow: 0 4px 12px -4px rgba(15,23,42,.12);
    --shadow-lg: 0 12px 32px -16px rgba(15,23,42,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg); color: var(--ink); min-height: 100dvh; line-height: 1.5;
    overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, svg { max-width: 100%; height: auto; display: block; }
i[class^="ri-"], i[class*=" ri-"] { font-style: normal; line-height: 1; display: inline-flex; vertical-align: middle; }

/* ═══════════ Buttons ═══════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; transition: filter .15s, transform .05s, background .15s;
    font-family: inherit; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg-2); color: var(--ink); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-warn { background: var(--amber); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-light { background: #fff; color: var(--blue); }
.btn.sm { padding: 8px 13px; font-size: 13px; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn-full { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 20px; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-2); }

/* ═══════════ Cards ═══════════ */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.card.lg { padding: 26px; border-radius: var(--radius-lg); }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* ═══════════ Badges & pills ═══════════ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; }
.badge.gray { background: var(--gray-soft); color: var(--gray-badge); }
.badge.blue { background: var(--sky-soft); color: var(--blue); }
.badge.teal { background: var(--teal-soft); color: var(--teal); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }

/* ═══════════ Forms ═══════════ */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ═══════════ Messages / spinner ═══════════ */
.msg { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.msg.err { background: var(--red-soft); color: #b91c1c; }
.msg.ok { background: var(--green-soft); color: #047857; }
.msg.info { background: var(--sky-soft); color: var(--blue); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--blue); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
.spinner.white { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, #e9eef5 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ═══════════ Stats ═══════════ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat .meta { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.stat.accent { background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; border: none; }
.stat.accent .label, .stat.accent .meta { color: rgba(255,255,255,.85); }

/* ═══════════ Tables / lists ═══════════ */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table tr:hover td { background: var(--bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ═══════════ Layout utilities ═══════════ */
.mt-1{margin-top:6px}.mt-2{margin-top:10px}.mt-3{margin-top:16px}.mt-4{margin-top:24px}
.mb-2{margin-bottom:10px}.mb-3{margin-bottom:16px}
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════ Staff shell (sidebar + main) ═══════════════════ */
.admin-layout { min-height: 100dvh; }
.admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 260px; background: #fff;
    border-right: 1px solid var(--line); display: flex; flex-direction: column;
    padding: 18px 14px; z-index: 60; transform: translateX(-100%); transition: transform .2s;
}
.admin-sidebar.open { transform: translateX(0); }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.admin-brand .logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.admin-brand h1 { font-size: 15px; font-weight: 800; line-height: 1.2; }
.admin-brand p { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.admin-nav { list-style: none; display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.admin-nav a .icon { font-size: 20px; }
.admin-nav a:hover { background: var(--bg-2); color: var(--ink); }
.admin-nav a.active { background: var(--sky-soft); color: var(--blue); }
.admin-user-card { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.admin-user-card .name { font-size: 14px; font-weight: 700; }
.admin-user-card .role { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.admin-sidebar-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 55; display: none; }
.admin-sidebar-backdrop.show { display: block; }
.admin-main { padding: 0; min-height: 100dvh; }
.admin-mobile-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-header { padding: 20px 16px 8px; }
.admin-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.admin-header p { font-size: 14px; color: var(--muted); }
.admin-content { padding: 16px; }

@media (min-width: 1024px) {
    body { background: var(--bg-2); }
    .admin-sidebar { transform: none; }
    .admin-main { margin-left: 260px; }
    .admin-mobile-bar { display: none; }
    .admin-header { padding: 26px 32px 10px; }
    .admin-content { padding: 12px 32px 48px; }
    .admin-sidebar-backdrop { display: none !important; }
}

/* ═══════════════════ Token / queue components ═══════════════════ */
.token-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.call-btn {
    flex-shrink: 0; display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--green); color: #fff !important; font-size: 20px;
    box-shadow: 0 6px 14px -6px rgba(5,150,105,.6); text-decoration: none;
    transition: transform .1s, filter .1s;
}
.call-btn:hover { filter: brightness(1.06); color: #fff; }
.call-btn:active { transform: scale(.94); }
.token-card .token-info .sub a { color: inherit; }
.token-card .token-info .sub a:hover { color: var(--blue); }
.token-card.serving { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.token-num { width: 52px; height: 52px; border-radius: 13px; background: var(--sky-soft); color: var(--blue); font-size: 22px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.token-card.serving .token-num { background: var(--teal); color: #fff; }
.token-info { flex: 1; min-width: 0; }
.token-info .nm { font-weight: 700; font-size: 15px; }
.token-info .sub { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.token-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Slot chips */
.slot-chip { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; text-align: left; }
.slot-chip:hover { border-color: var(--sky); }
.slot-chip.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-soft); }
.slot-chip.disabled { opacity: .5; cursor: not-allowed; }
.slot-chip .t { font-weight: 700; font-size: 14.5px; }
.slot-chip .c { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ═══════════════════ Now-serving big number (status / display) ═══════════════════ */
.now-serving { text-align: center; padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; }
.now-serving .lbl { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 700; }
.now-serving .num { font-size: 72px; font-weight: 800; line-height: 1; margin: 8px 0; }

/* ═══════════════════ Sheet / modal ═══════════════════ */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; display: none; align-items: flex-end; justify-content: center; padding: 0; }
.sheet-backdrop.show { display: flex; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 20px; max-height: 92dvh; overflow-y: auto; box-shadow: 0 -10px 40px -10px rgba(0,0,0,.3); animation: sheetUp .22s; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 18px; } }

/* ═══════════════════ Public site (landing) ═══════════════════ */
.ld-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.ld-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ld-header .ld-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ld-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; color: var(--ink); }
.ld-brand .logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; display: grid; place-items: center; font-size: 22px; }
.ld-brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.ld-nav-links { display: none; gap: 24px; margin-right: 10px; }
.ld-nav-links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.ld-nav-links a:hover { color: var(--blue); }
@media (min-width: 860px) { .ld-nav-links { display: flex; } }
@media (max-width: 600px) {
    .ld-header .ld-wrap { height: 58px; padding: 0 14px; }
    .ld-brand small { display: none; }
    .ld-brand { font-size: 15px; }
}
.ld-hero { background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 55%, #ecfeff 100%); border-bottom: 1px solid var(--line); }
.ld-hero .ld-wrap { display: grid; grid-template-columns: 1fr; gap: 34px; padding: 48px 20px 52px; align-items: center; }
@media (min-width: 920px) { .ld-hero .ld-wrap { grid-template-columns: 1.05fr .95fr; padding: 72px 20px 80px; } }
.ld-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--sky-soft); color: var(--blue); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); }
.ld-hero h1 { font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 16px 0 14px; }
@media (min-width: 920px) { .ld-hero h1 { font-size: 52px; } }
.ld-hero h1 .accent { background: linear-gradient(120deg, var(--sky), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-hero p.lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 540px; margin-bottom: 26px; }
.ld-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.ld-trust .item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ld-trust .item i { color: var(--green); font-size: 19px; }

.ld-hero-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(15,23,42,.35); padding: 22px; }
.ld-hero-card .head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ld-hero-card .head .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--sky-soft); color: var(--blue); display: grid; place-items: center; font-size: 24px; }
.ld-hero-card .big { text-align: center; padding: 8px 0 4px; }
.ld-hero-card .big .n { font-size: 56px; font-weight: 800; color: var(--blue); line-height: 1; }
.ld-hero-card .big .l { font-size: 13px; color: var(--muted); font-weight: 600; }

.ld-section { padding: 60px 0; }
.ld-section.alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ld-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.ld-head .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.ld-head h2 { font-size: 29px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 12px; }
.ld-head p { font-size: 16px; color: var(--muted); line-height: 1.6; }
.ld-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .ld-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .ld-grid.cols-3 { grid-template-columns: repeat(3,1fr); } .ld-grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
.ld-feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; transition: transform .15s, box-shadow .15s; }
.ld-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ld-feature .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; background: var(--sky-soft); color: var(--blue); }
.ld-feature.teal .ic { background: var(--teal-soft); color: var(--teal); }
.ld-feature.green .ic { background: var(--green-soft); color: var(--green); }
.ld-feature.amber .ic { background: var(--amber-soft); color: var(--amber); }
.ld-feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.ld-feature p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.ld-doctor { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; }
.ld-doctor .av {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--sky-soft), var(--teal-soft)) center/cover no-repeat;
    color: var(--blue); display: grid; place-items: center; font-size: 38px;
    overflow: hidden; border: 3px solid #fff; box-shadow: 0 6px 18px -8px rgba(15,23,42,.25);
}
.ld-doctor .av.has-photo i { display: none; }
.ld-doctor h3 { font-size: 17px; font-weight: 700; }
.ld-doctor .q { font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 2px; }
.ld-doctor .s { font-size: 13px; color: var(--muted); margin-top: 4px; }

.ld-banner { background: linear-gradient(135deg, var(--sky), var(--blue)); border-radius: 24px; padding: 46px 28px; text-align: center; color: #fff; box-shadow: 0 24px 56px -24px rgba(3,105,161,.6); }
.ld-banner h2 { font-size: 29px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.ld-banner p { font-size: 16px; opacity: .92; margin-bottom: 22px; }

.ld-footer { background: var(--ink); color: #cbd5e1; padding: 46px 0 26px; }
.ld-footer .ld-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .ld-footer .ld-wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.ld-footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.ld-footer .brand .logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--sky), var(--blue)); display: grid; place-items: center; font-size: 20px; color: #fff; }
.ld-footer p { font-size: 13.5px; line-height: 1.7; color: #94a3b8; }
.ld-footer h5 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.ld-footer a { color: #cbd5e1; font-size: 14px; display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.ld-footer a:hover { color: #fff; }
.ld-footer .bottom,
.ld-footer-bottom { border-top: 1px solid #1e293b; margin-top: 28px; padding-top: 18px; text-align: center; font-size: 13px; color: #64748b; }

/* Footer on mobile: neatly aligned single-column, generous tap targets. */
@media (max-width: 759px) {
    .ld-footer { padding: 30px 0 24px; }
    .ld-footer .ld-wrap { gap: 22px; padding: 0 20px; }
    .ld-footer h5 { margin-bottom: 10px; }
    .ld-footer a { padding: 8px 0; font-size: 15px; }
    .ld-footer a i { font-size: 17px; color: var(--sky); }
    .ld-footer-bottom { font-size: 12px; padding-left: 16px; padding-right: 16px; }
}

/* ═══════════ ISO 9001:2015 trust badge + certificate viewer ═══════════ */
/* Clickable pill used in the hero trust row. */
.iso-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff; border: 1px solid var(--sky-soft); color: var(--ink);
    padding: 7px 14px 7px 8px; border-radius: 999px;
    font: inherit; cursor: pointer; box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}
.iso-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.iso-badge .seal,
.iso-foot .seal {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    color: #fff; display: grid; place-items: center; font-size: 17px;
}
.iso-badge .t { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.iso-badge .t b { font-size: 13px; font-weight: 800; }
.iso-badge .t span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Footer variant (sits on the dark footer). */
.iso-foot {
    display: inline-flex; align-items: center; gap: 11px; margin-top: 16px;
    padding: 10px 14px; border: 1px solid #1e293b; border-radius: 12px;
    background: #0f172a; font: inherit; cursor: pointer; transition: border-color .15s;
}
.iso-foot:hover { border-color: #334155; }
.iso-foot .t b { color: #fff; font-size: 13px; font-weight: 800; display: block; }
.iso-foot .t span { color: #94a3b8; font-size: 11.5px; }

/* Certificate lightbox. */
.cert-backdrop {
    position: fixed; inset: 0; z-index: 320; background: rgba(15,23,42,.72);
    display: none; align-items: flex-start; justify-content: center;
    padding: 24px 16px; overflow-y: auto;
}
.cert-backdrop.show { display: flex; }
.cert-modal {
    background: #fff; border-radius: 18px; width: 100%; max-width: 540px;
    box-shadow: var(--shadow-lg); overflow: hidden; animation: certIn .2s ease;
}
@keyframes certIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cert-modal .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cert-modal .head h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.cert-modal .head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cert-modal .close { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; flex: none; }
.cert-modal .close:hover { background: var(--bg); }
.cert-modal .img { padding: 16px; background: var(--bg); }
.cert-modal .img img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.cert-modal .meta { padding: 14px 18px 18px; display: grid; gap: 7px; }
.cert-modal .meta .row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.cert-modal .meta .row span { color: var(--muted); flex: none; }
.cert-modal .meta .row b { font-weight: 700; text-align: right; }

/* Centered narrow page (booking / status / login) */
.page-narrow { max-width: 560px; margin: 0 auto; padding: 22px 16px 48px; }
.page-narrow .topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-narrow .topbar .logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; display: grid; place-items: center; font-size: 20px; }
.page-narrow .topbar h1 { font-size: 18px; font-weight: 800; }
.page-narrow .topbar p { font-size: 12px; color: var(--muted); }

.step-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }

/* ═══════════ Brand logo (apple) ═══════════
   Render the clinic's apple logo inside every brand chip in place of the
   gradient + tooth glyph. The inner <i> is hidden; the SVG is the background. */
.ld-brand .logo, .ld-footer .brand .logo, .admin-brand .logo,
.page-narrow .topbar .logo {
    background: #fff var(--brand-logo) center / contain no-repeat !important;
    border: 1px solid var(--line);
}
.ld-brand .logo i, .ld-footer .brand .logo i, .admin-brand .logo i,
.page-narrow .topbar .logo i { display: none; }
.brand-apple { background: #fff var(--brand-logo) center / contain no-repeat; }
.brand-apple i { display: none; }

/* ═══════════ App-like public shell ═══════════ */
/* Header stays pinned; bottom tab bar gives the native-app feel on mobile. */
.ld-header { position: fixed; left: 0; right: 0; top: 0; }
body.public { padding-top: 64px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) { body.public { padding-top: 58px; } }

.lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff;
    color: var(--ink-2); font-weight: 700; font-size: 13px; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.lang-btn:hover { background: var(--bg-2); }

/* Bottom tab bar */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar.tabbar-5 { grid-template-columns: repeat(5, 1fr); }
.tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 9px 4px 8px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.tabbar a i { font-size: 22px; }
.tabbar a.active { color: var(--blue); }
.tabbar a.book { color: var(--blue); }
.tabbar a.book i {
    background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff;
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    margin-top: -22px; box-shadow: 0 8px 18px -6px rgba(3,105,161,.6); font-size: 22px;
}
@media (min-width: 1024px) {
    /* On wide screens the top nav is enough; hide the mobile tab bar. */
    .tabbar { display: none; }
    body.public { padding-bottom: 0; }
}

/* Language chooser (first visit) */
.lang-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.6); display: grid; place-items: center; padding: 22px; }
.lang-card { background: #fff; border-radius: 20px; padding: 28px 24px; width: 100%; max-width: 360px; text-align: center; box-shadow: var(--shadow-lg); }
.lang-card .lang-logo { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px; background: #fff var(--brand-logo) center/contain no-repeat; border: 1px solid var(--line); }
.lang-card h2 { font-size: 19px; font-weight: 800; margin-bottom: 18px; line-height: 1.3; }
.lang-card h2 span { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Reviews */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.review-card .stars { color: #f59e0b; font-size: 16px; margin-bottom: 8px; letter-spacing: 1px; }
.review-card .body { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.review-card .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.review-card .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.review-card .who .nm { font-weight: 700; font-size: 14px; }
.review-card .who .src { font-size: 12px; color: var(--muted); }
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* Leaflet map picker (admin settings) */
#map { height: 300px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.leaflet-container { font: inherit; }
