/* Bowling Booking Design System */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent-2: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --surface: #ffffff;
    --bg: #f8fafc;
    --bg-mesh: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 35%, #faf5ff 70%, #f8fafc 100%);
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 16px;
    --radius-sm: 12px;
    --sidebar-w: 280px;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-dark: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ── Booking Form ── */
.booking-no-card {
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    border: none !important;
}

.booking-no-display {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-no-card .border-top { border-color: rgba(255,255,255,0.1) !important; }
.booking-no-card .text-muted { color: #94a3b8 !important; }

/* ── Admin Layout ── */
.admin-body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--gradient-dark);
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    width: 42px; height: 42px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.sidebar-brand h5 {
    color: #fff; margin: 0; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
}

.sidebar-brand small { color: #94a3b8; font-size: 0.72rem; }

.sidebar-nav { padding: 1rem 0.75rem; flex: 1; min-height: 0; overflow-y: auto; }

.sidebar-nav .nav-section {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #64748b; padding: 0.75rem 1rem 0.5rem;
}

.sidebar-nav .nav-link {
    color: #94a3b8;
    padding: 0.7rem 1rem;
    margin-bottom: 2px;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.875rem; font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-nav .nav-link i { width: 20px; text-align: center; font-size: 0.9rem; }

.sidebar-nav .nav-link:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.06);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.15) 100%);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 4px 12px rgba(99,102,241,0.15);
}

.sidebar-footer {
    padding: 1rem 0.75rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-footer .nav-link,
.sidebar-footer button.nav-link {
    color: #94a3b8;
    padding: 0.7rem 1rem;
    margin-bottom: 2px;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.875rem; font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
    width: 100%;
    cursor: pointer;
}

.sidebar-footer .nav-link:hover,
.sidebar-footer button.nav-link:hover {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.sidebar-footer .nav-link i,
.sidebar-footer button.nav-link i { width: 20px; text-align: center; }

.user-pill { cursor: pointer; position: relative; }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    display: none;
    z-index: 200;
}

.user-dropdown.show { display: block; }

.user-dropdown .dropdown-item-btn {
    display: flex; align-items: center; gap: 0.6rem;
    width: 100%; padding: 0.6rem 0.75rem;
    border: none; background: none;
    border-radius: 8px; font-size: 0.875rem;
    font-weight: 500; color: var(--text);
    cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}

.user-dropdown .dropdown-item-btn:hover { background: #f8fafc; }

.user-dropdown .dropdown-item-btn.text-danger { color: var(--danger); }
.user-dropdown .dropdown-item-btn.text-danger:hover { background: #fef2f2; }

.user-dropdown hr { margin: 0.35rem 0; border-color: var(--border); }

.main-content { margin-left: var(--sidebar-w); min-height: 100vh; }

.top-bar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.75rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}

.top-bar .page-title {
    font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; margin: 0;
}

.user-pill {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 50px; padding: 0.35rem 0.35rem 0.35rem 1rem;
}

.user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem; font-weight: 700;
}

.content-area { padding: 1.75rem; }

/* ── Cards & Panels ── */
.card-panel {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.card-panel:hover { box-shadow: var(--shadow); }

.card-panel .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1.125rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 0.5rem;
}

.card-panel .card-header i { color: var(--primary); }

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.35rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.stat-card.stat-indigo { border-top: 3px solid #6366f1; }
.stat-card.stat-info { border-top: 3px solid #06b6d4; }
.stat-card.stat-purple { border-top: 3px solid #8b5cf6; }
.stat-card.stat-warning { border-top: 3px solid #f59e0b; }
.stat-card.stat-success { border-top: 3px solid #10b981; }
.stat-card.stat-danger { border-top: 3px solid #ef4444; }

.booking-tabs {
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
}

.booking-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.booking-tabs .nav-link:hover {
    color: var(--primary);
}

.booking-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

.pipeline-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pipeline-row {
    display: grid;
    grid-template-columns: 90px 1fr 110px;
    align-items: center;
    gap: 0.75rem;
}

.pipeline-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pipeline-bar-wrap {
    height: 10px;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden;
}

.pipeline-bar {
    height: 100%;
    border-radius: 999px;
    min-width: 4px;
    transition: width 0.4s ease;
}

.pipeline-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.welcome-banner {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    color: #fff;
}

.welcome-banner h2 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.welcome-banner p {
    opacity: 0.9;
    margin: 0;
    font-size: 0.9rem;
}

.stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

/* ── Tables ── */
.table-modern { margin: 0; }

.table-modern thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted); padding: 0.875rem 1.25rem;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.table-modern tbody tr {
    transition: background 0.15s;
}

.table-modern tbody tr:hover { background: #f8fafc; }

.table-modern tbody tr:last-child td { border-bottom: none; }

.customer-cell .name { font-weight: 600; color: var(--text); }
.customer-cell .sub { font-size: 0.78rem; color: var(--text-muted); }

/* ── Badges ── */
.badge-status {
    font-size: 0.72rem; font-weight: 600;
    padding: 0.4em 0.85em; border-radius: 50px;
    letter-spacing: 0.02em;
}

.badge-role-admin {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff; border: none;
    font-size: 0.68rem; font-weight: 700;
    padding: 0.3em 0.7em; border-radius: 50px;
}

.badge-role-staff {
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    color: #fff; border: none;
    font-size: 0.68rem; font-weight: 700;
    padding: 0.3em 0.7em; border-radius: 50px;
}

/* ── Buttons ── */
.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
    filter: brightness(1.05);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: var(--bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-icon {
    width: 34px; height: 34px;
    padding: 0; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 10px;
}

/* ── Forms ── */
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--border);
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-label { font-weight: 600; font-size: 0.85rem; color: var(--text); }

.filter-bar {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

/* ── Activity Timeline ── */
.activity-timeline { position: relative; }

.activity-item {
    display: flex; gap: 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.activity-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px; top: 40px; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
}

.activity-icon-wrap {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    position: relative; z-index: 1;
}

.activity-icon-wrap.icon-booking { background: rgba(99,102,241,0.12); color: var(--primary); border-color: rgba(99,102,241,0.2); }
.activity-icon-wrap.icon-status { background: rgba(6,182,212,0.12); color: #0891b2; border-color: rgba(6,182,212,0.2); }
.activity-icon-wrap.icon-staff { background: rgba(16,185,129,0.12); color: #059669; border-color: rgba(16,185,129,0.2); }
.activity-icon-wrap.icon-note { background: rgba(245,158,11,0.12); color: #d97706; border-color: rgba(245,158,11,0.2); }
.activity-icon-wrap.icon-default { background: #f8fafc; color: var(--text-muted); }

.activity-item .desc { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.activity-item .meta { font-size: 0.75rem; color: var(--text-muted); }

/* ── Alerts ── */
.alert-modern {
    border: none; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.alert-success.alert-modern { background: #ecfdf5; color: #065f46; }
.alert-danger.alert-modern  { background: #fef2f2; color: #991b1b; }

/* ── Guest / Public ── */
.guest-body {
    background: var(--bg-mesh);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.guest-body::before,
.guest-body::after {
    content: '';
    position: fixed; border-radius: 50%;
    filter: blur(80px); opacity: 0.5; z-index: 0; pointer-events: none;
}

.guest-body::before {
    width: 500px; height: 500px;
    background: rgba(99, 102, 241, 0.15);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}

.guest-body::after {
    width: 400px; height: 400px;
    background: rgba(6, 182, 212, 0.12);
    bottom: -80px; left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.guest-nav {
    background: rgba(255,255,255,0.8) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.8) !important;
    box-shadow: none !important;
    position: relative; z-index: 10;
}

.guest-nav .navbar-brand {
    font-weight: 800 !important;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guest-main { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-weight: 800; font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.04em; line-height: 1.15;
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 60%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

.booking-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.35s;
}

.booking-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    color: inherit;
    border-color: rgba(99,102,241,0.3);
}

.booking-card:hover::before { opacity: 0.03; }

.booking-card .card-body { position: relative; z-index: 1; }

.card-icon-lg {
    width: 72px; height: 72px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; margin: 0 auto 1.25rem;
    position: relative;
}

.card-icon-lg.icon-online {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(99,102,241,0.2);
}

.card-icon-lg.icon-offline {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.1));
    color: var(--success);
    box-shadow: 0 8px 24px rgba(16,185,129,0.2);
}

.card-arrow {
    position: absolute; bottom: 1.5rem; right: 1.5rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.8rem;
    transition: all 0.3s;
}

.booking-card:hover .card-arrow {
    background: var(--gradient);
    color: #fff; border-color: transparent;
    transform: translateX(4px);
}

.booking-card.is-active {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), var(--shadow);
}

.booking-card.is-active::before {
    opacity: 0.06;
}

.booking-card.is-active .card-arrow {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.module-count {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
}

.module-count-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.workflow-panel {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.workflow-step {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    flex: 1; min-width: 80px;
}

.workflow-step .step-badge {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: #fff;
}

.workflow-step .step-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }

.workflow-connector {
    flex: 0 0 40px; height: 2px;
    background: linear-gradient(90deg, var(--border), var(--primary-light), var(--border));
    margin-top: 24px;
}

.form-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.form-card-header {
    background: var(--gradient);
    color: #fff; padding: 2rem;
    text-align: center; border-radius: 20px 20px 0 0;
}

.features-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem; margin-top: 3rem;
}

.feature-item {
    text-align: center; padding: 1.25rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s;
}

.feature-item:hover { transform: translateY(-3px); }
.feature-item i { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.feature-item span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* ── Login Page ── */
.login-page {
    min-height: 100vh; display: flex;
    background: var(--gradient-dark);
}

.login-brand {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; padding: 3rem;
    color: #fff; position: relative; overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99,102,241,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6,182,212,0.2) 0%, transparent 50%);
}

.login-brand-content { position: relative; max-width: 420px; }

.login-brand h1 {
    font-weight: 800; font-size: 2.5rem;
    letter-spacing: -0.04em; line-height: 1.2; margin-bottom: 1rem;
}

.login-brand p { color: #94a3b8; font-size: 1rem; line-height: 1.7; }

.login-features { list-style: none; padding: 0; margin: 2rem 0 0; }

.login-features li {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; color: #cbd5e1; font-size: 0.9rem;
}

.login-features li i { color: var(--primary-light); }

.login-form-side {
    width: 480px; max-width: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; padding: 2.5rem;
}

.login-form-wrap { width: 100%; max-width: 380px; }

.login-form-wrap h2 {
    font-weight: 800; font-size: 1.5rem;
    letter-spacing: -0.03em; margin-bottom: 0.35rem;
}

.login-form-wrap .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.input-group-modern .input-group-text {
    background: #f8fafc; border-color: var(--border);
    border-radius: 10px 0 0 10px; color: var(--text-muted);
}

.input-group-modern .form-control {
    border-radius: 0 10px 10px 0;
}

/* ── Detail Page ── */
.detail-grid { display: grid; gap: 1.5rem; }

.info-block dt {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted); margin-bottom: 0.2rem;
}

.info-block dd { font-weight: 500; margin-bottom: 1rem; }

.side-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.side-panel h6 {
    font-weight: 700; font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
}

.side-panel h6 i { color: var(--primary); }

.empty-state {
    text-align: center; padding: 3rem 1.5rem; color: var(--text-muted);
}

.empty-state i { font-size: 2.5rem; opacity: 0.3; margin-bottom: 1rem; display: block; }

/* ── Responsive ── */
.sidebar-toggle { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-overlay {
        position: fixed; inset: 0;
        background: rgba(15,23,42,0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
    }
    .sidebar-overlay.show { display: block; }
    .login-brand { display: none; }
    .login-form-side { width: 100%; min-height: 100vh; }
}

@media (max-width: 575.98px) {
    .content-area { padding: 1rem; }
}

/* ── Customer Portal ── */
.customer-portal { min-height: 100vh; display: flex; align-items: flex-start; }

.customer-bg-image {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.customer-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    transform: scale(1.05);
}

.customer-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(6, 182, 212, 0.18) 100%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(248, 250, 252, 0.72) 45%, rgba(248, 250, 252, 0.82) 100%);
}

.customer-portal-main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem 3rem;
    position: relative;
    z-index: 1;
}

.customer-portal-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portal-booking-card,
.booking-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.customer-alert { margin-bottom: 1.5rem; border-radius: 12px; }

.portal-home-inner { padding: 3rem 1rem; }

.portal-logo {
    width: 80px; height: 80px; margin: 0 auto;
    background: var(--gradient);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.portal-title {
    font-weight: 800; font-size: 2.25rem;
    letter-spacing: -0.04em; color: var(--text);
    margin-bottom: 0.5rem;
}

.portal-subtitle {
    color: var(--text-muted); font-size: 1.05rem;
    margin-bottom: 2rem; max-width: 400px; margin-left: auto; margin-right: auto;
}

.portal-cta {
    font-size: 1.05rem; font-weight: 700;
    border-radius: 14px;
}

.portal-booking-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: portalFadeIn 0.35s ease;
}

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

.portal-card-header {
    background: var(--gradient);
    color: #fff;
    padding: 1.75rem 2rem;
}

.portal-card-title {
    font-weight: 800; font-size: 1.5rem;
    letter-spacing: -0.03em; margin: 0;
}

.portal-card-subtitle { opacity: 0.85; font-size: 0.9rem; }

.portal-card-header .btn-ghost {
    color: #fff; border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
}

.portal-card-header .btn-ghost:hover {
    background: rgba(255,255,255,0.2); color: #fff;
}

.portal-card-body { padding: 2rem; }

.portal-booking-no {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.portal-booking-no-value {
    font-size: 1.5rem; font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.success-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    animation: portalFadeIn 0.35s ease;
}

.success-icon {
    width: 72px; height: 72px; margin: 0 auto;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.1));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #10b981;
}

.success-title {
    font-weight: 800; font-size: 1.75rem;
    letter-spacing: -0.03em; margin-bottom: 0.5rem;
}

.success-text { color: var(--text-muted); }

.success-booking-no {
    display: inline-block;
    font-size: 1.75rem; font-weight: 800;
    color: var(--primary);
    background: #f8fafc;
    border: 2px dashed var(--primary-light);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 575.98px) {
    .portal-card-body { padding: 1.25rem; }
    .portal-card-header { padding: 1.25rem; }
    .portal-title { font-size: 1.75rem; }
}

.booking-no-display {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.booking-no-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.info-block dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-block dd {
    margin-bottom: 1rem;
    font-weight: 500;
}

.info-block dd:last-child {
    margin-bottom: 0;
}

.home-cards {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.home-intro {
    max-width: 540px;
    margin: 0 auto 2rem;
}

.home-title {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
    .customer-portal-main {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .customer-bg-image img {
        object-fit: cover;
        object-position: center;
    }
}
