/* =========================================================
   ASEAN Support Program - Design System
   Palette: deep navy + warm gold leaf + ivory parchment background
   Type: 'Playfair Display' (grand serif display) for headings,
         'Lora' (warm serif) for body copy on public pages,
         'Inter' for dense UI/dashboard text,
         'IBM Plex Mono' for all monetary figures.
   Signature motif: the "ledger stub" passbook card (dashboards) +
   a thin gold double-rule under section headings (public site).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --navy-950: #0B1B33;
    --navy-900: #122745;
    --navy-800: #1B3A63;
    --slate-600: #4C6079;
    --gold-400: #E3C578;
    --gold-500: #C9A227;
    --gold-600: #A6841C;
    --burgundy: #7A2E3A;
    --teal-600: #0E8A7C;
    --red-500: #B23A2E;
    --ivory: #FAF6EE;
    --paper: #FDFBF6;
    --card: #FFFFFF;
    --border: #E6DFCB;
    --text: #1F2A3C;
    --text-muted: #6B7280;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(11,27,51,0.08), 0 1px 2px rgba(11,27,51,0.06);
    --shadow-lg: 0 20px 50px rgba(11,27,51,0.18);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* Public-facing pages use the warmer serif body font */
body.public-page { font-family: 'Lora', Georgia, serif; font-size: 16px; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy-950); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

.mono, .amount, td.amount, .stat-value {
    font-family: 'IBM Plex Mono', monospace;
    font-variant-numeric: tabular-nums;
}

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.rule-gold {
    width: 64px; height: 3px; background: var(--gold-500); margin: 10px 0 22px;
    position: relative;
}
.rule-gold::after {
    content: ""; position: absolute; left: 0; top: 6px; width: 64px; height: 1px; background: var(--gold-500); opacity: 0.5;
}
.center .rule-gold { margin-left: auto; margin-right: auto; }

/* =========================================================
   PUBLIC SITE - top nav, hero, sections, footer
   ========================================================= */
.pub-header {
    background: var(--navy-950);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.pub-nav {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.pub-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; }
.pub-logo img { height: 36px; width: auto; border-radius: 4px; }
.pub-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); }
.pub-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pub-links a {
    color: rgba(255,255,255,0.82); font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 500;
    padding: 8px 14px; border-radius: 6px;
}
.pub-links a:hover, .pub-links a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.pub-actions { display: flex; align-items: center; gap: 10px; }
.lang-select {
    background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; padding: 7px 10px; font-size: 0.82rem; margin-bottom: 0;
}
.lang-select option { color: #1F2A3C; }
.pub-links .lang-select-mobile { display: none; }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* Services dropdown (desktop: hover flyout; mobile: expands inline) */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown .drop-trigger {
    color: rgba(255,255,255,0.82); font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 500;
    padding: 8px 14px; border-radius: 6px; cursor: default; user-select: none;
}
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
    background: var(--navy-900, #142642); min-width: 210px; border-radius: 8px; padding: 6px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.3); z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; white-space: nowrap; }
.nav-dropdown .drop-trigger.active { background: rgba(255,255,255,0.08); color: #fff; }

.hero {
    position: relative;
    color: #fff;
    padding: 100px 24px 110px 6vw;
    text-align: left;
    background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 100%);
    background-size: cover; background-position: center;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.hero .hero-image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, var(--hero-c-strong, rgba(11,27,51,0.75)) 0%, var(--hero-c-strong, rgba(11,27,51,0.75)) 38%, var(--hero-c-fade, rgba(11,27,51,0.15)) 68%, rgba(11,27,51,0) 100%);
}
.hero .hero-inner { position: relative; z-index: 2; max-width: 540px; margin: 0; text-align: left; }
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: 18px; line-height: 1.15; }
.hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 32px; font-family: 'Lora', serif; max-width: 460px; }
.hero .hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

@media (max-width: 700px) {
    .hero { padding: 70px 24px 60px 24px; min-height: 420px; }
    .hero .hero-overlay {
        background: linear-gradient(180deg, var(--hero-c-strong, rgba(11,27,51,0.8)) 0%, var(--hero-c-strong, rgba(11,27,51,0.8)) 55%, var(--hero-c-fade, rgba(11,27,51,0.35)) 100%);
    }
    .hero .hero-inner { max-width: 100%; }
    .hero h1 { font-size: 2rem; }
}

.section { padding: 74px 24px; }
.section .inner { max-width: 1120px; margin: 0 auto; }
.section.alt { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-item { text-align: center; padding: 10px; }
.feature-icon {
    width: 58px; height: 58px; border-radius: 50%; background: var(--navy-950); color: var(--gold-400);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.5rem;
}
.feature-item h3 { margin-bottom: 8px; }
.feature-item p { color: var(--text-muted); font-size: 0.96rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.cat-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px 24px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cat-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; min-height: 40px; }
.cat-card .cat-rate { font-family: 'IBM Plex Mono', monospace; color: var(--gold-600); font-weight: 600; font-size: 1.05rem; }
.cat-card .cat-range { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; counter-reset: step; }
.step-item { position: relative; padding-left: 54px; }
.step-item::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold-500); color: var(--navy-950); font-family: 'Playfair Display', serif; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.step-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-item p { color: var(--text-muted); font-size: 0.92rem; }

.pub-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 50px 24px 26px; }
.pub-footer .inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.pub-footer h4 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 14px; }
.pub-footer a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 8px; font-size: 0.9rem; }
.pub-footer a:hover { color: var(--gold-400); text-decoration: none; }
.pub-footer .brand { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 10px; }
.pub-footer .bottom { max-width: 1120px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.5); }

/* Public calculator panel embedded on homepage / calculator page */
.calc-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; }
.calc-result { background: var(--navy-950); color: #fff; border-radius: var(--radius-lg); padding: 26px; margin-top: 24px; }
.calc-result .cr-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; }
.calc-result .cr-row:last-child { border-bottom: none; }
.calc-result .cr-row .cr-val { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--gold-400); }
.calc-result .cr-note { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 14px; }

/* Amount slider (progression bar) for loan amount selection */
.amount-slider-wrap { margin: 4px 0 22px; }
.amount-slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.amount-slider-value { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 1.4rem; color: var(--navy-950); }
.amount-slider-range { font-size: 0.78rem; color: var(--muted, #7A8699); }
.amount-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; border-radius: 999px;
    background: linear-gradient(to right, var(--gold-500) 0%, var(--gold-500) 10%, #E3E7EE 10%, #E3E7EE 100%);
    outline: none; cursor: pointer; margin: 6px 0 4px; touch-action: none;
}
.amount-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: transparent; }
.amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--navy-950); border: 3px solid var(--gold-500);
    cursor: grab; margin-top: -8px; box-shadow: 0 2px 6px rgba(11,27,51,0.35);
    transition: transform 0.12s ease;
}
.amount-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
.amount-slider::-moz-range-track { height: 8px; border-radius: 999px; background: transparent; }
.amount-slider::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--gold-500); }
.amount-slider::-moz-range-thumb {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--navy-950); border: 3px solid var(--gold-500);
    cursor: grab; box-shadow: 0 2px 6px rgba(11,27,51,0.35);
}
.amount-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(201,162,39,0.3); }
.amount-slider-ticks { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted, #7A8699); margin-top: 2px; }

/* =========================================================
   DASHBOARD LAYOUT (admin + customer) - restyled classic
   ========================================================= */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 250px; background: var(--navy-950); color: #fff; flex-shrink: 0;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand {
    padding: 24px 20px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 9px;
}
.sidebar .brand img { height: 30px; border-radius: 4px; }
.sidebar .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); display: inline-block; }
.sidebar nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.sidebar nav a {
    display: block; color: rgba(255,255,255,0.75); padding: 10px 14px; border-radius: 8px;
    font-size: 0.92rem; font-weight: 500; margin-bottom: 2px; font-family: 'Inter', sans-serif;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.06); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: var(--gold-500); color: var(--navy-950); font-weight: 600; }
.sidebar .user-box { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; color: rgba(255,255,255,0.65); display: flex; gap: 10px; align-items: center; }
.sidebar .user-box .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-500); flex-shrink: 0; }
.sidebar .user-box .avatar-fallback {
    width: 38px; height: 38px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950);
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-family: 'Playfair Display', serif;
}
.sidebar .user-box strong { color: #fff; display: block; font-size: 0.9rem; }
.sidebar .user-box a { color: var(--gold-500); font-size: 0.8rem; }

.bell-link { position: relative; font-size: 1.15rem; text-decoration: none; line-height: 1; padding: 4px; }
.bell-link:hover { text-decoration: none; }
.bell-badge {
    position: absolute; top: -4px; right: -6px; background: var(--red-500); color: #fff;
    font-size: 0.62rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px; font-family: 'Inter', sans-serif;
}
.nav-badge {
    background: var(--gold-500); color: var(--navy-950); font-size: 0.68rem; font-weight: 700;
    border-radius: 100px; padding: 1px 7px; margin-left: 4px;
}

.main { flex: 1; min-width: 0; }
.topbar { background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.content { padding: 26px 28px 60px; max-width: 1200px; }

/* ---------- Public (auth) pages ---------- */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--burgundy) 140%);
    padding: 20px;
}
.auth-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 460px; padding: 38px 36px; }
.auth-card .brand-mark { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: var(--navy-950); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.auth-card .brand-mark .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold-500); }
.auth-card p.subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: 0.92rem; }
.auth-card.wide { max-width: 640px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--navy-900); font-family: 'Inter', sans-serif; }
input, select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 0.95rem; font-family: 'Inter', sans-serif; margin-bottom: 16px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
.form-row { display: flex; gap: 14px; }
.form-row > div { flex: 1; }
input[type="range"] { padding: 0; }
input[type="file"] { padding: 8px; background: var(--paper); }

.btn {
    display: inline-block; padding: 10px 22px; border-radius: 8px; border: none; font-weight: 600;
    font-size: 0.92rem; cursor: pointer; text-align: center; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--navy-950); color: #fff; }
.btn-primary:hover { background: var(--navy-800); text-decoration: none; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-600); text-decoration: none; }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }

/* ---------- Cards & the "ledger stub" signature ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; }

.ledger-stub { position: relative; background: var(--navy-950); color: #fff; border-radius: 14px; padding: 24px 26px; overflow: hidden; }
.ledger-stub::before {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px;
    background-image: radial-gradient(circle, var(--ivory) 3px, transparent 3.5px); background-size: 14px 16px; background-position: 4px 0;
}
.ledger-stub .label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--gold-400); font-weight: 600; }
.ledger-stub .value { font-family: 'IBM Plex Mono', monospace; font-size: 2rem; font-weight: 600; margin-top: 6px; }
.ledger-stub .sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 600; color: var(--navy-950); margin-top: 6px; }
.stat-card.accent-teal .stat-value { color: var(--teal-600); }
.stat-card.accent-gold .stat-value { color: var(--gold-600); }
.stat-card.accent-red .stat-value { color: var(--red-500); }

/* ---------- Avatar ---------- */
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-500); }
.avatar-lg-fallback {
    width: 96px; height: 96px; border-radius: 50%; background: var(--navy-950); color: var(--gold-400);
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-family: 'Playfair Display', serif; font-weight: 700; border: 3px solid var(--gold-500);
}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; background: var(--paper); }
tr:hover td { background: var(--paper); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { margin: 0; }
.table-wrap .card-head { padding: 16px 18px 0; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.74rem; font-weight: 700; text-transform: capitalize; }
.badge-pending, .badge-partial, .badge-pending_approval { background: #FBF0D9; color: var(--gold-600); }
.badge-active, .badge-approved, .badge-paid, .badge-verified, .badge-credit { background: #DDF3EF; color: var(--teal-600); }
.badge-rejected, .badge-overdue, .badge-defaulted, .badge-suspended, .badge-debit { background: #FBE1DD; color: var(--red-500); }
.badge-completed { background: #E4E9F0; color: var(--slate-600); }

/* ---------- Alerts / flash ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; font-weight: 500; }
.alert-success { background: #DDF3EF; color: var(--teal-600); }
.alert-error { background: #FBE1DD; color: var(--red-500); }
.alert-info { background: #E4EEFB; color: #1D5A9C; }

/* ---------- Misc ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.muted { color: var(--text-muted); }
.text-right { text-align: right; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.pill-nav { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pill-nav a { padding: 7px 14px; border-radius: 100px; background: #fff; border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--text); }
.pill-nav a.active, .pill-nav a:hover { background: var(--navy-950); color: #fff; text-decoration: none; }

@media (max-width: 900px) {
    .pub-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 10px; display: none; max-height: calc(100vh - 64px); overflow-y: auto; }
    .pub-links.open { display: flex; }
    .pub-links a { padding: 12px 16px; }
    .hamburger { display: block; }
    .pub-actions .lang-select { display: none; }
    .pub-links .lang-select-mobile { display: block; margin: 10px 16px; width: calc(100% - 32px); }
    .nav-dropdown { flex-direction: column; align-items: stretch; }
    .nav-dropdown .drop-trigger { padding: 12px 16px 4px; opacity: 0.7; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .nav-dropdown-menu { display: block; position: static; box-shadow: none; background: transparent; padding: 0; margin: 0; }
    .nav-dropdown-menu a { padding: 10px 16px 10px 28px; }
    .pub-footer .inner { grid-template-columns: 1fr; gap: 26px; }
}

.dash-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

@media (max-width: 800px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .dash-hamburger { display: block; }
    .sidebar nav {
        display: none;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        padding: 6px 10px 14px;
        max-height: 70vh;
        overflow-y: auto;
    }
    .sidebar nav.open { display: flex; }
    .sidebar nav a { white-space: normal; }
    .sidebar .user-box { display: none; }
    .form-row { flex-direction: column; gap: 0; }
    .section { padding: 50px 18px; }
}
