/* Disable ALL animations and transitions */
*, *::before, *::after {
    animation: none !important;
    transition: none !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    /* Depth theme: Background & Cards */
    --bg-main: #0B0E14;
    --card-bg: #161B22;
    --card-border: #30363D;
    /* Buttons: same look site-wide, active clearly visible */
    --btn-inactive-bg: #21262D;
    --btn-inactive-color: #8B949E;
    --btn-active-bg: #1D4ED8;
    --btn-active-color: #FFFFFF;
    --btn-hover-bg: #30363D;
    --btn-hover-color: #c9d1d9;
    --btn-border: #30363D;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100%;
    background-attachment: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header with Logo */
.top-header {
    background: #000000;
    padding: 12px 0;
    border-bottom: 1px solid #252d38;
    background-attachment: scroll;
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 5px;
}

.theme-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--btn-border);
    background: var(--btn-inactive-bg);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-border);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e88e5, #22c55e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 1.8rem;
}

.site-title h1 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title p {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0;
}

.btn {
    padding: 10px 20px;
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
}

.btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
    border-color: var(--btn-border);
}

.btn.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

.btn-primary {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--btn-border);
    color: var(--btn-inactive-color);
}

.btn-outline:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

/* Hero Section */
.hero {
    background: #000000;
    color: white;
    padding: 40px 0 25px;
    text-align: center;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    background-attachment: scroll;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

/* Search Error Message */
.search-error {
    max-width: 900px;
    margin: 0 auto 10px auto;
    padding: 0;
    text-align: center;
    display: none;
}

.search-error.show {
    display: block;
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Search Box */
.search-box {
    background: #0d0d1a;
    border-radius: 50px;
    display: flex;
    align-items: center;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    border-left: 1px solid #2a2a3e;
    border-right: 1px solid #2a2a3e;
    overflow: hidden;
    padding-left: 10px;
}

/* Search Suggestions - Google Style */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #202124;
    border: none;
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    padding: 10px 0;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    min-height: 44px;
    cursor: pointer;
    color: #e8eaed;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 15px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.suggestion-item:hover {
    background: #303134;
}

.suggestion-item .search-icon {
    color: #9aa0a6;
    font-size: 0.85rem;
}

.suggestion-item .highlight {
    font-weight: 700;
}

.suggestion-distance {
    color: #22c55e;
    font-size: 0.8rem;
    margin-left: 5px;
}

.suggestion-subtext {
    color: #9aa0a6;
    font-size: 0.85rem;
}


/* Search Results Header */
.search-results-header {
    background: #151a21;
    border: 1px solid #252d38;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.search-results-header h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    color: #9ca3af;
}

.search-box input::placeholder {
    color: #6b7280;
}

.btn-search {
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    padding: 16px 40px;
    border: 1px solid var(--btn-border);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-radius: 50px;
    margin: 5px;
}

.btn-search:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.btn-search.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

.btn-search-location {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    margin: 4px 0 4px 2px;
    padding: 0;
    border: none;
    border-left: 1px solid #2a2a3e;
    background: transparent;
    color: #9ca3af;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.btn-search-location:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.btn-search-location.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.btn-search-location.loading {
    opacity: 0.65;
    cursor: wait;
}

.btn-search-location:disabled {
    cursor: not-allowed;
}

.location-cta {
    margin-top: 16px;
    text-align: center;
}

/* Mobile: hide big location button, show notification bar instead */
.location-notification-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(29, 78, 216, 0.15);
    border: 1px solid rgba(29, 78, 216, 0.4);
    border-radius: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.location-notification-text {
    color: #c9d1d9;
    font-size: 0.85rem;
    flex: 1;
}

.location-notification-btn {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.location-notification-btn:hover {
    background: #2563eb;
}

.location-notification-mobile.hidden {
    display: none !important;
}

.btn-location {
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    border: 1px solid var(--btn-border);
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
}

.btn-location:hover:not(:disabled) {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.btn-location.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

.btn-location:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    border: 1px solid var(--btn-border);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.filter-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.filter-btn.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.available {
    background: var(--secondary-color);
}

.status-dot.busy {
    background: var(--warning-color);
}

.status-dot.leave {
    background: var(--danger-color);
}

/* Blood Updates Section */
.blood-updates {
    padding: 40px 0;
    background: white;
}

.blood-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.blood-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--danger-color);
}

.live-badge {
    background: var(--danger-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;

}

.blood-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.blood-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #fecaca;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.blood-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blood-type {
    font-size: 2rem;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 10px;
}

.blood-info .units {
    display: block;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.blood-info .status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.high {
    background: #d1fae5;
    color: #059669;
}

.status.medium {
    background: #fef3c7;
    color: #d97706;
}

.status.low {
    background: #fee2e2;
    color: #dc2626;
}

.status.critical {
    background: #dc2626;
    color: white;

}

.btn-donate {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    border-radius: 30px;
}

.btn-donate:hover {
    transform: scale(1.05);
}

/* Hospitals Section */
.hospitals-section {
    padding: 30px 0;
    background: #080b0f;
    min-height: 100vh;
    background-attachment: scroll;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 40px;
}

.hospitals-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Toast/Message Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 0.85rem;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast Types */
.toast.error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border-left: 4px solid #fca5a5;
}

.toast.success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    border-left: 4px solid #86efac;
}

.toast.warning {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border-left: 4px solid #fdba74;
}

.toast.info {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-left: 4px solid #93c5fd;
}

@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .footer .container,
    .sub-footer .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .footer-col {
        min-width: 120px;
    }
}

/* Distance Badge */
.distance-badge {
    background: #1e88e5;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Specialty Filter Buttons */
.specialty-filters {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px 0 8px 0;
}

.specialty-filters::-webkit-scrollbar {
    height: 6px;
}

.specialty-filters::-webkit-scrollbar-track {
    background: var(--btn-inactive-bg);
    border-radius: 3px;
}

.specialty-filters::-webkit-scrollbar-thumb {
    background: var(--btn-border);
    border-radius: 3px;
}

.specialty-btn {
    background: #151a21;
    color: #ffffff;
    border: 1px solid #252d38;
    border-radius: 20px;
    padding: 8px 28px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.specialty-btn:hover {
    background: #1e88e5;
    border-color: #1e88e5;
}

.specialty-btn.active {
    background: #1e88e5;
    border-color: #1e88e5;
}

/* Category tab only: active / inactive colors */
.specialty-filters .specialty-btn {
    background: #21262D;
    color: #8B949E;
    border: 1px solid #30363D;
}

.specialty-filters .specialty-btn:hover {
    background: #30363D;
    color: #c9d1d9;
    border-color: #30363D;
}

.specialty-filters .specialty-btn.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

/* Specialty Header */
.specialty-header {
    background: #151a21;
    border: 1px solid #252d38;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.specialty-header h2 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.specialty-header p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Doctor Cards Grid */
.doctor-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.no-doctors-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #151a21;
    border-radius: 12px;
    border: 1px solid #252d38;
}

.no-doctors-found p {
    color: #9ca3af;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .doctor-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .doctor-cards-list {
        padding: 0 8px;
    }
}

/* City Search */
.city-search-header {
    background: #151a21;
    border: 1px solid #252d38;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.city-search-header h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.city-search-header p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.city-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.city-btn {
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    border: 1px solid var(--btn-border);
    border-radius: 12px;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.city-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.city-btn.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

@media (max-width: 768px) {
    .city-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .city-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Title Bar */
.section-title-bar {
    background: #151a21;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 5px;
}

.section-title-bar h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Featured Doctors Grid */
.featured-doctors-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Hospitals List */
.hospitals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Back to Hospitals Button */
.back-to-hospitals {
    max-width: 900px;
    margin: 0 auto 15px auto;
}

.btn-back {
    background: #151a21;
    color: #ffffff;
    border: 1px solid #252d38;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-back:hover {
    background: #1e88e5;
    border-color: #1e88e5;
}

/* Blood Department Card */
.blood-department-card {
    background: #0d1117;
    border: 1px solid #1e2530;
    border-radius: 15px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.blood-header {
    background: #0d1117;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blood-header-left h2 {
    color: #ff69b4;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blood-header-left p {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.blood-header-left p span {
    color: #ff69b4;
}

.blood-header-left .urgent-text {
    color: #ff4444;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 5px;
}

.alert-badge {
    background: #1a1a2e;
    color: #ff4444;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 2px solid #ff4444;
    margin-left: auto;
    flex-shrink: 0;
}

/* Blood Requests Grid - Outside main card */
.blood-requests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 20px auto 0 auto;
}

@media (max-width: 768px) {
    .blood-requests-grid {
        grid-template-columns: 1fr;
    }
}

.blood-request-card {
    background: #0d1117;
    border: 1px solid #1e2530;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
}

.blood-request-top {
    background: #151a21;
    padding: 20px 25px;
    border-bottom: 1px solid #1e2530;
}

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

.blood-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blood-icon {
    font-size: 1.6rem;
    color: #ff69b4;
}

.blood-group {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
}

.blood-date {
    color: #9ca3af;
    font-size: 0.9rem;
    background: #0d1117;
    padding: 6px 12px;
    border-radius: 6px;
}

.blood-hospital {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.blood-request-body {
    padding: 20px 25px;
}

.blood-message {
    color: #ff69b4;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.blood-remaining-time {
    color: #ffa500;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: rgba(255, 165, 0, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.btn-whatsapp-blood {
    background: #22c55e;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-whatsapp-blood:hover {
    background: #16a34a;
}

.no-blood-requests {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #151a21;
    border-radius: 12px;
    border: 1px solid #252d38;
}

.no-blood-requests p {
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Hospital Card - Mobile-first, responsive */
.hospital-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Card branding – top center */
.card-branding {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Header Row */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Info Section */
.card-info {
    flex: 1;
}

.card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.card-title h3 {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-break: break-word;
}

.card-title .hospital-icon {
    font-size: 1.1rem;
}

.info-line {
    color: #ffffff;
    font-size: 0.8rem;
    margin: 0 0 2px 0;
}

.info-line i {
    color: #ffffff;
    width: 14px;
    margin-right: 4px;
}

.total-docs {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 0 0 0;
}

.total-docs span {
    color: white;
}

/* Last update line on card */
.card-last-update {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 6px 0 0 0;
}

/* Rating row on card */
.card-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.rating-stars-display {
    display: inline-flex;
    gap: 2px;
}

.rating-stars-display .star {
    color: #64748b;
    font-size: 1rem;
}

.rating-stars-display .star.filled {
    color: #f59e0b;
}

.rating-stars-display .star.half {
    color: #f59e0b;
    opacity: 0.7;
}

.rating-avg {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9rem;
}

.rating-count {
    color: #9ca3af;
    font-size: 0.8rem;
}

.rating-rate-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.rating-label {
    color: #9ca3af;
    font-size: 0.8rem;
}

.rating-stars-input {
    display: inline-flex;
    gap: 2px;
}

.star-btn {
    background: none;
    border: none;
    color: #475569;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 4px;
    -webkit-tap-highlight-color: transparent;
}

.star-btn:hover {
    color: #f59e0b;
}

/* Available Badge */
.available-badge {
    background: transparent;
    border: 1.5px solid #22c55e;
    color: #22c55e;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    height: fit-content;
}

/* Status Boxes - compact row on all screens */
.status-boxes {
    display: flex;
    gap: 8px;
}

.status-box {
    flex: 1;
    min-width: 0;
    background: #1C2128;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--card-border);
}

.status-box:nth-child(1) {
    border-left-color: #22c55e;
}

.status-box:nth-child(2) {
    border-left-color: #f97316;
}

.status-box:nth-child(3) {
    border-left-color: #ef4444;
}

/* ===== Hospital card only: Neon status, CTA Sky Blue, Gold stars, transparent status boxes ===== */
.hospital-card .available-badge {
    border-color: #23C55E;
    color: #23C55E;
}

.hospital-card .status-box {
    background: transparent;
}

.hospital-card .status-box:nth-child(1) {
    border-left-color: #23C55E;
    background: rgba(35, 197, 94, 0.1);
}

.hospital-card .status-box:nth-child(2) {
    border-left-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.hospital-card .status-box:nth-child(3) {
    border-left-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.hospital-card .dot.green {
    background: #23C55E;
    animation: blinkHospital 1.5s infinite !important;
}

.hospital-card .dot.orange {
    background: #F59E0B;
}

.hospital-card .dot.red {
    background: #EF4444;
}

@keyframes blinkHospital {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #23C55E; }
    50% { opacity: 0.4; box-shadow: 0 0 10px #23C55E; }
}

.hospital-card .card-cta {
    background: #38BDF8;
    color: #FFFFFF;
}

.hospital-card .card-cta:hover {
    background: #0ea5e9;
}

.hospital-card .rating-stars-display .star.filled,
.hospital-card .rating-stars-display .star.half {
    color: #FACC15;
}

.hospital-card .rating-avg {
    color: #FACC15;
}

.hospital-card .star-btn {
    color: #8B949E;
}

.hospital-card .star-btn:hover {
    color: #FACC15;
}

.box-header {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.box-count {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: #22c55e;
    animation: blink 1.5s infinite !important;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px #22c55e;
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 10px #22c55e;
    }
}

.dot.orange {
    background: #f97316;
}

.dot.red {
    background: #ef4444;
}

/* Card actions: main CTA + quick icon actions */
.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.card-cta {
    flex: 1;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-tap-highlight-color: transparent;
}

.card-cta .cta-icon {
    font-size: 1.2rem;
}

.card-cta:hover {
    background: #0ea5e9;
}

.card-cta:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

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

.card-quick-actions {
    display: flex;
    gap: 8px;
}

.quick-action {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    -webkit-tap-highlight-color: transparent;
}

.quick-action:active {
    transform: scale(0.95);
}

.quick-whatsapp {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.quick-whatsapp:hover {
    background: rgba(34, 197, 94, 0.3);
}

.quick-blood {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.quick-blood:hover {
    background: rgba(244, 63, 94, 0.3);
}

/* Legacy button classes (if used elsewhere) */
.btn-view, .btn-whatsapp, .btn-blood {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--btn-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
}

.btn-view:hover, .btn-whatsapp:hover, .btn-blood:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.btn-view.active, .btn-whatsapp.active, .btn-blood.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

/* Back Header */
.back-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-back {
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    border: 1px solid var(--btn-border);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-back:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.section-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.doctor-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.doctor-cards-list .dh-card,
.doctor-cards-list .doctor-card.dh-card {
    margin: 0 auto 10px;
}

@media (max-width: 767px) {
    .doctor-cards-list .dh-card,
    .doctor-cards-list .doctor-card.dh-card {
        margin-bottom: 8px;
    }
    .doctor-cards-list {
        gap: 8px;
    }
}

.no-doctors {
    text-align: center;
    padding: 50px;
    color: #9ca3af;
}

.no-doctors i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.no-doctors p {
    font-size: 1rem;
}

/* Doctor Card Styles */
.doctor-cards-container {
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Doctor list scroll (showAllDoctors) – smooth scroll on iOS */
.doctor-list-scroll {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Desktop / Mobile toggle – Desktop पहले जैसा, Mobile dh-card */
@media (min-width: 768px) {
    .doctor-card-wrapper > .doctor-card-desktop { display: block !important; }
    .doctor-card-wrapper > .doctor-card-mobile { display: none !important; }
}

@media (max-width: 767px) {
    .doctor-card-wrapper > .doctor-card-desktop {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    .doctor-card-wrapper > .doctor-card-mobile { display: block !important; }
}

.doctor-card-wrapper {
    width: 100%;
}

.doctor-card-wrapper .doctor-card {
    margin-bottom: 0;
}

/* dh-card – मोबाइल में ही दिखेगा (< 768px) */
.dh-card,
.doctor-card.dh-card.doctor-card-mobile {
    width: 95%;
    max-width: 380px;
    margin: 15px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    contain: layout style;
    min-height: 0;
    flex-shrink: 0;
}

.dh-header {
    background: #1a237e;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

.dh-hospital {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.dh-live {
    background: #4caf50;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.dh-live.busy { background: #ff9800; }
.dh-live.leave { background: #f44336; }

.dh-body {
    padding: 20px;
    min-height: 0;
}

.dh-dr-name {
    font-size: 20px;
    color: #2d3436;
    margin: 0;
    font-weight: 700;
}

.dh-dr-qual {
    font-size: 12px;
    color: #d32f2f;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.dh-dept {
    color: #0984e3;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    display: block;
}

.dh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #fcfcfc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.dh-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dh-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.dh-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-actions {
    display: flex;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    gap: 0;
}

.dh-btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.btn-ayushman {
    background: #fff;
    color: #c62828;
    border-right: 1px solid #eee;
}

.btn-details {
    background: #007bff;
    color: #fff;
}

.btn-details:hover {
    background: #0069d9;
}

/* Mobile – height kam, compact layout */
@media (max-width: 767px) {
    .dh-card,
    .doctor-card.dh-card {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        box-sizing: border-box;
        min-height: auto;
        border-radius: 12px;
    }
    
    .dh-header {
        padding: 8px 12px;
    }
    
    .dh-hospital {
        font-size: 12px;
    }
    
    .dh-live {
        padding: 2px 8px;
        font-size: 9px;
    }
    
    .dh-body {
        padding: 12px 14px;
    }
    
    .dh-dr-name {
        font-size: 16px;
    }
    
    .dh-dr-name-row {
        margin-bottom: 2px;
    }
    
    .dh-dr-qual {
        font-size: 11px;
        margin-top: 1px;
    }
    
    .dh-dept {
        font-size: 12px;
        margin: 4px 0;
    }
    
    .dh-grid {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .dh-label {
        font-size: 9px;
        margin-bottom: 1px;
    }
    
    .dh-value {
        font-size: 11px;
    }
    
    .dh-actions {
        gap: 10px;
        padding: 10px 12px;
    }
    
    .dh-actions .btn-ayushman {
        border-right: none;
        border-radius: 8px;
    }
    
    .dh-actions .btn-details {
        border-radius: 999px;
    }
    
    .dh-actions .dh-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .doctor-card-mobile .doctor-status-badge-mobile {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .dh-header {
        padding: 6px 10px;
    }
    
    .dh-hospital {
        font-size: 11px;
        max-width: 65%;
    }
    
    .dh-body {
        padding: 10px 12px;
    }
    
    .dh-dr-name {
        font-size: 15px;
    }
    
    .dh-grid {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .dh-value {
        font-size: 10px;
    }
    
    .dh-actions {
        gap: 8px;
        padding: 8px 10px;
    }
    
    .dh-actions .dh-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Doctor card – premium look, two-column layout to use space */
.doctor-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(29, 78, 216, 0.6), rgba(34, 197, 94, 0.4));
    opacity: 0.9;
}

.doctor-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    align-items: start;
    margin-bottom: 16px;
}

.doctor-card-main {
    min-width: 0;
}

.doctor-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.doctor-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    margin: 0 -2px 12px -2px;
}


/* Legacy – keep for any old markup */
.doctor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.doctor-card-info {
    flex: 1;
}

.doctor-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

/* Mobile only – उपलब्ध button पर green glow / blink (image जैसा) */
@media (max-width: 767px) {
    .doctor-card-mobile .doctor-status-badge-mobile.mobile-status-blink {
        animation: blinkStatusBadge 1.5s ease-in-out infinite !important;
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    }

    .doctor-card-mobile .doctor-status-badge-mobile.mobile-status-blink .dot {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    }

    @keyframes blinkStatusBadge {
        0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
        50% { opacity: 0.85; box-shadow: 0 0 18px rgba(34, 197, 94, 0.7); }
    }
}

.dh-dr-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.dh-dr-name-row .dh-dr-name {
    flex: 1;
    min-width: 0;
}

/* Mobile dr card – नाम के आगे right corner पर pill button (image जैसा) */
.doctor-card-mobile .doctor-status-badge-mobile {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #22c55e;
    color: #22c55e;
    background: transparent;
    margin-left: auto;
}

.doctor-card-mobile .doctor-status-badge-mobile .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.doctor-card-mobile .doctor-status-badge-mobile.orange,
.doctor-card-mobile .doctor-status-badge-mobile.doctor-status-badge.orange {
    border-color: #f97316;
    color: #f97316;
}

.doctor-card-mobile .doctor-status-badge-mobile.orange .dot {
    background: #f97316;
}

.doctor-card-mobile .doctor-status-badge-mobile.red,
.doctor-card-mobile .doctor-status-badge-mobile.doctor-status-badge.red {
    border-color: #ef4444;
    color: #ef4444;
}

.doctor-card-mobile .doctor-status-badge-mobile.red .dot {
    background: #ef4444;
}

.doctor-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.doctor-exp-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.doctor-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 78, 216, 0.2);
    border: 1px solid rgba(29, 78, 216, 0.4);
    border-radius: 50%;
    font-size: 1.25rem;
}

.doctor-name {
    font-size: 1.18rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Quick feedback: thumbs up/down – mobile only, with "उपलब्ध हा?" below */
.doctor-feedback {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 2;
}

.doctor-feedback-thumbs {
    display: flex;
    gap: 4px;
}

.doctor-feedback-label {
    font-size: 0.65rem;
    color: #9ca3af;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .doctor-feedback {
        display: flex;
    }
}

.thumb-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.thumb-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.thumb-btn.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px 0;
}

.doctor-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.doctor-tag-exp {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
}

.doctor-tags-empty .doctor-tag-placeholder,
.doctor-sub-specialty-empty {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

.doctor-sub-specialty {
    font-size: 0.8rem;
    color: #a5b4fc;
    margin: 0 0 6px 0;
    font-style: italic;
}

.doctor-room-floor {
    font-size: 0.8rem;
    color: #e2e8f0;
    margin: 0 0 6px 0;
}

.doctor-room-floor.doctor-room-floor-empty {
    color: #9ca3af;
    font-style: italic;
}

.doctor-specialty {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0 0 3px 0;
}

/* Specialty as pills – responsive, flex-wrap */
.doctor-specialty-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 10px 0;
    align-items: center;
}

.doctor-specialty-pill {
    display: inline-block;
    font-size: 0.8rem;
    color: #e2e8f0;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-specialty-pill-sub {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.doctor-specialty-pill-empty {
    background: transparent;
    border-color: var(--card-border);
    color: #6b7280;
    font-style: italic;
}

/* OPD Box – structured layout */
.doctor-opd-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.doctor-opd-box-col {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
}

.doctor-opd-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.doctor-opd-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* Ayushman button */
.btn-ayushman {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ef4444;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
    color: #ef4444;
    -webkit-tap-highlight-color: transparent;
}

.btn-ayushman:hover {
    background: rgba(239, 68, 68, 0.15);
}

.doctor-card-side .doctor-hospital,
.doctor-card-side .doctor-opd,
.doctor-card-side .doctor-room-floor {
    margin: 0;
}

.doctor-hospital {
    font-size: 0.85rem;
    color: #22c55e;
    margin: 0 0 8px 0;
}

.doctor-opd {
    font-size: 0.8rem;
    color: #ffffff;
    margin: 0;
}

.doctor-opd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-weight: 700;
}

.doctor-opd-left,
.doctor-opd-right {
    font-size: 0.85rem;
    color: #ffffff;
}

.doctor-card-divider + .doctor-opd {
    margin-top: 10px;
}

.doctor-opd i {
    color: #9ca3af;
    margin-right: 5px;
}

.doctor-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid;
}

.doctor-status-badge.green {
    color: #22c55e;
    border-color: #22c55e;
    background: transparent;
}

.doctor-status-badge.orange {
    color: #f97316;
    border-color: #f97316;
    background: transparent;
}

.doctor-status-badge.red {
    color: #ef4444;
    border-color: #ef4444;
    background: transparent;
}

.doctor-card-buttons {
    display: flex;
    gap: 12px;
}

.btn-detail, .doctor-card-buttons .btn-whatsapp, .doctor-card-buttons .btn-blood {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
}

.btn-detail:hover, .doctor-card-buttons .btn-whatsapp:hover, .doctor-card-buttons .btn-blood:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.btn-detail.active, .doctor-card-buttons .btn-whatsapp.active, .doctor-card-buttons .btn-blood.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

.btn-detail-primary {
    background: var(--btn-active-bg) !important;
    color: var(--btn-active-color) !important;
    border-color: var(--btn-active-bg) !important;
}

.btn-detail-primary:hover {
    background: var(--primary-dark) !important;
    opacity: 0.95;
}

/* Same hospital doctors list (below doctor detail) */
.same-hospital-doctors {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.same-hospital-doctors-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--btn-inactive-color);
    margin-bottom: 12px;
}

/* Doctor Detail – Desktop / Mobile toggle */
@media (min-width: 768px) {
    .doctor-detail-desktop { display: block !important; }
    .doctor-detail-mobile { display: none !important; }
}

@media (max-width: 767px) {
    .doctor-detail-desktop { display: none !important; }
    .doctor-detail-mobile { display: block !important; }
}

/* Mobile – dr-profile-container (user design) */
.dr-profile-container.doctor-detail-mobile {
    width: 95%;
    max-width: 450px;
    margin: 20px auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dr-profile-container .profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 14px 16px;
    color: white;
}

.dr-profile-container .profile-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid rgba(255,255,255,0.2);
}

.dr-profile-container .profile-header-info {
    flex: 1;
    min-width: 0;
}

.dr-profile-container .profile-dr-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.dr-profile-container .profile-dr-qual {
    margin: 3px 0 0;
    opacity: 0.9;
    font-size: 0.85rem;
    line-height: 1.3;
}

.dr-profile-container .stats-bar {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.dr-profile-container .stat-item {
    text-align: center;
}

.dr-profile-container .stat-value {
    display: block;
    font-weight: bold;
    color: #1a237e;
    font-size: 16px;
}

.dr-profile-container .stat-label {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
}

.dr-profile-container .details-section {
    padding: 20px;
}

.dr-profile-container .details-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

.details-title-spaced {
    margin-top: 20px;
}

.hospital-doctors-title {
    margin-bottom: 20px;
    text-align: center;
}

.hospital-doctors-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 25px;
}

.dr-profile-container .info-table {
    width: 100%;
    border-collapse: collapse;
}

.dr-profile-container .info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.dr-profile-container .info-table td {
    padding: 12px 0;
    font-size: 14px;
}

.dr-profile-container .td-label {
    color: #666;
    width: 40%;
}

.dr-profile-container .td-value {
    color: #222;
    font-weight: 600;
}

.dr-profile-container .about-dr {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

/* Doctor Detail Card Styles (Desktop) */
.doctor-detail-card {
    color: white;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1a1f2e 0%, #151a24 100%);
    border: 1px solid #2a3444;
    border-radius: 10px;
    border-left: 4px solid #22c55e;
}

.detail-icon {
    font-size: 1.25rem;
    background: #22c55e;
    padding: 6px;
    border-radius: 8px;
}

.detail-header-info h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0 0 2px 0;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.detail-header-info p {
    font-size: 0.85rem;
    color: #f43f5e;
    margin: 0;
    font-weight: 500;
}

.detail-main-card {
    background: #0f1318;
    border: 1px solid #252d38;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.detail-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.detail-main-info h4 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 5px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-icon {
    font-size: 1rem;
}

.detail-specialty {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0 0 5px 0;
}

.detail-hospital {
    font-size: 0.9rem;
    color: #22c55e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-status-badge {
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid;
}

.detail-status-badge.green {
    color: #22c55e;
    border-color: #22c55e;
}

.detail-status-badge.orange {
    color: #f97316;
    border-color: #f97316;
}

.detail-status-badge.red {
    color: #ef4444;
    border-color: #ef4444;
}

.detail-info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.info-box {
    flex: 1;
    background: #0a0e13;
    border: 1px solid #252d38;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}

.info-label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0 0 6px 0;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #22c55e;
    margin: 0;
}

.detail-opd-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.opd-box {
    flex: 1;
    background: #0a0e13;
    border: 1px solid #252d38;
    border-radius: 8px;
    padding: 12px 14px;
}

.opd-label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0 0 6px 0;
}

.opd-label i {
    margin-right: 5px;
}

.opd-value {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.detail-location {
    background: #0a0e13;
    border: 1px solid #252d38;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 15px;
}

.location-title {
    font-size: 0.85rem;
    color: #f43f5e;
    margin: 0 0 10px 0;
}

.location-title i {
    margin-right: 5px;
}

.location-boxes {
    display: flex;
    gap: 12px;
}

.loc-box {
    flex: 1;
    background: #151a21;
    border-radius: 6px;
    padding: 10px 12px;
}

.loc-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 4px 0;
}

.loc-value {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

/* Old styles kept for modal compatibility */
.doctors-list {
    padding: 15px;
}

.doctors-list h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.doctor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.doctor-item:hover {
    background: #e2e8f0;
}

.doctor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.doctor-details h5 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.doctor-details p {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.doctor-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.doctor-status.available {
    background: #d1fae5;
    color: #059669;
}

.doctor-status.busy {
    background: #fef3c7;
    color: #d97706;
}

.doctor-status.leave {
    background: #fee2e2;
    color: #dc2626;
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--light-color);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
    border-style: solid;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #60a5fa;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Footer - Base (1200px+) */
.footer {
    background: #000000;
    color: white;
    padding: 60px 0 30px;
    background-attachment: scroll;
    overflow-x: hidden;
}

.footer .container {
    padding-left: 20px;
    padding-right: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 2rem;
    color: #60a5fa;
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-col ul a:hover {
    color: #60a5fa;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.contact-info i {
    color: #60a5fa;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.social-icon:hover {
    background: #1e88e5;
    border-color: #1e88e5;
}

/* Sub Footer - Base */
.sub-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    background-attachment: scroll;
}

.sub-footer .container {
    padding-left: 20px;
    padding-right: 20px;
}

.sub-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sub-footer-links {
    display: flex;
    gap: 20px;
}

.sub-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.sub-footer-links a:hover {
    color: #60a5fa;
}

.sub-footer {
    overflow-x: hidden;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0a0e13;
    border: 1px solid #252d38;
    border-radius: 12px;
    padding: 22px;
    max-width: 580px;
    width: 92%;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    margin: 0 auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
}

.close-modal:hover {
    color: #ffffff;
}

.doctor-profile {
    text-align: center;
}

.doctor-profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.doctor-profile h2 {
    margin-bottom: 5px;
}

.doctor-profile .specialty {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.profile-details {
    text-align: left;
    background: var(--light-color);
    padding: 20px;
    border-radius: 15px;
}

.profile-details p {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-details p:last-child {
    border-bottom: none;
}

.profile-details strong {
    color: var(--gray-color);
}

.btn-book {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hospitals-list {
        max-width: 900px;
    }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .hospitals-grid {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .footer {
        padding: 50px 0 28px;
    }
    
    .footer-grid {
        gap: 32px;
    }
    
    .footer-col h4 {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }
    
    .sub-footer {
        padding: 18px 0;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 15px;
    }
    
    .top-header .container {
        padding: 0 10px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .site-title h1 {
        font-size: 1.3rem;
    }
    
    .site-title p {
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-box input {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .btn-search {
        padding: 14px 30px;
    }
    
    .hospital-card {
        padding: 18px;
    }
    
    .card-title h3 {
        font-size: 1.1rem;
    }
    
    .status-boxes {
        gap: 10px;
    }
    
    .status-box {
        padding: 10px 12px;
    }
    
    .footer {
        padding: 40px 0 24px;
    }
    
    .footer .container,
    .sub-footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-col p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    
    .footer-col ul li {
        margin-bottom: 8px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .sub-footer {
        padding: 16px 0;
    }
    
    .sub-footer-content {
        gap: 12px;
    }
    
    .sub-footer-links {
        gap: 16px;
    }
    
    .sub-footer-links a {
        font-size: 0.85rem;
    }
    
    .specialty-filters {
        gap: 8px;
    }
    
    .specialty-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .doctor-card.doctor-card-desktop {
        padding: 15px;
    }
    
    .blood-requests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    /* Hide status boxes and location on mobile - Hospital Card */
    .status-boxes {
        display: none !important;
    }
    
    .info-line,
    .distance-badge {
        display: none !important;
    }
    
    /* Hide status badge on mobile - Doctor Card (Desktop card ही hide, Mobile dh-card का badge दिखाएं) */
    .doctor-card-desktop .doctor-status-badge {
        display: none !important;
    }
    .doctor-card-mobile .doctor-status-badge-mobile {
        display: inline-flex !important;
    }
    
    .top-header {
        padding: 10px 0;
    }
    
    .logo-section {
        gap: 8px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .site-title h1 {
        font-size: 1.2rem;
    }
    
    .site-title p {
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 25px 0 20px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .search-container {
        padding: 0 10px;
    }
    
    .search-box {
        border-radius: 30px;
        flex-direction: row;
    }
    
    .search-box input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .btn-search {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-search-location {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin: 3px 0 3px 1px;
    }
    
    .search-suggestions {
        border-radius: 15px;
    }
    
    .hospitals-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .hospital-card {
        padding: 16px 14px;
        margin: 0;
        border-radius: 14px;
    }
    
    .card-header-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-title h3 {
        font-size: 1.05rem;
    }
    
    .status-boxes {
        gap: 6px;
    }
    
    .status-box {
        padding: 10px 8px;
    }
    
    .box-header {
        font-size: 0.7rem;
    }
    
    .box-count {
        font-size: 1rem;
    }
    
    .card-actions {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 14px;
    }
    
    .card-cta {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .card-quick-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .quick-action {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .card-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-buttons button {
        width: 100%;
        padding: 12px;
    }
    
    .specialty-filters {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 4px 10px 12px 10px;
        max-width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .specialty-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .doctor-card.doctor-card-desktop {
        padding: 16px 14px;
        margin-bottom: 12px;
    }
    
    .doctor-card-desktop .doctor-card-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .doctor-card-desktop .doctor-card-side {
        align-items: flex-start;
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid var(--card-border);
    }
    
    .doctor-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .doctor-name-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .doctor-name {
        font-size: 1.05rem;
    }
    
    .doctor-specialty-pills {
        gap: 6px;
        margin: 4px 0 8px 0;
    }
    
    .doctor-specialty-pill {
        font-size: 0.75rem;
        padding: 5px 10px;
        white-space: normal;
        word-break: break-word;
    }
    
    .doctor-opd-box {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 14px;
    }
    
    .doctor-opd-label {
        font-size: 0.65rem;
    }
    
    .doctor-opd-value {
        font-size: 0.85rem;
    }
    
    .doctor-card-desktop .doctor-card-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
    }
    
    .doctor-card-desktop .doctor-card-buttons button,
    .doctor-card-desktop .doctor-card-buttons .btn-detail,
    .doctor-card-desktop .doctor-card-buttons .btn-ayushman {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .blood-requests-grid {
        grid-template-columns: 1fr;
    }
    
    .blood-department-card {
        padding: 15px;
    }
    
    .blood-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .footer {
        padding: 24px 12px 20px;
        border-top: 3px solid #1e88e5;
    }
    
    .footer .container,
    .sub-footer .container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }
    
    .footer-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        text-align: left;
    }
    
    .footer-grid .footer-col:nth-child(1) { order: 2; }
    .footer-grid .footer-col:nth-child(2) { order: 3; }
    .footer-grid .footer-col:nth-child(3) { order: 1; }
    .footer-grid .footer-col:nth-child(4) { order: 4; }
    
    .footer-col {
        flex: 1 1 calc(50% - 10px);
        min-width: 130px;
        max-width: 100%;
        padding: 14px 12px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
    
    .footer-col > p {
        display: block;
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 10px;
        color: rgba(255, 255, 255, 0.85);
        opacity: 1;
    }
    
    .footer-col ul {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-col ul li {
        margin-bottom: 0;
    }
    
    .footer-col ul a {
        display: inline-block;
        padding: 4px 0;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .social-icons {
        justify-content: flex-start;
        margin-top: 10px;
        gap: 8px;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .sub-footer {
        padding: 14px 12px;
    }
    
    .sub-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sub-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    
    .sub-footer-links a {
        font-size: 0.82rem;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .city-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Portrait (max-width: 575px) */
@media (max-width: 575px) {
    .hospitals-section {
        min-height: auto;
    }
    
    .top-header .container {
        padding: 0 8px;
    }
    
    .logo {
        width: 38px;
        height: 38px;
    }
    
    .logo-icon {
        font-size: 1.2rem;
    }
    
    .site-title h1 {
        font-size: 1.1rem;
    }
    
    .site-title p {
        display: none;
    }
    
    .hero {
        padding: 20px 0 15px;
    }
    
    .hero h1 {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .search-box {
        margin: 0 5px;
        border-radius: 25px;
    }
    
    .search-box input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .btn-search {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .btn-search-location {
        min-width: 42px;
        min-height: 42px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .suggestion-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .hospital-card {
        padding: 14px 12px;
        margin: 0 4px;
        border-radius: 12px;
    }
    
    .card-title h3 {
        font-size: 1rem;
    }
    
    .info-line {
        font-size: 0.8rem;
    }
    
    .card-info p {
        font-size: 0.8rem;
    }
    
    .available-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .status-box {
        padding: 8px 6px;
    }
    
    .box-header {
        font-size: 0.65rem;
    }
    
    .box-label {
        font-size: 0.75rem;
    }
    
    .box-count {
        font-size: 0.95rem;
    }
    
    .card-cta {
        min-height: 46px;
        font-size: 0.95rem;
    }
    
    .quick-action {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        font-size: 1.1rem;
    }
    
    .specialty-filters {
        gap: 6px;
        padding: 4px 8px 12px 8px;
    }
    
    .specialty-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .doctor-name {
        font-size: 1rem;
    }
    
    .doctor-card.doctor-card-desktop {
        padding: 14px 12px;
    }
    
    .doctor-specialty-pills {
        gap: 5px;
    }
    
    .doctor-specialty-pill {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .doctor-opd-box {
        padding: 10px 12px;
    }
    
    .doctor-opd-value {
        font-size: 0.8rem;
    }
    
    .doctor-card-desktop .doctor-card-buttons button,
    .doctor-card-desktop .doctor-card-buttons .btn-detail,
    .doctor-card-desktop .doctor-card-buttons .btn-ayushman {
        min-height: 42px;
        font-size: 0.85rem;
    }
    
    .doctor-specialty,
    .doctor-hospital,
    .doctor-opd {
        font-size: 0.8rem;
    }
    
    .pagination {
        gap: 4px;
        padding: 10px;
    }
    
    .page-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: 32px;
    }
    
    .pagination-info {
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 20px 10px 16px;
    }
    
    .footer-grid {
        gap: 16px;
    }
    
    .footer-col {
        padding: 12px 10px;
    }
    
    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .footer-col > p {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }
    
    .footer-col ul a {
        font-size: 0.8rem;
    }
    
    .contact-info p {
        font-size: 0.8rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .sub-footer {
        padding: 12px 10px;
    }
    
    .sub-footer-content {
        gap: 8px;
    }
    
    .sub-footer-content p {
        font-size: 0.78rem;
    }
    
    .sub-footer-links a {
        font-size: 0.78rem;
    }
    
    .city-buttons-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .city-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (max-width: 380px) */
@media (max-width: 380px) {
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .site-title h1 {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.1rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .search-box input {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .btn-search {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-search-location {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .specialty-filters {
        padding: 4px 6px 10px 6px;
    }
    
    .specialty-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    
    .hospital-card {
        padding: 12px 10px;
        border-radius: 12px;
    }
    
    .card-title h3 {
        font-size: 0.95rem;
    }
    
    .status-box {
        padding: 6px 4px;
    }
    
    .box-header {
        font-size: 0.6rem;
    }
    
    .box-count {
        font-size: 0.9rem;
    }
    
    .card-cta {
        min-height: 44px;
        font-size: 0.9rem;
    }
    
    .quick-action {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .doctor-card.doctor-card-desktop {
        padding: 12px 10px;
    }
    
    .doctor-name {
        font-size: 0.95rem;
    }
    
    .doctor-specialty-pill {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .doctor-opd-box {
        padding: 8px 10px;
    }
    
    .doctor-opd-value {
        font-size: 0.75rem;
    }
    
    .doctor-card-desktop .doctor-card-buttons button,
    .doctor-card-desktop .doctor-card-buttons .btn-detail,
    .doctor-card-desktop .doctor-card-buttons .btn-ayushman {
        min-height: 40px;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .doctor-cards-list,
    .doctor-cards-grid {
        gap: 12px;
        padding: 0 4px;
    }
    
    .page-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-width: 28px;
    }
    
    /* Footer extra small */
    .footer {
        padding: 16px 8px 14px;
        border-top-width: 2px;
    }
    
    .footer .container,
    .sub-footer .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .footer-col {
        padding: 10px 8px;
        min-width: 110px;
        flex: 1 1 100%;
    }
    
    .footer-grid {
        flex-direction: column;
    }
    
    .footer-col h4 {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding-bottom: 5px;
    }

    .footer-col > p {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .footer-col ul a {
        font-size: 0.75rem;
    }
    
    .contact-info p {
        font-size: 0.75rem;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .sub-footer {
        padding: 10px 8px;
    }
    
    .sub-footer-content p {
        font-size: 0.72rem;
    }
    
    .sub-footer-links a {
        font-size: 0.72rem;
    }
}

/* No animations - Clean static design */

/* No Results */
.no-results {
    text-align: center;
    padding: 60px;
    color: var(--gray-color);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-results h3 {
    margin-bottom: 10px;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px auto;
    padding: 15px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    border: 1px solid var(--btn-border);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 42px;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
    border-color: var(--btn-border);
}

.page-btn.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: #9ca3af;
    padding: 0 5px;
}

.pagination-info {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 36px;
    }
}

/* ==================== LOADING STATE ==================== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #252d38;
    border-top: 4px solid #1e88e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #9ca3af;
    font-size: 1rem;
}

/* Connection Error */
.connection-error {
    background: #1a1a2e;
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 30px auto;
}

.connection-error h3 {
    color: #ef4444;
    margin-bottom: 10px;
}

.connection-error p {
    color: #9ca3af;
    margin-bottom: 20px;
}

.btn-retry {
    background: var(--btn-inactive-bg);
    color: var(--btn-inactive-color);
    border: 1px solid var(--btn-border);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-retry:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.btn-retry.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.4);
}

/* ==================== LIGHT THEME (one-click toggle) ==================== */
html[data-theme="light"] {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #059669;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    --bg-main: #f1f5f9;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --btn-inactive-bg: #e2e8f0;
    --btn-inactive-color: #334155;
    --btn-active-bg: #1d4ed8;
    --btn-active-color: #ffffff;
    --btn-hover-bg: #cbd5e1;
    --btn-hover-color: #0f172a;
    --btn-border: #cbd5e1;
}

html[data-theme="light"] body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

html[data-theme="light"] .top-header {
    background: #ffffff;
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .site-title h1 {
    color: #0f172a;
}

html[data-theme="light"] .site-title p {
    color: #64748b;
}

html[data-theme="light"] .theme-toggle {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

html[data-theme="light"] .hero {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
    border-top-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .hero p {
    color: #334155;
    opacity: 0.95;
}

html[data-theme="light"] .search-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
}

html[data-theme="light"] .search-box input {
    color: #0f172a;
}

html[data-theme="light"] .search-box input::placeholder {
    color: #64748b;
}

html[data-theme="light"] .btn-search-location {
    color: #64748b;
    border-left-color: #e2e8f0;
}

html[data-theme="light"] .btn-search-location:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-theme="light"] .btn-search-location.active {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

html[data-theme="light"] .search-suggestions {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .suggestion-item {
    color: #1e293b;
}

html[data-theme="light"] .suggestion-item:hover {
    background: #f1f5f9;
}

html[data-theme="light"] .location-notification-mobile {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

html[data-theme="light"] .location-notification-text {
    color: #334155;
}

html[data-theme="light"] .hospitals-section {
    background: #f1f5f9;
}

html[data-theme="light"] .section-title {
    color: #0f172a;
}

html[data-theme="light"] .search-results-header h3 {
    color: #0f172a;
}

html[data-theme="light"] .specialty-header {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .specialty-header h2 {
    color: #0f172a;
}

html[data-theme="light"] .no-doctors-found {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .city-search-header {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .city-search-header h2 {
    color: #0f172a;
}

html[data-theme="light"] .section-title-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

html[data-theme="light"] .section-title-bar h3 {
    color: #0f172a;
}

html[data-theme="light"] .btn-back {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
}

html[data-theme="light"] .blood-department-card,
html[data-theme="light"] .blood-header {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .blood-request-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .blood-request-top {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .blood-group,
html[data-theme="light"] .blood-hospital {
    color: #0f172a;
}

html[data-theme="light"] .blood-date {
    background: #f1f5f9;
    color: #475569;
}

html[data-theme="light"] .alert-badge {
    background: #fef2f2;
    border-color: #ef4444;
}

html[data-theme="light"] .no-blood-requests {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .card-branding {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .card-title h3,
html[data-theme="light"] .info-line,
html[data-theme="light"] .info-line i,
html[data-theme="light"] .total-docs span {
    color: #0f172a !important;
    text-shadow: none;
}

html[data-theme="light"] .box-header,
html[data-theme="light"] .box-count {
    color: #0f172a !important;
}

html[data-theme="light"] .status-box {
    background: #f8fafc !important;
}

html[data-theme="light"] .hospital-card .status-box:nth-child(1) {
    background: rgba(34, 197, 94, 0.12) !important;
}

html[data-theme="light"] .hospital-card .status-box:nth-child(2) {
    background: rgba(245, 158, 11, 0.12) !important;
}

html[data-theme="light"] .hospital-card .status-box:nth-child(3) {
    background: rgba(239, 68, 68, 0.1) !important;
}

html[data-theme="light"] .doctor-card {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .doctor-name,
html[data-theme="light"] .dh-dr-name {
    color: #0f172a !important;
}

html[data-theme="light"] .doctor-opd-value,
html[data-theme="light"] .doctor-opd,
html[data-theme="light"] .doctor-opd-left,
html[data-theme="light"] .doctor-opd-right {
    color: #1e293b !important;
}

html[data-theme="light"] .doctor-hospital {
    color: #15803d;
}

html[data-theme="light"] .doctor-opd-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .doctor-specialty-pill-sub {
    color: #166534;
}

html[data-theme="light"] .doctor-specialty-pill {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.35);
}

html[data-theme="light"] .doctor-specialty-pill-empty {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

html[data-theme="light"] .doctor-tag {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

html[data-theme="light"] .doctor-tags-empty .doctor-tag-placeholder {
    color: #64748b;
}

html[data-theme="light"] .doctor-room-floor {
    color: #475569;
}

html[data-theme="light"] .doctor-room-floor.doctor-room-floor-empty {
    color: #64748b;
}

html[data-theme="light"] .doctor-feedback-label {
    color: #475569;
}

html[data-theme="light"] .doctor-detail-card {
    background: transparent;
    color: #1e293b;
}

/* Specialty nav — base + .specialty-filters both use hardcoded dark hex */
html[data-theme="light"] .specialty-btn {
    background: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
}

html[data-theme="light"] .specialty-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

html[data-theme="light"] .specialty-btn.active {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

html[data-theme="light"] .specialty-filters .specialty-btn {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

html[data-theme="light"] .specialty-filters .specialty-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
    border-color: #94a3b8;
}

html[data-theme="light"] .specialty-filters .specialty-btn.active {
    background: var(--btn-active-bg);
    color: var(--btn-active-color);
    border-color: var(--btn-active-bg);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
}

/* Featured doctor detail screen (desktop) — inner cards were still dark */
html[data-theme="light"] .detail-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    border-left-color: #22c55e;
}

html[data-theme="light"] .detail-header-info h3 {
    color: #0f172a;
    text-shadow: none;
}

html[data-theme="light"] .detail-header-info p {
    color: #e11d48;
}

html[data-theme="light"] .detail-main-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .detail-main-info h4 {
    color: #0f172a;
}

html[data-theme="light"] .detail-specialty {
    color: #64748b;
}

html[data-theme="light"] .detail-hospital {
    color: #15803d;
}

html[data-theme="light"] .info-box,
html[data-theme="light"] .opd-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .info-label,
html[data-theme="light"] .opd-label {
    color: #64748b;
}

html[data-theme="light"] .info-value {
    color: #15803d;
}

html[data-theme="light"] .opd-value {
    color: #0f172a;
}

html[data-theme="light"] .detail-location {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .location-title {
    color: #e11d48;
}

html[data-theme="light"] .loc-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

html[data-theme="light"] .loc-label {
    color: #64748b;
}

html[data-theme="light"] .loc-value {
    color: #0f172a;
}

html[data-theme="light"] .footer {
    background: #f1f5f9;
    color: #0f172a;
    border-top: 1px solid #e2e8f0;
}

html[data-theme="light"] .footer-col ul a {
    color: #334155;
}

html[data-theme="light"] .footer-col p,
html[data-theme="light"] .contact-info p {
    color: #475569;
    opacity: 1;
}

html[data-theme="light"] .footer-col h4 {
    color: #0f172a;
    border-bottom-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .social-icon {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .sub-footer {
    background: #e2e8f0;
    color: #475569;
}

html[data-theme="light"] .sub-footer-links a {
    color: #475569;
}

html[data-theme="light"] .sub-footer-links a:hover,
html[data-theme="light"] .footer-col ul a:hover {
    color: #2563eb;
}

html[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .close-modal {
    color: #64748b;
}

html[data-theme="light"] .close-modal:hover {
    color: #0f172a;
}

html[data-theme="light"] .doctor-profile h2,
html[data-theme="light"] .doctor-profile .specialty {
    color: #0f172a;
}

html[data-theme="light"] .loading-spinner {
    border-color: #e2e8f0;
}

html[data-theme="light"] .loading-state p {
    color: #64748b;
}

html[data-theme="light"] .connection-error {
    background: #ffffff;
    border-color: #ef4444;
}

html[data-theme="light"] .connection-error p {
    color: #64748b;
}

html[data-theme="light"] .pagination-info,
html[data-theme="light"] .page-dots {
    color: #64748b;
}

html[data-theme="light"] .hospital-card .star-btn {
    color: #94a3b8;
}

html[data-theme="light"] .rating-stars-display .star:not(.filled):not(.half) {
    color: #cbd5e1;
}
