:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --input-bg: #2c2c2c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #E60023; /* Premium Red */
    --accent-hover: #b3001b;
    --border-color: #333333;
    --success-color: #4caf50;
    --warning-color: #ffc107;
    --critical-color: #f44336;
    --blue-highlight: #2196f3;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100dvh; /* dvh adapts to Android Chrome's URL bar height */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;   /* Prevent horizontal bleed */
    overflow-y: visible;  /* Explicitly allow vertical scrolling on Android */
    overscroll-behavior: auto; /* Allow native rubber-band / momentum scrolling */
}

/* --- Main Layout --- */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
}

/* --- Facebook Style App Bar (Tier 1) --- */
.app-bar {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1100; /* Above summary (1000) but below modals (2000) */
    border-bottom: 1px solid #222;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.brand-title {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0;
}

.action-row {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3A3B3C; /* Facebook Dark Gray Button */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    flex-shrink: 0; /* Prevent squishing */
    color: white;         /* Prevent anchor link from going purple */
    text-decoration: none; /* Belt-and-suspenders for <a> wrappers */
}

.icon-btn:hover {
    background-color: #4E4F50;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    color: white; /* For currentColor-based SVGs */
}

/* Custom Create Button: Circle > Square > Plus */
.create-btn .inner-square {
    width: 24px;
    height: 24px;
    background-color: #58595A; /* Slightly lighter square */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-btn .inner-square svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.global-match-badge {
    background: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Notification Badge on Header */
.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px; /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg); /* Cutout effect matches header bg */
    padding: 0 4px;
}

.badge-count.hidden {
    display: none;
}

/* Hide the old top-modal if it still exists in CSS memory */
.top-modal {
    display: none;
}

/* --- Search & Inputs --- */
.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

input, select, textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    width: 100%;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #333;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
}

/* --- Reservations List --- */
.reservations-list {
    background-color: transparent; /* Remove white box */
    padding: 0 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Center content */
}

.reservations-list h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

/* --- Day Summary Bar --- */
.sticky-summary-wrapper {
    position: sticky;
    top: 60px; /* Aligns perfectly under the 60px header */
    z-index: 1000; /* Lower than modals (2000) but higher than cards */
    background-color: var(--bg-color);
    padding: 10px 0;
    border-bottom: 1px solid #222;
    margin-top: -5px;
    width: 100%;
}

.day-summary-bar {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin: 0 auto 10px auto;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.summary-row:first-child {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.summary-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-item span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 900;
}

/* Date Navigation Styles */
.date-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: transparent;
    padding: 0 10px;
}

.date-navigation button {
    background-color: transparent;
    color: var(--accent-color); /* Red arrows */
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s;
}

.date-navigation button:hover {
    transform: scale(1.2);
    background-color: transparent;
}

.date-display-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#current-date-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1; /* Text below input */
}

/* Invisible Date Picker Overlay */
#date-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Invisible */
    cursor: pointer;
    z-index: 2; /* On top of text */
    padding: 0;
    margin: 0;
    border: none;
    -webkit-appearance: none; /* Remove default styling */
}

/* Remove internal calendar icon in WebKit browsers if visible */
#date-picker::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

/* Hide the clear button on desktop Chrome/Edge */
#date-picker::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

/* Hide the spinner on desktop Chrome/Edge */
#date-picker::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
}

/* --- Reservation Cards --- */
#reservations-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reservation-card-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    overflow: visible; /* Allow chat badge to float outside */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; /* Ensure absolute children are positioned relative to this card */
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Reservation Card Highlight Glow */
@keyframes cardHighlightGlow {
    0% { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); transform: translateY(0); }
    50% { box-shadow: 0 0 25px var(--accent-color); transform: translateY(-4px); }
    100% { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); transform: translateY(0); }
}

.card-highlight-active {
    animation: cardHighlightGlow 3s ease-in-out;
    z-index: 100;
}

.reservation-card-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

/* Status Borders */
.reservation-card-wrapper.checked-in {
    border-left: 4px solid var(--success-color);
}

.reservation-card-wrapper.assigned {
    border-left: 4px solid var(--success-color);
}

.reservation-card-wrapper.warning {
    border-left: 4px solid var(--warning-color);
}

.reservation-card-wrapper.critical {
    border-left: 4px solid var(--critical-color);
}

/* --- Returning Guest Badge --- */
.returning-guest-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.returning-guest-badge::after {
    content: "RETURN";
    position: absolute;
    top: 10px;
    right: -18px;
    width: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8B0000 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    text-align: center;
    padding: 3px 0;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    width: 100%;
    overflow: hidden; /* Contain children */
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1; /* Take up available space */
    min-width: 0; /* Critical for ellipsis to work in flex */
    margin-right: 15px; /* Gap between text and badges */
}

.reservation-name, .left-section div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Add ... to long addresses/names */
}

.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align to the right */
    justify-content: center;
    text-align: right;
    flex-shrink: 0; /* Never shrink the badges/time */
    min-width: 100px;
}

.package-badge-container {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap; /* Wrap if absolutely necessary, though names are now short */
    max-width: 180px; /* Limit badge area width */
}

/* ... existing badge styles ... */

.modern-badge.couples {
    background: linear-gradient(135deg, rgba(20, 180, 150, 0.25), rgba(10, 150, 130, 0.5));
    color: #4df3c5;
    border-color: rgba(20, 180, 150, 0.35);
    box-shadow: 0 0 12px rgba(20, 180, 150, 0.2);
}

.modern-badge.standard {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border-color: rgba(255, 255, 255, 0.1);
}

.pickup-time {
    font-size: 1.6rem; /* Make it the hero */
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
}

.dropoff-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
}

.order-number-blue {
    font-weight: 600;
    color: var(--blue-highlight);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* Expansion Row (Assigned Driver Info) */
.expansion-row {
    background-color: rgba(76, 175, 80, 0.1); /* Subtle green tint */
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
}

/* --- Modals (Dark Mode) --- */
#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker backdrop */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Very high z-index */
}
/* --- Bottom Sheet Menu --- */
.menu-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-sheet-overlay.visible {
    display: flex;
    opacity: 1;
}

.menu-sheet {
    width: 100%;
    background: #121212;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    border-top: 1px solid #333;
}

.menu-sheet-overlay.visible .menu-sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 0 auto 20px;
}

/* --- Responsive Side-Drawer Menu for Desktop/Tablets --- */
@media (min-width: 768px) {
    .menu-sheet-overlay {
        align-items: stretch;
        justify-content: flex-end;
    }

    .menu-sheet {
        width: 420px;
        max-width: 100%;
        height: 100vh;
        border-radius: 24px 0 0 24px;
        border-top: none;
        border-left: 1px solid #222;
        transform: translateX(100%) translateY(0) !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        display: flex;
        flex-direction: column;
        padding: 30px 24px;
        overflow-y: auto;
    }

    .menu-sheet-overlay.visible .menu-sheet {
        transform: translateX(0) translateY(0) !important;
    }

    .sheet-handle {
        display: none !important;
    }
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.sheet-header h3 {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #666;
    font-weight: 800;
}

.sheet-close {
    background: #222;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.sheet-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sheet-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.sheet-item:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.sheet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--accent-color, #EE1C23);
    margin-bottom: 2px;
}

.sheet-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8px;
}

.sheet-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ccc;
}

.sheet-extensions {
    margin: 0 0 20px 0;
}

.extension-item {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: 12px;
}

.extension-item:hover {
    background: #252525;
    border-color: #3f3f3f;
}

.extension-item:active {
    transform: scale(0.98);
    background: #2A2A2A;
}

.ext-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: var(--accent-color, #EE1C23);
    flex-shrink: 0;
}

.ext-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8px;
}

.ext-content {
    flex: 1;
}

.ext-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 2px;
}

.ext-subtitle {
    font-size: 0.75rem;
    color: #888;
}

.ext-arrow {
    color: #444;
    font-size: 1.2rem;
    font-weight: 900;
}

.sheet-footer {
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 10px;
}

.sheet-logout-btn {
    width: 100%;
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #ff4444;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.sheet-logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.4);
}

.sheet-logout-btn:active {
    transform: scale(0.98);
    background: rgba(255, 68, 68, 0.15);
    border-color: #ff4444;
}

.hidden {
    display: none !important;
}

/* --- Stepper UI (Change Count) --- */
.stepper-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #252525;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.stepper-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stepper-label strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.stepper-label span {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.stepper-btn:active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(0.9);
}

.stepper-value {
    font-size: 1.8rem;
    font-weight: 900;
    min-width: 30px;
    text-align: center;
    color: var(--accent-color);
}

#details-modal, #add-driver-modal {
    background-color: #1a1a1a;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    z-index: 2001; /* Above backdrop */
}

/* Ensure hidden state applies to the modal content wrappers too if logic requires it, 
   though usually we hide the backdrop. Just in case: */
#details-modal.hidden, #add-driver-modal.hidden {
    display: none;
}

/* --- Modern Modal Internals --- */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Modern Close Button */
.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem; /* Larger touch target */
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal Content Grid */
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

.detail-item strong {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    opacity: 0.7;
}

.detail-item span, .detail-item div {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Notes Section */
.notes {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    color: var(--text-primary);
}

.notes strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.notes p {
    margin: 0;
    line-height: 1.5;
    color: #ddd;
}

/* Modal Footer Actions */
.modal-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end; /* Right align buttons */
    gap: 12px;
}

.modal-footer button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color) !important;
}

.secondary-btn:hover {
    border-color: var(--text-primary) !important;
    color: var(--text-primary);
}

/* Primary Action styling for buttons inside modal (add specific classes if needed in JS) */
#details-modal button.primary-action { 
    background-color: var(--accent-color);
    color: white;
}

#details-modal button.primary-action:hover {
    background-color: var(--accent-hover);
}

@media (min-width: 500px) {
    .detail-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .detail-item strong {
        margin-bottom: 0;
    }
}

/* Driver List in Modal */
.driver-list {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.driver-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    transition: background-color 0.2s;
}

.driver-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.driver-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.driver-card .driver-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.driver-card .driver-phone {
    display: none; /* Hide phone number per request */
}

.driver-card .driver-bus-type {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.driver-card .assign-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.85rem;
    background-color: var(--accent-color);
    border-radius: 6px;
    margin: 0; /* Remove default margins */
}


/* Quick Menu */
.quick-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2999;
}

.quick-menu-container {
    position: absolute;
    background-color: #252525;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 3000;
    overflow: hidden;
}

.quick-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quick-menu-item:last-child {
    border-bottom: none;
}

.quick-menu-item:hover {
    background-color: #333;
}

.quick-menu-item.destructive {
    color: var(--critical-color);
}

.quick-menu-item.destructive:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

/* --- Misc --- */
.pull-to-refresh-indicator {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

.spinner {
    border-left-color: var(--accent-color);
}

/* --- Notification Bar (System Alert) --- */
.notification-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    cursor: pointer;
    transform: translateY(100%); /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.notification-bar.visible {
    transform: translateY(0);
}

.notification-bar:hover {
    background-color: var(--accent-hover);
}

.notification-icon {
    width: 20px;
    height: 20px;
    fill: white;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Bottom Sheet Messaging Window */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Full screen - feels like a new page */
    background-color: #1a1a1a;
    border-top-left-radius: 0; /* Remove radius for full screen */
    border-top-right-radius: 0;
    z-index: 2500;
    transform: translateY(100%); /* Start off-screen */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    margin: 8px auto 4px; /* Reduced bottom margin significantly */
}

.sheet-header {
    padding: 6px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
}

/* Chat Tabs */
.chat-tabs {
    display: flex;
    background: #111;
    border-bottom: 1px solid var(--border-color);
}

.chat-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.chat-tab.active {
    color: var(--accent-color);
}

.chat-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.chat-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-back-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    margin-right: 4px;
    transform: translateY(-5px);
}

.chat-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
    display: flex;
    align-items: center;
    transform: translateY(-5px);
}

.sheet-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-5px);
}

/* --- Global Inbox (Messenger Style) --- */

.inbox-list {

    display: flex;

    flex-direction: column;

}



.inbox-item {

    display: flex;

    align-items: center;

    padding: 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    cursor: pointer;

    transition: background-color 0.2s;

}



.inbox-item:hover {

    background-color: rgba(255, 255, 255, 0.05);

}



.inbox-item.unread {

    background-color: rgba(230, 0, 35, 0.05);

}



.inbox-item.unread .msg-snippet {

    color: var(--text-primary);

    font-weight: 600;

}



.avatar {

    width: 50px;

    height: 50px;

    background-color: #333;

    border-radius: 50%;

    margin-right: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    color: #888;

    flex-shrink: 0;

}



.msg-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

    overflow: hidden;

}



.msg-name {

    font-size: 1rem;

    font-weight: 600;

    color: var(--text-primary);

    margin-bottom: 4px;

}



.msg-snippet {

    font-size: 0.9rem;

    color: var(--text-secondary);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.msg-meta {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    margin-left: 10px;

}



.msg-time {

    font-size: 0.75rem;

    color: var(--text-secondary);

    margin-bottom: 6px;

}



.unread-dot {

    width: 12px;

    height: 12px;

    background-color: var(--accent-color);

    border-radius: 50%;

}



/* --- Thread View (Chat Bubbles) --- */

.chat-thread-container {

    display: flex;

    flex-direction: column;

    height: 100%;

}



/* --- 3-Tier Chat Layout --- */

.chat-header-details-tier {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    top: -15px;
    z-index: 5;
}

.details-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-align: center;
    width: 100%;
}

.chat-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.chat-header-info::-webkit-scrollbar { display: none; }

.info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}

.info-item strong {
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px; /* More consistent padding */
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.chat-messages {

    flex: 1;

    overflow-y: auto;

    padding: 10px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.bubble {

    max-width: 75%;

    padding: 12px 16px;

    border-radius: 18px;

    font-size: 0.95rem;

    line-height: 1.4;

    position: relative;

}



.bubble.received {

    align-self: flex-start;

    background-color: #333;

    color: white;

    border-bottom-left-radius: 4px;

}



.bubble.sent {

    align-self: flex-end;

    background-color: var(--accent-color);

    color: white;

    border-bottom-right-radius: 4px;

}



.chat-input-area {

    padding: 16px;

    border-top: 1px solid var(--border-color);

    display: flex;

    gap: 10px;

    background-color: #1a1a1a;

}



.chat-input {

    flex: 1;

    padding: 12px;

    border-radius: 20px;

    border: none;

    background-color: #333;

    color: white;

}



/* --- Chat Polish & Typing --- */



.bubble-time {



    font-size: 0.65rem;



    color: var(--text-secondary);



    margin-top: 4px;



    display: block;



}







.sent .bubble-time { text-align: right; }







.receipt {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6); /* Soft white */
    margin-top: 2px;
    text-align: right;
    display: block;
}







.receipt.read { color: var(--success-color); }







/* Typing Dots Animation */
.typing-bubble {
    align-self: flex-start;
    background-color: #333;
    padding: 10px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
    width: fit-content;
    margin-bottom: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

#staff-typing-label {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#staff-typing-label .typing-bubble {
    margin-bottom: 0;
    padding: 8px 12px;
    background-color: #2a2a2a;
}

#staff-typing-label .typing-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

#staff-typing-label .username {
    color: var(--accent-color);
    font-weight: 700;
}

.hidden { display: none !important; }













/* Card Level Chat Icon (Notification Bubble) */
.card-chat-trigger {
    display: none; /* Hidden by default */
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 20; /* High z-index to float above */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.card-chat-trigger.has-unread {
    display: flex;
    animation: pulse-glow 2s infinite;
}

.card-chat-trigger:hover {
    transform: scale(1.1);
}

.card-chat-trigger svg {
    width: 20px !important;
    height: 20px !important;
    fill: var(--accent-color); /* Red Icon */
    pointer-events: none;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(230, 0, 35, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(230, 0, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 0, 35, 0); }
}
.sheet-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}


/* Date Navigation Styles (Tier 2) */
.date-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    background-color: #252525;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.date-navigation button {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.date-navigation button:hover {
    color: var(--accent-color);
}
/* --- Reservation Cards (Tier 3) --- */
#reservations-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Large gap for floating badges */
    width: 100%;
    max-width: 600px;
    padding-bottom: 80px;
}


/* Modern Send Button */
.send-btn {
    background-color: var(--accent-color);
    border: none;
    color: white;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.send-btn:hover {
    background-color: var(--accent-hover);
}

/* --- Header Dropdown Menu --- */
.header-dropdown {
    position: absolute;
    top: 50px; /* Below the button */
    right: 0; /* Anchor to right edge */
    width: 220px;
    background-color: #252525;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 3000;
    overflow: hidden;
    padding: 8px 0;
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.create-btn.active {
    background-color: var(--accent-color) !important;
}

.create-btn.active .inner-square {
    background-color: rgba(255,255,255,0.2);
}

/* --- Guest List View --- */
#guest-list-view {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px 100px; 
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    text-align: center;
    margin-bottom: 30px;
}

.view-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.view-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.guest-list-form {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-preview-container {
    margin-top: 10px;
    padding: 15px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.link-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

#gl-generated-link {
    font-family: monospace;
    color: var(--blue-highlight);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-only-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.icon-only-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.icon-only-btn:hover svg {
    fill: white;
}

/* --- View Toggles (Vegas Specific) --- */
.view-toggles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    background-color: #252525;
    padding: 5px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.toggle-btn.active {
    background-color: var(--accent-color);
    color: white;
}

/* --- Package Selection Grid --- */
.package-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.package-btn {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.package-btn:hover {
    border-color: var(--accent-color);
    background-color: #1a1a1a;
    transform: translateX(4px);
}

.pkg-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.pkg-info-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pkg-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pkg-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.pkg-price {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.pkg-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-btn.expanded .pkg-description {
    -webkit-line-clamp: unset;
    display: block;
}

/* --- Summary View --- */
.summary-trigger-btn {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    background-color: #252525;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.summary-trigger-btn:hover {
    background-color: #333;
}

.summary-container {
    margin-top: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.summary-header h3 {
    margin: 0;
    color: var(--text-primary);
}

#close-summary-btn {
    font-size: 2.2rem;
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 0 4px 0; /* Optical centering for times character */
    border: 1px solid rgba(255,255,255,0.1);
}

#close-summary-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

#close-summary-btn:active {
    transform: scale(0.95);
}

.timeframe-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.time-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
}

.time-tab.active {
    color: var(--accent-color);
}

.time-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-card {
    background-color: var(--bg-color);
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.highlight {
    color: var(--success-color);
}

/* 2025 Modern Pill Badges */
.modern-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.modern-badge.mosc {
    background: #000;
    color: #FFD700;
    border: 1px solid #FFD700;
    font-weight: 800;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.modern-badge.bottle {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 134, 11, 0.45));
    color: #ffd700;
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.modern-badge.guestlist {
    background: linear-gradient(135deg, rgba(230, 0, 35, 0.2), rgba(179, 0, 27, 0.4));
    color: #ff4d4d;
    border-color: rgba(230, 0, 35, 0.3);
    box-shadow: 0 0 12px rgba(230, 0, 35, 0.15);
}

.modern-badge.transport {
    background: rgba(255, 255, 255, 0.08);
    color: #888;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.modern-badge.drinks {
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.2), rgba(0, 150, 255, 0.4));
    color: #00D1FF;
    border-color: rgba(0, 209, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 209, 255, 0.15);
}

.modern-badge.bachelor {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25), rgba(142, 68, 173, 0.5));
    color: #df9bff;
    border-color: rgba(155, 89, 182, 0.35);
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.2);
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}
 / *   - - -   R e s e r v a t i o n   D e t a i l   A c t i o n   B u t t o n s   - - -   * / 
 . h e a d e r - a c t i o n - b t n   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
         b o r d e r :   1 p x   s o l i d   # 3 3 3 ; 
         c o l o r :   # f f f ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         l e t t e r - s p a c i n g :   1 p x ; 
 } 
 
 . h e a d e r - a c t i o n - b t n : h o v e r   { 
         b a c k g r o u n d :   v a r ( - - a c c e n t - c o l o r ) ; 
         b o r d e r - c o l o r :   v a r ( - - a c c e n t - c o l o r ) ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
         b o x - s h a d o w :   0   5 p x   1 5 p x   r g b a ( 2 3 0 ,   0 ,   3 5 ,   0 . 3 ) ; 
 } 
 
 . h e a d e r - a c t i o n - b t n : a c t i v e   { 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
  
 
/* 2026 High-Signal Rebook Animations */
@keyframes breathing-glow {
    0% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 15px rgba(255, 193, 7, 0.5); transform: scale(1.02); }
    100% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.2); transform: scale(1); }
}

@keyframes success-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.rebook-status-pill {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
}

.rebook-status-pill.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    animation: breathing-glow 2s infinite ease-in-out;
}

.rebook-status-pill.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rebook-status-pill.offer {
    background: rgba(230, 0, 35, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(230, 0, 35, 0.2);
}

.rebook-status-pill.offer:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.01);
}

/* 2026 Sleek Chat Link Buttons */
.chat-action-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E60023;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3);
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.chat-action-link-btn:hover {
    background: #ff002b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
}

.chat-action-link-btn .icon {
    font-size: 1rem;
}

.bubble.sent .chat-action-link-btn {
    background: white;
    color: #E60023 !important;
}

.bubble.sent .chat-action-link-btn:hover {
    background: #f0f0f0;
}

/* Tab Unread Badges */
.chat-tab {
    position: relative;
    padding: 12px 10px;
}

.tab-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    background: #E60023;
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #121212;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* --- Bottom Sheet Menu (Moved & Unified Above) --- */

/* --- Stepper UI (Change Count) --- */
.stepper-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #252525;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.stepper-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stepper-label strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.stepper-label span {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.stepper-btn:active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(0.9);
}

.stepper-value {
    font-size: 1.8rem;
    font-weight: 900;
    min-width: 30px;
    text-align: center;
    color: var(--accent-color);
}

.hidden {
    display: none !important;
}

/* --- Rachel's Portal Custom Accordion Menu --- */
body.rachels-portal .rachels-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Thin space between each accordion section */
    width: 100%;
}

body.rachels-portal .rachels-accordion-header {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: 4px; /* Thin space matching headers */
    width: 100%;
}

body.rachels-portal .rachels-accordion-header:hover {
    background: #252525;
    border-color: #3f3f3f;
}

body.rachels-portal .rachels-accordion-header:active {
    transform: scale(0.98);
    background: #2a2a2a;
}

body.rachels-portal .rachels-accordion-header.active {
    border-color: #C8102E; /* Crimson border when active */
}

body.rachels-portal .rachels-accordion-arrow {
    color: #444;
    font-size: 1.2rem;
    font-weight: 900;
}

body.rachels-portal .rachels-accordion-header.active .rachels-accordion-arrow {
    color: #C8102E;
}

body.rachels-portal .rachels-accordion-content {
    background: #121212;
    padding: 10px 5px 15px 5px;
    border-radius: 0 0 12px 12px;
}

body.rachels-portal .rachels-square-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

/* Thin space matching accordion sections */

body.rachels-portal .rachels-square-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

body.rachels-portal .rachels-square-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

body.rachels-portal .rachels-square-item:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.08);
    border-color: #C8102E; /* Crimson accent on active */
}

body.rachels-portal .rachels-square-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #C8102E; /* Crimson Icons for Rachel's */
}

body.rachels-portal .rachels-square-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

body.rachels-portal .rachels-square-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ccc;
}

/* Force bottom sheet to be exactly full-screen (100% height, zero border radius, top 0) on Rachel's */
body.rachels-portal .bottom-sheet {
    height: 100% !important;
    max-height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
}

body.rachels-portal {
    --accent-color: #C8102E !important; /* Elegant Rachel's Crimson Red */
    --accent-hover: #9c0b20 !important;  /* Darker Crimson hover */
}
