/* ===== CSS Variables ===== */
:root {
    --bg: #0d0f14;
    --surface: #161a24;
    --surface2: #1e2435;
    --border: #2a3045;
    --accent: #f5a623;
    --accent2: #ff6b35;
    --text: #e8eaf0;
    --text-muted: #7a8299;
    --success: #2ecc71;
    --danger: #e74c3c;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem;
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-right: auto;
}

.nav-links { display: flex; gap: 0.25rem; }

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); background: rgba(245,166,35,0.1); }

.nav-status {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.nav-status.online { color: var(--success); }
.nav-status.offline { color: var(--danger); }

/* ===== Main ===== */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ===== Page Header ===== */
.page-header { margin-bottom: 2.5rem; }

.page-title {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.accent { color: var(--accent); }

.page-sub {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* ===== Cards ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.step-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

/* ===== Form ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.form-input, .form-select {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}

.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-select:disabled { opacity: 0.4; cursor: not-allowed; }
.form-select option { background: var(--surface2); }

/* ===== Route Summary ===== */
.route-summary {
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.25);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.total-box {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(46,204,113,0.08);
    border: 1px solid rgba(46,204,113,0.25);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* ===== Seat Picker ===== */
.seat-empty {
    padding: 1rem;
    color: var(--text-muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.seat-picker {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.seat-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.seat-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid var(--border);
}
.seat-dot.available { background: var(--surface2); }
.seat-dot.selected { background: var(--accent); border-color: var(--accent); }
.seat-dot.booked { background: rgba(231,76,60,0.35); border-color: rgba(231,76,60,0.55); }
.seat-dot.female { background: rgba(214,92,190,0.25); border-color: rgba(214,92,190,0.65); }

.seat-window-mark {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-block;
    border-left: 3px solid #59b6ff;
    border-radius: 2px;
}

.bus-shell {
    max-width: 360px;
    background: #10141d;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.driver-row {
    width: fit-content;
    margin-left: auto;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    color: var(--text-muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.seat-map {
    display: grid;
    gap: 0.45rem;
}

.seat-row {
    display: grid;
    grid-template-columns: 44px 44px 24px 44px 44px;
    gap: 0.4rem;
    align-items: center;
}

.seat-aisle { width: 24px; }

.seat {
    position: relative;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface2);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.78rem;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.seat:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.seat.selected {
    background: var(--accent);
    color: #0d0f14;
    border-color: var(--accent);
    font-weight: 700;
}

.seat.booked {
    background: rgba(231,76,60,0.22);
    color: rgba(232,234,240,0.55);
    border-color: rgba(231,76,60,0.45);
    cursor: not-allowed;
}

.seat.female-reserved:not(.selected):not(.booked) {
    background: rgba(214,92,190,0.16);
    border-color: rgba(214,92,190,0.55);
}

.seat.window::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 4px;
    width: 3px;
    border-radius: 2px;
    background: #59b6ff;
}

.seat-summary {
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #0d0f14;
    font-weight: 700;
}
.btn-primary:hover { background: #ffb94a; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger {
    background: rgba(231,76,60,0.15);
    color: var(--danger);
    border: 1px solid rgba(231,76,60,0.3);
}
.btn-danger:hover { background: rgba(231,76,60,0.25); }

.btn-full { width: 100%; }
.btn-small {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
}

/* ===== Search card ===== */
.search-card .search-row { display: flex; gap: 1rem; align-items: center; }

/* ===== Bookings ===== */
.result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.booking-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.booking-item.active { border-left: 3px solid var(--success); }
.booking-item.cancelled { border-left: 3px solid var(--danger); opacity: 0.7; }

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

.booking-id {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.booking-status {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}
.status-active { background: rgba(46,204,113,0.15); color: var(--success); }
.status-cancelled { background: rgba(231,76,60,0.15); color: var(--danger); }

.booking-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.booking-field { margin-bottom: 0.5rem; }
.booking-field span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.booking-field strong { font-size: 0.9rem; }
.total-field strong { color: var(--accent); font-size: 1rem; }

.booking-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ===== Providers ===== */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.provider-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provider-header { display: flex; align-items: center; gap: 1rem; }
.provider-icon { font-size: 2rem; }
.provider-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.provider-meta { font-size: 0.8rem; color: var(--text-muted); }

.coverage-details summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0;
}
.coverage-details summary:hover { color: var(--text); }

.district-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.district-tag {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.policy-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    max-height: 280px;
    overflow-y: auto;
    line-height: 1.7;
}

/* ===== Districts / Routes ===== */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.district-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.district-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.district-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.district-count { font-size: 0.75rem; color: var(--text-muted); background: var(--surface2); padding: 0.2rem 0.5rem; border-radius: 4px; }

.price-range {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}
.price-label { color: var(--text-muted); }
.price-val { color: var(--accent); font-weight: 600; }

.stops-details summary {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem 0;
}
.stops-list { margin-top: 0.5rem; }
.stop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}
.stop-row:last-child { border-bottom: none; }
.stop-price { color: var(--accent); font-weight: 600; }

/* ===== AI Chat ===== */
.chat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 280px);
    min-height: 500px;
}

.chat-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.sidebar-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem; }

.suggestions { display: flex; flex-direction: column; gap: 0.4rem; }
.suggestion-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.suggestion-btn:hover { border-color: var(--accent); color: var(--text); }

.chat-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message { display: flex; }
.chat-message.user { justify-content: flex-end; }

.msg-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-message.user .msg-bubble {
    background: var(--accent);
    color: #0d0f14;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .msg-bubble {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.msg-bubble p {
    margin: 0 0 0.65rem;
}

.msg-bubble p:last-child {
    margin-bottom: 0;
}

.msg-bubble strong {
    color: var(--accent);
    font-weight: 700;
}

.chat-list {
    margin: 0.45rem 0 0.8rem;
    padding-left: 1.1rem;
}

.chat-list:last-child {
    margin-bottom: 0;
}

.chat-list li {
    margin: 0.28rem 0;
    padding-left: 0.15rem;
}

.msg-bubble code {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.05rem 0.3rem;
    font-size: 0.82rem;
}

/* Typing animation */
.typing { display: flex; align-items: center; gap: 5px; padding: 1rem; }
.typing span {
    width: 7px; height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-8px)} }

.chat-input-area {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}
.chat-input:focus { border-color: var(--accent); }

.chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chat-seat-card {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.chat-seat-title {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.chat-seat-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.seat-legend.compact {
    gap: 0.45rem;
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
}

.chat-bus-shell {
    max-width: 320px;
    padding: 0.75rem;
}

.chat-seat-footer {
    margin-top: 0.75rem;
}

.chat-seat-footer .chat-actions {
    margin-top: 0.6rem;
}

.chat-account-card {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.chat-account-title {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.chat-account-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.payment-card {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(245,166,35,0.07);
    border: 1px solid rgba(245,166,35,0.25);
    border-radius: var(--radius-sm);
    text-align: left;
}

.payment-title {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.payment-note,
.payment-countdown {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.chat-payment-card .form-input,
.chat-payment-card .form-select {
    font-size: 0.82rem;
}

.compact-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

/* ===== Auth ===== */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 440px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.auth-panel,
.auth-aside {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-tab {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
}

.auth-tab.active {
    background: rgba(245,166,35,0.12);
    border-color: rgba(245,166,35,0.45);
    color: var(--accent);
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-aside {
    display: grid;
    gap: 1rem;
}

.auth-benefit {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.auth-benefit strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.auth-benefit span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== User Dashboard ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.stat-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.stat-card strong {
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 1.45rem;
}

.dashboard-section {
    margin-top: 1.75rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-family: var(--font-head);
    font-size: 1.25rem;
}

.ticket-route {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.dashboard-ticket {
    margin-bottom: 1rem;
}

/* ===== Admin Dashboard ===== */
.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.admin-sidebar-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 1rem;
}

.admin-brand {
    padding: 1.15rem;
    border-bottom: 1px solid var(--border);
}

.admin-brand strong,
.admin-brand span {
    display: block;
}

.admin-brand span {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.admin-menu-item {
    width: 100%;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--text-muted);
    display: block;
    text-align: left;
    padding: 0.95rem 1.1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--surface2);
    color: var(--text);
    border-left-color: var(--accent);
}

.admin-workspace {
    min-width: 0;
}

@media (max-width: 820px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-panel {
        position: static;
    }
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow);
}

.modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.modal-box h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 1.25rem; }

.booking-result { text-align: left; margin-bottom: 1.5rem; }
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.result-row span { color: var(--text-muted); }
.result-row:last-child { border-bottom: none; }
.total-row strong { color: var(--accent); font-size: 1rem; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    z-index: 300;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Utilities ===== */
.hidden { display: none !important; }
.loading { padding: 2rem; text-align: center; color: var(--text-muted); }
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-links { display: none; }
    .main-content { padding: 1.5rem 1rem; }
    .page-title { font-size: 1.8rem; }
    .form-grid { grid-template-columns: 1fr; }
    .chat-layout { grid-template-columns: 1fr; height: auto; }
    .chat-sidebar { display: none; }
    .booking-body { grid-template-columns: 1fr; }
    .search-card .search-row { flex-direction: column; }
    .auth-shell { grid-template-columns: 1fr; }
    .dashboard-header,
    .section-heading { flex-direction: column; align-items: stretch; }
}
