/* ==========================================================================
   QuickDent Mobile Web App Modern Styling (Figma Pixel-Perfect Match)
   Target: /var/www/html/crm-backend/Modules/Frontend/src/Resources/assets/css/quickdent-mobile.css
   ========================================================================== */

/* ==========================================================================
   Mobile Web App & Installed APK Scrollbar Elimination
   Hides visual scrollbars on mobile viewports (< 768px), standalone APK,
   and PWA displays while preserving smooth touch scrolling.
   ========================================================================== */
@media (max-width: 767.98px), (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    html,
    body {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
}

html.is-mobile-app,
html.is-mobile-app body,
html.is-mobile-app * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html.is-mobile-app::-webkit-scrollbar,
html.is-mobile-app body::-webkit-scrollbar,
html.is-mobile-app *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Explicitly scoped to mobile viewports / standalone mode for QuickDent Mobile containers */
@media (max-width: 767.98px), (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    html:has(.qd-mobile-home-container),
    html:has(.qd-mobile-container),
    html:has(.qd-mobile-profile-page),
    html:has(.qd-mobile-explore-container),
    html:has(.qd-mobile-search-container),
    html:has(.qd-mobile-search-page),
    html:has(.qd-mobile-clinic-details-container),
    html:has(.qd-mobile-doctor-profile-container),
    html:has(.qd-mobile-specialist-profile-container),
    html:has(.qd-mobile-select-service-container),
    html:has(.qd-mobile-edit-profile-page),
    html:has(.qd-mobile-records-page),
    html:has(.qd-mobile-summary-page),
    html:has(.qd-mobile-account-settings-page),
    html:has(.qd-mobile-notifications-page),
    html:has(.qd-mobile-family-members-page),
    html:has(.qd-mobile-family-member-edit-page),
    html:has(.qd-appointment-details-page),
    html:has(.qd-appointments-list-page),
    html:has(.qd-review-page),
    html:has(.qd-confirm-page),
    html:has(.qd-patient-details-page),
    body:has(.qd-mobile-home-container),
    body:has(.qd-mobile-container),
    body:has(.qd-mobile-profile-page),
    body:has(.qd-mobile-explore-container),
    body:has(.qd-mobile-search-container),
    body:has(.qd-mobile-search-page),
    body:has(.qd-mobile-clinic-details-container),
    body:has(.qd-mobile-doctor-profile-container),
    body:has(.qd-mobile-specialist-profile-container),
    body:has(.qd-mobile-select-service-container),
    body:has(.qd-mobile-edit-profile-page),
    body:has(.qd-mobile-records-page),
    body:has(.qd-mobile-summary-page),
    body:has(.qd-mobile-account-settings-page),
    body:has(.qd-mobile-notifications-page),
    body:has(.qd-mobile-family-members-page),
    body:has(.qd-mobile-family-member-edit-page),
    body:has(.qd-appointment-details-page),
    body:has(.qd-appointments-list-page),
    body:has(.qd-review-page),
    body:has(.qd-confirm-page),
    body:has(.qd-patient-details-page) {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html:has(.qd-mobile-home-container)::-webkit-scrollbar,
    html:has(.qd-mobile-container)::-webkit-scrollbar,
    html:has(.qd-mobile-profile-page)::-webkit-scrollbar,
    html:has(.qd-mobile-explore-container)::-webkit-scrollbar,
    html:has(.qd-mobile-search-container)::-webkit-scrollbar,
    html:has(.qd-mobile-search-page)::-webkit-scrollbar,
    html:has(.qd-mobile-clinic-details-container)::-webkit-scrollbar,
    html:has(.qd-mobile-doctor-profile-container)::-webkit-scrollbar,
    html:has(.qd-mobile-specialist-profile-container)::-webkit-scrollbar,
    html:has(.qd-mobile-select-service-container)::-webkit-scrollbar,
    html:has(.qd-mobile-edit-profile-page)::-webkit-scrollbar,
    html:has(.qd-mobile-records-page)::-webkit-scrollbar,
    html:has(.qd-mobile-summary-page)::-webkit-scrollbar,
    html:has(.qd-mobile-account-settings-page)::-webkit-scrollbar,
    html:has(.qd-mobile-notifications-page)::-webkit-scrollbar,
    html:has(.qd-mobile-family-members-page)::-webkit-scrollbar,
    html:has(.qd-mobile-family-member-edit-page)::-webkit-scrollbar,
    html:has(.qd-appointment-details-page)::-webkit-scrollbar,
    html:has(.qd-appointments-list-page)::-webkit-scrollbar,
    html:has(.qd-review-page)::-webkit-scrollbar,
    html:has(.qd-confirm-page)::-webkit-scrollbar,
    html:has(.qd-patient-details-page)::-webkit-scrollbar,
    body:has(.qd-mobile-home-container)::-webkit-scrollbar,
    body:has(.qd-mobile-container)::-webkit-scrollbar,
    body:has(.qd-mobile-profile-page)::-webkit-scrollbar,
    body:has(.qd-mobile-explore-container)::-webkit-scrollbar,
    body:has(.qd-mobile-search-container)::-webkit-scrollbar,
    body:has(.qd-mobile-search-page)::-webkit-scrollbar,
    body:has(.qd-mobile-clinic-details-container)::-webkit-scrollbar,
    body:has(.qd-mobile-doctor-profile-container)::-webkit-scrollbar,
    body:has(.qd-mobile-specialist-profile-container)::-webkit-scrollbar,
    body:has(.qd-mobile-select-service-container)::-webkit-scrollbar,
    body:has(.qd-mobile-edit-profile-page)::-webkit-scrollbar,
    body:has(.qd-mobile-records-page)::-webkit-scrollbar,
    body:has(.qd-mobile-summary-page)::-webkit-scrollbar,
    body:has(.qd-mobile-account-settings-page)::-webkit-scrollbar,
    body:has(.qd-mobile-notifications-page)::-webkit-scrollbar,
    body:has(.qd-mobile-family-members-page)::-webkit-scrollbar,
    body:has(.qd-mobile-family-member-edit-page)::-webkit-scrollbar,
    body:has(.qd-appointment-details-page)::-webkit-scrollbar,
    body:has(.qd-appointments-list-page)::-webkit-scrollbar,
    body:has(.qd-review-page)::-webkit-scrollbar,
    body:has(.qd-confirm-page)::-webkit-scrollbar,
    body:has(.qd-patient-details-page)::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .qd-mobile-home-container,
    .qd-mobile-container,
    .qd-mobile-profile-page,
    .qd-mobile-explore-container,
    .qd-mobile-search-container,
    .qd-mobile-search-page,
    .qd-mobile-clinic-details-container,
    .qd-mobile-doctor-profile-container,
    .qd-mobile-specialist-profile-container,
    .qd-mobile-select-service-container,
    .qd-mobile-edit-profile-page,
    .qd-mobile-records-page,
    .qd-mobile-summary-page,
    .qd-mobile-account-settings-page,
    .qd-mobile-notifications-page,
    .qd-mobile-family-members-page,
    .qd-mobile-family-member-edit-page,
    .qd-appointment-details-page,
    .qd-appointments-list-page,
    .qd-review-page,
    .qd-confirm-page,
    .qd-patient-details-page {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .qd-mobile-home-container::-webkit-scrollbar,
    .qd-mobile-container::-webkit-scrollbar,
    .qd-mobile-profile-page::-webkit-scrollbar,
    .qd-mobile-explore-container::-webkit-scrollbar,
    .qd-mobile-search-container::-webkit-scrollbar,
    .qd-mobile-search-page::-webkit-scrollbar,
    .qd-mobile-clinic-details-container::-webkit-scrollbar,
    .qd-mobile-doctor-profile-container::-webkit-scrollbar,
    .qd-mobile-specialist-profile-container::-webkit-scrollbar,
    .qd-mobile-select-service-container::-webkit-scrollbar,
    .qd-mobile-edit-profile-page::-webkit-scrollbar,
    .qd-mobile-records-page::-webkit-scrollbar,
    .qd-mobile-summary-page::-webkit-scrollbar,
    .qd-mobile-account-settings-page::-webkit-scrollbar,
    .qd-mobile-notifications-page::-webkit-scrollbar,
    .qd-mobile-family-members-page::-webkit-scrollbar,
    .qd-mobile-family-member-edit-page::-webkit-scrollbar,
    .qd-appointment-details-page::-webkit-scrollbar,
    .qd-appointments-list-page::-webkit-scrollbar,
    .qd-review-page::-webkit-scrollbar,
    .qd-confirm-page::-webkit-scrollbar,
    .qd-patient-details-page::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Mobile General Page Background & Layout */
.qd-mobile-page-bg {
    background-color: #F3F5F4 !important;
}

.qd-mobile-container {
    min-height: 100vh;
    background-color: #F3F5F4;
    padding-bottom: 120px;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111111;
}

/* Horizontal Full-Width Section Divider */
.mobile-divider {
    border-bottom: 1px solid #DBDDDC !important;
    margin-top: 24px;
    margin-bottom: 0;
    margin-left: -16px;
    margin-right: -16px;
}

/* --------------------------------------------------------------------------
   Mobile App Header
   -------------------------------------------------------------------------- */
.mobile-app-header {
    position: relative;
    z-index: 30;
    background-color: #F3F5F4;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Urbanist', sans-serif;
}

.mobile-booking-header-row {
    min-height: 52px;
    gap: 12px;
    padding: 0 16px 0 8px;
}

.mobile-app-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: 25.2px;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Mobile Selected Clinic Card
   -------------------------------------------------------------------------- */
.mobile-clinic-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Mobile Services (Optional) Carousel & Cards
   -------------------------------------------------------------------------- */
.mobile-service-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-service-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mobile-service-card {
    width: 156px;
    min-width: 156px;
    flex: 0 0 156px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-service-card:active {
    transform: scale(0.98);
}

.mobile-service-card.is-selected {
    border: 1.5px solid #0080FF !important;
    background: #ffffff !important;
}

.mobile-service-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: #EBF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.mobile-service-check {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #cbd5e1;
    background-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-service-card.is-selected .mobile-service-check,
.mobile-service-check.is-active {
    background-color: #0080FF !important;
    border: none !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Mobile "Choose a Doctor" Carousel & Cards
   -------------------------------------------------------------------------- */
.mobile-doctor-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.mobile-doctor-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mobile-doctor-card {
    width: calc(100vw - 96px);
    min-width: 240px;
    max-width: 340px;
    flex: 0 0 calc(100vw - 96px);
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.mobile-doctor-card:active {
    transform: scale(0.98);
}

.mobile-doctor-card.is-selected {
    border: 1.5px solid #0080FF !important;
    background: #ffffff !important;
}

.mobile-doctor-avatar {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 14px;
    object-fit: cover;
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.mobile-doctor-check {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
    border: 1.5px solid #cbd5e1;
    background-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-doctor-card.is-selected .mobile-doctor-check,
.mobile-doctor-check.is-active {
    background-color: #0080FF !important;
    border: none !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Mobile Date Strip & Pills
   -------------------------------------------------------------------------- */
.mobile-date-strip {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow-x: auto;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-date-strip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mobile-date-pill {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    height: 90px;
    flex: 0 0 58px;
    box-sizing: border-box;
    border-radius: 16px;
    background-color: #ffffff;
    color: #111111;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    user-select: none;
}

.mobile-date-pill:active {
    transform: scale(0.96);
}

.mobile-date-pill.is-selected {
    background-color: #0080FF !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 128, 255, 0.28) !important;
}

.mobile-date-pill.is-closed {
    background-color: #F4F6F5 !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    cursor: not-allowed !important;
}

/* --------------------------------------------------------------------------
   Mobile Time Slots Grid
   -------------------------------------------------------------------------- */
.mobile-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mobile-slot-btn {
    border-radius: 12px;
    padding: 10px 4px;
    font-size: 12px;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #334155;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s ease;
}

.mobile-slot-btn:active {
    transform: scale(0.96);
}

.mobile-slot-btn.is-selected {
    background-color: #0080FF !important;
    border: 1.5px solid #0080FF !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 128, 255, 0.25) !important;
}

.mobile-slot-booked {
    border-radius: 12px;
    background-color: #edf2f7;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: not-allowed;
    opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Mobile Sticky Bottom Action Bar
   -------------------------------------------------------------------------- */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background-color: #f3f5f4;
    border-top: 0;
    padding: 12px 16px max(88px, calc(74px + env(safe-area-inset-bottom)));
    box-shadow: none;
}

.mobile-action-btn-primary {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: #007bea;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 9999px;
    box-shadow: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-action-btn-primary:active {
    transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Mobile Section Layout & Common Helpers
   -------------------------------------------------------------------------- */
.mobile-section-heading {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.25;
}

.mobile-section-subheading {
    font-size: 14px;
    font-weight: 400;
    color: #737975;
    margin-top: 4px;
    margin-bottom: 10px;
}

.mobile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-view-all-btn {
    font-size: 12px;
    font-weight: 600;
    color: #0080FF;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    text-decoration: none;
}

.mobile-optional-tag {
    font-weight: 400;
    color: #94a3b8;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Mobile Selected Clinic Card
   -------------------------------------------------------------------------- */
.mobile-selected-clinic-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 14px;
    padding-bottom: 8px;
    font-family: 'Urbanist', sans-serif;
}

.mobile-clinic-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.mobile-clinic-card-thumb {
    width: 78px;
    height: 54px;
    min-width: 78px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.mobile-clinic-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: 1.25;
}

.mobile-clinic-card-location {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.mobile-clinic-card-edit {
    color: #0080FF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 12px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Mobile Services Elements
   -------------------------------------------------------------------------- */
.mobile-services-section {
    margin-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: 'Urbanist', sans-serif;
}

.mobile-service-card {
    width: 157px;
    min-width: 157px;
    flex-basis: 157px;
    min-height: 132px;
    border-radius: 12px;
    padding: 12px;
    justify-content: flex-start;
}

.mobile-service-card.is-selected {
    border-width: 1.5px !important;
    border-color: #007bea !important;
}

.mobile-service-icon-wrap {
    width: 40px;
    height: 46px;
    border-radius: 8px;
    background-color: #e5f3ff;
}

.mobile-service-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-service-tooth-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-service-title {
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.25;
}

.mobile-service-desc {
    font-size: 11px;
    color: #737975;
    margin-top: 2px;
    margin-bottom: 0;
    line-height: 16px;
}

/* --------------------------------------------------------------------------
   Mobile Doctor Elements
   -------------------------------------------------------------------------- */
.mobile-doctors-section {
    margin-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: 'Urbanist', sans-serif;
}

.mobile-doctor-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.mobile-doctor-card {
    width: 239px;
    min-width: 239px;
    max-width: 239px;
    flex: 0 0 239px;
    min-height: 88px;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
}

.mobile-doctor-card.is-selected {
    border-width: 1.5px !important;
    border-color: #007bea !important;
}

.mobile-doctor-card-content { gap: 8px; }

.mobile-doctor-avatar {
    width: 70px;
    height: 68px;
    border-radius: 12px;
}

.mobile-doctor-name {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.25;
}

.mobile-doctor-spec {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.mobile-doctor-meta {
    font-size: 10px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

/* --------------------------------------------------------------------------
   Mobile Date & Time Elements
   -------------------------------------------------------------------------- */
.mobile-datetime-section {
    margin-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: 'Urbanist', sans-serif;
}

.mobile-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 10px;
}

.mobile-month-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.mobile-month-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav-arrow-btn {
    width: 24px;
    height: 24px;
    color: #0080FF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.mobile-time-heading-wrap {
    margin-top: 20px;
    margin-bottom: 10px;
}

.mobile-time-heading {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.mobile-slots-empty {
    text-align: center;
    padding: 24px 16px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    margin-top: 8px;
}

.mobile-slots-empty-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.mobile-slots-empty-desc {
    font-size: 11px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

/* --------------------------------------------------------------------------
   Clinic Details & Specialist Profile Modules
   -------------------------------------------------------------------------- */
.mobile-clinic-hero-wrap {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 14px;
}

.mobile-clinic-hero-container {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: #0f172a;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.mobile-clinic-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.mobile-clinic-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.mobile-clinic-hero-rating-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-clinic-hero-verified-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    background-color: #0080FF;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-clinic-hero-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.mobile-clinic-hero-dot-active {
    width: 20px;
    height: 6px;
    border-radius: 9999px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-clinic-hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.6);
}

.mobile-clinic-info-wrap {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 14px;
    padding-bottom: 8px;
}

.mobile-clinic-hero-name {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
    margin: 0;
}

.mobile-clinic-hero-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 0;
    font-weight: 500;
}

.mobile-clinic-value-box {
    margin-top: 14px;
}

.mobile-clinic-value-title {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.25;
}

.mobile-clinic-value-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 12px;
}

.mobile-clinic-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mobile-clinic-badge-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 9999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mobile-care-grid-section {
    margin-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-care-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mobile-care-grid-heading {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.mobile-care-grid-link {
    font-size: 12px;
    font-weight: 600;
    color: #0080FF;
    text-decoration: none;
}

.mobile-care-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mobile-care-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 82px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.mobile-care-card:active {
    transform: scale(0.96);
}

.mobile-care-card:hover {
    border-color: #0080FF;
}

.mobile-care-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.mobile-care-card-title {
    font-size: 10px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.mobile-specialist-section {
    margin-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-specialist-heading {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
    margin-top: 0;
}

.mobile-specialist-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-specialist-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mobile-specialist-card-lg {
    width: 300px;
    min-width: 300px;
    flex: 0 0 300px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-specialist-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-specialist-photo-lg {
    width: 82px;
    height: 96px;
    min-width: 82px;
    border-radius: 16px;
    object-fit: cover;
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.mobile-specialist-title-lg {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.mobile-specialist-spec-lg {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0 0;
    font-weight: 500;
}

.mobile-specialist-clinic-lg {
    font-size: 11px;
    color: #475569;
    margin: 2px 0 0 0;
    font-weight: 500;
}

.mobile-specialist-meta-lg {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-specialist-link-lg {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0080FF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-reviews-section {
    margin-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-ease-card {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.mobile-ease-score {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.mobile-reviews-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-reviews-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mobile-review-card-lg {
    width: 280px;
    min-width: 280px;
    flex: 0 0 280px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-review-avatar-round {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.mobile-review-name-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.mobile-review-date-text {
    font-size: 10px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.mobile-review-body-text {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
    margin-top: 10px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-review-badge-text {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 0;
}

.mobile-handoff-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 14px 20px 10px 20px;
    padding-bottom: max(88px, calc(74px + env(safe-area-inset-bottom)));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-handoff-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mobile-handoff-price {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    line-height: 1.1;
}

.mobile-handoff-pricelabel {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
}

.mobile-handoff-timing {
    font-size: 14px;
    font-weight: 600;
    color: #16A34A;
    line-height: 1.1;
    text-align: right;
}

.mobile-handoff-doctor {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
    text-align: right;
}

.mobile-handoff-btn {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: #0080FF;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.mobile-handoff-btn:active {
    transform: scale(0.98);
}

.mobile-handoff-hint {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 0;
}

.mobile-plan-visit-section {
    margin-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-plan-visit-heading {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
    margin-top: 0;
    line-height: 1.25;
}

.mobile-plan-visit-card {
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 20px;
    text-decoration: none;
    display: block;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.mobile-plan-visit-card:active {
    transform: scale(0.99);
}

.mobile-plan-row-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.mobile-plan-icon-box {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mobile-plan-date-title {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.mobile-plan-time-next {
    font-size: 13px;
    font-weight: 500;
    color: #16A34A;
    margin-top: 2px;
}

.mobile-plan-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-plan-service-title {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
}

.mobile-plan-service-fee {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.mobile-plan-service-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

.mobile-plan-footnote {
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
    margin-top: 12px;
    margin-bottom: 0;
    padding-left: 2px;
    padding-right: 2px;
}

.mobile-next-slot-banner {
    background-color: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.mobile-next-slot-banner:active {
    transform: scale(0.99);
}

.mobile-next-slot-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: #DBEAFE;
    color: #0080FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-next-slot-title {
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.mobile-next-slot-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.mobile-check-svg {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.mobile-clinic-thumb-square {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.qd-mobile-clinic-details-container,
.qd-mobile-specialist-profile-container {
    padding-bottom: 220px;
}

/* Next Appointment Card (Mobile Home - Figma Exact Match) */
.mobile-next-appt-section {
    margin-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-next-appt-card {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 55%, #003B8E 100%);
    border-radius: 20px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 82, 204, 0.35);
}

.mobile-next-appt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.mobile-next-appt-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Urbanist', sans-serif;
    letter-spacing: -0.01em;
}

.mobile-next-appt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
}

.mobile-next-appt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    display: inline-block;
    flex-shrink: 0;
}

.mobile-next-appt-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.mobile-next-appt-main {
    flex: 1;
    min-width: 0;
}

.mobile-next-appt-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    line-height: 1.2;
    margin: 0 0 5px 0;
}

.mobile-next-appt-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Urbanist', sans-serif;
}

.mobile-next-appt-clock-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

.mobile-next-appt-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    margin-left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-next-appt-circle-day {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Urbanist', sans-serif;
}

.mobile-next-appt-circle-sub {
    font-size: 9.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    margin-top: 2px;
    font-family: 'Urbanist', sans-serif;
}

.mobile-next-appt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    border-top: none;
    position: relative;
    z-index: 2;
}

.mobile-next-appt-doctor {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.mobile-next-appt-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.mobile-next-appt-doc-info {
    min-width: 0;
}

.mobile-next-appt-doc-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    font-family: 'Urbanist', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-next-appt-doc-spec {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Urbanist', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.mobile-next-appt-btn {
    padding: 6px 16px;
    border-radius: 9999px;
    background-color: #ffffff;
    color: #0066EE;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.mobile-next-appt-btn:hover {
    background-color: #f8fafc;
    color: #0052cc;
}

.mobile-next-appt-btn:active {
    transform: scale(0.97);
}

/* Ensure mobile app screens start cleanly from the top edge without desktop header clearance gaps */
body:has(.qd-mobile-explore-container) main,
body:has(.qd-mobile-home-container) main,
body:has(.qd-mobile-search-container) main,
body:has(.qd-mobile-clinic-details-container) main,
body:has(.qd-mobile-doctor-profile-container) main,
body:has(.qd-mobile-select-service-container) main,
body:has(.qd-mobile-header) main,
body:has(.qd-mobile-container) main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Booking screen action bar positioning above floating bottom nav */
.mobile-sticky-action-bar {
    background-color: transparent !important;
    border-top: 0 !important;
    padding: 0 16px !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.mobile-sticky-action-bar .mobile-action-btn-primary {
    background-color: #0080FF !important;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 9999px !important;
    box-shadow: 0 4px 16px rgba(0, 128, 255, 0.3) !important;
    pointer-events: auto !important;
}

.qd-mobile-select-service-container {
    padding-bottom: calc(56px + max(0.5rem, calc(0.25rem + env(safe-area-inset-bottom, 0px))) + 48px + 32px) !important;
}

.mobile-date-pill.is-selected,
.mobile-slot-btn.is-selected {
    background-color: #007bea !important;
    border-color: #007bea !important;
    box-shadow: none !important;
}

.qd-mobile-home-container {
    background-color: #f3f5f4 !important;
    gap: 32px;
}

.qd-mobile-home-container > section {
    margin-top: 0 !important;
}

.qd-home-care-track {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.qd-home-care-track::-webkit-scrollbar {
    display: none;
}

.qd-home-care-item {
    width: 64px;
}

.qd-home-care-icon {
    width: 56px;
    height: 54px;
    border-radius: 14px;
    box-shadow: none;
}

.qd-home-care-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(36%) sepia(99%) saturate(1968%) hue-rotate(194deg) brightness(101%) contrast(105%);
}

.qd-home-care-label {
    max-width: 76px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
}

.qd-mobile-bottom-nav {
    text-align: center;
    bottom: max(0.5rem, calc(0.25rem + env(safe-area-inset-bottom, 0px)));
}

.mobile-sticky-action-bar {
    bottom: calc(56px + max(0.5rem, calc(0.25rem + env(safe-area-inset-bottom, 0px))) + 8px);
}

.qd-mobile-nav-glass {
    display: inline-flex;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 11.537px;
    align-items: center;
    justify-content: space-between;
    border: 0.721px solid #fff;
    border-radius: 91.54px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%), rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(18.0259838104px);
    backdrop-filter: blur(18.0259838104px);
}

.qd-mobile-select-service-container .mobile-datetime-section {
    margin-bottom: 24px;
}

.qd-mobile-search-page,
.qd-mobile-explore-container {
    padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px)) !important;
}

@keyframes qdShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.qd-btn-shake {
    animation: qdShake 0.5s ease-in-out !important;
}

@keyframes qdPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 128, 255, 0); }
    50% { box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.45); }
}
.qd-slots-highlight {
    animation: qdPulseGlow 1.2s ease-in-out 2 !important;
    border-radius: 16px;
}

/* ==========================================================================
   Dedicated Mobile Flow Views (Profile, Appointments, Details, Booking, Confirm)
   ========================================================================== */

/* Scoped Mobile Flow Resets (< 768px) to protect desktop views */
@media (max-width: 767.98px) {
    body:has(.qd-mobile-profile-page) {
        background: #007CEB !important;
    }

    body:has(.qd-appointments-list-page) {
        background: #FFFFFF !important;
    }

    body:has(.qd-mobile-edit-profile-page),
    body:has(.qd-mobile-records-page),
    body:has(.qd-mobile-summary-page),
    body:has(.qd-mobile-account-settings-page),
    body:has(.qd-mobile-notifications-page),
    body:has(.qd-mobile-family-members-page),
    body:has(.qd-mobile-family-member-edit-page),
    body:has(.qd-appointment-details-page),
    body:has(.qd-review-page),
    body:has(.qd-patient-details-page) {
        background: #F8FAFC !important;
    }

    body:has(.qd-confirm-page) {
        background: #F4F6F8 !important;
    }

    /* Hide global desktop navbar & footer on mobile profile flow pages */
    body:has(.qd-mobile-profile-page) #qd-navbar,
    body:has(.qd-mobile-profile-page) #site-footer,
    body:has(.qd-mobile-profile-page) footer,
    body:has(.qd-mobile-edit-profile-page) #qd-navbar,
    body:has(.qd-mobile-edit-profile-page) #site-footer,
    body:has(.qd-mobile-edit-profile-page) footer,
    body:has(.qd-appointments-list-page) #qd-navbar,
    body:has(.qd-appointments-list-page) #site-footer,
    body:has(.qd-appointments-list-page) footer,
    body:has(.qd-mobile-records-page) #qd-navbar,
    body:has(.qd-mobile-records-page) #site-footer,
    body:has(.qd-mobile-records-page) footer,
    body:has(.qd-mobile-summary-page) #qd-navbar,
    body:has(.qd-mobile-summary-page) #site-footer,
    body:has(.qd-mobile-summary-page) footer,
    body:has(.qd-mobile-family-members-page) #qd-navbar,
    body:has(.qd-mobile-family-members-page) #site-footer,
    body:has(.qd-mobile-family-members-page) footer,
    body:has(.qd-mobile-family-member-edit-page) #qd-navbar,
    body:has(.qd-mobile-family-member-edit-page) #site-footer,
    body:has(.qd-mobile-family-member-edit-page) footer,
    body:has(.qd-mobile-notifications-page) #qd-navbar,
    body:has(.qd-mobile-notifications-page) #site-footer,
    body:has(.qd-mobile-notifications-page) footer,
    body:has(.qd-mobile-account-settings-page) #qd-navbar,
    body:has(.qd-mobile-account-settings-page) #site-footer,
    body:has(.qd-mobile-account-settings-page) footer {
        display: none !important;
    }

    /* Hide floating bottom nav on form/edit/summary pages that have sticky save bars */
    body:has(.qd-mobile-edit-profile-page) .qd-mobile-bottom-nav,
    body:has(.qd-mobile-family-member-edit-page) .qd-mobile-bottom-nav,
    body:has(.qd-mobile-summary-page) .qd-mobile-bottom-nav {
        display: none !important;
    }

    /* Zero out main margins/paddings */
    body:has(.qd-mobile-profile-page) > main,
    body:has(.qd-mobile-profile-page) > div > main,
    body:has(.qd-mobile-profile-page) main,
    body:has(.qd-mobile-edit-profile-page) > main,
    body:has(.qd-mobile-edit-profile-page) > div > main,
    body:has(.qd-mobile-edit-profile-page) main,
    body:has(.qd-appointments-list-page) > main,
    body:has(.qd-appointments-list-page) > div > main,
    body:has(.qd-appointments-list-page) main,
    body:has(.qd-mobile-records-page) > main,
    body:has(.qd-mobile-records-page) > div > main,
    body:has(.qd-mobile-records-page) main,
    body:has(.qd-mobile-summary-page) > main,
    body:has(.qd-mobile-summary-page) > div > main,
    body:has(.qd-mobile-summary-page) main,
    body:has(.qd-mobile-family-members-page) > main,
    body:has(.qd-mobile-family-members-page) > div > main,
    body:has(.qd-mobile-family-members-page) main,
    body:has(.qd-mobile-family-member-edit-page) > main,
    body:has(.qd-mobile-family-member-edit-page) > div > main,
    body:has(.qd-mobile-family-member-edit-page) main,
    body:has(.qd-mobile-notifications-page) > main,
    body:has(.qd-mobile-notifications-page) > div > main,
    body:has(.qd-mobile-notifications-page) main,
    body:has(.qd-mobile-account-settings-page) > main,
    body:has(.qd-mobile-account-settings-page) > div > main,
    body:has(.qd-mobile-account-settings-page) main {
        margin: 0 !important;
        padding-top: 0 !important;
    }

    html:has(.qd-mobile-edit-profile-page),
    body:has(.qd-mobile-edit-profile-page),
    html:has(.qd-mobile-family-member-edit-page),
    body:has(.qd-mobile-family-member-edit-page) {
        min-height: 100% !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: auto !important;
    }

    body:has(.qd-mobile-edit-profile-page) > main,
    body:has(.qd-mobile-edit-profile-page) > div > main,
    body:has(.qd-mobile-family-member-edit-page) > main,
    body:has(.qd-mobile-family-member-edit-page) > div > main {
        min-height: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }

    body:has(.qd-mobile-profile-page) > #toast-container,
    body:has(.qd-mobile-profile-page) .patient-auth-modal,
    body:has(.qd-mobile-profile-page) .phpdebugbar,
    body:has(.qd-mobile-profile-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-edit-profile-page) > #toast-container,
    body:has(.qd-mobile-edit-profile-page) .patient-auth-modal,
    body:has(.qd-mobile-edit-profile-page) .phpdebugbar,
    body:has(.qd-mobile-edit-profile-page) .phpdebugbar-openhandler,
    body:has(.qd-appointments-list-page) > #toast-container,
    body:has(.qd-appointments-list-page) .patient-auth-modal,
    body:has(.qd-appointments-list-page) .phpdebugbar,
    body:has(.qd-appointments-list-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-records-page) > #toast-container,
    body:has(.qd-mobile-records-page) .patient-auth-modal,
    body:has(.qd-mobile-records-page) .phpdebugbar,
    body:has(.qd-mobile-records-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-summary-page) > #toast-container,
    body:has(.qd-mobile-summary-page) .patient-auth-modal,
    body:has(.qd-mobile-summary-page) .phpdebugbar,
    body:has(.qd-mobile-summary-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-family-members-page) > #toast-container,
    body:has(.qd-mobile-family-members-page) .patient-auth-modal,
    body:has(.qd-mobile-family-members-page) .phpdebugbar,
    body:has(.qd-mobile-family-members-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-family-member-edit-page) > #toast-container,
    body:has(.qd-mobile-family-member-edit-page) .patient-auth-modal,
    body:has(.qd-mobile-family-member-edit-page) .phpdebugbar,
    body:has(.qd-mobile-family-member-edit-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-notifications-page) > #toast-container,
    body:has(.qd-mobile-notifications-page) .patient-auth-modal,
    body:has(.qd-mobile-notifications-page) .phpdebugbar,
    body:has(.qd-mobile-notifications-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-account-settings-page) > #toast-container,
    body:has(.qd-mobile-account-settings-page) .patient-auth-modal,
    body:has(.qd-mobile-account-settings-page) .phpdebugbar,
    body:has(.qd-mobile-account-settings-page) .phpdebugbar-openhandler {
        display: none !important;
    }

    /* Hide global layout chrome (navbar, footer, toast container, debugbars, auth modals) on mobile views */
    body:has(.qd-mobile-records-page) > #toast-container,
    body:has(.qd-mobile-records-page) #qd-navbar,
    body:has(.qd-mobile-records-page) #site-footer,
    body:has(.qd-mobile-records-page) .patient-auth-modal,
    body:has(.qd-mobile-records-page) .phpdebugbar,
    body:has(.qd-mobile-records-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-summary-page) > #toast-container,
    body:has(.qd-mobile-summary-page) #qd-navbar,
    body:has(.qd-mobile-summary-page) #site-footer,
    body:has(.qd-mobile-summary-page) .patient-auth-modal,
    body:has(.qd-mobile-summary-page) .phpdebugbar,
    body:has(.qd-mobile-summary-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-account-settings-page) > #toast-container,
    body:has(.qd-mobile-account-settings-page) #qd-navbar,
    body:has(.qd-mobile-account-settings-page) #site-footer,
    body:has(.qd-mobile-account-settings-page) .patient-auth-modal,
    body:has(.qd-mobile-account-settings-page) .phpdebugbar,
    body:has(.qd-mobile-account-settings-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-notifications-page) > #toast-container,
    body:has(.qd-mobile-notifications-page) #qd-navbar,
    body:has(.qd-mobile-notifications-page) #site-footer,
    body:has(.qd-mobile-notifications-page) .patient-auth-modal,
    body:has(.qd-mobile-notifications-page) .phpdebugbar,
    body:has(.qd-mobile-notifications-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-notifications-page) .qd-mobile-bottom-nav,
    body:has(.qd-mobile-family-members-page) > #toast-container,
    body:has(.qd-mobile-family-members-page) #qd-navbar,
    body:has(.qd-mobile-family-members-page) #site-footer,
    body:has(.qd-mobile-family-members-page) .patient-auth-modal,
    body:has(.qd-mobile-family-members-page) .phpdebugbar,
    body:has(.qd-mobile-family-members-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-family-member-edit-page) > #toast-container,
    body:has(.qd-mobile-family-member-edit-page) #qd-navbar,
    body:has(.qd-mobile-family-member-edit-page) #site-footer,
    body:has(.qd-mobile-family-member-edit-page) .patient-auth-modal,
    body:has(.qd-mobile-family-member-edit-page) .phpdebugbar,
    body:has(.qd-mobile-family-member-edit-page) .phpdebugbar-openhandler,
    body:has(.qd-mobile-family-member-edit-page) .qd-mobile-bottom-nav,
    body:has(.qd-appointments-list-page) > #toast-container,
    body:has(.qd-appointments-list-page) #qd-navbar,
    body:has(.qd-appointments-list-page) #site-footer,
    body:has(.qd-appointments-list-page) .patient-auth-modal,
    body:has(.qd-appointments-list-page) .phpdebugbar,
    body:has(.qd-appointments-list-page) .phpdebugbar-openhandler,
    body:has(.qd-appointment-details-page) > #toast-container,
    body:has(.qd-appointment-details-page) #qd-navbar,
    body:has(.qd-appointment-details-page) #site-footer,
    body:has(.qd-appointment-details-page) .patient-auth-modal,
    body:has(.qd-appointment-details-page) .phpdebugbar,
    body:has(.qd-appointment-details-page) .phpdebugbar-openhandler,
    body:has(.qd-confirm-page) > #toast-container,
    body:has(.qd-confirm-page) #qd-navbar,
    body:has(.qd-confirm-page) #site-footer,
    body:has(.qd-confirm-page) .qd-mobile-bottom-nav,
    body:has(.qd-confirm-page) .patient-auth-modal,
    body:has(.qd-confirm-page) .phpdebugbar,
    body:has(.qd-confirm-page) .phpdebugbar-openhandler,
    body:has(.qd-review-page) > #toast-container,
    body:has(.qd-review-page) #qd-navbar,
    body:has(.qd-review-page) #site-footer,
    body:has(.qd-review-page) .qd-mobile-bottom-nav,
    body:has(.qd-review-page) .patient-auth-modal,
    body:has(.qd-review-page) .phpdebugbar,
    body:has(.qd-review-page) .phpdebugbar-openhandler,
    body:has(.qd-patient-details-page) > #toast-container,
    body:has(.qd-patient-details-page) #qd-navbar,
    body:has(.qd-patient-details-page) #site-footer,
    body:has(.qd-patient-details-page) .qd-mobile-bottom-nav,
    body:has(.qd-patient-details-page) .patient-auth-modal,
    body:has(.qd-patient-details-page) .phpdebugbar,
    body:has(.qd-patient-details-page) .phpdebugbar-openhandler {
        display: none !important;
    }

    body:has(.qd-mobile-records-page) > main,
    body:has(.qd-mobile-records-page) > div > main,
    body:has(.qd-mobile-summary-page) > main,
    body:has(.qd-mobile-summary-page) > div > main,
    body:has(.qd-mobile-account-settings-page) > main,
    body:has(.qd-mobile-account-settings-page) > div > main,
    body:has(.qd-mobile-notifications-page) > main,
    body:has(.qd-mobile-notifications-page) > div > main,
    body:has(.qd-mobile-family-members-page) > main,
    body:has(.qd-mobile-family-members-page) > div > main,
    body:has(.qd-mobile-family-member-edit-page) > main,
    body:has(.qd-mobile-family-member-edit-page) > div > main,
    body:has(.qd-appointments-list-page) > main,
    body:has(.qd-appointments-list-page) > div > main,
    body:has(.qd-appointment-details-page) main,
    body:has(.qd-confirm-page) main,
    body:has(.qd-review-page) main,
    body:has(.qd-patient-details-page) main {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile Profile Screen Components (Figma node-id 1385-2441) */
.qd-mobile-profile-gradient {
    background: linear-gradient(180deg, #007CEB 0%, #007BED 20%, #348FEC 32%, #67B0F4 44%, #96C7F0 54%, #C2DBF1 64%, #DDEAF3 74%, #F3F5F4 84%, #FFFFFF 100%) !important;
}

.qd-mobile-profile-container {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
}

.qd-mobile-account-settings-container {
    padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.qd-mobile-notifications-container {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Mobile Notifications Screen Components (Figma node-id 1385-2558) */
.qd-notif-card {
    background-color: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}

.qd-notif-item {
    padding: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.qd-notif-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.qd-notif-desc {
    font-size: 11.5px !important;
    font-weight: 400 !important;
    color: #6B7280 !important;
    line-height: 1.35 !important;
    margin: 2px 0 0 0 !important;
}

.qd-toggle-switch {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.qd-toggle-switch input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.qd-toggle-slider {
    width: 44px !important;
    height: 24px !important;
    background-color: #E2E8F0 !important;
    border-radius: 9999px !important;
    position: relative !important;
    transition: background-color 0.2s ease !important;
    display: block !important;
}

.qd-toggle-slider::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 20px !important;
    height: 20px !important;
    background-color: #ffffff !important;
    border-radius: 9999px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.2s ease !important;
}

.qd-toggle-switch input:checked + .qd-toggle-slider {
    background-color: #0080FF !important;
}

.qd-toggle-switch input:checked + .qd-toggle-slider::after {
    transform: translateX(20px) !important;
}

.qd-notif-saved-banner {
    background-color: #F0FDF4 !important;
    border: 1px solid #BBF7D0 !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
}

.qd-notif-saved-banner.hidden {
    display: none !important;
}

.qd-notif-saved-text {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #166534 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.qd-notif-disclaimer {
    font-size: 11.5px !important;
    font-weight: 400 !important;
    color: #6B7280 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

.qd-notif-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #E5E7EB !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 30 !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03) !important;
}

.qd-notif-save-btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 9999px !important;
    background-color: #0080FF !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.2) !important;
    transition: background-color 0.15s ease, transform 0.1s ease !important;
}

.qd-notif-save-btn:hover {
    background-color: #0070E0 !important;
}

.qd-notif-save-btn:active {
    transform: scale(0.99) !important;
}

/* --------------------------------------------------------------------------
   Mobile Edit Family Member Components (Figma node-id 1385-2858)
   -------------------------------------------------------------------------- */
.qd-mobile-family-member-edit-page {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
}

.qd-mobile-family-member-edit-container {
    padding-bottom: 0 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.qd-fam-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    padding-left: 2px !important;
}

/* Family Member Radio Selector */
.qd-fam-radio-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    transition: all 0.15s ease !important;
}

.qd-fam-radio-card:hover {
    border-color: #CBD5E1 !important;
}

.qd-fam-radio-card.is-selected {
    background-color: #EFF6FF !important;
    border: 1.5px solid #0080FF !important;
    box-shadow: 0 2px 8px rgba(0, 128, 255, 0.12) !important;
}

.qd-fam-radio-card.is-selected .qd-fam-radio-circle {
    border-color: #0080FF !important;
}

.qd-fam-radio-circle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 9999px !important;
    border: 1.5px solid #D1D5DB !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #FFFFFF !important;
    transition: border-color 0.15s ease !important;
}

.qd-fam-radio-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 9999px !important;
    background-color: #0080FF !important;
}

.qd-fam-input {
    width: 100% !important;
    height: 48px !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 14px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #111827 !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.qd-fam-input:focus {
    border-color: #0080FF !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12) !important;
}

.qd-fam-select-active {
    border: 1.5px solid #60A5FA !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.15) !important;
}

.qd-fam-hint {
    font-size: 11.5px !important;
    font-weight: 400 !important;
    color: #6B7280 !important;
    line-height: 1.35 !important;
    margin-top: 6px !important;
    padding-left: 2px !important;
}

.qd-fam-info-banner {
    background-color: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.qd-fam-info-text {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.qd-fam-saved-banner {
    background-color: #F0FDF4 !important;
    border: 1px solid #BBF7D0 !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
}

.qd-fam-saved-banner.hidden {
    display: none !important;
}

.qd-fam-saved-text {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #166534 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.qd-fam-bottom-bar,
.qd-edit-profile-bottom-bar {
    position: sticky !important;
    bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-top: 1px solid #E5E7EB !important;
    padding: 12px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 30 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04) !important;
    margin-top: auto !important;
}

.qd-fam-save-btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 16px !important;
    background-color: #0080FF !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.2) !important;
    transition: background-color 0.15s ease, transform 0.1s ease !important;
}

.qd-fam-save-btn:hover {
    background-color: #0070E0 !important;
}

.qd-fam-save-btn:active {
    transform: scale(0.99) !important;
}

.qd-card-divider {
    height: 1px !important;
    background-color: #E5E7EB !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
}

.qd-profile-content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    flex: 1 1 auto;
}

.qd-profile-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 9999px;
    background-color: #E0F2FE;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.qd-family-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 9999px;
    background-color: #E0F2FE;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    border: 1.5px solid #FFFFFF;
}

.qd-pref-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    background-color: #EAF3FE;
    color: #0080FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qd-profile-main-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.qd-profile-shortcut-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 18px;
    min-height: 122px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.qd-profile-shortcut-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.qd-profile-shortcut-card:active {
    transform: scale(0.98);
}

.qd-profile-family-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.qd-profile-family-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.qd-profile-family-card:active {
    transform: scale(0.99);
}

.qd-profile-prefs-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.qd-profile-prefs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

.qd-profile-prefs-row:hover {
    background-color: #F8FAFC;
}

/* ==========================================================================
   Mobile Edit Profile Screen (Figma node-id 1385-2984)
   ========================================================================== */

.qd-edit-avatar-circle {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    border-radius: 9999px;
    background-color: #E0F2FE;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.qd-edit-input {
    width: 100%;
    height: 48px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.qd-edit-input:focus {
    border-color: #0080FF;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}

.qd-edit-input[type=number]::-webkit-inner-spin-button,
.qd-edit-input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qd-edit-input[type=number] {
    -moz-appearance: textfield;
}

.qd-input-icon {
    width: 18px;
    height: 18px;
    color: #6B7280;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Mobile Dental Records (Figma node-id 1385-2776)
   -------------------------------------------------------------------------- */
.qd-profile-selector-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.qd-profile-selector-card:active {
    background-color: #F8FAFC;
    transform: scale(0.995);
}

.qd-patient-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background-color: #EBF5FF;
    color: #0080FF;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.qd-profile-dropdown {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.qd-record-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    height: 36px;
    border-radius: 9999px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    outline: none;
    flex-shrink: 0;
}

.qd-record-pill.is-active {
    background-color: #EFF6FF;
    border-color: #0080FF;
    border-width: 1.5px;
    color: #0080FF;
    font-weight: 600;
}

.qd-record-pill:hover:not(.is-active) {
    background-color: #F8FAFC;
    border-color: #D1D5DB;
}

.qd-record-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.15s ease;
}

.qd-record-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.06);
}

.qd-record-card:active {
    transform: scale(0.995);
    background-color: #F8FAFC;
}

.qd-record-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: #EBF5FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qd-record-card.hidden,
.qd-profile-dropdown.hidden,
#qd-record-modal.hidden {
    display: none !important;
}

.qd-chevron-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.qd-shield-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Mobile Dental Checkup Summary / Record Detail (Figma node-id 1385-2721)
   -------------------------------------------------------------------------- */
.qd-summary-preview-card {
    background-color: #EEF2F6;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.qd-summary-paper {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.02);
}

.qd-summary-info-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.qd-summary-action-btn {
    flex: 1;
    height: 48px;
    border-radius: 9999px;
    background-color: #0080FF;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px 0 rgba(0, 128, 255, 0.2);
    text-decoration: none;
    outline: none;
}

.qd-summary-action-btn:hover {
    background-color: #006ee6;
}

.qd-summary-action-btn:active {
    background-color: #005bc2;
    transform: scale(0.985);
}

.qd-summary-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.qd-summary-actions-wrap {
    margin-top: auto;
    padding-top: 14px;
    padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px));
}

/* --------------------------------------------------------------------------
   Mobile Patient Details Form Inline Validation
   -------------------------------------------------------------------------- */
.qd-field-input-error {
    border-color: #f43f5e !important;
}

.qd-field-input-error:focus {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15) !important;
}

.qd-field-error {
    font-size: 12px;
    color: #e11d48;
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   QuickDent Flatpickr Calendar Styling (Mobile & Desktop)
   -------------------------------------------------------------------------- */
.flatpickr-calendar {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif !important;
    padding: 12px 14px !important;
    width: 315px !important;
    max-width: calc(100vw - 32px) !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
    display: none !important;
}

.flatpickr-months {
    padding-bottom: 8px !important;
    position: relative !important;
    align-items: center !important;
}

.flatpickr-months .flatpickr-month {
    height: 38px !important;
    color: #0F172A !important;
}

.flatpickr-current-month {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months,
.flatpickr-current-month select.flatpickr-yearDropdown-years {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 4px 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    font-family: inherit !important;
    outline: none !important;
    cursor: pointer !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months:hover,
.flatpickr-current-month select.flatpickr-yearDropdown-years:hover {
    border-color: #0080FF !important;
}

.flatpickr-current-month select.flatpickr-yearDropdown-years {
    min-width: 72px !important;
    color: #0080FF !important;
    background: #EBF5FF !important;
    border-color: #BFDBFE !important;
}

.flatpickr-current-month select.flatpickr-yearDropdown-years:hover {
    border-color: #0080FF !important;
    background: #DBEAFE !important;
}

.flatpickr-current-month .numInputWrapper {
    display: none !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 6px !important;
    border-radius: 10px !important;
    color: #64748B !important;
    width: 32px !important;
    height: 32px !important;
    top: 3px !important;
    transition: all 0.15s ease !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #F1F5F9 !important;
    color: #0080FF !important;
}

.flatpickr-weekdays {
    margin-bottom: 6px !important;
    height: 26px !important;
}

span.flatpickr-weekday {
    color: #94A3B8 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-content: space-around !important;
}

.flatpickr-day {
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #334155 !important;
    height: 36px !important;
    line-height: 36px !important;
    margin: 2px !important;
    border: none !important;
    max-width: 36px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.flatpickr-day:hover {
    background: #EBF5FF !important;
    color: #0080FF !important;
}

.flatpickr-day.today {
    border: 1.5px solid #0080FF !important;
    color: #0080FF !important;
    background: transparent !important;
}

.flatpickr-day.today:hover {
    background: #EBF5FF !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #0080FF !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.35) !important;
    border-color: #0080FF !important;
    font-weight: 700 !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #CBD5E1 !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #E2E8F0 !important;
    cursor: not-allowed !important;
}

/* Family Members Screen Cards (Figma node-id 1385-2912) */
.qd-fam-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.qd-fam-card:active {
    transform: scale(0.995);
}

/* Status Notification Auto-dismiss and Fade Animations */
.qd-status-notification {
    transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease, transform 0.4s ease !important;
    max-height: 120px;
    opacity: 1;
    overflow: hidden !important;
}

.qd-status-notification.qd-notification-fade-out {
    opacity: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: translateY(-6px) !important;
    pointer-events: none !important;
}


