
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .stories-container {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        padding: 20px 0;
    }

    .stories-header {
        text-align: center;
        color: white;
        padding: 30px 20px 20px;
        margin-bottom: 20px;
        position: relative;
    }

    .stories-header-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .stories-header h1 {
        font-size: 32px;
        margin-bottom: 0;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .stories-header p {
        font-size: 16px;
        opacity: 0.9;
    }

    /* Carousel Container */
    .carousel-wrapper {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        overflow: hidden;
    }

    .stories-carousel {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 20px 0;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.5) transparent;
    }

    .stories-carousel::-webkit-scrollbar {
        height: 8px;
    }

    .stories-carousel::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }

    .stories-carousel::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.5);
        border-radius: 10px;
    }

    .stories-carousel::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.7);
    }

    /* Story Card */
    .story-card {
        flex: 0 0 140px;
        aspect-ratio: 9/14;
        background: white;
        border-radius: 20px;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .story-card:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }

    .story-image-container {
        position: relative;
        width: 100%;
        height: 65%;
        background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
        overflow: hidden;
    }

    .story-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .story-card:hover .story-image {
        transform: scale(1.1);
    }

    .story-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .story-card:hover .story-overlay {
        opacity: 1;
    }

    /* Story Info */
    .story-info {
        flex: 1;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: white;
    }

    .story-name {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .story-username {
        font-size: 12px;
        color: #999;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 8px;
    }

    .story-action {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 6px 10px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .story-action:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .story-action:active {
        transform: scale(0.95);
    }

    /* Navigation Buttons */
    .carousel-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: rgba(255,255,255,0.9);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #667eea;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .carousel-nav-btn:hover {
        background: white;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    .carousel-nav-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-nav-btn.prev {
        left: 0;
    }

    .carousel-nav-btn.next {
        right: 0;
    }

    /* Stats Section */
    .stories-stats {
        background: rgba(255,255,255,0.1);
        color: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 20px;
        text-align: center;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        margin-top: 15px;
    }

    .stat-item {
        background: rgba(255,255,255,0.1);
        padding: 15px;
        border-radius: 10px;
        backdrop-filter: blur(10px);
    }

    .stat-number {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 12px;
        opacity: 0.8;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        color: white;
        padding: 80px 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .empty-state-text {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
        color: #ffffff;
    }

    .empty-state-subtext {
        font-size: 14px;
        opacity: 0.7;
        letter-spacing: 0.2px;
        font-weight: 400;
    }

    /* Loading State */
    .loading-skeleton {
        display: flex;
        gap: 15px;
        padding: 20px 0;
        overflow-x: auto;
    }

    .skeleton-card {
        flex: 0 0 140px;
        aspect-ratio: 9/14;
        background: rgba(255,255,255,0.2);
        border-radius: 20px;
        animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 0.5;
        }
        50% {
            opacity: 0.8;
        }
    }

    /* Modal for User Detail */
    .story-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s ease;
    }

    .story-modal.active {
        display: flex;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .story-modal-content {
        background: white;
        border-radius: 20px;
        padding: 30px;
        max-width: 500px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-close-btn {
        float: right;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
    }

    .modal-close-btn:hover {
        color: #333;
    }

    .modal-user-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin: 0 auto 20px;
        object-fit: cover;
        border: 4px solid #667eea;
    }

    .modal-user-name {
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 5px;
        color: #333;
    }

    .modal-user-username {
        font-size: 14px;
        color: #999;
        text-align: center;
        margin-bottom: 20px;
    }

    .modal-action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .modal-btn {
        padding: 12px 20px;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .modal-btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .modal-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .modal-btn-secondary {
        background: #f0f0f0;
        color: #333;
    }

    .modal-btn-secondary:hover {
        background: #e0e0e0;
        transform: translateY(-2px);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .stories-header h1 {
            font-size: 24px;
        }

        .story-card {
            flex: 0 0 120px;
        }

        .carousel-nav-btn {
            width: 40px;
            height: 40px;
            font-size: 18px;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .story-modal-content {
            width: 95%;
            padding: 20px;
        }
    }

    @media (max-width: 480px) {
        .stories-container {
            padding: 10px 0;
        }

        .stories-header {
            padding: 20px 15px 15px;
            margin-bottom: 10px;
        }

        .stories-header h1 {
            font-size: 20px;
        }

        .stories-header p {
            font-size: 14px;
        }

        .carousel-wrapper {
            padding: 0 10px;
        }

        .story-card {
            flex: 0 0 100px;
        }

        .story-name {
            font-size: 12px;
        }

        .story-username {
            font-size: 11px;
        }

        .carousel-nav-btn {
            display: none;
        }

        .stories-stats {
            display: none;
        }

        .modal-user-avatar {
            width: 80px;
            height: 80px;
        }

        .modal-user-name {
            font-size: 20px;
        }

        .modal-action-buttons {
            grid-template-columns: 1fr;
        }
    }

    /* Loading Animation */
    .loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        color: white;
    }

    .spinner {
        border: 4px solid rgba(255,255,255,0.3);
        border-top: 4px solid white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin-right: 15px;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }

    /* Toast Notifications */
    .toast {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: white;
        padding: 16px 24px;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        z-index: 9999;
        animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        max-width: 350px;
        border-left: 5px solid #333;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
    }

    .toast.success {
        border-left: 5px solid #4caf50;
        background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    }

    .toast.success .toast-message {
        color: #166534;
    }

    .toast.error {
        border-left: 5px solid #f44336;
        background: linear-gradient(135deg, #fef2f2 0%, #ffe5e5 100%);
    }

    .toast.error .toast-message {
        color: #7f1d1d;
    }

    .toast.info {
        border-left: 5px solid #2196f3;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    }

    .toast.info .toast-message {
        color: #0c4a6e;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(400px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .toast-message {
        color: #333;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    /* Theme Toggle Button */
    .theme-toggle-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .theme-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .theme-toggle-btn:active {
        transform: scale(0.95);
    }

    .stories-header .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .stories-header .theme-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.35);
    }

    /* Light Mode Styles */
    body.light-mode {
        background: #f8f9fa !important;
    }

    body.light-mode .main-content {
        background: #ffffff !important;
    }

    body.light-mode .container {
        background: #ffffff;
    }

    body.light-mode .carousel-wrapper {
        background: #f8f9fa;
    }

    body.light-mode .stories-carousel {
        background: #f8f9fa;
    }

    body.light-mode .story-card {
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body.light-mode .story-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    body.light-mode .stories-header {
        color: #1a202c;
        background: #ffffff;
        border-bottom: 1px solid #d0d5dd;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    body.light-mode .stories-header h1 {
        text-shadow: none;
        color: #1a202c;
        font-weight: 700;
    }

    body.light-mode .stories-header p {
        color: #6b7280;
        font-weight: 500;
    }

    body.light-mode .stories-header-content {
        color: #1a202c;
    }

    body.light-mode .stories-header .theme-toggle-btn {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb;
    }

    body.light-mode .stories-header .theme-toggle-btn:hover {
        background: #e5e7eb;
        color: #1f2937;
    }

    body.light-mode .stories-stats {
        background: #ffffff;
        color: #1a202c;
        border-top: 1px solid #d0d5dd;
        box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
    }

    body.light-mode .stories-stats h3 {
        color: #1a202c;
        font-weight: 700;
    }

    body.light-mode .stat-item {
        background: #f9fafb;
        color: #1a202c;
        border: 1px solid #e5e7eb;
        transition: all 0.3s ease;
    }

    body.light-mode .stat-item:hover {
        background: #f3f4f6;
        border-color: #d0d5dd;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    body.light-mode .stat-number {
        color: #3b82f6;
        font-weight: 700;
        font-size: 1.75rem;
    }

    body.light-mode .stat-label {
        color: #6b7280;
        font-weight: 600;
        font-size: 0.9rem;
    }

    body.light-mode .carousel-nav-btn {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb;
    }

    body.light-mode .carousel-nav-btn:hover {
        background: #e5e7eb;
        color: #1f2937;
    }

    body.light-mode .empty-state {
        background: #ffffff;
        border: 2px dashed #d0d5dd;
        border-radius: 12px;
        padding: 40px 20px;
    }

    body.light-mode .empty-state-icon {
        color: #9ca3af;
    }
    }

    body.light-mode .empty-state {
        background: rgba(0, 0, 0, 0.02);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    body.light-mode .empty-state-text {
        color: #1a202c;
        font-weight: 500;
        font-size: 20px;
    }

    body.light-mode .empty-state-subtext {
        color: #6b7280;
        font-weight: 400;
        font-size: 14px;
    }

    body.light-mode .modal-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    body.light-mode .modal-content {
        background: #ffffff;
        color: #1a202c;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    body.light-mode .modal-header {
        color: #1a202c;
        border-bottom: 1px solid #e5e7eb;
        font-weight: 700;
    }

    body.light-mode .modal-close-btn {
        color: #6b7280;
        background: #f3f4f6;
        border: none;
    }

    body.light-mode .modal-close-btn:hover {
        color: #1f2937;
        background: #e5e7eb;
    }

    body.light-mode .modal-body {
        color: #374151;
    }

    body.light-mode .modal-body h6 {
        color: #1a202c;
        font-weight: 700;
    }

    body.light-mode .modal-body p {
        color: #6b7280;
        font-weight: 500;
    }

    body.light-mode .modal-action-btn {
        background: #3b82f6 !important;
        color: white !important;
        border: none;
        font-weight: 600;
    }

    body.light-mode .modal-action-btn:hover {
        background: #2563eb !important;
    }

    body.light-mode .story-card {
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
    }

    body.light-mode .story-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-color: #d0d5dd;
    }

    body.light-mode .story-name {
        color: #1a202c !important;
        font-weight: 600;
    }

    body.light-mode .story-username {
        color: #6b7280 !important;
        font-weight: 500;
    }

    body.light-mode .story-action {
        background: #3b82f6 !important;
        color: white !important;
        border: none;
        font-weight: 600;
    }

    body.light-mode .story-action:hover {
        background: #2563eb !important;
    }

    body.light-mode {
        background: #f5f7fa !important;
    }

    body.light-mode .main-content {
        background: #f5f7fa !important;
    }

    body.light-mode .container {
        background: transparent;
    }

    body.light-mode .carousel-wrapper {
        background: transparent;
    }

    body.light-mode .stories-carousel {
        background: transparent;
    }

    body.light-mode .theme-toggle-btn {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb;
    }

    body.light-mode .theme-toggle-btn:hover {
        background: #e5e7eb;
        color: #1f2937;
    }

    /* Dark Mode (Default) */
    body:not(.light-mode) .theme-toggle-btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

    body:not(.light-mode) .theme-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Clinics Section */
    .clinics-section {
        max-width: 1200px;
        margin: 40px auto;
        padding: 26px;
        min-height: 560px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 24px;
        backdrop-filter: blur(12px);
    }

    .clinics-section h3 {
        font-size: 26px;
        color: white;
        margin-bottom: 24px;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.24);
    }

    .clinics-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .clinic-card {
        background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(242,245,250,0.98) 100%);
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        min-height: 260px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .clinic-card::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -15%;
        width: 180%;
        height: 180%;
        background-image: radial-gradient(circle at 20% 20%, rgba(15, 23, 42, 0.18), transparent 24%),
                          radial-gradient(circle at 85% 15%, rgba(15, 23, 42, 0.12), transparent 18%),
                          radial-gradient(circle at 50% 60%, rgba(15, 23, 42, 0.08), transparent 30%);
        filter: blur(26px);
        opacity: 0.75;
        pointer-events: none;
        z-index: 0;
    }

    .clinic-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.035) 100%);
        pointer-events: none;
        z-index: 0;
    }

    .clinic-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 36px rgba(0,0,0,0.18);
    }

    .clinic-card > * {
        position: relative;
        z-index: 1;
    }

    .clinic-card.pending {
        opacity: 0.6;
        pointer-events: none;
    }

    .clinic-header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 12px;
    }

    .clinic-header h4 {
        color: #333;
        font-size: 18px;
        margin: 0;
        flex: 1;
    }

    .clinic-status {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #666;
        font-size: 13px;
        white-space: nowrap;
    }

    .clinic-status.pending {
        color: #ff9800;
    }

    .btn-affiliation {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 8px 14px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.25s ease;
        white-space: nowrap;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .btn-affiliation:hover {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
    }

    .btn-affiliation:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .btn-pending-approval {
        background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: not-allowed;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        white-space: nowrap;
        opacity: 0.85;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .btn-pending-approval:disabled {
        cursor: not-allowed;
    }

    .btn-pending-approval i {
        animation: spin 2s linear infinite;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    .clinic-info {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
    }

    .clinic-info p {
        margin: 8px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .clinic-info i {
        color: #667eea;
        min-width: 16px;
    }

    /* Hover Overlay for Doctors */
    .clinic-hover-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        animation: fadeIn 0.3s ease;
        z-index: 10;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .clinic-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.72);
        backdrop-filter: blur(10px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 24px;
    }

    .clinic-modal-overlay.active {
        display: flex;
    }

    .clinic-modal-card {
        width: 100%;
        max-width: 520px;
        background: #0f172a;
        border-radius: 24px;
        box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
        overflow: hidden;
        transform: translateY(30px);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    .clinic-modal-overlay.active .clinic-modal-card {
        transform: translateY(0);
        opacity: 1;
    }

    @media (max-width: 767.98px) {
        .clinic-modal-overlay {
            align-items: flex-end;
            justify-content: stretch;
            padding: 0;
        }

        .clinic-modal-card {
            max-width: 100%;
            border-radius: 24px 24px 0 0;
            margin: 0;
        }
    }

    .clinic-modal-header {
        padding: 22px 22px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .clinic-modal-header h4 {
        color: #fff;
        font-size: 20px;
        margin: 0;
    }

    .clinic-modal-close {
        border: none;
        background: rgba(255,255,255,0.08);
        color: #fff;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .clinic-modal-close:hover {
        transform: scale(1.05);
        background: rgba(255,255,255,0.14);
    }

    .clinic-modal-body {
        padding: 20px;
        color: #e2e8f0;
    }

    .clinic-modal-body label {
        display: block;
        margin-bottom: 8px;
        color: #cbd5e1;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .clinic-modal-body select,
    .clinic-modal-body textarea {
        width: 100%;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.12);
        background: rgba(15, 23, 42, 0.92);
        color: #f8fafc;
        padding: 12px 14px;
        font-size: 0.95rem;
        margin-bottom: 16px;
        outline: none;
    }

    .clinic-modal-body textarea {
        resize: vertical;
        min-height: 120px;
    }

    .clinic-modal-actions {
        padding: 0 20px 22px;
    }

    .clinic-modal-actions .btn-send-request {
        width: 100%;
        border-radius: 14px;
        padding: 14px 0;
        font-size: 0.95rem;
    }

    @media (min-width: 992px) {
        .clinic-modal-card {
            border-radius: 24px;
            max-width: 560px;
            margin-bottom: auto;
        }
        .clinic-modal-overlay {
            align-items: center;
        }
    }

    @media (max-width: 767.98px) {
        .clinics-section {
            padding: 18px;
            margin: 24px auto;
        }
        .clinic-card {
            min-height: 320px;
        }
        .clinic-modal-card {
            border-radius: 22px 22px 0 0;
        }
    }

    .hover-content {
        color: white;
        text-align: center;
        padding: 20px;
        width: 100%;
    }

    .hover-content h5 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .role-selection {
        margin-bottom: 15px;
        text-align: left;
    }

    .role-selection label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 600;
    }

    .role-select {
        width: 100%;
        padding: 8px 10px;
        border: none;
        border-radius: 6px;
        background: #333;
        color: white;
        font-size: 13px;
        cursor: pointer;
    }

    .role-select option {
        background: #222;
        color: white;
    }

    .affiliation-message {
        width: 100%;
        padding: 10px;
        border: none;
        border-radius: 6px;
        background: #333;
        color: white;
        font-size: 13px;
        margin-bottom: 12px;
        resize: vertical;
        min-height: 60px;
        font-family: inherit;
    }

    .affiliation-message::placeholder {
        color: #999;
    }

    .btn-send-request {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        width: 100%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-send-request:hover:not(:disabled) {
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    .btn-send-request:disabled {
        opacity: 0.8;
        cursor: not-allowed;
    }

    /* Light Mode Adjustments */
    body.light-mode .clinic-card {
        background: #f9f9f9;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    body.light-mode .clinic-header h4 {
        color: #222;
    }

    body.light-mode .clinic-info {
        color: #666;
    }
