        body { font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
        .page-content { padding-top: 20px; padding-bottom: 40px; }

        .doctor-header-box {
            display: flex;
            gap: 20px;
            background: #ffffff;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 28px rgba(4, 133, 119, 0.12);
            margin-bottom: 24px;
            align-items: center;
        }
        .doctor-header-photo {
            width: 120px; height: 120px;
            border-radius: 20px; overflow: hidden;
            flex-shrink: 0; background: #e0f2fe;
        }
        .doctor-header-photo img { width: 100%; height: 100%; object-fit: cover; }

        .doctor-header-info h1 {
            font-size: 22px; color: #035663; margin-bottom: 4px;
        }
        .doctor-header-info .title {
            font-size: 14px; color: #334155; margin-bottom: 6px;
        }
        .doctor-header-info .specialty {
            font-size: 14px; color: #0f766e; font-weight: 600;
        }
        .doctor-header-rating {
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #0f172a;
        }
        .doctor-header-rating .stars {
            color: #f97316;
            font-size: 16px;
        }
        .doctor-header-rating .rating-count {
            font-size: 12px;
            color: #64748b;
        }

        .section-box {
            background: #ffffff;
            border-radius: 24px;
            padding: 20px;
            box-shadow: 0 10px 28px rgba(15, 118, 110, 0.12);
            margin-bottom: 24px;
        }

        /* عنوان القسم + زر الحجز الأونلاين (مكان العلامة الحمرا) */
        .section-title-row{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:10px;
            margin-bottom: 12px;
        }
        .section-title {
            font-size: 18px;
            font-weight: 700;
            color: #035663;
            margin: 0;
        }
        .online-book-btn{
            border: none;
            cursor:pointer;
            background: #0ea5e9;
            color:#fff;
            padding: 10px 14px;
            border-radius: 999px;
            font-size: 13px;
            display:inline-flex;
            align-items:center;
            gap:8px;
            white-space:nowrap;
            box-shadow: 0 8px 18px rgba(14,165,233,0.25);
        }
        .online-book-btn:hover{ background:#0284c7; }
        .online-book-btn .icon{
            width: 26px; height:26px;
            display:inline-flex;
            align-items:center; justify-content:center;
            background: rgba(255,255,255,0.18);
            border-radius: 999px;
            font-size: 14px;
        }

        /* المواعيد */
        .slots-wrapper { display: flex; flex-wrap: wrap; gap: 16px; }
        .slots-column {
            flex: 1 1 280px;
            background: #e1f9f4;
            border-radius: 18px;
            padding: 12px 14px 16px;
            min-width: 0;
        }
        .slots-date-title {
            text-align: center;
            font-weight: 700;
            margin-bottom: 8px;
            color: #0f766e;
        }
        .slots-date-title .day-name { display: block; font-size: 14px; }
        .slots-date-title .date-text { display: block; font-size: 12px; color: #64748b; }

        .slots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
        .slot-row {
            display: inline-flex; align-items: center; justify-content: space-between;
            gap: 6px; background: #ffffff;
            border-radius: 999px; padding: 4px 6px 4px 4px;
            flex: 0 0 calc(25% - 8px); min-width: 90px;
        }
        .slot-time { font-size: 12px; color: #0f172a; padding-inline: 4px; }
        .slot-btn {
            border: none; outline: none; cursor: pointer;
            background: #16a34a; color: #ffffff;
            font-size: 11px; padding: 3px 10px;
            border-radius: 999px; transition: background 0.2s;
            white-space: nowrap;
        }
        .slot-btn:hover { background: #15803d; }
        .slot-btn[disabled], .slot-btn.booked { background: #9ca3af; cursor: default; }
        .slot-btn.selected { box-shadow: 0 0 0 2px #f97316; }

        .booking-message { margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
        .booking-message.error   { background: #fee2e2; color: #b91c1c; }
        .booking-message.success { background: #dcfce7; color: #166534; }

        .booking-form-wrapper {
            margin-top: 18px;
            border-top: 1px dashed #cbd5e1;
            padding-top: 12px;
            display: none;
        }
        .booking-form-row {
            display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px;
        }
        .booking-form-row input {
            flex: 1 1 220px;
            border-radius: 999px;
            border: 1px solid #cbd5e1;
            padding: 8px 12px;
            font-size: 13px;
        }
        .booking-code-display {
            flex: 0 0 130px;
            background: #f1f5f9;
            text-align: center;
            font-weight: 600;
        }
        .booking-submit-btn {
            display: block; width: 100%;
            border: none; border-radius: 999px;
            padding: 10px; font-size: 14px;
            color: #ffffff; background: #fb7185; cursor: pointer; margin-top: 4px;
        }
        .booking-submit-btn:hover { background: #f97373; }
        .selected-slot-text { font-size: 13px; color: #0f172a; margin-bottom: 8px; }

        /* بوپ-أب الحجز */
        .booking-modal-backdrop {
            position: fixed; inset: 0; background: rgba(15,23,42,0.6);
            display: none; align-items: center; justify-content: center; z-index: 999;
        }
        .booking-modal-backdrop.show { display: flex; }
        .booking-modal {
            background: #ecfeff; border-radius: 24px;
            padding: 20px 22px; max-width: 520px; width: 100%;
            box-shadow: 0 20px 40px rgba(15,118,110,0.3);
        }
        .booking-modal h3 {
            margin-top: 0; margin-bottom: 10px;
            color: #047857; font-size: 18px;
        }
        .booking-modal p { font-size: 13px; margin-bottom: 6px; color: #0f172a; }
        .booking-modal-actions {
            margin-top: 14px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .btn-whatsapp,
        .btn-edit,
        .btn-cancel,
        .btn-confirm {
            flex: 1 1 200px;
            border-radius: 999px;
            border: none;
            padding: 9px 12px;
            font-size: 14px;
            cursor: pointer;
        }
        .btn-whatsapp { background: #22c55e; color: #ffffff; }
        .btn-edit     { background: #e5e7eb; color: #111827; }
        .btn-cancel   { background: #fee2e2; color: #b91c1c; }
        .btn-confirm  { background: #0ea5e9; color: #ffffff; }

        /* (جديد) مودال الكشف الأونلاين */
        .online-modal-backdrop{
            position: fixed; inset: 0; background: rgba(2,6,23,0.65);
            display:none; align-items:center; justify-content:center;
            z-index: 1100;
        }
        .online-modal-backdrop.show{ display:flex; }
        .online-modal{
            background:#ffffff;
            border-radius: 24px;
            padding: 18px 18px;
            max-width: 560px;
            width: 100%;
            box-shadow: 0 24px 50px rgba(2,132,199,0.25);
            border: 1px solid rgba(14,165,233,0.25);
        }
        .online-modal-head{
            display:flex;
            align-items:flex-start;
            justify-content:space-between;
            gap:10px;
            margin-bottom: 10px;
        }
        .online-modal-title{
            margin:0;
            font-size:18px;
            color:#075985;
            font-weight:800;
        }
        .online-modal-close{
            border:none;
            background:#f1f5f9;
            width:36px;height:36px;
            border-radius: 12px;
            cursor:pointer;
            font-size:18px;
        }
        .online-modal-sub{
            font-size:13px; color:#334155; margin: 0 0 12px 0;
        }
        .online-form-grid{
            display:flex; flex-wrap:wrap;
            gap:10px;
        }
        .online-form-grid input,
        .online-form-grid select{
            flex: 1 1 240px;
            border: 1px solid #cbd5e1;
            border-radius: 14px;
            padding: 10px 12px;
            font-size: 13px;
            outline: none;
        }
        .online-form-grid input:focus,
        .online-form-grid select:focus{
            border-color:#0ea5e9;
            box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
        }
        .online-price-box{
            margin-top: 10px;
            background: #ecfeff;
            border: 1px dashed #67e8f9;
            border-radius: 16px;
            padding: 10px 12px;
            font-size: 13px;
            color:#0f172a;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:10px;
        }
        .online-actions{
            margin-top: 12px;
            display:flex; flex-wrap:wrap; gap:8px;
        }
        .online-actions button{
            border:none;
            border-radius: 999px;
            padding: 10px 14px;
            font-size: 14px;
            cursor:pointer;
            flex:1 1 220px;
        }
        .btn-online-next{ background:#0ea5e9; color:#fff; }
        .btn-online-next:hover{ background:#0284c7; }
        .btn-online-cancel{ background:#e5e7eb; color:#111827; }
        .btn-online-cancel:hover{ background:#d1d5db; }

        .pay-methods{
            margin-top: 10px;
            background:#f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 10px 12px;
        }
        .pay-method{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:10px;
            padding: 8px 0;
            border-bottom:1px solid #e2e8f0;
            font-size:13px;
            color:#0f172a;
        }
        .pay-method:last-child{ border-bottom:none; }
        .pay-method .name{
            font-weight:700;
            color:#0f766e;
        }
        .copy-btn{
            border:none;
            background:#0f766e;
            color:#fff;
            border-radius: 999px;
            padding: 7px 10px;
            cursor:pointer;
            font-size: 12px;
            white-space:nowrap;
        }
        .copy-btn:hover{ background:#115e59; }

        .upload-box{
            margin-top: 10px;
            background:#ecfccb;
            border: 1px dashed #a3e635;
            border-radius: 16px;
            padding: 10px 12px;
            font-size:13px;
            color:#365314;
        }
        .upload-box input[type="file"]{
            display:block;
            margin-top: 8px;
            width:100%;
        }

        /* التقييمات */
        .doctor-section { margin-top: 24px; }
        .doctor-block {
            background: #ffffff;
            border-radius: 24px;
            padding: 20px;
            box-shadow: 0 10px 28px rgba(15, 118, 110, 0.12);
        }
        .doctor-block-title {
            font-size: 18px; font-weight: 700;
            color: #035663; margin-bottom: 12px;
        }
        .doctor-rating-summary { margin-bottom: 16px; }
        .doctor-rating-number {
            display: flex; align-items: center;
            gap: 8px; font-size: 14px; color: #0f172a;
        }
        .doctor-rating-number .stars { color: #f97316; font-size: 18px; }
        .doctor-rating-number .rating-count { font-size: 12px; color: #64748b; }
        .no-reviews-yet { font-size: 13px; color: #64748b; }

        .doctor-review-form {
            margin-top: 16px;
            padding: 14px;
            border-radius: 16px;
            background: #eff6ff;
        }
        .doctor-review-form-title {
            font-size: 15px; font-weight: 600;
            margin-bottom: 10px; color: #1d4ed8;
        }
        .doctor-review-form .form-row { margin-bottom: 10px; }
        .doctor-review-form label {
            display: block; margin-bottom: 4px;
            font-size: 13px; color: #0f172a;
        }
        .doctor-review-form input[type="text"],
        .doctor-review-form textarea {
            width: 100%; border-radius: 10px;
            border: 1px solid #cbd5e1;
            padding: 8px 10px; font-size: 13px;
        }
        .rating-stars-input {
            display: flex; gap: 8px; flex-wrap: wrap;
        }
        .rating-stars-input label {
            display: inline-flex; align-items: center;
            gap: 3px; cursor: pointer; font-size: 13px;
        }
        .rating-stars-input input[type="radio"] { display: none; }
        .rating-stars-input span {
            padding: 4px 8px; border-radius: 999px; background: #e5e7eb;
        }
        .rating-stars-input input[type="radio"]:checked + span {
            background: #f97316; color: #ffffff;
        }

        .doctor-reviews-list-title {
            font-size: 15px; font-weight: 600;
            margin-bottom: 10px; color: #0f172a;
        }
        .doctor-review-card {
            background: #f0f9ff;
            border-radius: 18px;
            padding: 10px 14px;
            margin-bottom: 8px;
            font-size: 13px;
        }
        .doctor-review-header {
            display: flex; justify-content: space-between;
            gap: 10px; margin-bottom: 4px;
        }
        .doctor-review-user {
            display: flex; gap: 8px; align-items: center;
        }
        .review-avatar {
            width: 32px; height: 32px; border-radius: 999px;
            background: #e0f2fe; display: flex; align-items: center; justify-content: center;
        }
        .review-user-name { font-weight: 600; color: #0f172a; }
        .review-date { font-size: 11px; color: #94a3b8; }
        .doctor-review-rating .stars { color: #f97316; margin-left: 4px; }
        .doctor-review-comment { margin: 0; color: #0f172a; }

        @media (max-width: 992px) {
            .slot-row { flex: 0 0 calc(33.333% - 8px); }
        }
        @media (max-width: 640px) {
            .doctor-header-box { flex-direction: column; text-align: center; }
            .doctor-header-photo { margin: 0 auto; }
            .slots-wrapper { flex-direction: column; }
            .slot-row { flex: 0 0 calc(50% - 8px); }
        }
        @media (max-width: 400px) {
            .slot-row { flex: 0 0 100%; }
        }
        /* ===================== (جديد) Online Chat Floating ===================== */
.chat-fab{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #0ea5e9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(14,165,233,0.35);
    z-index: 1400;
}
.chat-fab:hover{ background:#0284c7; }
.chat-fab span{ font-size: 22px; line-height: 1; }

.chat-modal-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.60);
    display:none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}
.chat-modal-backdrop.show{ display:flex; }

.chat-modal{
    background:#fff;
    border-radius: 22px;
    width: min(520px, calc(100vw - 24px));
    box-shadow: 0 24px 60px rgba(2,132,199,0.25);
    overflow: hidden;
    border: 1px solid rgba(14,165,233,0.20);
}
.chat-head{
    background:#0ea5e9;
    color:#fff;
    padding: 12px 14px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
}
.chat-head .title{
    font-weight: 800;
    font-size: 14px;
}
.chat-head .close{
    border:none;
    background: rgba(255,255,255,0.18);
    color:#fff;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    cursor:pointer;
    font-size: 18px;
}

.chat-body{
    padding: 14px;
}
.chat-note{
    background:#f1f5f9;
    border:1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    color:#0f172a;
    margin-bottom: 10px;
}
.chat-error{
    background:#fee2e2;
    border:1px solid #fecaca;
    color:#991b1b;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    display:none;
}
.chat-ok{
    background:#dcfce7;
    border:1px solid #86efac;
    color:#166534;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    display:none;
}

.chat-auth{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
}
.chat-auth input{
    flex: 1 1 240px;
    border:1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    outline:none;
}
.chat-auth button{
    flex: 0 0 auto;
    border:none;
    border-radius: 14px;
    padding: 10px 14px;
    background:#0ea5e9;
    color:#fff;
    cursor:pointer;
    font-size: 13px;
    font-weight: 700;
}
.chat-auth button:hover{ background:#0284c7; }

.chat-box{
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display:none;
}
.chat-messages{
    height: 280px;
    overflow:auto;
    background:#f8fafc;
    padding: 12px;
}
.msg{
    max-width: 80%;
    margin-bottom: 8px;
    padding: 9px 10px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.msg.patient{
    background:#0ea5e9;
    color:#fff;
    margin-left:auto;
    border-bottom-right-radius: 6px;
}
.msg.doctor{
    background:#ffffff;
    color:#0f172a;
    border:1px solid #e2e8f0;
    margin-right:auto;
    border-bottom-left-radius: 6px;
}
.msg.system{
    background:#eef2ff;
    color:#1e3a8a;
    border:1px solid #c7d2fe;
    margin: 10px auto;
    text-align:center;
    max-width: 95%;
}
.msg-meta{
    font-size: 11px;
    opacity: .75;
    margin-top: 4px;
}

.chat-compose{
    display:flex;
    gap: 8px;
    padding: 10px;
    background:#fff;
    border-top: 1px solid #e2e8f0;
}
.chat-compose textarea{
    flex: 1 1 auto;
    resize:none;
    height: 44px;
    border:1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    outline:none;
}
.chat-compose button{
    flex: 0 0 110px;
    border:none;
    border-radius: 14px;
    background:#16a34a;
    color:#fff;
    cursor:pointer;
    font-weight: 800;
}
.chat-compose button:hover{ background:#15803d; }
.chat-compose button:disabled{
    background:#94a3b8;
    cursor:not-allowed;
}
.msg .file-box{
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
}
.msg.doctor .file-box{
    background:#f1f5f9;
    border: 1px solid #e2e8f0;
}
.file-link{
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}
.file-preview{
    margin-top: 8px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
}
.msg.doctor .file-preview{
    border: 1px solid #e5e7eb;
}

/* ======================================================================
   Doctor profile v2 — professional profile, booking and SEO layout
   ====================================================================== */
:root {
    --doctor-ink: #0b3440;
    --doctor-copy: #355763;
    --doctor-muted: #6d858d;
    --doctor-primary: #078aa0;
    --doctor-primary-dark: #056579;
    --doctor-soft: #eaf8fa;
    --doctor-soft-2: #f5fafb;
    --doctor-border: #dcebed;
    --doctor-card: #ffffff;
    --doctor-star: #f6a61c;
    --doctor-success: #0e9f6e;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--doctor-ink);
    background: var(--doctor-soft-2);
}

.doctor-page {
    padding: 18px 0 56px;
    background:
        radial-gradient(circle at 82% 4%, rgba(7, 138, 160, 0.07), transparent 24rem),
        var(--doctor-soft-2);
}

.doctor-page-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.doctor-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: var(--doctor-muted);
    font-size: 12px;
}

.doctor-breadcrumb a {
    color: var(--doctor-copy);
    text-decoration: none;
}

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

.doctor-profile-hero,
.doctor-content-card,
.doctor-booking-card {
    background: var(--doctor-card);
    border: 1px solid var(--doctor-border);
    box-shadow: 0 14px 40px rgba(11, 52, 64, 0.07);
}

.doctor-profile-hero {
    border-radius: 22px;
    overflow: hidden;
}

.doctor-hero-identity {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

.doctor-profile-photo {
    position: relative;
    flex: 0 0 190px;
    width: 190px;
    height: 190px;
    border-radius: 20px;
    overflow: visible;
    background: var(--doctor-soft);
}

.doctor-profile-photo::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(7, 138, 160, 0.18);
    border-radius: 15px;
    pointer-events: none;
}

.doctor-profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.doctor-verified-mark {
    position: absolute;
    left: -7px;
    bottom: 15px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: var(--doctor-success);
    border: 4px solid #fff;
    font-weight: 800;
    z-index: 2;
}

.doctor-hero-copy {
    flex: 1;
    min-width: 0;
}

.doctor-eyebrow,
.doctor-section-heading span,
.booking-card-header span {
    display: block;
    margin-bottom: 6px;
    color: var(--doctor-primary);
    font-size: 12px;
    font-weight: 700;
}

.doctor-hero-copy h1 {
    margin: 0;
    color: var(--doctor-ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.45;
    letter-spacing: -0.4px;
}

.doctor-title-line {
    margin: 8px 0;
    color: var(--doctor-copy);
    font-size: 15px;
    line-height: 1.9;
}

.doctor-specialty-link {
    display: inline-flex;
    margin-top: 2px;
    color: var(--doctor-primary-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.doctor-rating-line {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 12px;
    color: var(--doctor-copy);
    font-size: 13px;
    text-decoration: none;
}

.doctor-rating-line .stars,
.doctor-review-score .stars,
.doctor-review-rating .stars {
    color: var(--doctor-star);
    letter-spacing: 1px;
}

.doctor-hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    margin-top: 18px;
}

.doctor-hero-fact {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--doctor-copy);
    font-size: 13px;
    line-height: 1.75;
}

.fact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: var(--doctor-primary-dark);
    background: var(--doctor-soft);
    font-weight: 800;
}

.doctor-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.doctor-primary-action,
.doctor-secondary-action,
.doctor-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.doctor-primary-action {
    color: #fff;
    background: linear-gradient(135deg, var(--doctor-primary), var(--doctor-primary-dark));
    border: 1px solid var(--doctor-primary);
}

.doctor-primary-action:hover {
    color: #fff;
    transform: translateY(-1px);
}

.doctor-secondary-action,
.doctor-text-link {
    color: var(--doctor-primary-dark);
    background: #fff;
    border: 1px solid var(--doctor-border);
}

.doctor-secondary-action:hover,
.doctor-text-link:hover {
    color: var(--doctor-primary-dark);
    border-color: var(--doctor-primary);
}

.doctor-trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    background: var(--doctor-soft);
    border-top: 1px solid var(--doctor-border);
}

.doctor-trust-strip > div {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    column-gap: 9px;
    padding: 15px 18px;
}

.doctor-trust-strip > div:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block: 14px;
    left: 0;
    width: 1px;
    background: rgba(7, 138, 160, 0.15);
}

.doctor-trust-strip > div > span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: var(--doctor-primary-dark);
    background: #fff;
    font-weight: 800;
}

.doctor-trust-strip strong {
    color: var(--doctor-ink);
    font-size: 13px;
}

.doctor-trust-strip small {
    color: var(--doctor-muted);
    font-size: 11px;
}

.doctor-section-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 18px 0;
    padding: 8px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--doctor-border);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(11, 52, 64, 0.05);
    backdrop-filter: blur(12px);
}

.doctor-section-nav a {
    flex: 0 0 auto;
    padding: 9px 16px;
    color: var(--doctor-copy);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.doctor-section-nav a:hover,
.doctor-section-nav a:focus-visible {
    color: var(--doctor-primary-dark);
    background: var(--doctor-soft);
}

.doctor-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "main booking";
    align-items: start;
    gap: 18px;
}

.doctor-main-content {
    grid-area: main;
    display: grid;
    gap: 18px;
}

.doctor-booking-aside {
    grid-area: booking;
}

.doctor-content-card,
.doctor-booking-card {
    border-radius: 18px;
    padding: 22px;
}

.doctor-section-heading {
    margin-bottom: 16px;
}

.doctor-section-heading h2,
.booking-card-header h2,
.doctor-related-links h2 {
    margin: 0;
    color: var(--doctor-ink);
    font-size: 20px;
    line-height: 1.6;
}

.doctor-heading-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.doctor-heading-with-action .doctor-text-link {
    min-height: 38px;
    padding: 7px 12px;
    white-space: nowrap;
}

.doctor-about-text {
    color: var(--doctor-copy);
    font-size: 14px;
    line-height: 2;
}

.doctor-about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.doctor-about-highlights > div {
    padding: 13px;
    background: var(--doctor-soft-2);
    border: 1px solid var(--doctor-border);
    border-radius: 12px;
}

.doctor-about-highlights small,
.doctor-about-highlights strong {
    display: block;
}

.doctor-about-highlights small {
    margin-bottom: 5px;
    color: var(--doctor-muted);
    font-size: 11px;
}

.doctor-about-highlights strong {
    color: var(--doctor-ink);
    font-size: 13px;
    line-height: 1.7;
}

.doctor-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.doctor-service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 72px;
    padding: 15px;
    background: var(--doctor-soft-2);
    border: 1px solid var(--doctor-border);
    border-radius: 13px;
}

.service-check {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: var(--doctor-success);
    background: #e7f8f2;
    font-weight: 800;
}

.doctor-service-item h3 {
    margin: 0;
    color: var(--doctor-ink);
    font-size: 13px;
    line-height: 1.75;
}

.doctor-section-note {
    margin: 13px 0 0;
    color: var(--doctor-muted);
    font-size: 11px;
}

.doctor-location-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    background:
        linear-gradient(135deg, rgba(7, 138, 160, 0.05), transparent),
        var(--doctor-soft-2);
    border: 1px solid var(--doctor-border);
    border-radius: 14px;
}

.location-map-mark {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    color: #fff;
    background: var(--doctor-primary);
    font-size: 26px;
}

.doctor-location-card strong,
.doctor-location-card span {
    display: block;
}

.doctor-location-card strong {
    color: var(--doctor-ink);
    font-size: 14px;
}

.doctor-location-card span {
    margin-top: 5px;
    color: var(--doctor-muted);
    font-size: 12px;
}

.doctor-review-score {
    display: flex;
    align-items: center;
    gap: 7px;
}

.doctor-review-score strong {
    color: var(--doctor-ink);
    font-size: 24px;
}

.doctor-review-score small {
    color: var(--doctor-muted);
}

.doctor-reviews-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.doctor-review-card {
    margin: 0;
    padding: 14px;
    background: var(--doctor-soft-2);
    border: 1px solid var(--doctor-border);
    border-radius: 13px;
}

.review-avatar {
    color: var(--doctor-primary-dark);
    background: var(--doctor-soft);
    font-weight: 800;
}

.doctor-review-comment {
    margin-top: 9px;
    color: var(--doctor-copy);
    line-height: 1.85;
}

.doctor-empty-state {
    margin: 0;
    padding: 18px;
    color: var(--doctor-muted);
    background: var(--doctor-soft-2);
    border: 1px dashed var(--doctor-border);
    border-radius: 13px;
    font-size: 13px;
}

.doctor-review-alert {
    margin-top: 12px;
}

.doctor-review-form-disclosure {
    margin-top: 16px;
    border-top: 1px solid var(--doctor-border);
}

.doctor-review-form-disclosure > summary {
    padding: 14px 0 0;
    color: var(--doctor-primary-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.doctor-review-form {
    margin-top: 12px;
    background: var(--doctor-soft-2);
    border: 1px solid var(--doctor-border);
}

.doctor-review-submit {
    border: 0;
}

.doctor-faq-list {
    display: grid;
    gap: 9px;
}

.doctor-faq-list details {
    background: var(--doctor-soft-2);
    border: 1px solid var(--doctor-border);
    border-radius: 12px;
}

.doctor-faq-list summary {
    padding: 14px 16px;
    color: var(--doctor-ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.doctor-faq-list p {
    margin: 0;
    padding: 0 16px 15px;
    color: var(--doctor-copy);
    font-size: 13px;
    line-height: 1.9;
}

.doctor-related-links {
    padding: 4px 2px 10px;
}

.doctor-related-links h2 {
    font-size: 16px;
}

.doctor-related-links > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 9px;
}

.doctor-related-links a {
    padding: 8px 11px;
    color: var(--doctor-primary-dark);
    background: var(--doctor-soft);
    border-radius: 10px;
    font-size: 12px;
    text-decoration: none;
}

.doctor-booking-card {
    position: sticky;
    top: 76px;
}

.booking-card-header {
    margin-bottom: 16px;
}

.doctor-date-label {
    display: block;
    margin-bottom: 7px;
    color: var(--doctor-copy);
    font-size: 12px;
    font-weight: 700;
}

.doctor-date-selector {
    width: 100%;
    min-height: 44px;
    margin-bottom: 14px;
    padding: 8px 12px;
    color: var(--doctor-ink);
    background: #fff;
    border: 1px solid var(--doctor-border);
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
}

.doctor-booking-card .slots-wrapper {
    display: block;
}

.doctor-booking-card .slots-column {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.doctor-booking-card .slots-date-title {
    display: none;
}

.doctor-booking-card .slots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.doctor-booking-card .slot-row {
    display: block;
    min-width: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.doctor-booking-card .slot-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 6px;
    color: var(--doctor-primary-dark);
    background: #fff;
    border: 1px solid var(--doctor-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.doctor-booking-card .slot-btn:hover,
.doctor-booking-card .slot-btn.selected {
    color: #fff;
    background: var(--doctor-primary);
    border-color: var(--doctor-primary);
    box-shadow: none;
}

.doctor-booking-card .slot-btn.booked,
.doctor-booking-card .slot-btn[disabled] {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.doctor-booking-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--doctor-border);
    color: var(--doctor-copy);
    font-size: 12px;
}

.doctor-booking-price strong {
    color: var(--doctor-ink);
    font-size: 20px;
}

.doctor-block-action {
    width: 100%;
    margin-top: 12px;
}

.doctor-booking-card .online-book-btn {
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--doctor-primary-dark);
    background: #fff;
    border: 1px solid var(--doctor-primary);
    border-radius: 12px;
    box-shadow: none;
    font-family: inherit;
    font-weight: 700;
}

.doctor-booking-card .online-book-btn:hover {
    color: #fff;
    background: var(--doctor-primary-dark);
}

.doctor-no-slots {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 18px;
    text-align: center;
    background: var(--doctor-soft-2);
    border: 1px dashed var(--doctor-border);
    border-radius: 13px;
}

.doctor-no-slots > span {
    color: var(--doctor-primary);
    font-size: 28px;
}

.doctor-no-slots strong {
    color: var(--doctor-ink);
    font-size: 13px;
}

.doctor-no-slots p,
.doctor-booking-security {
    margin: 0;
    color: var(--doctor-muted);
    font-size: 11px;
    line-height: 1.75;
}

.doctor-booking-security {
    margin-top: 10px;
    text-align: center;
}

.doctor-booking-card .booking-form-wrapper {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--doctor-border);
}

.doctor-booking-card .selected-slot-text {
    margin-bottom: 10px;
    padding: 9px 10px;
    color: var(--doctor-primary-dark);
    background: var(--doctor-soft);
    border-radius: 9px;
    font-size: 11px;
}

.doctor-booking-card .booking-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.doctor-booking-card .booking-form-row input,
.booking-code-row input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--doctor-ink);
    background: #fff;
    border: 1px solid var(--doctor-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
}

.booking-code-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 9px;
}

.booking-code-row > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    background: var(--doctor-soft-2);
    border: 1px solid var(--doctor-border);
    border-radius: 10px;
}

.booking-code-row small {
    color: var(--doctor-muted);
    font-size: 10px;
}

.booking-code-row strong {
    color: var(--doctor-primary-dark);
    font-size: 15px;
    letter-spacing: 2px;
}

.doctor-booking-card .booking-submit-btn {
    min-height: 44px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--doctor-primary), var(--doctor-primary-dark));
    border-radius: 11px;
    font-family: inherit;
    font-weight: 700;
}

.doctor-mobile-booking-bar {
    display: none;
}

.doctor-page :focus-visible {
    outline: 3px solid rgba(7, 138, 160, 0.26);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .doctor-content-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "booking"
            "main";
    }

    .doctor-booking-card {
        position: static;
    }

    .doctor-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctor-trust-strip > div:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .doctor-page {
        padding-top: 10px;
        padding-bottom: 94px;
    }

    .doctor-page-shell {
        width: min(100% - 20px, 1180px);
    }

    .doctor-hero-identity {
        align-items: flex-start;
        gap: 16px;
        padding: 18px;
    }

    .doctor-profile-photo {
        flex-basis: 112px;
        width: 112px;
        height: 112px;
        border-radius: 16px;
    }

    .doctor-profile-photo img {
        border-radius: 16px;
    }

    .doctor-profile-photo::after {
        border-radius: 12px;
    }

    .doctor-verified-mark {
        left: -5px;
        bottom: 8px;
        width: 30px;
        height: 30px;
    }

    .doctor-eyebrow {
        display: none;
    }

    .doctor-hero-copy h1 {
        font-size: 21px;
    }

    .doctor-title-line {
        font-size: 12px;
        line-height: 1.7;
    }

    .doctor-hero-facts {
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    .doctor-hero-actions {
        display: none;
    }

    .doctor-trust-strip {
        grid-template-columns: 1fr 1fr;
    }

    .doctor-trust-strip > div {
        grid-template-columns: 30px 1fr;
        padding: 12px;
    }

    .doctor-trust-strip > div > span {
        width: 30px;
        height: 30px;
    }

    .doctor-section-nav {
        justify-content: flex-start;
        top: 0;
        margin: 12px 0;
        border-radius: 12px;
    }

    .doctor-section-nav a {
        padding: 8px 11px;
        font-size: 12px;
    }

    .doctor-content-card,
    .doctor-booking-card {
        padding: 17px;
        border-radius: 15px;
    }

    .doctor-about-highlights,
    .doctor-services-grid,
    .doctor-reviews-list {
        grid-template-columns: 1fr;
    }

    .doctor-heading-with-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .doctor-mobile-booking-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1250;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--doctor-border);
        box-shadow: 0 -10px 30px rgba(11, 52, 64, 0.11);
        backdrop-filter: blur(12px);
    }

    .doctor-mobile-booking-bar small,
    .doctor-mobile-booking-bar strong {
        display: block;
    }

    .doctor-mobile-booking-bar small {
        color: var(--doctor-muted);
        font-size: 10px;
    }

    .doctor-mobile-booking-bar strong {
        color: var(--doctor-ink);
        font-size: 15px;
    }

    .doctor-mobile-booking-bar a {
        min-height: 44px;
        padding: 11px 18px;
        color: #fff;
        background: linear-gradient(135deg, var(--doctor-primary), var(--doctor-primary-dark));
        border-radius: 11px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .doctor-hero-identity {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 13px;
    }

    .doctor-profile-photo {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    .doctor-rating-line {
        flex-wrap: wrap;
    }

    .doctor-hero-facts,
    .doctor-specialty-link {
        grid-column: 1 / -1;
    }

    .doctor-trust-strip strong {
        font-size: 12px;
    }

    .doctor-trust-strip small {
        display: none;
    }

    .doctor-booking-card .slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-code-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .doctor-page * {
        transition: none !important;
    }
}
