/* Doctor Profile Page Styles */

.page-container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 2rem 2rem;
    background: #ffffff;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .page-container-fluid {
        padding: 1.25rem 1rem calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #tab-Insights {
        padding-bottom: 5rem !important;
    }
}

.btn-clean-back {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    text-decoration: none;
}

.btn-clean-back:hover {
    color: #1e293b;
    transform: translateX(-4px);
}

/* Profile Header */
.profile-header-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #ffffff;
    position: relative;
}

@media (max-width: 768px) {
    .profile-header-card {
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
}

.profile-cover {
    height: 240px;
    background: linear-gradient(120deg, #2563eb, #1e40af);
    width: 100%;
    position: relative;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.2));
}

.profile-main-info {
    padding: 0 2.5rem 2rem 2.5rem;
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.avatar-container {
    position: relative;
}

.avatar-container img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid #fff;
    object-fit: cover;
}

.verified-tick {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #3b82f6;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.info-text {
    flex: 1;
    padding-bottom: 4px;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.p-badge {
    background: #ccfbf1;
    color: #0f766e;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.p-badge-outline {
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.profile-actions {
    padding-bottom: 15px;
    display: flex;
    gap: 10px;
}

.btn-action-primary {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-action-primary:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-action-secondary {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-action-secondary:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.btn-action-premium-post {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-premium-post:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.profile-stats-bar {
    border-top: 1px solid #ffffff;
    padding: 1.5rem 2.5rem;
    display: flex;
    gap: 5rem;
    background: #fcfcfc;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.stat-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation Tabs (Standardized DNA) */
.profile-nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    width: fit-content;
    border: 1px solid #ffffff;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.tab-btn.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tab-btn:not(.active):hover {
    background: #ffffff;
    color: #1e293b;
}

/* Overview Layout */
.overview-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .overview-grid-layout {
        display: flex;
        flex-direction: column-reverse;
        /* Pushes Map & Booking to the Top */
        gap: 2rem;
    }

    .overview-main {
        padding: 0 0 80px 0 !important;
    }

    .overview-side {
        padding: 0;
    }
}

@media (max-width: 768px) {
    /* ── Doctor-specific mobile rules only ──
       Cover/avatar sizing, profile-main-info layout, stats bar grid,
       profile-name, profile-badges, profile-actions, and nav tabs scroll
       are all defined in doctor-profile-premium.css.
       Only doctor-specific overrides live here. */

    .page-container-fluid {
        padding: 1rem 1rem calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Ensure info-text takes full width when stacked */
    .info-text {
        padding-bottom: 0;
        width: 100%;
    }

    /* Action buttons fill width on mobile */
    .btn-action-primary,
    .btn-action-secondary {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Masonry grid collapses to single column */
    .masonry-profile-grid {
        column-count: 1;
    }
}

.section-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .section-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.06);
    border-color: #f8fafc;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sc-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.btn-icon-edit {
    background: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-edit:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.sc-text {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #ccfbf1;
    color: #0f766e;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-list li i {
    font-size: 1.2rem;
    margin-top: 4px;
}

.icon-teal {
    color: #0f766e;
}

.icon-gold {
    color: #d97706;
}

.info-list li div {
    display: flex;
    flex-direction: column;
}

.info-list li strong {
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.info-list li span {
    color: #64748b;
    font-size: 0.85rem;
}

.lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-badge {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.lang-badge:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Timeline Components */
.pro-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 16px;
    transition: 0.2s;
    align-items: flex-start;
}

.timeline-item:hover {
    background: #f8fafc;
}

.tm-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tm-content {
    flex: 1;
}

.tm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.tm-subtitle {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.tm-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Perfect Overview Components */

/* Clinic Location Card */
.clinic-location-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.clc-map-placeholder {
    height: 140px;
    background: #e2e8f0 url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?w=600&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}

.map-overlay i {
    color: #ef4444;
}

.clc-info {
    padding: 1.5rem;
}

.clc-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.clc-address {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.clc-actions {
    display: flex;
    gap: 8px;
}

.btn-clc-primary {
    flex: 1;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-clc-primary:hover {
    background: #1d4ed8;
}

.btn-clc-secondary {
    width: 42px;
    background: #f1f5f9;
    color: #1e293b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-clc-secondary:hover {
    background: #e2e8f0;
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.award-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 16px;
    align-items: center;
}

.award-icon {
    width: 44px;
    height: 44px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.award-info {
    flex: 1;
}

.award-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
}

.award-org {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Memberships */
.membership-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.lang-badge {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.lang-badge:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Timeline Components */
.pro-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 16px;
    transition: 0.2s;
    align-items: flex-start;
}

.timeline-item:hover {
    background: #f8fafc;
}

.tm-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tm-content {
    flex: 1;
}

.tm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.tm-subtitle {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.tm-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Booking Dashboard Card */
.booking-dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.bdc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.bdc-status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
}

.bdc-status-dot.pulse {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.bdc-status-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdc-next-slot {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    text-align: center;
}

.bdc-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 4px;
}

.bdc-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2563eb;
}

.bdc-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.bdc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.bdc-row span {
    color: #64748b;
}

.bdc-row strong {
    color: #1e293b;
}

.btn-primary-elevated {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary-elevated:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
/* --- Modern Services/Tests Grid (Classes in service_card.css) --- */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-book-ticket:hover {
    background: #0f766e;
}

/* Review Wall */
.reviews-hero {
    background: #1e293b;
    border-radius: 20px;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.reviews-hero::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.rh-score {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: #f59e0b;
}

.rh-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.rh-text p {
    opacity: 0.7;
    margin: 0;
    font-size: 0.9rem;
}

.rh-stars {
    margin-left: auto;
    font-size: 1.2rem;
}

.review-wall-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    break-inside: avoid;
}

.rw-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rw-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.rw-meta {
    display: flex;
    flex-direction: column;
}

.rw-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.rw-verified {
    font-size: 0.7rem;
    color: #2563eb;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rw-rating {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.rw-body {
    position: relative;
    margin-bottom: 12px;
}

.rw-quote-icon {
    color: #e2e8f0;
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.rw-body p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.rw-footer {
    border-top: 1px solid #ffffff;
    padding-top: 10px;
    text-align: right;
}

.rw-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 250px;
    border: 1px solid #ffffff;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.g-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.label-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px 10px 10px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.g-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Modals */
.doctor-post-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.doctor-post-modal {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpFade 0.3s ease-out;
    border: 1px solid #e2e8f0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dpm-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.dpm-title h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.dpm-title p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 4px 0 0 0;
}

.dpm-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.dpm-mode-selector {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
}

.dpm-mode-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}

.dpm-mode-btn.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dpm-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dpm-field input,
.dpm-field textarea,
.dpm-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: 0.2s;
    background: #fcfcfc;
}

.dpm-field input:focus,
.dpm-field textarea:focus,
.dpm-field select:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.dpm-field textarea {
    min-height: 200px;
    resize: none;
    font-family: inherit;
    line-height: 1.6;
}

.dpm-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #ffffff;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-dpm-cancel {
    padding: 10px 20px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-dpm-publish {
    padding: 10px 24px;
    font-weight: 700;
    color: #fff;
    background: #14b8a6;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
    transition: 0.2s;
}

.btn-dpm-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-profile-grid {
        column-count: 2;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .overview-grid-layout {
        grid-template-columns: 1fr;
    }

    .services-modern-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .masonry-profile-grid {
        column-count: 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .profile-cover {
        height: 120px;
    }

    .avatar-container img {
        width: 100px;
        height: 100px;
    }

    .profile-header-card {
        margin-top: 10px;
    }

    .reviews-hero {
        flex-direction: column;
        text-align: center;
    }

    .rh-stars {
        margin: 0;
    }
}

/* Client-side Tab Logic */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* --- SURGICAL FIX FOR INSIGHT CARDS ON PROFILE --- */
#tab-Insights .feed-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#tab-Insights .doctor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: auto;
    cursor: pointer;
}

#tab-Insights .doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

#tab-Insights .card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

#tab-Insights .card-media img,
#tab-Insights .ii-media-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#tab-Insights .doctor-card:hover .card-media img,
#tab-Insights .doctor-card:hover .ii-media-content {
    transform: scale(1.08);
}

#tab-Insights .status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 5;
    text-transform: uppercase;
}

#tab-Insights .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

#tab-Insights .doctor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#tab-Insights .specialty-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#tab-Insights .doctor-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

#tab-Insights .ii-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 5;
    transition: 0.2s;
}

#tab-Insights .ii-pill-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

#tab-Insights .ii-expert-avatar {
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

#tab-Insights .tags-row {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

/* Clinic Map Card Hub */
.clinic-map-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.clinic-map-visual {
    height: 140px;
    background: #f1f5f9 url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?w=600&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-pin {
    position: relative;
    z-index: 2;
    color: #ef4444;
    font-size: 1.75rem;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    animation: mapPulsePin 2s infinite;
}

@keyframes mapPulsePin {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.clinic-map-info {
    padding: 1.5rem;
}

.location-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.clinic-name-v2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.clinic-address-v2 {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.map-actions {
    display: flex;
    gap: 10px;
}

.btn-map-primary {
    flex: 1;
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-map-primary:hover {
    background: #0f172a;
}

.btn-map-secondary {
    width: 46px;
    height: 46px;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    color: #1e293b;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
}

.btn-map-secondary:hover {
    background: #e2e8f0;
}

.btn-map-whatsapp {
    width: 46px;
    height: 46px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    color: #16a34a;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-map-whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* --- TRUST BADGES: INDUSTRIAL ELITE DNA --- */
.trust-pill-row {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: -0.2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tp-verified {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.tp-verified i {
    color: #2563eb;
}

.tp-recommended {
    background: #f5f3ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.tp-recommended i {
    color: #4338ca;
}

.trust-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    background: #fff;
}

/* --- PREMIUM BOOKING DASHBOARD CARD --- */
.booking-dashboard-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.bdc-status-hub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.bdc-status-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10b981;
}

.bdc-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.bdc-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: bdcPulse 1.5s infinite;
}

@keyframes bdcPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.bdc-label-v2 {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
}

.bdc-slot-ticket {
    background: #eff6ff;
    /* Soft Blue-Indigo */
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.bdc-slot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bdc-slot-date {
    font-size: 0.7rem;
    font-weight: 800;
    color: #3b82f6;
    letter-spacing: 0.5px;
}

.bdc-slot-time {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1e3a8a;
}

.bdc-next-icon {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    font-size: 1.1rem;
}

.bdc-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
    padding: 0 4px;
}

.bdc-sched-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.bdc-sched-row strong {
    color: #0f172a;
    font-weight: 850;
}

.btn-bdc-main {
    width: 100%;
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-bdc-main:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.btn-bdc-main i {
    transition: transform 0.3s;
}

.btn-bdc-main:hover i {
    transform: translateX(5px);
}

/* --- THE TRUST METRIC HUB --- */
.tp-recommended-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f3ff;
    color: #4338ca;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 850;
    border: 1px solid #c7d2fe;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .profile-stats-bar {
        flex-wrap: wrap;
        gap: 1.5rem !important;
        padding: 1rem !important;
    }

    .stat-box {
        min-width: 40%;
    }
}

/* RTL Adaptations for Doctor Profile */
[dir="rtl"] .btn-clean-back i {
    transform: scaleX(-1);
    display: inline-block;
}

[dir="rtl"] .btn-clean-back:hover {
    transform: translateX(4px);
}