        :root {
            /* ── caretio brand ── */
            --bg: #FBF8F4;
            --surface: #ffffff;
            --surface2: #F4F2EE;
            --surface3: #EDE8E0;
            --border: rgba(26,24,48,0.08);
            --border-hover: rgba(26,24,48,0.18);
            --text: #1A1830;
            --text-muted: #666666;
            --text-dim: #C5C2D4;
            --accent: #4A45C8;
            --accent-soft: rgba(74,69,200,0.08);
            --accent-glow: rgba(74,69,200,0.20);
            --green: #1D9E75;
            --green-soft: rgba(29,158,117,0.10);
            --amber: #B36200;
            --amber-soft: rgba(179,98,0,0.10);
            --blue: #0369a1;
            --blue-soft: rgba(3,105,161,0.10);
            --rose: #FF6058;
            --rose-soft: rgba(255,96,88,0.10);
            --midnight: #1A1830;
            --coral: #FF6058;
            --indigo: #4A45C8;
            --parchment: #FBF8F4;
            --parchment-border: #EDE8E0;
            --primary: #4A45C8;
            --danger: #FF6058;
            --warning: #B36200;
            --gray: #EDE8E0;
            --light: #F4F2EE;
            --dark: #1A1830;
            --secondary: #AAA5C0;
            --radius: 12px;
            --radius-sm: 8px;
        }

        [data-theme="dark"] {
            --bg: #0E0D1E;
            --surface: #1A1830;
            --surface2: #231F38;
            --surface3: #2E2B4A;
            --border: rgba(255,255,255,0.07);
            --border-hover: rgba(255,255,255,0.14);
            --text: #E8E6F0;
            --text-muted: #999999;
            --text-dim: #4A4760;
            --accent-glow: rgba(74,69,200,0.30);
            --gray: #2E2B4A;
            --light: #231F38;
        }

        /* Dark mode overrides for hardcoded elements */
        [data-theme="dark"] body {
            background-color: #0E0D1E !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] nav {
            background: #0C0B18 !important;
            border-bottom-color: rgba(255,255,255,0.07) !important;
        }

        [data-theme="dark"] .card,
        [data-theme="dark"] .booking-form,
        [data-theme="dark"] .booking-item,
        [data-theme="dark"] .modal-content {
            background: #1A1830 !important;
            border-color: rgba(255,255,255,0.07) !important;
        }

        [data-theme="dark"] input,
        [data-theme="dark"] select,
        [data-theme="dark"] textarea {
            background: #231F38 !important;
            border-color: rgba(255,255,255,0.07) !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .nav-item a {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .nav-item a:hover,
        [data-theme="dark"] .nav-item a.active {
            color: #E8E6F0 !important;
            background: #231F38 !important;
        }

        [data-theme="dark"] .modal {
            background: rgba(0,0,0,0.85) !important;
        }

        [data-theme="dark"] h1,
        [data-theme="dark"] h2,
        [data-theme="dark"] h3,
        [data-theme="dark"] h4,
        [data-theme="dark"] h5,
        [data-theme="dark"] h6 {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .form-control {
            background: #231F38 !important;
            border-color: rgba(255,255,255,0.1) !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .section-tabs .tab {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .section-tabs .tab.active {
            color: #E8E6F0 !important;
            background: #231F38 !important;
        }

        [data-theme="dark"] .button {
            background: #231F38 !important;
            color: #E8E6F0 !important;
            border-color: rgba(255,255,255,0.2) !important;
        }

        [data-theme="dark"] .button:hover {
            background: #2E2B4A !important;
        }

        [data-theme="dark"] .button.primary {
            background: var(--coral, #FF6058) !important;
            color: white !important;
        }

        [data-theme="dark"] .button.primary:hover {
            background: #3D39B8 !important;
        }

        [data-theme="dark"] .button.secondary {
            background: #231F38 !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .button.danger {
            background: #FF6058 !important;
            color: white !important;
        }

        [data-theme="dark"] .form-control {
            background: #231F38 !important;
            border-color: rgba(255,255,255,0.1) !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .form-control::placeholder {
            color: #4A4760 !important;
        }

        [data-theme="dark"] .form-control[readonly] {
            background: #231F38 !important;
        }

        /* Dark mode for datetime picker icon */
        [data-theme="dark"] ::-webkit-calendar-picker-indicator {
            filter: invert(1) !important;
            opacity: 0.8 !important;
        }

        [data-theme="dark"] .form-group label {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .form-title {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .booking-item {
            background: #1A1830 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .booking-title {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .booking-meta {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .booking-status {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .empty-state {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .notification-badge {
            background: var(--coral, #FF6058) !important;
            color: white !important;
        }

        [data-theme="dark"] .profile-icon {
            border-color: rgba(255,255,255,0.2) !important;
        }

        [data-theme="dark"] .nav-icon {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .nav-icon:hover {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .status-pending {
            background: rgba(180,83,9,0.2) !important;
            color: #f4a261 !important;
        }

        [data-theme="dark"] .status-confirmed,
        [data-theme="dark"] .status-accepted {
            background: rgba(3,105,161,0.2) !important;
            color: #64b5f6 !important;
        }

        [data-theme="dark"] .status-completed {
            background: rgba(22,163,74,0.2) !important;
            color: #81c784 !important;
        }

        [data-theme="dark"] .status-cancelled,
        [data-theme="dark"] .status-expired {
            background: rgba(190,18,60,0.2) !important;
            color: #e57373 !important;
        }

        [data-theme="dark"] .status-offer_sent,
        [data-theme="dark"] .status-in_progress,
        [data-theme="dark"] .status-offer_received {
            background: rgba(3,105,161,0.2) !important;
            color: #64b5f6 !important;
        }

        [data-theme="dark"] .status-applied,
        [data-theme="dark"] .status-has_applications {
            background: rgba(74,69,200,0.15) !important;
            color: #9fa8da !important;
        }

        [data-theme="dark"] .status-withdrawn,
        [data-theme="dark"] .status-rejected {
            background: rgba(180,83,9,0.2) !important;
            color: #ffcc80 !important;
        }

        [data-theme="dark"] .service-option {
            background: #231F38 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .service-option.selected {
            background: rgba(74,69,200,0.15) !important;
            border-color: var(--indigo) !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .hours-stepper {
            background: #231F38 !important;
        }

        [data-theme="dark"] .stepper-btn {
            background: #231F38 !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .stepper-value {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .end-time-label {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .end-time-input {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .addr-selector-btn {
            background: #231F38 !important;
            color: #E8E6F0 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .addr-dropdown {
            background: #1A1830 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .addr-dropdown-header {
            color: #6B6880 !important;
            border-bottom-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .addr-option {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .addr-option:hover,
        [data-theme="dark"] .addr-option.active {
            background: #231F38 !important;
        }

        [data-theme="dark"] .addr-option-sub {
            color: #4A4760 !important;
        }

        [data-theme="dark"] .close-modal {
            background: #231F38 !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .close-modal:hover {
            background: #2E2B4A !important;
        }

        [data-theme="dark"] .legend-label {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .legend-item {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .view-btn {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .view-btn.active {
            background: #1A1830 !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .nav-btn {
            background: #231F38 !important;
            color: #E8E6F0 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .nav-btn:hover {
            background: #231F38 !important;
        }

        [data-theme="dark"] .now-btn {
            color: #6B6880 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .now-btn:hover {
            color: #4A45C8 !important;
            border-color: var(--indigo) !important;
        }

        [data-theme="dark"] .current-period {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .day-cell {
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .day-cell:hover {
            background: #1A1830 !important;
        }

        [data-theme="dark"] .day-number {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .month-event-text {
            color: inherit !important;
        }

        [data-theme="dark"] .more-events {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .week-time-label {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .day-time-label {
            color: #6B6880 !important;
        }

        [data-theme="dark"] .hour-line {
            border-top-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .toast {
            background: #231F38 !important;
            color: #E8E6F0 !important;
        }

        /* Dark mode overrides for inline-styled elements */
        [data-theme="dark"] [style*="background:"] {
            /* Override light backgrounds */
        }

        [data-theme="dark"] [style*="background: white"] {
            background: #231F38 !important;
        }

        [data-theme="dark"] [style*="background: #fff"] {
            background: #231F38 !important;
        }

        [data-theme="dark"] [style*="background: #ffffff"] {
            background: #1A1830 !important;
        }

        [data-theme="dark"] [style*="background: var(--light)"],
        [data-theme="dark"] [style*="background: rgb(255"] {
            background: #231F38 !important;
        }

        [data-theme="dark"] [style*="color: #000"],
        [data-theme="dark"] [style*="color: black"] {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] [style*="color: #333"] {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] [style*="border: 1px solid #"] {
            border-color: rgba(255,255,255,0.1) !important;
        }

        /* Toggle switch dark mode */
        [data-theme="dark"] #saveAsDefaultToggle {
            background: #2E2B4A !important;
        }

        [data-theme="dark"] #saveAsDefaultToggle span {
            background: #e0e0e0 !important;
        }

        [data-theme="dark"] [data-checked="true"] {
            background: var(--coral, #FF6058) !important;
        }

        /* Modal dark mode */
        [data-theme="dark"] .modal-content {
            background: #1A1830 !important;
            border-color: rgba(255,255,255,0.1) !important;
            position: relative;
        }

        [data-theme="dark"] .modal-header {
            background: #1A1830 !important;
            border-bottom-color: rgba(255,255,255,0.1) !important;
            position: relative;
        }

        [data-theme="dark"] .modal-header h3 {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .modal-body {
            background: #1A1830 !important;
        }

        [data-theme="dark"] .modal-footer {
            background: #1A1830 !important;
            border-top-color: rgba(255,255,255,0.1) !important;
        }

        /* Close button positioning for all modals */
        .close-modal {
            position: absolute !important;
            top: 15px !important;
            right: 20px !important;
            z-index: 10 !important;
        }

        [data-theme="dark"] .close-modal {
            background: #231F38 !important;
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .close-modal:hover {
            background: #2E2B4A !important;
        }

        [data-theme="dark"] .back-btn {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .back-btn:hover {
            color: #4A45C8 !important;
        }

        [data-theme="dark"] .lang-modal-content {
            background: #1A1830 !important;
        }

        [data-theme="dark"] .lang-modal h2 {
            color: #E8E6F0 !important;
        }

        [data-theme="dark"] .lang-options .btn-lang {
            background: #231F38 !important;
            color: #E8E6F0 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }

        [data-theme="dark"] .lang-options .btn-lang:hover {
            background: #2E2B4A !important;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
        }

        /* NAV */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 28px;
            height: 60px;
            background: var(--midnight);
            border-bottom: none;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-logo {
            font-family: 'Fraunces', serif;
            font-style: italic;
            font-weight: 300;
            font-size: 20px;
            letter-spacing: -0.5px;
            color: #ffffff;
        }

        .nav-logo span { color: var(--coral); }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2px;
        }

        .nav-item a {
            text-decoration: none;
            color: rgba(255,255,255,0.55);
            font-size: 13.5px;
            font-weight: 500;
            padding: 6px 14px;
            border-radius: 6px;
            transition: all 0.15s;
        }

        .nav-item a:hover,
        .nav-item a.active {
            color: #ffffff;
            background: rgba(255,255,255,0.08);
        }

        .nav-actions { display: flex; align-items: center; gap: 10px; }

        .open-cal-btn {
            background: var(--indigo, #4A45C8);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-family: 'DM Sans', sans-serif;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.15s;
            box-shadow: 0 0 20px var(--accent-glow);
        }

        .open-cal-btn:hover { opacity: 0.9; transform: translateY(-1px); }

        /* MAIN */
        .container { max-width: 960px; margin: 0 auto; padding: 36px 24px; }

        .booking-card {
            background: var(--midnight, #1A1830);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 28px;
        }

        .booking-card h2 {
            font-family: 'Fraunces', serif;
            font-style: italic;
            font-weight: 300;
            font-size: 22px;
            letter-spacing: -0.5px;
            margin-bottom: 20px;
        }

        .date-selector {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .date-input { flex: 1; min-width: 0; }

        .date-input label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .date-input input {
            width: 100%;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text);
            font-family: 'DM Sans', sans-serif;
            font-size: 14px;
            padding: 0 14px;
            transition: border 0.15s;
            color-scheme: light;
            height: 42px;
            display: flex;
            align-items: center;
        }

        .date-input input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .cal-btn-wrap {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .date-input-hint {
            font-size: 11px;
            color: var(--text-dim);
            text-align: center;
        }

        .view-calendar-btn {
            background: var(--accent-soft);
            border: 1.5px solid var(--indigo, #4A45C8);
            color: var(--indigo, #4A45C8);
            border-radius: var(--radius-sm);
            padding: 0 14px;
            height: 42px;
            font-family: 'DM Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            transition: background 0.15s, transform 0.15s;
        }

        .view-calendar-btn:hover { background: rgba(74,69,200,0.14); transform: translateY(-1px); }
        .view-calendar-btn svg { flex-shrink: 0; }

        @media (max-width: 560px) {
            .date-selector { flex-wrap: wrap; }
            .cal-btn-wrap { width: 100%; align-items: stretch; }
            .view-calendar-btn { width: 100%; justify-content: center; height: 44px; font-size: 14px; }
            .date-input-hint { text-align: center; }
        }

        /* MODAL */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(6px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.open { display: flex; }

        .modal-content {
            background: var(--midnight, #1A1830);
            border: 1px solid var(--border);
            border-radius: 16px;
            width: 95%;
            max-width: 960px;
            /*height: 94vh;*/
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 24px 80px rgba(0,0,0,0.6);
            animation: slideUp 0.2s ease;
        }

        /* Calendar modal - full width bounded by browser */
        #calendarModal .modal-content {
            max-width: 94vw;
            width: 94vw;
        }

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

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }

        .modal-title {
            font-family: 'Fraunces', serif;
            font-style: italic;
            font-weight: 300;
            font-size: 18px;
            letter-spacing: -0.3px;
            color: var(--text);
        }

        .close-modal {
            background: var(--surface3);
            border: none;
            color: var(--text-muted);
            width: 30px;
            height: 30px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }

        .close-modal:hover { background: var(--surface2); color: var(--text); }

        /* CALENDAR CONTROLS */
        .calendar-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 24px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
            gap: 12px;
            flex-wrap: wrap;
        }

        .nav-controls { display: flex; align-items: center; gap: 8px; }

        .nav-btn {
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 6px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }

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

        .now-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-dim);
            border-radius: 6px;
            padding: 4px 12px;
            font-family: 'DM Sans', sans-serif;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s;
        }

        .now-btn:hover { border-color: var(--accent); color: var(--accent); }

        .current-period {
            font-family: 'Fraunces', serif;
            font-style: italic;
            font-weight: 300;
            font-size: 16px;
            letter-spacing: -0.3px;
            min-width: 160px;
            text-align: center;
            color: var(--text);
        }

        .view-toggle { display: flex; gap: 2px; background: var(--surface2); padding: 3px; border-radius: 8px; }

        .view-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            border-radius: 6px;
            padding: 5px 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s;
        }

        .view-btn.active {
            background: var(--midnight, #1A1830);
            color: var(--text);
            box-shadow: 0 1px 4px rgba(0,0,0,0.3);
        }

        /* LEGEND */
        .legend {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 16px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
            flex-wrap: wrap;
        }

		.legend-divider {
            width: 1px;
            height: 16px;
            background: var(--border);
            flex-shrink: 0;
        }
		
        .legend-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: var(--text-dim);
        }

        .legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

		/* ADDRESS SELECTOR */
        .addr-selector { position: relative; flex-shrink: 0; }

        .addr-selector-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: 7px;
            padding: 5px 10px;
            font-family: 'DM Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 600;
            color: var(--text);
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
            white-space: nowrap;
        }

        .addr-selector-btn:hover { border-color: var(--border-hover); background: var(--surface3); }
        .addr-selector-btn svg { color: var(--text-muted); flex-shrink: 0; }

        .addr-selector-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .addr-chevron { transition: transform 0.2s; }
        .addr-selector.open .addr-chevron { transform: rotate(180deg); }

        .addr-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            background: var(--midnight, #1A1830);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.14);
            z-index: 500;
            min-width: 230px;
            overflow: hidden;
            animation: popIn 0.15s ease;
        }

        .addr-selector.open .addr-dropdown { display: block; }

        .addr-dropdown-header {
            padding: 9px 14px 7px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: var(--text-muted);
            border-bottom: 1px solid var(--border);
        }

        .addr-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
            cursor: pointer;
            transition: background 0.1s;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .addr-option:hover { background: var(--surface2); }
        .addr-option.active { background: var(--surface2); font-weight: 700; }

        .addr-option-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .addr-option-check {
            margin-left: auto;
            font-size: 13px;
        }

        .addr-option-sub {
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 400;
            display: block;
            margin-top: 1px;
        }

        /* MONTH VIEW */
        .month-view {
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
            min-height: 0;
        }

        .month-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            flex-shrink: 0;
        }

        .month-header div {
            padding: 10px 0;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.7px;
            color: var(--text-muted);
            border-bottom: 1px solid var(--border);
        }

        .month-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-template-rows: repeat(6, 1fr);
            flex: 1;
            overflow: hidden;
            min-height: 0;
        }

        .day-cell {
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            padding: 6px 8px;
            cursor: pointer;
            transition: background 0.1s;
            overflow: hidden;
            min-height: 0;
        }

        .day-cell:nth-child(7n) { border-right: none; }
        .day-cell:hover { background: var(--surface2); }

        .day-cell.is-today .day-number {
            background: var(--accent);
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .day-cell.other-month { opacity: 0.3; pointer-events: none; }

        .day-number {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 6px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .month-event {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 3px 6px;
            border-radius: 4px;
            margin-bottom: 2px;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: opacity 0.1s;
        }

        .month-event .month-event-text { overflow: hidden; text-overflow: ellipsis; }

        .month-event:hover { opacity: 0.8; }
        .month-event .event-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

        .month-event.confirmed  { background: var(--green-soft);  color: var(--green);  }
        .month-event.accepted   { background: var(--blue-soft);   color: var(--blue);   }
        .month-event.pending    { background: var(--amber-soft);  color: var(--amber);  }
        .month-event.applied    { background: var(--accent-soft); color: var(--accent); }

        .month-event.confirmed .event-dot  { background: var(--green);  }
        .month-event.accepted .event-dot   { background: var(--blue);   }
        .month-event.pending .event-dot    { background: var(--amber);  }
        .month-event.applied .event-dot    { background: var(--accent); }

        .more-events {
            font-size: 10px;
            color: var(--text-muted);
            padding: 2px 6px;
            cursor: pointer;
        }

        /* WEEK VIEW */
        .week-view {
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
        }

        .week-header {
            display: flex;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }

        .time-gutter { width: 64px; flex-shrink: 0; border-right: 1px solid var(--border); }

        .week-day-headers {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .week-day-header {
            flex: 1;
            text-align: center;
            padding: 10px 4px;
            border-right: 1px solid var(--border);
            font-size: 12px;
        }

        .week-day-header:last-child { border-right: none; }
        .week-day-header .wday { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
        .week-day-header .wnum { font-size: 20px; font-weight: 700; font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; margin-top: 2px; }
        .week-day-header.is-today .wnum { color: var(--accent); }

        .week-scroll-area {
            display: flex;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        .week-times {
            width: 64px;
            flex-shrink: 0;
            border-right: 1px solid var(--border);
        }

        .week-time-label {
            height: 60px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            padding: 4px 10px 0 0;
            font-size: 10px;
            font-weight: 600;
            color: var(--text-muted);
            letter-spacing: 0.3px;
            flex-shrink: 0;
        }

        .week-days-area {
            flex: 1;
            display: flex;
            position: relative;
        }

        .week-day-col {
            flex: 1;
            border-right: 1px solid var(--border);
            position: relative;
            min-width: 0;
        }

        .week-day-col:last-child { border-right: none; }

        .hour-line {
            position: absolute;
            left: 0;
            right: 0;
            border-top: 1px solid var(--border);
            pointer-events: none;
        }

        .hour-line.half { border-top: 1px dashed rgba(255,255,255,0.04); }

        .week-event {
            position: absolute;
            left: 3px;
            right: 3px;
            border-radius: 6px;
            padding: 5px 7px;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            overflow: hidden;
            transition: opacity 0.1s, transform 0.1s;
            border-left: 3px solid;
        }

        .week-event:hover { opacity: 0.85; transform: scale(1.01); }
        .week-event.confirmed  { background: var(--green-soft);  border-left-color: var(--green);  color: var(--green);  }
        .week-event.accepted   { background: var(--blue-soft);   border-left-color: var(--blue);   color: var(--blue);   }
        .week-event.pending    { background: var(--amber-soft);  border-left-color: var(--amber);  color: var(--amber);  }
        .week-event.applied    { background: var(--accent-soft); border-left-color: var(--accent); color: var(--accent); }

        .week-event .ev-title { font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .week-event .ev-time  { font-size: 10px; opacity: 0.8; margin-top: 1px; }

        .now-line {
            position: absolute;
            left: 0;
            right: 0;
            border-top: 2px solid var(--rose);
            z-index: 5;
            pointer-events: none;
        }

        .now-line::before {
            content: '';
            position: absolute;
            left: -4px;
            top: -4px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--rose);
        }

        /* DAY VIEW */
        .day-view {
            display: none;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
        }

        .day-header-bar {
            padding: 16px 24px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }

        .day-header-bar h3 {
            font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
            font-size: 18px;
            font-weight: 700;
        }

        .day-scroll-area {
            display: flex;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .day-times { width: 64px; flex-shrink: 0; border-right: 1px solid var(--border); }

        .day-time-label {
            height: 60px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            padding: 4px 10px 0 0;
            font-size: 10px;
            font-weight: 600;
            color: var(--text-muted);
        }

        .day-col {
            flex: 1;
            position: relative;
        }

        .day-hour-line {
            position: absolute;
            left: 0;
            right: 0;
            border-top: 1px solid var(--border);
        }

        .day-event {
            position: absolute;
            left: 12px;
            right: 12px;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            cursor: pointer;
            overflow: hidden;
            transition: opacity 0.1s;
            border-left: 4px solid;
        }

        .day-event:hover { opacity: 0.85; }
        .day-event.confirmed  { background: var(--green-soft);  border-left-color: var(--green);  color: var(--green);  }
        .day-event.accepted   { background: var(--blue-soft);   border-left-color: var(--blue);   color: var(--blue);   }
        .day-event.pending    { background: var(--amber-soft);  border-left-color: var(--amber);  color: var(--amber);  }
        .day-event.applied    { background: var(--accent-soft); border-left-color: var(--accent); color: var(--accent); }

        .day-event .ev-title { font-weight: 700; font-size: 13px; }
        .day-event .ev-time  { font-size: 11px; opacity: 0.8; margin-top: 2px; }
        .day-event .ev-desc  { font-size: 11px; opacity: 0.65; margin-top: 4px; }

        /* EVENT DETAIL MODAL */
        .event-detail-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            z-index: 1200;
            align-items: center;
            justify-content: center;
        }

        .event-detail-modal.open { display: flex; }

        .event-detail-content {
            background: var(--midnight, #1A1830);
            border: 1px solid var(--border);
            border-radius: 14px;
            width: 90%;
            max-width: 400px;
            padding: 24px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            animation: slideUp 0.2s ease;
        }

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

        .event-detail-title {
            font-family: 'Fraunces', serif;
            font-style: italic;
            font-weight: 300;
            font-size: 18px;
            letter-spacing: -0.3px;
            color: var(--text);
        }

        .event-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            margin-bottom: 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .event-badge.confirmed { background: var(--green-soft); color: var(--green); }
        .event-badge.accepted  { background: var(--blue-soft);  color: var(--blue); }
        .event-badge.pending   { background: var(--amber-soft); color: var(--amber); }
        .event-badge.applied   { background: var(--accent-soft);color: var(--accent); }

        .event-detail-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
            font-size: 13.5px;
        }

        .event-detail-row .icon { font-size: 14px; margin-top: 1px; opacity: 0.6; width: 18px; }
        .event-detail-row .val { color: var(--text); }
        .event-detail-row .lbl { color: var(--text-muted); font-size: 11px; font-weight: 600; }

        .event-detail-footer {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
        }

        .btn-close {
            background: var(--surface3);
            border: none;
            color: var(--text);
            border-radius: 8px;
            padding: 8px 18px;
            font-family: 'DM Sans', sans-serif;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s;
        }

        .btn-close:hover { background: var(--surface2); }

        /* DRAG SELECTION */
        .drag-selection {
            position: absolute;
            left: 3px;
            right: 3px;
            background: rgba(74,69,200,0.12);
            border: 2px solid var(--accent);
            border-radius: 6px;
            z-index: 20;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            overflow: hidden;
            transition: background 0.1s;
        }

        .drag-selection.overlap {
            background: rgba(255,96,88,0.12);
            border-color: var(--rose);
        }

        .drag-selection.overlap .drag-selection-label {
            display: none;
        }

        /* SELECTION CONFIRM POPOVER */
        .sel-popover {
            position: fixed;
            z-index: 2000;
            background: var(--midnight, #1A1830);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px 16px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.18);
            min-width: 220px;
			max-width: min(320px, calc(100vw - 20px));
            width: max-content;
            animation: popIn 0.15s ease;
        }

        @keyframes popIn {
            from { opacity: 0; transform: scale(0.95) translateY(4px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }

        .sel-popover-title {
            font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--text);
        }

        .sel-popover-time {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .sel-popover-time strong { color: var(--accent); }

        .sel-popover-warning {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            background: var(--rose-soft);
            border: 1px solid rgba(190,18,60,0.2);
            border-radius: 8px;
            padding: 8px 10px;
            font-size: 12px;
            color: var(--rose);
            font-weight: 500;
            margin-bottom: 12px;
        }

        .sel-popover-warning-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

        .sel-popover-actions { display: flex; gap: 8px; justify-content: flex-end; }

        .sel-btn-cancel {
            background: var(--surface2);
            border: none;
            border-radius: 7px;
            padding: 7px 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: background 0.15s;
        }

        .sel-btn-cancel:hover { background: var(--surface3); }

        .sel-btn-confirm {
            background: var(--accent);
            border: none;
            border-radius: 7px;
            padding: 7px 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: opacity 0.15s;
            box-shadow: 0 2px 8px var(--accent-glow);
        }

        .sel-btn-confirm:hover { opacity: 0.88; }
        .sel-btn-confirm:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

        /* Prevent text select while dragging */
        .no-select { user-select: none; -webkit-user-select: none; }

        /* HOURS STEPPER */
        .form-group { flex: 1; min-width: 160px; }

        .form-group label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .hours-stepper {
            display: flex;
            align-items: center;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            overflow: hidden;
            height: 42px;
            user-select: none;
        }

        .stepper-btn {
            width: 42px;
            height: 100%;
            flex-shrink: 0;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 20px;
            font-weight: 300;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.12s, color 0.12s;
            line-height: 1;
        }

        .stepper-btn:hover:not(:disabled) {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .stepper-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .stepper-value {
            flex: 1;
            text-align: center;
            font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            border-left: 1px solid var(--border);
            border-right: 1px solid var(--border);
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
        }

        .stepper-value .sv-num { color: var(--accent); }
        .stepper-value .sv-unit { font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }

        .end-time-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }

        .end-time-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .end-time-input {
            font-family: 'DM Sans', sans-serif;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
        }

        .form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

        /* SCROLLBARS */
        ::-webkit-scrollbar { width: 5px; height: 5px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 99px; }

        @media (max-width: 640px) {
            .nav-item { display: none; }
            .nav-item:first-child, .nav-item:last-child { display: list-item; }
            .current-period { min-width: 120px; font-size: 13px; }

            /* Month mobile: compact cells, color bars only */
            .day-cell { padding: 4px 3px; }
            .day-number { font-size: 11px; margin-bottom: 3px; width: 20px; height: 20px; }

            .month-event {
                padding: 2px 0;
                border-radius: 3px;
                gap: 0;
                height: 6px;
                min-height: 6px;
                margin-bottom: 2px;
            }
            .month-event .event-dot { display: none; }
            .month-event .month-event-text { display: none; }

            /* Strip text from month events on mobile — override with color bar */
            .month-event.confirmed  { background: var(--green);  }
            .month-event.accepted   { background: var(--blue);   }
            .month-event.pending    { background: var(--amber);  }
            .month-event.applied    { background: var(--accent); }

            .more-events { font-size: 9px; padding: 1px 2px; }

            /* Week mobile: thin bars with same soft bg as desktop, no text */
            .week-event {
                padding: 0;
                border-radius: 3px;
                left: 1px;
                right: 1px;
            }
            .week-event .ev-title,
            .week-event .ev-time { display: none; }
            /* Opacity matches desktop — keep soft bg + colored border-left, just no text */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #0057e7;
            --secondary: #008744;
            --accent: #ffa726;
            --light: #f5f9ff;
            --dark: #2E2B4A;
            --gray: #e0e0e0;
            --success: #4caf50;
            --warning: #ff9800;
            --danger: #f44336;
        }

        body {
            background-color: #f8f9fa;
            color: var(--dark);
            line-height: 1.6;
        }

        /* Top Navigation Bar */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: white;
            padding: 15px 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .logo i {
            margin-right: 10px;
            color: var(--accent);
        }

        .nav-icons {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .nav-icon {
            position: relative;
            cursor: pointer;
            font-size: 1.3rem;
            color: var(--dark);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 0.7rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .profile-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--light);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            overflow: hidden;
            border: 2px solid var(--gray);
        }

        .profile-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Main Content Layout */
        .container {
            display: flex;
            flex-direction: column;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .dashboard-header {
            margin-bottom: 25px;
        }

        .dashboard-header h1 {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }

        .dashboard-header p {
            color: var(--text-muted);
        }

        .content-area {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
        }

        /* Cards */
        .card {
            background: var(--surface);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-3px);
        }

        .card h2, .card h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: var(--dark);
        }

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

        .stat-card {
            background: var(--surface);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            text-align: center;
        }

        .stat-card h3 {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .stat-card .value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
        }

        /* Buttons */
        .button {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }

        .button.primary {
            background-color: var(--primary);
            color: white;
        }

        .button.primary:hover {
            background-color: #0046c0;
        }

        .button.secondary {
            background-color: #E8E6F0;
            color: #333;
        }

        .button.secondary.active {
            background-color: var(--primary);
            color: white;
        }

        .button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .button.danger {
            background-color: var(--danger);
            color: white;
        }

        /* Forms */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--gray);
            border-radius: 8px;
            font-size: 1rem;
            transition: border 0.3s;
        }

        .form-control:focus {
            border-color: var(--indigo, #4A45C8);
            outline: none;
        }

        /* Service Options */
        .service-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }

        .service-option {
            border: 2px solid var(--gray);
            border-radius: 10px;
            padding: 15px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            opacity: 0.6;
            position: relative;
        }

        .service-option:hover {
            border-color: var(--indigo, #4A45C8);
            transform: translateY(-3px);
            opacity: 1;
        }

        .service-option.selected {
            border-color: var(--indigo, #4A45C8);
            background-color: rgba(0, 87, 231, 0.05);
            opacity: 1;
        }

        .service-option i {
            font-size: 2rem;
            margin-bottom: 10px;
            color: var(--primary);
        }

        /* Submit Button */
        .submit-btn {
            width: 100%;
            padding: 14px;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        .submit-btn:hover {
            background-color: #0046c0;
        }

        /* Form Title */
        .form-title {
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: var(--dark);
            display: flex;
            align-items: center;
        }

        .form-title i {
            margin-right: 10px;
            color: var(--primary);
        }

        /* Section Tabs */
        .section-tabs {
            display: flex;
            border-bottom: 1px solid var(--gray);
            margin-bottom: 20px;
        }

        .tab {
            padding: 12px 20px;
            cursor: pointer;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }

        .tab.active {
            border-bottom: 3px solid var(--primary);
            color: var(--primary);
        }

        /* Filter Buttons */
        #bookingsFilter .button {
            border: 1px solid var(--gray);
            background: var(--surface);
            color: var(--dark);
        }

        #bookingsFilter .button.primary {
            background: var(--coral, #FF6058);
            color: white;
            border-color: var(--indigo, #4A45C8);
        }

        #bookingsFilter .button.secondary {
            background: var(--surface);
            color: var(--dark);
            border-color: var(--gray);
        }

        #bookingsFilter .button.secondary:hover {
            background: var(--light);
            border-color: var(--indigo, #4A45C8);
        }

        /* Booking Item */
        .booking-item {
            background: var(--card-bg);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border-left: 4px solid var(--coral, #FF6058);
            display: flex;
            align-items: center;
        }

        .booking-item:last-child {
            margin-bottom: 0;
        }
/* Ensure all main containers have same width behavior */
.navbar, .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.content-area {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.booking-form, .bookings-section {
    box-sizing: border-box;
    flex: 1;
    min-width: 300px;
    width: calc(50% - 10px);
}

/* Absolute positioning for action icons */
.booking-item {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.booking-actions {
    position: absolute;
    right: 20px;
    top: 45px; /* Moved down further to make more room for timestamp */
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Booking timestamp styling - only for relative timestamps */
.booking-timestamp[data-relative="true"] {
    cursor: pointer;
    transition: color 0.2s;
}
.booking-timestamp[data-relative="true"]:hover {
    color: var(--primary) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .navbar, .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .content-area {
        flex-direction: column;
    }
    
    .booking-form, .bookings-section {
        width: 100%;
    }
}


        @media (max-width: 768px) {
            .booking-item {
                padding: 15px;
            }
        }

        .booking-details {
            flex: 1;
            min-width: 0;
            max-width: calc(100% - 40px);
        }

        .booking-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 1.2rem;
            overflow-wrap: break-word;
        }

        .shared-badge {
            background: #eef6ff;
            color: #1d6ae5;
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 6px;
            margin-left: 8px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            cursor: pointer;
        }

        .booking-meta {
            display: flex;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .booking-meta div {
            margin-right: 15px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .booking-actions {
            flex-shrink: 0;
            min-width: 30px;
        }

        .booking-status {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .status-applied {
            background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
            color: var(--warning);
        }

        .status-offered {
            background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
            color: var(--primary);
        }

        .status-offer_received {
            background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
            color: var(--primary);
        }

        .status-offer_sent {
            background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
            color: var(--primary);
        }

        .status-offer_received {
            background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
            color: var(--primary);
        }

        .status-pending {
            background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
            color: var(--warning);
        }

        .status-withdrawn {
            background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
            color: var(--text-muted);
        }

        .status-confirmed {
            background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
            color: var(--success);
        }

        .status-completed {
            background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
            color: var(--primary);
        }

        .status-cancelled {
            background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
            color: var(--danger);
        }

        .status-invited {
            background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
            color: var(--warning);
        }

        .status-accepted {
            background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
            color: var(--success);
        }

        .status-declined {
            background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
            color: var(--danger);
        }

        .status-has_applications {
            background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
            color: var(--primary);
        }

        /* Section Tabs */
        .section-tabs {
            display: flex;
            border-bottom: 1px solid var(--gray);
            margin-bottom: 20px;
        }

        .tab {
            padding: 12px 20px;
            cursor: pointer;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }

        .tab.active {
            border-bottom: 3px solid var(--primary);
            color: var(--primary);
        }

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

        .modal.show {
            display: flex;
        }

        .modal-content {
            background-color: white;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            max-height: 90vh;
            display: flex;
            flex-direction: column;
        }

        /* Modals with colored header need overflow hidden to show border-radius */
        #walletModal .modal-content,
        #helpModal .modal-content,
        #notificationsModal .modal-content,
        #settingsModal .modal-content {
            overflow: hidden;
        }

        /* Profile modals: header needs border-radius, body needs scroll */
        #profileModal .modal-content,
        #profileDetailsModal .modal-content {
            overflow: hidden;
        }

        #profileModal .modal-header,
        #profileDetailsModal .modal-header {
            border-radius: 12px 12px 0 0;
        }

        #profileModal .modal-body,
        #profileDetailsModal .modal-body {
            overflow-y: auto;
            flex: 1;
        }

        /* Bottom Sheet Modals for Profile Editing */
        .overlay-modal {
            align-items: flex-end;
            justify-content: center;
        }

        .bottom-sheet {
            width: 100%;
            max-width: 500px;
            max-height: 85vh;
            border-radius: 20px 20px 0 0;
            margin: 0;
            animation: slideUpSheet 0.25s ease;
        }

        @keyframes slideUpSheet {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        .modal-handle {
            width: 40px;
            height: 4px;
            background: var(--gray);
            border-radius: 2px;
            margin: 12px auto;
            flex-shrink: 0;
        }

        .modal-footer {
            padding: 16px 20px 24px;
            flex-shrink: 0;
        }

        .modal-footer .button {
            width: 100%;
            padding: 14px;
            font-size: 16px;
            font-weight: 500;
        }

        /* Profile Toast Notification */
        .profile-toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--text);
            color: var(--surface);
            padding: 12px 24px;
            border-radius: 24px;
            font-size: 14px;
            font-weight: 500;
            z-index: 10000;
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
            pointer-events: none;
            white-space: nowrap;
        }

        .profile-toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Avatar crop modal uses .show class */
        #avatarCropModal.show {
            display: flex;
        }

        #avatarCropModal .modal-content {
            overflow: hidden;
            width: 90%;
            max-width: 500px;
        }

        #avatarCropModal .modal-header {
            border-radius: 12px 12px 0 0;
            padding: 16px 20px;
        }

        #avatarCropModal .modal-body {
            overflow: hidden;
            flex: 1;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #000;
            min-height: 300px;
        }

        #avatarCropModal .modal-footer {
            padding: 16px 20px 20px;
            display: flex;
            gap: 10px;
        }

        #avatarCropModal .modal-footer .button {
            flex: 1;
        }

        #shareBookingModal .modal-content {
            max-height: 85vh;
            height: auto;
            max-width: 550px;
            overflow-y: auto;
        }

        #messagesModal .modal-content {
            max-width: 800px;
            height: calc(90vh - 40px);
            overflow: hidden;
        }

        .modal-header {
            padding: 20px;
            background-color: var(--primary);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Messages modal header stays sticky */
        #messagesModal .modal-header {
            position: sticky;
            top: 0;
            z-index: 100;
            flex-shrink: 0;
        }

        /* Profile modal headers should not shrink */
        #profileDetailsModal .modal-header,
        #profileModal .modal-header {
            flex-shrink: 0;
        }

        .modal-header h3 {
            margin: 0;
        }

        .close-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .modal-body {
            padding: 20px;
        }

        #messagesModal .modal-body {
            padding: 0;
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
        }

        #messagesModal .messages-layout {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .modal-footer {
            padding: 15px 20px;
            background-color: #f5f5f5;
            text-align: right;
        }

        /* Profile Modal */
        .profile-menu {
            list-style: none;
        }

        .profile-menu li {
            padding: 12px 15px;
            border-bottom: 1px solid var(--gray);
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: background 0.3s;
        }

        .profile-menu li:last-child {
            border-bottom: none;
        }

        .profile-menu li:hover {
            background-color: var(--light);
        }

        .profile-menu i {
            margin-right: 15px;
            width: 20px;
            text-align: center;
        }

        /* Notification Item */
        .notification-item {
            padding: 15px;
            border-bottom: 1px solid var(--gray);
            display: flex;
            align-items: flex-start;
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--light);
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .notification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 600;
            margin-bottom: 5px;
        }

        .notification-time {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* Messages Layout */
        .messages-layout {
            display: flex;
            height: 100%;
            border: 1px solid var(--gray);
            background: var(--surface);
            border-radius: 12px;
        }

        .conversation-list {
            width: 280px;
            border-right: 1px solid var(--gray);
            overflow-y: auto;
            flex-shrink: 0;
        }

        .conversation-item {
            padding: 14px;
            cursor: pointer;
            border-bottom: 1px solid var(--border);
        }

        .conversation-item:hover {
            background: var(--light);
        }

        .chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow: hidden;
        }

        .chat-header {
            display: flex;
            align-items: center;
            padding: 15px 15px;
            border-bottom: 1px solid var(--gray);
            font-weight: 600;
            background-color: var(--primary);
            color: white;
            min-height: 70px;
            gap: 10px;
            flex: 0 0 auto;
        }

        .messages-box {
            flex: 1 1 auto;
            padding: 15px;
            overflow-y: auto;
            background-color: #f0f4f8;
        }

        .chat-input {
            display: flex;
            border-top: 1px solid var(--gray);
            padding: 10px;
            background: var(--surface);
            flex: 0 0 auto;
        }

        .back-btn {
            display: none;
            margin-right: 10px;
            border: none;
            background: none;
            font-size: 18px;
            cursor: pointer;
            color: white;
        }

        .maximize-btn {
            margin-left: auto;
            border: none;
            background: none;
            font-size: 16px;
            cursor: pointer;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            transition: background 0.2s;
        }

        .maximize-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .toggle-list-btn {
            border: none;
            background: none;
            font-size: 16px;
            cursor: pointer;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            transition: background 0.2s;
        }

        .toggle-list-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Hide conversation list */
        .conversation-list-container.hidden {
            display: none;
        }

        /* Conversation list overlay when maximized */
        .conversation-list-container.overlay {
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            width: 300px;
            background: var(--surface);
            z-index: 2001;
            box-shadow: 2px 0 10px rgba(0,0,0,0.2);
            overflow-y: auto;
            padding-top: 50px;
        }

        /* Close button for overlay list */
        .close-list-btn {
            display: none;
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 30px;
            color: var(--text-muted);
            cursor: pointer;
            z-index: 2002;
            background: none;
            border: none;
            line-height: 1;
            padding: 5px;
        }

        .conversation-list-container.overlay .close-list-btn {
            display: block;
        }

        .close-list-btn:hover {
            color: #333;
        }

        /* Maximized chat pane */
        .chat-area.maximized {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            border-radius: 0;
        }

        .chat-area.maximized .chat-header {
            border-radius: 0;
        }

        .messages-box {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            background-color: #f0f4f8;
        }

        .msg {
            margin-bottom: 10px;
            padding: 10px 15px;
            border-radius: 18px;
            max-width: 80%;
        }

        .msg.sent {
            margin-left: auto;
            background-color: var(--primary);
            color: white;
        }

        .msg.received {
            background-color: white;
            border: 1px solid var(--gray);
        }

        .chat-input {
            display: flex;
            border-top: 1px solid var(--gray);
            padding: 10px;
            background: var(--surface);
        }

        .chat-input input {
            flex: 1;
            padding: 12px;
            border: 1px solid var(--gray);
            border-radius: 20px;
            font-size: 14px;
            margin-right: 10px;
        }

        .chat-input button {
            padding: 12px 16px;
            border: none;
            background: var(--coral, #FF6058);
            color: white;
            cursor: pointer;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Toast */
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #1A1830;
            color: #fff;
            padding: 20px 30px;
            border-radius: 8px;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 9999;
            max-width: 80%;
            min-width: 300px;
            text-align: center;
            white-space: pre-line;
        }

        /* Hidden */
        .hidden {
            display: none !important;
        }

        .content-area.hidden {
            display: none !important;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .card {
                transition: none;
                padding: 20px 10px;
            }

            .card:hover {
                transform: none;
            }

            .content-area {
                flex-direction: column;
            }

            .navbar {
                padding: 12px 15px;
            }

            .logo {
                font-size: 1.2rem;
            }

            .nav-icons {
                gap: 15px;
            }

            .nav-icon {
                font-size: 1.1rem;
            }

            .profile-icon {
                width: 35px;
                height: 35px;
            }

            .messages-layout {
                flex-direction: column;
                height: 100%;
            }

            .conversation-list-container {
                width: 100%;
            }

            .conversation-list {
                width: 100%;
                border-right: none;
            }

            .chat-area {
                display: none;
                height: 100%;
                flex-direction: column;
            }

            .chat-area.active {
                display: flex;
            }

            .back-btn {
                display: block;
            }

            .booking-actions {
                right: 0 !important;
            }
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--gray);
        }
		
		.modal-footer {
			display: flex;
			align-items: center;
			justify-content: flex-end;
			gap: 10px;
		}

		.modal-footer .button {
			min-height: 44px;
			height: auto; /* Allow height to adjust based on content */
		}

		/* Ensure all buttons have the same height by using flex align-items */
		.modal-footer {
			align-items: stretch; /* This will make children stretch to same height */
		}

		.modal-footer .button {
			display: flex;
			align-items: center;
			justify-content: center;
			min-height: 44px;
		}


        .email-suggestions-list {
            background: var(--surface);
        }
        .email-suggestion-item {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid var(--border);
        }
        .email-suggestion-item:hover {
            background-color: var(--light);
        }
        .email-suggestion-item:last-child {
            border-bottom: none;
        }
        .shared-users-list li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
            background: var(--light);
            border-radius: 8px;
            margin-bottom: 8px;
        }
        .shared-user-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .shared-user-email {
            font-weight: 500;
        }
        .shared-user-permission {
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: capitalize;
        }
        .shared-users-list li .button {
            padding: 6px 10px;
            min-height: auto;
        }
        
        /* Helper Application Card */
        .helper-application-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: var(--light);
            border-radius: 8px;
            margin-bottom: 10px;
            border: 2px solid transparent;
            transition: all 0.3s;
        }
        
        .helper-application-card.selected {
            border-color: var(--indigo, #4A45C8);
            background: rgba(74,69,200,0.05);
        }
        
        .helper-application-card:hover {
            border-color: var(--indigo, #4A45C8);
        }
        
        .helper-application-info {
            flex: 1;
        }
        
        .helper-application-name {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 4px;
        }
        
        .helper-application-details {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        .helper-application-card .select-helper-btn {
            margin-left: 15px;
            padding: 8px 16px;
            min-height: auto;
        }
        
        /* Priority Badge */
        .priority-badge {
            display: inline-block;
            padding: 4px 10px;
            background: var(--coral, #FF6058);
            color: white;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-left: 8px;
        }
        
        /* Countdown Timer */
        .countdown-timer {
            display: inline-block;
            padding: 4px 10px;
            background: var(--warning);
            color: white;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-left: 8px;
        }
        
        .countdown-timer.expired {
            background: var(--danger);
        }
        
        /* Waiting List Item */
        .waiting-list-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: var(--surface);
            border: 1px solid var(--gray);
            border-radius: 8px;
            margin-bottom: 10px;
        }
        
        .waiting-list-item.priority-1 {
            border-left: 4px solid var(--coral, #FF6058);
            background: rgba(74,69,200,0.05);
        }
        
        .waiting-list-item.priority-2,
        .waiting-list-item.priority-3 {
            border-left: 4px solid var(--secondary);
        }

        /* Job Meta */
        .job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 14px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .job-meta-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Booking Right Column */
        .booking-right {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .booking-price {
            font-size: 1.5rem;
            font-weight: 300;
            color: var(--text);
            font-family: 'Fraunces', serif;
        }

        /* Booking/Order Item */
        .booking-item {
            font-family: 'DM Sans', sans-serif;
        }
        .booking-title {
            font-family: 'DM Sans', sans-serif;
        }
