:root {
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
    --color-green: #10b981;
    --color-orange: #f97316;
    --color-pink: #ec4899;
    --color-teal: #14b8a6;
    --color-red: #ef4444;
}

/* Base - Explicit dark mode default */
body {
font-family: 'Inter', sans-serif;
}

html.dark body,
body {
background-color: #1a1625 !important;
color: #f5f1ea !important;
}
        .chart-container { position: relative; width: 100%; max-width: 800px; margin-left: auto; margin-right: auto; height: 300px; max-height: 40vh; }
        @media (min-width: 768px) { .chart-container { height: 350px; } }
        .modal-backdrop { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
        .loader {
            border: 4px solid #f3f3ff;
            border-top: 4px solid #8b5cf6;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .scroll-view-item {
            margin-bottom: 1rem;
        }
        .scroll-view-container {
            overflow-y: auto;
            display: block;
            max-height: 350px;
        }
        /* UPDATE 3: Increased height for photo grid */
        .portfolio-grid-view {
            height: 350px;
        }

        /* Dashboard Portfolio Grid - Mobile Optimization */
        @media (max-width: 768px) {
            #portfolioEditorGrid {
                display: grid !important;
                grid-template-columns: repeat(2, 1fr) !important;
                grid-auto-rows: 1fr !important;
                gap: 0.5rem !important;
                max-height: calc((50vw - 0.5rem) * 3 + 1rem) !important;
                overflow-y: auto !important;
            }

            /* Force square aspect ratio using padding trick for reliability */
            #portfolioEditorGrid > div {
                position: relative !important;
                width: 100% !important;
                padding-bottom: 100% !important; /* Creates square */
                height: 0 !important;
                margin: 0 !important;
                overflow: hidden !important;
            }

            #portfolioEditorGrid > div img {
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
            }

            /* Position the hover overlay properly */
            #portfolioEditorGrid > div > div {
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
            }
        }

        /* Fix portfolio/reviews overlap on mobile */
        @media (max-width: 768px) {
            .portfolio-grid-view {
                height: auto !important;
                max-height: none !important;
                min-height: auto !important;
                margin-bottom: 0 !important;
                padding-bottom: 0 !important;
            }

            /* Remove extra space - reviews show right after portfolio */
            .bg-slate-800 .mt-auto {
                margin-top: 0 !important;
            }

            /* Remove flex-grow that creates space */
            .bg-slate-800 .flex-grow {
                flex-grow: 0 !important;
            }

            /* Remove bottom margin on portfolio container */
            .bg-slate-800 > div.mb-32 {
                margin-bottom: 0 !important;
            }

            /* Target the specific portfolio container */
            .mobile-portfolio-container {
                margin-bottom: 0 !important;
                padding-bottom: 0 !important;
            }

            /* Tight spacing for mobile cards */
            .bg-slate-800 .px-5.pb-5.flex-grow {
                padding-bottom: 0 !important;
                margin-bottom: 0 !important;
            }

            /* Small gap between portfolio and reviews - this is the key! */
            .portfolio-grid-view,
            .portfolio-scroll-view {
                margin-bottom: 0.75rem !important;
            }
        }

        .pac-container {
            background-color: #334155;
            border-radius: 8px;
            border: 1px solid #475569;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
            z-index: 10000 !important;
            min-width: 300px !important;
        }
        .pac-item {
            padding: 10px;
            font-size: 14px;
            color: #e2e8f0;
            cursor: pointer;
            border-top: 1px solid #475569;
        }
        .pac-item:first-child {
            border-top: none;
        }
        .pac-item:hover {
            background-color: #475569;
        }
        .pac-item-query {
            font-weight: 600;
            color: #f8fafc;
        }
        .profile-max-w {
    max-width: 1600px;
}
        .profile-only-card {
            max-width: none !important;
        }
        .profile-only-card .portfolio-grid-view {
            height: auto;
            max-height: none;
        }
        .collapsible-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.collapsible-header:hover {
    background-color: rgba(100, 116, 139, 0.1);
}
.collapsible-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}
.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}
.collapsible-content.expanded {
    max-height: 2000px;
    opacity: 1;
}
.chevron-icon {
    transition: transform 0.3s ease;
}
.chevron-icon.rotated {
    transform: rotate(180deg);
}

/* Service category specific styles */
#servicesContainer .collapsible-header:hover {
    background-color: rgba(100, 116, 139, 0.15);
}

.service-count {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Service category collapsed state - initially collapsed */
#servicesContainer .collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#servicesContainer .collapsible-content.expanded {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Ensure proper spacing in services container */
#servicesContainer > div {
    margin-bottom: 0.5rem;
}

#servicesContainer > div:last-child {
    margin-bottom: 0;
}

/* Enhanced Appointment Calendar Styles */
.calendar-header-fixed {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #475569;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.calendar-header-fixed .calendar-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid #7c3aed;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
    position: relative;
}

.calendar-header-fixed .calendar-header:first-child {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-bottom: 1px solid #5b21b6;
}

.calendar-header-fixed .calendar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

.calendar-grid-body {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 0;
    background: #1e293b;
    border-radius: 0 0 8px 8px;
    overflow: visible;
    font-size: 0.75rem;
    user-select: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #475569;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.75rem;
    user-select: none; /* Prevent text selection during drag */
}

.calendar-header {
    background: #334155;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    color: #e2e8f0;
}

.time-slot {
    background: #0f172a;
    padding: 2px 6px;
    text-align: right;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 500;
    pointer-events: none;
    border-right: 1px solid #334155;
    border-bottom: 1px solid #1e293b;
}

.time-slot.hour-mark {
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 1px solid #334155;
}

/* ==================== MEEVO-STYLE CALENDAR CELLS ==================== */

.calendar-cell {
    background: #0f172a;
    min-height: 24px;
    cursor: pointer;
    border: 1px solid #1e293b;
    border-top: none;
    position: relative;
    transition: background 0.1s ease;
    user-select: none;
}

.calendar-cell.hour-start {
    border-top: 1px solid #334155;
}

.calendar-cell:hover {
    background: #1e293b;
}

.calendar-cell.selected {
    background: rgba(139, 92, 246, 0.25) !important;
    border-color: #8b5cf6;
}

.calendar-cell.has-appointment {
    /* Keep subtle - floating block shows on top */
}

/* Closed hours - diagonal stripes */
.calendar-cell.closed-hours {
    background: repeating-linear-gradient(
        -45deg,
        #0f172a,
        #0f172a 4px,
        #1a202c 4px,
        #1a202c 8px
    ) !important;
}

.calendar-cell.closed-hours:hover {
    background: repeating-linear-gradient(
        -45deg,
        #1e293b,
        #1e293b 4px,
        #2d3748 4px,
        #2d3748 8px
    ) !important;
}

/* ==================== FLOATING APPOINTMENT BLOCKS ==================== */

.appointment-block {
    position: absolute;
    left: 2px;
    right: 2px;
    background: #ffffff;
    border-radius: 4px;
    border-left: 4px solid var(--appt-color, #8b5cf6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
    display: flex;
    flex-direction: column;
    padding: 3px 6px;
    box-sizing: border-box;
    min-height: 20px;
}

.appointment-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(2px);
    z-index: 25;
}

/* Drag-to-move styles */
.appointment-block.dragging-source {
    opacity: 0.3 !important;
    transform: none !important;
    pointer-events: none !important;
}

.drag-ghost {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.85;
    transform: rotate(1deg) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transition: none;
    overflow: visible !important;
}

.calendar-cell.drag-over {
    background: rgba(139, 92, 246, 0.15) !important;
    outline: 2px dashed #8b5cf6;
    outline-offset: -2px;
}

.calendar-cell.drag-over-invalid {
    background: rgba(239, 68, 68, 0.1) !important;
    outline: 2px dashed #ef4444;
    outline-offset: -2px;
}

html:not(.dark) .calendar-cell.drag-over {
    background: rgba(139, 92, 246, 0.12) !important;
}

.drag-time-indicator {
    position: fixed;
    z-index: 10000;
    background: #1f2937;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.drag-duration-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #7c3aed;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* Auto-book time slots */
.autobook-time-slot {
    padding: 8px 4px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.autobook-time-slot:hover {
    background: #475569;
    border-color: #7c3aed;
}

.autobook-time-slot.selected {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.autobook-time-slot.unavailable {
    background: #1e293b;
    border-color: #334155;
    color: #64748b;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Auto-booked appointment indicator */
.appt-autobook {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    line-height: 1;
    opacity: 0.8;
}

/* Right-click context menu */
.appointment-context-menu {
    position: fixed;
    z-index: 10001;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: contextMenuFadeIn 0.12s ease-out;
}

@keyframes contextMenuFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.appointment-context-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #e2e8f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.1s ease;
}

.appointment-context-menu .menu-item:hover {
    background: #334155;
}

.appointment-context-menu .menu-item .menu-icon {
    width: 18px;
    text-align: center;
}

.appointment-context-menu .menu-item.danger {
    color: #f87171;
}

.appointment-context-menu .menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.appointment-context-menu .menu-divider {
    height: 1px;
    background: #334155;
    margin: 6px 0;
}

.appointment-context-menu .menu-header {
    padding: 8px 16px 6px;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cut/Paste Clipboard Styles */
.appointment-clipboard {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.appointment-clipboard .clipboard-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.appointment-clipboard .clipboard-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.appointment-clipboard .clipboard-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-clipboard .clipboard-details {
    font-size: 0.75rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-clipboard .clipboard-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.appointment-clipboard button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.appointment-clipboard .btn-cancel {
    background: rgba(255,255,255,0.2);
    color: white;
}

.appointment-clipboard .btn-cancel:hover {
    background: rgba(255,255,255,0.3);
}

.appointment-block.is-cut {
    opacity: 0.35 !important;
    border-style: dashed !important;
    animation: pulse-cut 1.5s ease-in-out infinite;
}

@keyframes pulse-cut {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.5; }
}

/* Paste button in duration selector */
.paste-appointment-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.paste-appointment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.paste-appointment-btn {
    margin-bottom: 12px;
}

/* Conflict confirmation dialog */
.conflict-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.conflict-dialog {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.conflict-dialog h4 {
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conflict-dialog p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.conflict-dialog-buttons {
    display: flex;
    gap: 12px;
}

.conflict-dialog-buttons button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.conflict-dialog-buttons .btn-cancel {
    background: #475569;
    color: white;
}

.conflict-dialog-buttons .btn-cancel:hover {
    background: #64748b;
}

.conflict-dialog-buttons .btn-confirm {
    background: #f59e0b;
    color: #1e293b;
}

.conflict-dialog-buttons .btn-confirm:hover {
    background: #fbbf24;
}

.paste-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 12px 0;
    color: #9ca3af;
    font-size: 0.75rem;
}

.paste-divider::before,
.paste-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #374151;
}

.appointment-block .appt-client {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-block .appt-service {
    font-size: 0.6rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.appointment-block .appt-code {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--appt-color, #8b5cf6);
    margin-top: 2px;
}

/* Via Salon indicator for connected stylists */
.appointment-block .appt-via-salon {
    font-size: 0.5rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
    display: inline-block;
}

@media (max-width: 768px) {
    .appointment-block .appt-via-salon {
        font-size: 0.45rem;
        padding: 0px 3px;
    }
}

.appointment-block.is-continuation {
    border-left-style: dashed;
    background: #f9fafb;
}

.appointment-block.is-continuation .appt-client::after {
    content: ' (Cont.)';
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.6rem;
}

.appointment-block.is-gap {
    background: repeating-linear-gradient(
        45deg,
        #f3f4f6,
        #f3f4f6 6px,
        #e5e7eb 6px,
        #e5e7eb 12px
    );
    border-left-color: #9ca3af;
    border-left-style: dashed;
}

.appointment-block.is-gap .appt-service {
    font-style: italic;
    color: #6b7280;
}

/* Appointment status styles */
.appointment-block.status-checked-out {
    opacity: 0.6;
}
.appointment-block.status-no-show {
    opacity: 0.45;
}
.appointment-block.status-cancelled {
    opacity: 0.35;
    border-left-style: dashed !important;
}
.appointment-block.status-checked-in {
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}
.appt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
    margin-top: 1px;
    width: fit-content;
}
.appt-status-badge.badge-checked-out {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.appt-status-badge.badge-checked-in {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}
.appt-status-badge.badge-no-show {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}
.appt-status-badge.badge-cancelled {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}
.appt-status-badge.badge-confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Appointment block color variants */
.appointment-block.color-purple { --appt-color: #8b5cf6; }
.appointment-block.color-blue { --appt-color: #3b82f6; }
.appointment-block.color-cyan { --appt-color: #06b6d4; }
.appointment-block.color-teal { --appt-color: #14b8a6; }
.appointment-block.color-green { --appt-color: #10b981; }
.appointment-block.color-yellow { --appt-color: #eab308; }
.appointment-block.color-orange { --appt-color: #f97316; }
.appointment-block.color-pink { --appt-color: #ec4899; }
.appointment-block.color-red { --appt-color: #ef4444; }

/* Force appointment block styling in dark mode */
html.dark .appointment-block,
.appointment-block {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-left: 4px solid var(--appt-color, #8b5cf6) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

html.dark .appointment-block .appt-client,
.appointment-block .appt-client {
    color: #1f2937 !important;
}

html.dark .appointment-block .appt-service,
.appointment-block .appt-service {
    color: #6b7280 !important;
}

/* Gap blocks should have different background */
html.dark .appointment-block.is-gap,
.appointment-block.is-gap {
    background: repeating-linear-gradient(
        45deg,
        #f3f4f6,
        #f3f4f6 6px,
        #e5e7eb 6px,
        #e5e7eb 12px
        ) !important;
    }

    /* Disable old cell-based appointment backgrounds - Meevo uses floating blocks */
.calendar-cell.has-appointment,
.calendar-cell.appointment,
.calendar-cell.appointment.color-purple,
.calendar-cell.appointment.color-blue,
.calendar-cell.appointment.color-cyan,
.calendar-cell.appointment.color-teal,
.calendar-cell.appointment.color-green,
.calendar-cell.appointment.color-yellow,
.calendar-cell.appointment.color-orange,
.calendar-cell.appointment.color-pink,
.calendar-cell.appointment.color-red,
.calendar-cell.appointment.color-gray,
.calendar-cell.gap-appointment {
    background: #0f172a !important; /* Keep dark cell background */
}

html:not(.dark) .calendar-cell.has-appointment,
html:not(.dark) .calendar-cell.appointment,
html:not(.dark) .calendar-cell.appointment.color-purple,
html:not(.dark) .calendar-cell.appointment.color-blue,
html:not(.dark) .calendar-cell.appointment.color-cyan,
html:not(.dark) .calendar-cell.appointment.color-teal,
html:not(.dark) .calendar-cell.appointment.color-green,
html:not(.dark) .calendar-cell.appointment.color-yellow,
html:not(.dark) .calendar-cell.appointment.color-orange,
html:not(.dark) .calendar-cell.appointment.color-pink,
html:not(.dark) .calendar-cell.appointment.color-red,
html:not(.dark) .calendar-cell.appointment.color-gray,
html:not(.dark) .calendar-cell.gap-appointment {
    background: #e5e7eb !important; /* Keep light cell background */
}

    /* ==================== STAFF HEADER - MEEVO STYLE ==================== */

    .staff-header {
        position: relative;
        padding: 6px 4px 10px 4px !important;
        min-height: 50px;
        background: #1e293b !important;
        border-top: 4px solid var(--staff-color, #8b5cf6);
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .staff-header:hover {
        background: #334155 !important;
    }

.staff-header .staff-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    text-align: center;
    display: block;
}

.staff-header .staff-util {
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.2);
    padding: 1px 4px;
    border-radius: 3px;
}

.staff-header .util-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.3);
}

.staff-header .util-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.staff-header .util-fill.low { background: #64748b; }
.staff-header .util-fill.medium { background: #f59e0b; }
.staff-header .util-fill.high { background: #10b981; }

/* Color selection styles */
.color-option {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    padding: 0.25rem;
    background: transparent;
}

.color-option:hover {
    transform: scale(1.05);
}

.color-option.active div {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5) !important;
}

/* REMOVE the active state from all options by default */
.color-option div {
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Appointment color variants - Higher specificity to override base styles */
.calendar-cell.appointment.color-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%) !important;
    border-color: #7c3aed !important;
}

.calendar-cell.appointment.color-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
    border-color: #2563eb !important;
}

.calendar-cell.appointment.color-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #047857 !important;
}

.calendar-cell.appointment.color-orange {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%) !important;
    border-color: #ea580c !important;
}

.calendar-cell.appointment.color-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
    border-color: #db2777 !important;
}

/* Gray color for gap/processing blocks */
.calendar-cell.appointment.color-gray {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    border-color: #4b5563 !important;
}

/* Gap appointment styling - processing time blocks */
.calendar-cell.gap-appointment {
    background: repeating-linear-gradient(
        45deg,
        #4b5563,
        #4b5563 10px,
        #374151 10px,
        #374151 20px
    ) !important;
    opacity: 0.8;
    border: 2px dashed #6b7280 !important;
}

.calendar-cell.gap-appointment .appointment-item {
    background: transparent !important;
}

/* Hover states for color variants */
.calendar-cell.appointment.color-purple:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
}

.calendar-cell.appointment.color-blue:hover {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
}

.calendar-cell.appointment.color-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.calendar-cell.appointment.color-orange:hover {
    background: linear-gradient(135deg, #ea580c 0%, #d97706 100%) !important;
}

.calendar-cell.appointment.color-pink:hover {
    background: linear-gradient(135deg, #db2777 0%, #e11d48 100%) !important;
}

.calendar-cell.appointment.color-gray:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
}

/* Ensure empty appointment cells also get the color */
.calendar-cell.appointment:empty.color-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%) !important;
}

.calendar-cell.appointment:empty.color-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
}

.calendar-cell.appointment:empty.color-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.calendar-cell.appointment:empty.color-orange {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%) !important;
}

.calendar-cell.appointment:empty.color-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
}

/* Appointment content styling */
.appointment-content {
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 2px 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.appointment-client {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1px;
}

.appointment-service {
    font-size: 0.55rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1;
}

/* Empty appointment cells (part of block but no content) */
.calendar-cell.appointment:empty {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

.calendar-cell.appointment:empty:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

/* Selection styling to match the gradient theme */
.calendar-cell.selected {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    border-color: #7c3aed;
    color: white;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Enhanced hover states for better UX */
.calendar-cell:not(.appointment):hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #8b5cf6;
}

/* Closed hours styling */
.calendar-cell.closed-hours {
    background: #1a202c !important; /* Darker gray for closed hours */
    opacity: 0.6;
}

.calendar-cell.closed-hours:hover {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
    border-color: #8b5cf6;
    opacity: 0.8;
}

/* Closed hours when selected should show selection styling */
.calendar-cell.closed-hours.selected {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
    border-color: #7c3aed;
    color: white;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
    opacity: 0.85;
}

/* Closed hours with appointments should still show appointment colors but dimmed */
.calendar-cell.closed-hours.appointment {
    opacity: 0.7;
}

.calendar-cell.closed-hours.appointment:hover {
    opacity: 0.9;
}

/* Appointment block connection styling */
.calendar-cell.appointment-start::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #8b5cf6, #3b82f6);
}

.calendar-cell.appointment-middle::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #8b5cf6, #3b82f6);
}

/* Time slot styling to complement the new appointment colors */
.time-slot {
    background: #1e293b;
    padding: 4px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.7rem;
    pointer-events: none;
    border-right: 1px solid #374151;
}

/* Calendar header styling updates */
.calendar-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid #7c3aed;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
    position: relative;
}

.calendar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

/* Selection info panel styling to match */
#selectionInfo {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid #6b7280;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

/* Appointment form styling updates */
.appointment-form {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid #6b7280;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.appointment-content {
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 2px;
}

.week-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.week-nav-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

/* Mobile: Larger arrows for touch-friendly navigation */
@media (max-width: 1023px) {
  .week-nav-btn {
    font-size: 1.75rem;
    padding: 0.75rem 1.25rem;
    min-width: 3.5rem;
  }
}

.week-nav-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.week-nav-btn:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.week-nav-btn:disabled:hover {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    transform: none;
    box-shadow: none;
}

.current-week {
    font-weight: 600;
    color: #e5e7eb;
    text-align: center;
}

/* ==================== MOBILE CALENDAR IMPROVEMENTS ==================== */

/* Mobile: Individual Staff Week View Navigation - Stacked Layout */
@media (max-width: 768px) {
    .week-navigation.individual-week-nav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .week-navigation.individual-week-nav .week-nav-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
        min-width: auto;
    }

    .week-navigation.individual-week-nav .back-btn-row {
        width: 100%;
    }

    .week-navigation.individual-week-nav .back-btn-row .week-nav-btn {
        width: 100%;
    }

    .week-navigation.individual-week-nav .staff-info-row {
        text-align: center;
        padding: 0.5rem 0;
    }

    .week-navigation.individual-week-nav .nav-btn-row {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .week-navigation.individual-week-nav .nav-btn-row .week-nav-btn {
        flex: 1;
        max-width: 120px;
    }
}

/* Mobile: Multi-Staff Day View - Horizontal Scroll Carousel */
@media (max-width: 768px) {
    /* Make calendar container horizontally scrollable for multi-staff */
    .calendar-container.multi-staff-mobile {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    /* Hide scrollbar but keep functionality */
    .calendar-container.multi-staff-mobile::-webkit-scrollbar {
        height: 4px;
    }

    .calendar-container.multi-staff-mobile::-webkit-scrollbar-track {
        background: #1e293b;
    }

    .calendar-container.multi-staff-mobile::-webkit-scrollbar-thumb {
        background: #8b5cf6;
        border-radius: 2px;
    }

    /* Fixed time column for multi-staff mobile */
    .calendar-grid-body.multi-staff-mobile {
        display: grid;
        /* Time column (60px) + scrollable staff columns */
        grid-template-columns: 60px repeat(var(--staff-count, 1), minmax(140px, 1fr));
        width: max-content;
        min-width: 100%;
    }

    .calendar-grid-body.multi-staff-mobile .time-slot {
        position: sticky;
        left: 0;
        z-index: 10;
        background: #0f172a;
        font-size: 0.55rem;
        padding: 2px 4px;
    }

    /* Header wrapper for scroll sync */
    .calendar-header-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }

    .calendar-header-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Make header content not wrap */
    .calendar-header-wrapper .calendar-header-fixed {
        display: flex;
        flex-wrap: nowrap;
    }

    /* Single-column mobile: keep grid layout to match body */
    .calendar-header-wrapper .calendar-header-fixed:not(.multi-staff-mobile) {
        display: grid;
    }

    .calendar-header-wrapper .calendar-header-fixed.multi-staff-mobile {
        display: grid;
        width: max-content;
        min-width: 100%;
    }

    /* First header cell (Time) stays fixed in wrapper */
    .calendar-header-wrapper .calendar-header-fixed .calendar-header:first-child {
        position: sticky;
        left: 0;
        z-index: 20;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    }

    /* Floating appointment blocks should not overlap time column */
    .calendar-container.multi-staff-mobile .floating-appointment-block {
        z-index: 5;
    }

    /* Mobile: Multi-staff day view navigation - stacked layout */
    .week-navigation.day-nav-mobile {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .week-navigation.day-nav-mobile .date-display-row {
        padding: 0.5rem 0;
    }

    .week-navigation.day-nav-mobile .nav-btn-row .week-nav-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    /* Header matches the calendar grid */
    .calendar-header-fixed.multi-staff-mobile {
        display: grid;
        grid-template-columns: 60px repeat(var(--staff-count, 1), minmax(140px, 1fr));
        width: max-content;
        min-width: 100%;
    }

    .calendar-header-fixed.multi-staff-mobile .calendar-header:first-child {
        position: sticky;
        left: 0;
        z-index: 15;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    }

    /* Hide header scrollbar */
    .calendar-header-fixed.multi-staff-mobile::-webkit-scrollbar {
        display: none;
    }

    /* Staff headers snap points */
    .calendar-header-fixed.multi-staff-mobile .staff-header {
        scroll-snap-align: start;
        min-width: 140px;
    }

    /* Staff header text smaller on mobile */
    .calendar-header-fixed.multi-staff-mobile .staff-header .staff-name {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Scroll indicator dots container */
    .staff-scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 8px 0;
        background: rgba(30, 41, 59, 0.8);
        border-radius: 0 0 8px 8px;
    }

    .staff-scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #475569;
        transition: background 0.2s ease;
        cursor: pointer;
    }

    .staff-scroll-dot.active {
        background: #8b5cf6;
    }

    /* Swipe hint on first load */
    .swipe-hint {
        text-align: center;
        font-size: 0.75rem;
        color: #94a3b8;
        padding: 4px 0;
    }
}

/* Tablet: Slightly larger columns */
@media (min-width: 769px) and (max-width: 1023px) {
    .calendar-grid-body.multi-staff-mobile {
        grid-template-columns: 70px repeat(var(--staff-count, 1), minmax(100px, 1fr));
    }

    .calendar-header-fixed.multi-staff-mobile {
        grid-template-columns: 70px repeat(var(--staff-count, 1), minmax(100px, 1fr));
    }
}

.appointment-form {
    background: #374151;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.calendar-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #374151;
    border-radius: 8px;
    position: relative;
}

/* On mobile, hide scrollbar to fix header/body grid alignment */
@media (max-width: 768px) {
    .calendar-container {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .calendar-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}

/* Selection info styling */
#selectionInfo {
    background: #374151;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid #4b5563;
}

#selectionInfo .text-sm {
    color: #d1d5db;
}

#selectedTimeRange {
    font-weight: 600;
    color: #f3f4f6;
}

/* Fix for search input focus border clipping */
#clientSearch {
    position: relative;
    z-index: 1;
}

#clientSearch:focus {
    z-index: 2;
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure parent container doesn't clip the focus ring */
.clients-search-container {
    overflow: visible;
    position: relative;
}

/* Desktop: Equal height columns - FORCE override inline classes */
@media (min-width: 1024px) {
    /* Grid makes all columns equal height */
    #profileOnlyHeader .lg\:grid-cols-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        align-items: stretch !important;
    }

    /* Force all direct children to stretch */
    #profileOnlyHeader .lg\:grid-cols-3 > * {
        height: 100% !important;
        max-height: none !important;
        min-height: 100% !important;
    }

    /* Left column: Override max-h-[800px] from HTML */
    #profileOnlyHeader .from-purple-600.max-h-\[800px\] {
        max-height: none !important;
        height: 100% !important;
        overflow-y: visible !important;
    }

    /* Right column: Override max-h-[800px] from HTML */
    #profileOnlyHeader .bg-slate-800\/50.max-h-\[800px\] {
        max-height: none !important;
        height: 100% !important;
        overflow-y: visible !important;
    }

    /* Middle column: Natural height */
    #profileOnlyCard {
        height: auto !important;

        @media (min-width: 1024px) {
    /* Existing desktop rules... */

    /* FORCE grid view in profile-only middle column */
    #profileOnlyCard .portfolio-scroll-view {
        display: none !important;
    }

    #profileOnlyCard .portfolio-grid-view {
        display: block !important;
    }

    #profileOnlyCard .portfolio-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
}

/* Mobile: Simple stacking */
@media (max-width: 1023px) {
    #profileOnlyHeader .lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    #profileOnlyHeader .max-h-\[800px\] {
        max-height: none !important;
    }
}

/* Fix reviews overlapping portfolio on public search cards */
@media (min-width: 640px) {
    #profilesGrid .portfolio-grid {
        max-height: 320px !important;
        overflow-y: auto !important;
    }

    #profilesGrid .mobile-portfolio-container {
        overflow: hidden !important;
    }
}

@media (max-width: 768px) {
    /* Hide left/right columns on mobile, show only middle */
    #profileOnlyHeader .grid > .from-purple-600,
    #profileOnlyHeader .grid > .bg-slate-800\/50 {
        display: none !important;
    }

    /* Let middle column render exactly like public search - NO extra padding */
    #profileOnlyCard {
        padding: 0 !important;
    }
}

/* ===== RIGHT COLUMN: Map & Location ===== */
#profileOnlyHeader .bg-slate-800\/50.rounded-2xl {
padding: 1rem !important;
max-height: none !important;
}

/* Map section title */
#profileOnlyHeader h3.text-xl {
font-size: 1.125rem !important;
margin-bottom: 1rem !important;
}

/* Location search label */
#profileOnlyHeader label[for="profileLocationSearch"] {
font-size: 0.875rem !important;
margin-bottom: 0.5rem !important;
}

/* Location search input - larger for easier typing */
#profileLocationSearch {
min-height: 46px !important;
font-size: 1rem !important;
padding: 0.75rem !important;
}

/* Location button - larger touch target */
#profileUseMyLocationBtn {
min-width: 46px !important;
min-height: 46px !important;
padding: 0.75rem !important;
font-size: 1.25rem !important;
}

/* Distance result */
#profileDistanceResult {
padding: 0.875rem !important;
margin-bottom: 1rem !important;
}

#profileDistanceResult p {
font-size: 1rem !important;
}

#profileDistanceResult .text-sm {
font-size: 0.875rem !important;
}

/* Map container - better mobile height */
#profileOnlyHeader .bg-slate-700.rounded-lg {
height: 300px !important;
}

/* Location info buttons */
#profileOnlyHeader .text-purple-400 {
font-size: 0.95rem !important;
padding: 0.5rem !important;
display: inline-block !important;
}

/* Business hours section */
#profileOnlyHeader h4 {
font-size: 1rem !important;
margin-bottom: 0.75rem !important;
}

#profileOnlyHeader .space-y-1 {
gap: 0.5rem !important;
}

#profileOnlyHeader .space-y-1 .flex {
font-size: 0.875rem !important;
line-height: 1.5 !important;
}
}

/* Extra small screens - even more optimized */
@media (max-width: 480px) {
/* Tighter container padding */
#profileOnlyHeader .container {
padding-left: 0.75rem !important;
padding-right: 0.75rem !important;
}

/* Smaller profile image on very small screens */
#profileOnlyHeader .w-20.h-20 {
width: 72px !important;
height: 72px !important;
}

/* Smaller profile name */
#profileOnlyHeader h1 {
font-size: 1.125rem !important;
}

/* Stack location buttons vertically on tiny screens */
#profileOnlyHeader .space-x-4 {
display: flex !important;
flex-direction: column !important;
gap: 0.5rem !important;
align-items: center !important;
}

#profileOnlyHeader .space-x-4 button {
display: block !important;
width: 100% !important;
max-width: 200px !important;
}

/* Smaller map on very small screens */
#profileOnlyHeader .bg-slate-700.rounded-lg {
height: 250px !important;
}

/* More compact social icons */
.social-icon {
width: 44px !important;
height: 44px !important;
}

/* Reduce some spacing */
#profileOnlyHeader .space-y-2 {
gap: 0.625rem !important;
}
}

/* Social media icons styling */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.facebook-icon:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.instagram-icon:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
}

.tiktok-icon:hover {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.youtube-icon:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Profile type icons */
.profile-type-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.profile-type-icon:hover {
    opacity: 1;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1e293b;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}
