/* =========================================================
   SUN TRAVEL — Employee Dashboard "Jade Mist"
   New glassmorphism sidebar layout
   ========================================================= */

:root {
    --sb-width: 264px;
    --topbar-h: 76px;
    --glass-strong: rgba(255, 255, 255, 0.72);
    --glass-soft: rgba(255, 255, 255, 0.55);
    --glass-line: rgba(255, 255, 255, 0.65);
    --ink: #0f2e2b;
    --ink-soft: #4b6360;
    --shadow-lg: 0 16px 40px -16px rgba(15, 46, 43, 0.18);
    --shadow-sm: 0 4px 16px -8px rgba(15, 46, 43, 0.12);
}

/* Keep the misty mountain background from employee_style.css, just darken/cool it a touch */
body.dash-body {
    background: linear-gradient(135deg, rgba(224, 242, 241, 0.55) 0%, rgba(186, 215, 212, 0.45) 100%),
                url('/static/img/chinese_misty_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ---------------- APP SHELL ---------------- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------------- SIDEBAR ---------------- */
.sidebar {
    width: var(--sb-width);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-right: 1px solid var(--glass-line);
    box-shadow: 4px 0 40px -20px rgba(15, 46, 43, 0.35);
    overflow: hidden; /* keep the brand from leaking past the sidebar (esp. when off-screen on mobile) */
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem 1.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    min-width: 0; /* allow the brand text to shrink/wrap instead of overflowing */
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0; /* never let the sidebar's wrapping brand text squish the logo */
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 8px 18px -6px rgba(15, 118, 110, 0.6);
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.25;
    min-width: 0; /* allow the brand to wrap (at the slash) instead of overflowing */
}

.brand-text small {
    font-weight: 400;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.7;
    padding: 1rem 0.85rem 0.4rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.18s ease;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.02rem;
    transition: transform 0.18s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
}

.sidebar-link:hover i { transform: scale(1.12); }

.sidebar-link.active {
    background: linear-gradient(135deg, #0f766e 0%, #15a394 100%);
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(15, 118, 110, 0.65);
}

.sidebar-link.active i { color: #fff; }

.nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.sidebar-link.active .nav-badge { background: rgba(255, 255, 255, 0.25); }

/* Sidebar footer / user */
.sidebar-footer {
    border-top: 1px solid rgba(15, 46, 43, 0.08);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 14px -6px rgba(217, 119, 6, 0.7);
}

.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-weight: 500; color: var(--ink); font-size: 0.92rem; }
.user-role { font-size: 0.74rem; color: var(--ink-soft); }

.sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
    border-radius: 11px;
    border: 1px solid rgba(190, 18, 60, 0.25);
    background: rgba(190, 18, 60, 0.06);
    color: #be123c;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sidebar-logout:hover { background: #be123c; color: #fff; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 46, 43, 0.4);
    backdrop-filter: blur(2px);
    z-index: 150;
}

/* ---------------- MAIN AREA ---------------- */
.main-area {
    flex: 1;
    margin-left: var(--sb-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--glass-line);
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.35rem;
    cursor: pointer;
}

.topbar-heading h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.1;
}

.topbar-sub {
    margin: 2px 0 0;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rate-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-line);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.rate-pill i.fa-coins { color: #d97706; }
.rate-pill a { color: var(--ink-soft); margin-left: 0.2rem; text-decoration: none; transition: color 0.15s; }
.rate-pill a:hover { color: #0f766e; }

.topbar-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-line);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.18s ease;
}

.topbar-bell:hover { transform: translateY(-2px); color: #0f766e; }

.bell-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Content wrapper */
.content {
    padding: 1.75rem 2rem 3rem;
    flex: 1;
}

/* Flash messages */
.message-stack { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.flash {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-weight: 500;
    background: var(--glass-strong);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-line);
    border-left: 4px solid #0f766e;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.flash-success { border-left-color: #10b981; }
.flash-success i { color: #10b981; }
.flash-error, .flash-danger { border-left-color: #ef4444; }
.flash-error i, .flash-danger i { color: #ef4444; }
.flash-warning { border-left-color: #f59e0b; }
.flash-warning i { color: #f59e0b; }
.flash-info i { color: #0f766e; }

/* =========================================================
   STAT TILES (minimal)
   ========================================================= */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--glass-line);
    box-shadow: 0 4px 16px -10px rgba(15, 46, 43, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.stat-tile:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.stat-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}
.stat-ico.teal    { background: rgba(15, 118, 110, 0.12);  color: #0f766e; }
.stat-ico.amber   { background: rgba(245, 158, 11, 0.16);  color: #d97706; }
.stat-ico.orange  { background: rgba(234, 88, 12, 0.15);   color: #ea580c; }
.stat-ico.emerald { background: rgba(16, 185, 129, 0.15);  color: #059669; }
.stat-ico.violet  { background: rgba(124, 58, 237, 0.13);  color: #7c3aed; }
.stat-ico.cyan    { background: rgba(8, 145, 178, 0.14);   color: #0891b2; }
.stat-ico.blue    { background: rgba(59, 130, 246, 0.13);  color: #2563eb; }

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}

.stat-cap {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    font-weight: 500;
}

/* =========================================================
   KPI CARDS
   ========================================================= */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
    background: var(--glass-strong);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--accent-grad, linear-gradient(90deg, #0f766e, #14b8a6));
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #fff;
    background: var(--accent-grad, linear-gradient(135deg, #0f766e, #14b8a6));
    box-shadow: 0 10px 20px -8px var(--accent-shadow, rgba(15, 118, 110, 0.6));
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}
.kpi-trend.up { color: #059669; background: rgba(16, 185, 129, 0.14); }
.kpi-trend.down { color: #dc2626; background: rgba(239, 68, 68, 0.14); }
.kpi-trend.flat { color: var(--ink-soft); background: rgba(15, 46, 43, 0.08); }

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}

.kpi-value .unit { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }

.kpi-label {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.kpi-spark {
    position: relative;
    margin-top: 0.7rem;
    height: 36px;
    width: 100%;
}
.kpi-spark canvas { position: absolute; inset: 0; }

/* Accent variants */
.kpi-card.k-teal   { --accent-grad: linear-gradient(135deg,#0f766e,#14b8a6); --accent-shadow: rgba(15,118,110,.55); }
.kpi-card.k-amber  { --accent-grad: linear-gradient(135deg,#d97706,#f59e0b); --accent-shadow: rgba(217,119,6,.5); }
.kpi-card.k-violet { --accent-grad: linear-gradient(135deg,#7c3aed,#a78bfa); --accent-shadow: rgba(124,58,237,.5); }
.kpi-card.k-rose   { --accent-grad: linear-gradient(135deg,#be123c,#f43f5e); --accent-shadow: rgba(190,18,60,.5); }
.kpi-card.k-cyan   { --accent-grad: linear-gradient(135deg,#0891b2,#06b6d4); --accent-shadow: rgba(8,145,178,.5); }
.kpi-card.k-emerald{ --accent-grad: linear-gradient(135deg,#059669,#10b981); --accent-shadow: rgba(5,150,105,.5); }

/* =========================================================
   PANELS / CHART CARDS
   ========================================================= */
.dash-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-1 { grid-template-columns: 1fr 1fr; }

.panel {
    border-radius: 20px;
    background: var(--glass-strong);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-width: 0; /* allow panel to shrink inside grid/flex so nowrap content doesn't overflow */
}
.act-list, .act-item { min-width: 0; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.panel-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.panel-head h3 i { color: #0f766e; }

.panel-head .sub { font-size: 0.8rem; color: var(--ink-soft); }

.panel-link {
    font-size: 0.83rem;
    font-weight: 500;
    color: #0f766e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.18s ease;
}
.panel-link:hover { gap: 0.55rem; }

.chart-wrap { position: relative; width: 100%; height: 300px; }
.chart-wrap.sm { height: 250px; }
.chart-wrap canvas { position: absolute; inset: 0; }

.legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 1rem;
}
.legend-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--ink-soft); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-item b { color: var(--ink); }

/* =========================================================
   LIST PANELS (recent bookings, departures)
   ========================================================= */
.act-list { display: flex; flex-direction: column; }

.act-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.7rem;
    border-radius: 12px;
    border-bottom: 1px solid rgba(15, 46, 43, 0.07);
    text-decoration: none;
    color: inherit;
    transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}
.act-item:last-child { border-bottom: none; }
.act-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
    box-shadow: 0 8px 22px -12px rgba(15, 46, 43, 0.35);
    border-bottom-color: transparent;
}

.act-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.act-body { flex: 1; min-width: 0; }
.act-title { font-weight: 500; color: var(--ink); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-meta { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.act-right { text-align: right; flex-shrink: 0; }
.act-amount { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.act-date { font-size: 0.74rem; color: var(--ink-soft); }

/* status pills (compact) */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.pill-pending      { background: rgba(59,130,246,.14);  color: #2563eb; }
.pill-confirmation { background: rgba(139,92,246,.14);  color: #7c3aed; }
.pill-waiting_payment { background: rgba(245,158,11,.16); color: #d97706; }
.pill-confirmed    { background: rgba(6,182,212,.16);   color: #0891b2; }
.pill-paid         { background: rgba(16,185,129,.16);  color: #059669; }
.pill-cancelled    { background: rgba(239,68,68,.14);   color: #dc2626; }

.dep-day {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15,118,110,.1);
    color: #0f766e;
    line-height: 1;
}
.dep-day .d { font-size: 1.25rem; font-weight: 600; }
.dep-day .m { font-size: 0.66rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ink-soft);
}
.empty-state i { font-size: 2rem; opacity: 0.35; margin-bottom: 0.6rem; display: block; }

/* =========================================================
   QUICK ACTIONS
   ========================================================= */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.quick-card {
    border-radius: 18px;
    padding: 1.4rem;
    background: var(--glass-soft);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.quick-ico {
    width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center; font-size: 1.15rem; color: #fff;
    background: linear-gradient(135deg,#0f766e,#14b8a6);
}
.quick-ico.amber { background: linear-gradient(135deg,#d97706,#f59e0b); }
.quick-ico.cyan  { background: linear-gradient(135deg,#0891b2,#06b6d4); }
.quick-head h4 { margin: 0; font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.quick-head p { margin: 0; font-size: 0.78rem; color: var(--ink-soft); }
.quick-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.quick-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 1rem; border-radius: 11px; text-decoration: none;
    font-weight: 500; font-size: 0.9rem; transition: all 0.15s ease;
    background: rgba(255,255,255,.6); color: var(--ink); border: 1px solid var(--glass-line);
}
.quick-btn:hover { background: #0f766e; color: #fff; transform: translateX(3px); }
.quick-btn .count { font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 10px; background: rgba(245,158,11,.18); color: #d97706; }
.quick-btn:hover .count { background: rgba(255,255,255,.25); color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .kpi-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1, .grid-1-1 { grid-template-columns: minmax(0, 1fr); }
    .quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-105%);
        transition: transform 0.28s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .sidebar-backdrop.show { display: block; }
    .main-area { margin-left: 0; }
    .topbar-toggle { display: block; }
    .topbar { padding: 0.8rem 1.1rem; }
    .content { padding: 1.25rem 1.1rem 2.5rem; }
    .topbar .rate-pill span { display: none; } /* only compact the authenticated topbar; keep rate visible in the public menu */
}

@media (max-width: 560px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .topbar-heading h1 { font-size: 1.2rem; }

    /* Compact stat tiles: two per row, smaller */
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .stat-tile { padding: 0.8rem 0.85rem; gap: 0.7rem; border-radius: 14px; }
    .stat-ico { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
    .stat-num { font-size: 1.4rem; }
    .stat-cap { font-size: 0.6rem; margin-top: 0.2rem; }

    /* Compact list rows so amounts/pills don't stretch past the screen */
    .panel { padding: 1.15rem; }
    .act-item { gap: 0.6rem; padding: 0.7rem 0.35rem; }
    .act-avatar, .dep-day { width: 40px; height: 40px; }
    .act-amount { font-size: 0.85rem; }
    .act-date { font-size: 0.7rem; }
    .act-item .pill { display: none; } /* status shown on the bookings list; hide here to save width */
}

@keyframes dashFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.kpi-card, .panel, .quick-card { animation: dashFade 0.5s ease backwards; }
.kpi-card:nth-child(2) { animation-delay: 0.05s; }
.kpi-card:nth-child(3) { animation-delay: 0.1s; }
.kpi-card:nth-child(4) { animation-delay: 0.15s; }

/* =========================================================
   MODAL DIALOG
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 46, 43, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }

.modal-card {
    width: 100%;
    max-width: 430px;
    padding: 1.7rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modalPop {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.3rem;
}
.modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.modal-head h3 i { color: #d97706; }
.modal-close {
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 1.05rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    transition: all 0.15s ease;
}
.modal-close:hover { background: rgba(15, 46, 43, 0.08); color: var(--ink); }

.modal-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}
.modal-error { color: #dc2626; font-size: 0.84rem; margin-top: 0.5rem; }
.modal-error:empty { display: none; }
.modal-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
    margin-top: 1.4rem;
}

/* rate pill edit button + sidebar button-link */
.rate-edit {
    background: none;
    border: none;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 3px 5px;
    margin-left: 0.15rem;
    border-radius: 6px;
    transition: color 0.15s ease;
}
.rate-edit:hover { color: #0f766e; }
.sidebar-link-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

/* =========================================================
   AUTH PAGES (login / register / password reset)
   ========================================================= */
.auth-body { display: block; }
.auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1rem;
}
.auth-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }

.auth-card {
    width: 100%;
    max-width: var(--auth-w, 440px);
    padding: 2.4rem;
    border-radius: 24px;
    background: var(--glass-strong);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lg);
    animation: dashFade 0.5s ease;
}
.auth-card-wide { max-width: 860px; }

.auth-head { text-align: center; margin-bottom: 1.8rem; }
.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 12px 24px -10px rgba(15, 118, 110, 0.6);
}
.auth-head h2 { margin: 0; font-family: 'Outfit', sans-serif; font-size: 1.55rem; font-weight: 600; color: var(--ink); }
.auth-head p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.auth-form .form-group { margin-bottom: 1.05rem; }
.field-error { color: #dc2626; font-size: 0.82rem; margin-top: 0.35rem; }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.6rem 1.25rem; }

.auth-foot {
    margin-top: 1.6rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(15, 46, 43, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.auth-foot a { color: #0f766e; font-weight: 500; text-decoration: none; }
.auth-foot a.strong { font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.auth-cta { margin-top: 0.5rem; }

/* =========================================================
   TOUR CARDS (catalogue)
   ========================================================= */
.page-toolbar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.page-toolbar .ffield { flex: 1; min-width: 175px; }
.page-toolbar .ffield label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.tour-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: var(--glass-strong);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.tour-media { position: relative; height: 185px; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.tour-card:hover .tour-media img { transform: scale(1.06); }
.tour-media-fallback {
    height: 185px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
}
.tour-cat {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
}
.tour-dur {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 46, 43, 0.55);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.tour-body { padding: 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.tour-title { margin: 0 0 0.45rem; font-size: 1.12rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tour-desc { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; margin: 0 0 1.2rem; flex: 1; }
.tour-cta { margin-top: auto; }

/* generic content page header (non-dashboard pages) */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.section-head h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

/* =========================================================
   PUBLIC TOP NAV (anonymous pages)
   ========================================================= */
.public-body { display: block; }
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid var(--glass-line);
    box-shadow: 0 2px 24px -12px rgba(15, 46, 43, 0.3);
}
.topnav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topnav-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.topnav-burger {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.4rem;
    cursor: pointer;
}
.public-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3.5rem;
}
.public-head { margin-bottom: 1.6rem; }
.public-head h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
}
.public-head h1:empty { display: none; }
.public-sub { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.public-sub:empty { display: none; }

@media (max-width: 760px) {
    .topnav-burger { display: block; }
    .topnav-right {
        display: none;
        position: absolute;
        top: var(--topbar-h, 64px);
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-line);
        box-shadow: var(--shadow-lg);
        min-width: 220px;
    }
    .topnav-right.open { display: flex; }
    .public-main { padding: 1.4rem 1.1rem 2.5rem; }
}

/* =========================================================
   REGISTRATION — sectioned form
   ========================================================= */
.reg-section { margin-top: 1.8rem; }
.reg-section:first-of-type { margin-top: 0.5rem; }
.reg-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(15, 46, 43, 0.1);
}
.reg-section-title .num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    flex-shrink: 0;
}
.reg-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem 1.25rem;
}
@media (max-width: 620px) {
    .reg-2col { grid-template-columns: 1fr; }
}

/* =========================================================
   DATA TABLES + FILTER TABS (list pages)
   ========================================================= */
.data-table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table th {
    text-align: left;
    padding: 0.8rem 1.1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    background: transparent;
    border-bottom: 1px solid rgba(15, 46, 43, 0.12);
    white-space: nowrap;
}
.data-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(15, 46, 43, 0.06);
    color: var(--ink);
    vertical-align: middle;
}
.data-table tbody tr { transition: background 0.2s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.55); }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-id { font-weight: 600; color: #0f766e; text-decoration: none; }
.td-id:hover { text-decoration: underline; }
.td-strong { font-weight: 600; color: var(--ink); }
.td-sub { font-size: 0.78rem; color: var(--ink-soft); }
.td-doc { text-decoration: none; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.3rem; margin-right: 0.6rem; }
.td-doc.inv { color: #d97706; }
.td-doc.vou { color: #059669; }

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--glass-line);
    transition: all 0.18s ease;
}
.filter-tab:hover { color: var(--ink); transform: translateY(-1px); }
.filter-tab.active {
    background: linear-gradient(135deg, #0f766e, #15a394);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px -8px rgba(15, 118, 110, 0.6);
}

/* view toggle (table/grid) */
.view-toggle {
    display: inline-flex;
    border: 1px solid var(--glass-line);
    border-radius: 11px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
}
.view-toggle-btn {
    padding: 0.5rem 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 0.95rem;
    transition: all 0.15s ease;
}
.view-toggle-btn + .view-toggle-btn { border-left: 1px solid var(--glass-line); }
.view-toggle-btn:hover:not(.active) { background: rgba(15, 46, 43, 0.05); color: var(--ink); }
.view-toggle-btn.active { background: linear-gradient(135deg, #0f766e, #15a394); color: #fff; }

/* =========================================================
   DETAIL PAGES (info display)
   ========================================================= */
.panel-sub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(15, 46, 43, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.panel-sub-title i { color: #0f766e; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem 1.5rem;
}
.info-item .k { font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 0.2rem; }
.info-item .v { color: var(--ink); font-weight: 500; word-break: break-word; }
.doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--glass-line);
}
.doc-row + .doc-row { margin-top: 0.7rem; }
.doc-name { font-weight: 600; color: var(--ink); display: block; }
.doc-link { color: #0f766e; text-decoration: none; font-weight: 500; font-size: 0.88rem; white-space: nowrap; }
.doc-link:hover { text-decoration: underline; }

/* confirmation / small form cards centered */
.center-card {
    max-width: 560px;
    margin: 1rem auto;
}
.center-icon {
    width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1.2rem;
    display: grid; place-items: center; font-size: 1.5rem; color: #fff;
}
