﻿/**
 * Tema pusat — Enterprise government dashboard (2026)
 * Navy #071022–#1e3a5f · glassmorphism · emas #c9a84c / #e8c96a · aksen biru lembut
 * Latar imej URL dijana PHP (includes/layout.php, layout_app.php, site_theme.php).
 */

:root {
    color-scheme: dark;
    /* Palette: enterprise navy + soft gold (2026) */
    --bg-deep: #071022;
    --bg-mid: #0d1e3d;
    --bg-elev: #132238;
    --bg-accent-band: #1e3a5f;
    --surface-glass: rgba(13, 30, 56, 0.48);
    --surface-glass-strong: rgba(19, 34, 56, 0.82);
    --surface-glass-soft: rgba(13, 30, 56, 0.34);
    --border-subtle: rgba(255, 255, 255, 0.075);
    --border-gold: rgba(201, 168, 76, 0.38);
    --border-gold-soft: rgba(201, 168, 76, 0.2);
    --border-gold-strong: rgba(232, 201, 106, 0.65);
    --gold: #e8c96a;
    --gold-accent: #c9a84c;
    --gold-icon: #e8d4a8;
    --gold-muted: rgba(201, 168, 76, 0.12);
    --accent-neon: #9ec5e8;
    --accent-neon-dim: #6b9cc4;
    --accent-blue: #1e3a5f;
    --accent-cyan: #b8d4f0;
    --text-primary: #f0f4fa;
    --text-secondary: #94a8c4;
    --logout-red: #d94a4a;
    --danger: #f09090;
    --bg: var(--bg-deep);
    --surface: var(--surface-glass-strong);
    --surface2: rgba(7, 16, 34, 0.88);
    --border: var(--border-subtle);
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --accent: var(--accent-neon);
    --accent2: var(--accent-neon);
    --radius: 16px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
    --font-alt: 'Inter', system-ui, sans-serif;
    --app-content-max: 1450px;
    --app-content-pad: 24px;
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: var(--ease-premium);
    --radius-card: 18px;
    --radius-btn: 12px;
    --shadow-card: 0 14px 44px rgba(0, 6, 20, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 0 0 1px rgba(201, 168, 76, 0.1);
    --shadow-card-hover: 0 22px 52px rgba(0, 8, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(232, 201, 106, 0.18);
    --app-nav-offset: clamp(4.25rem, 3.5rem + 3vw, 6.75rem);
    --glow-neon-soft: 0 0 28px rgba(80, 130, 190, 0.1);
    --glow-gold-soft: 0 0 20px rgba(201, 168, 76, 0.08);
}

* {
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html.theme-ui-transition body,
html.theme-ui-transition body.app-shell,
html.theme-ui-transition .app-nav,
html.theme-ui-transition .card,
html.theme-ui-transition .pelapor-card,
html.theme-ui-transition .dash-panel,
html.theme-ui-transition .glossy-card,
html.theme-ui-transition .login-card,
html.theme-ui-transition .gate-overlay {
    transition:
        background-color 0.38s var(--ease-out),
        color 0.38s var(--ease-out),
        border-color 0.38s var(--ease-out),
        box-shadow 0.38s var(--ease-out);
}

html {
    min-height: 100%;
    background-color: var(--bg-deep);
    scroll-behavior: smooth;
    scroll-padding-top: var(--app-nav-offset);
    font-feature-settings: "kern" 1, "liga" 1;
    position: relative;
    overflow-y: scroll;
}

html::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image:
        radial-gradient(ellipse 110% 75% at 8% -5%, rgba(30, 58, 95, 0.18), transparent 56%),
        radial-gradient(ellipse 90% 55% at 96% 8%, rgba(201, 168, 76, 0.05), transparent 50%),
        radial-gradient(ellipse 70% 45% at 50% 108%, rgba(13, 30, 61, 0.35), transparent 55%);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.58;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent-neon);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

a:hover {
    color: #cfe8ff;
    text-decoration: underline;
}

code {
    background: var(--surface2);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.9em;
}

/* ==================== Pengesahan kod (index.php) ==================== */
body.page-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
}

body.page-gate::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(165deg, rgba(40, 110, 200, 0.06) 0%, transparent 38%, rgba(3, 10, 22, 0.55) 100%);
    opacity: 1;
}

.gate-overlay {
    max-width: 440px;
    margin: 0 auto;
    background: rgba(6, 18, 40, 0.82);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(232, 201, 106, 0.4);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem 1.35rem;
    box-shadow:
        var(--shadow-card),
        0 0 0 1px rgba(232, 201, 106, 0.08),
        var(--glow-gold-soft);
    position: relative;
    z-index: 1;
    animation: gate-panel-in 0.55s var(--ease-out) both;
}

@keyframes gate-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gate-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    background: linear-gradient(90deg, transparent, rgba(212, 184, 120, 0.55), rgba(120, 180, 255, 0.35), transparent);
}

.gate-brand {
    text-align: center;
    margin-bottom: 0.5rem;
}

.gate-brand img {
    display: block;
    margin: 0 auto;
    max-height: 88px;
    width: auto;
    max-width: min(260px, 100%);
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.42));
}

.gate-welcome {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 1.15rem;
    line-height: 1.55;
    letter-spacing: 0.02em;
}

.gate-welcome strong {
    color: var(--text-primary);
    font-weight: 600;
}

.gate-title {
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--text-secondary);
}

.gate-title i {
    color: var(--gold-icon);
    font-size: 1.05rem;
    opacity: 0.95;
}

.gate-title span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold-soft);
    padding: 0.32rem 0.72rem;
    border-radius: 10px;
    color: var(--text-primary);
}

.gate-captcha-img {
    display: block;
    margin: 0 auto 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold-soft);
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 28px rgba(0, 8, 20, 0.35);
}

.gate-input-wrap {
    position: relative;
    margin-bottom: 0.5rem;
}

.gate-input-wrap input {
    width: 100%;
    padding: 0.78rem 2.75rem 0.78rem 0.95rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-subtle);
    background: rgba(4, 14, 32, 0.72);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.gate-input-wrap input:focus {
    outline: none;
    border-color: rgba(142, 200, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(100, 170, 255, 0.12);
}

.gate-input-wrap input::placeholder {
    color: #6b7d95;
}

.gate-input-icon {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    font-size: 1.05rem;
    pointer-events: none;
    color: var(--gold-icon);
}

.gate-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gate-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.35rem 0;
    font-family: inherit;
    transition: color 0.25s var(--ease-out);
}

.gate-reset:hover {
    color: var(--accent-neon);
}

.gate-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.45rem;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(232, 201, 106, 0.9);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #111;
    background: linear-gradient(135deg, rgba(232, 201, 106, 1), rgba(233, 210, 137, 0.92));
    box-shadow:
        0 12px 30px rgba(174, 128, 44, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out), filter 0.28s var(--ease-out), background 0.28s var(--ease-out);
}

.gate-submit:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 221, 143, 0.95);
    box-shadow:
        0 16px 36px rgba(175, 132, 46, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    filter: brightness(1.04);
}

.gate-submit:active {
    transform: translateY(0);
}

.gate-err {
    color: #f87171;
    font-size: 0.82rem;
    margin: 0.35rem 0 0;
    min-height: 1.25rem;
    text-align: center;
}

.gate-footer-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gate-footer-line::before,
.gate-footer-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.22), transparent);
}

.gate-footer-line span {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.gate-copy {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ==================== Log masuk (login.php) ==================== */
body.page-login {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
}

body.page-login::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(200deg, rgba(232, 201, 106, 0.18) 0%, transparent 35%, rgba(4, 14, 32, 0.78) 100%);
    opacity: 1;
}

@keyframes login-ambient {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    animation: login-shell-in 0.5s var(--ease-out) both;
}

@keyframes login-shell-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: var(--surface-glass-strong);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    padding: 2rem 2rem 1.75rem;
    box-shadow:
        var(--shadow-card),
        var(--glow-neon-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-brand-logo {
    display: block;
    margin: 0 auto 0.9rem;
    max-height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4));
}

.login-brand-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-icon);
    background: var(--gold-muted);
    border: 1px solid var(--border-gold);
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.login-brand h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-primary);
}

.login-brand p {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 14px;
}

.login-alert svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    opacity: 0.9;
}

.field {
    margin-bottom: 1.15rem;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    padding: 0.78rem 0.95rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(4, 14, 32, 0.72);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-btn);
    outline: none;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.input-wrap input::placeholder {
    color: #6b7d95;
}

.input-wrap input:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.input-wrap input:focus {
    border-color: rgba(142, 200, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(100, 170, 255, 0.12);
}

.input-wrap--pass input {
    padding-right: 3rem;
}

.toggle-pass {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--border-gold-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 10px;
    line-height: 0;
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.toggle-pass:hover {
    color: var(--gold-icon);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-gold);
}

.btn-login {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.88rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    border: 1px solid rgba(232, 201, 106, 0.9);
    border-radius: var(--radius-btn);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(232, 201, 106, 1), rgba(233, 210, 137, 0.92));
    box-shadow:
        0 12px 30px rgba(174, 128, 44, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s var(--ease-out), border-color 0.28s var(--ease-out), background 0.28s var(--ease-out);
}

.btn-login:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 221, 143, 0.95);
    box-shadow:
        0 16px 36px rgba(175, 132, 46, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    filter: brightness(1.04);
}

.btn-login:active {
    transform: translateY(0);
}

/* ==================== Aplikasi selepas log masuk (layout_app) ==================== */
body.app-shell {
    position: relative;
    font-size: 15px;
}

body.app-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 60% at 50% -15%, rgba(30, 58, 95, 0.12), transparent 52%),
        linear-gradient(178deg, rgba(13, 30, 61, 0.06) 0%, transparent 42%, rgba(7, 16, 34, 0.72) 100%);
    opacity: 1;
}

@keyframes ambient-drift {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.app-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.55rem 0.75rem;
    padding: 0.62rem clamp(0.75rem, 2vw, 1.35rem);
    background: linear-gradient(180deg, rgba(7, 12, 28, 0.94) 0%, rgba(5, 9, 22, 0.82) 42%, rgba(7, 16, 34, 0.72) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(232, 201, 106, 0.22);
    box-shadow:
        0 10px 40px rgba(0, 5, 18, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        var(--glow-gold-soft);
}

.app-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.65rem;
    height: 2.45rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border-gold-soft);
    background: rgba(7, 16, 34, 0.5);
    color: var(--gold-icon);
    cursor: pointer;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.app-nav__burger:hover {
    border-color: var(--border-gold-strong);
    background: rgba(30, 58, 95, 0.35);
}

.app-nav__burger-bar {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.app-nav.app-nav--open .app-nav__burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.app-nav.app-nav--open .app-nav__burger-bar:nth-child(2) {
    opacity: 0;
}

.app-nav.app-nav--open .app-nav__burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.app-nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(7, 16, 34, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.app-nav__backdrop[hidden] {
    display: none !important;
}

.app-nav__module-shell {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.app-nav__module-rail {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    width: max-content;
    max-width: 100%;
    padding: 3px;
    border-radius: 14px;
    background: rgba(7, 16, 34, 0.48);
    border: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 12px rgba(0, 4, 16, 0.2);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.35) transparent;
}

.app-nav__module-rail::-webkit-scrollbar {
    height: 4px;
}

.app-nav__module-rail::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(201, 168, 76, 0.35);
}

.app-nav__module-divider {
    flex: 0 0 1px;
    align-self: stretch;
    width: 1px;
    min-width: 1px;
    margin: 0.35rem 0.15rem;
    background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.35), transparent);
    opacity: 0.85;
}

.app-nav__theme-toggle {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: rgba(7, 16, 34, 0.45);
    border: 1px solid var(--border-gold-soft);
    gap: 2px;
}

.app-nav-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.app-nav-theme:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.app-nav-theme.is-active {
    color: var(--gold-icon);
    background: rgba(30, 58, 95, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-nav-theme i {
    font-size: 0.85rem;
    pointer-events: none;
}

.app-nav__identity {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(520px, 40vw);
    padding: 0;
    border-radius: 14px;
    background: rgba(7, 16, 34, 0.45);
    border: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.app-nav__identity-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    min-height: 2.5rem;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.3) transparent;
}

.app-nav__identity-strip::-webkit-scrollbar {
    height: 3px;
}

.app-nav__id-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.38rem 0.62rem;
    min-width: 0;
    flex: 0 0 auto;
}

.app-nav__id-field--mil {
    min-width: 5.5rem;
}

.app-nav__id-field--rank {
    min-width: 3.25rem;
}

.app-nav__id-field--name {
    flex: 1 1 auto;
    min-width: 7rem;
    max-width: 14rem;
}

.app-nav__id-sep {
    flex: 0 0 1px;
    align-self: stretch;
    width: 1px;
    min-width: 1px;
    margin: 0.42rem 0;
    background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.32), transparent);
    opacity: 0.9;
}

.app-nav__id-lbl {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1.15;
    white-space: nowrap;
}

.app-nav__id-val {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav__end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.app-nav-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.42rem 0.82rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    background: rgba(7, 16, 34, 0.55);
    border: 1px solid var(--border-gold-soft);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-nav-clock i {
    color: var(--gold-icon);
    font-size: 0.92em;
}

.app-nav-mod {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.48rem 0.72rem;
    min-height: 2.35rem;
    border-radius: 11px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
    border: none;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s var(--ease-out);
    scroll-snap-align: start;
}

.app-nav-mod__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    flex-shrink: 0;
}

.app-nav-mod__icon i {
    color: var(--gold-icon);
    font-size: 0.88rem;
    opacity: 0.95;
}

.app-nav-mod__label {
    display: inline-block;
}

.app-nav-mod:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.65), rgba(14, 30, 53, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(201, 168, 76, 0.14);
}

.app-nav-mod.is-active {
    color: #fff;
    background: linear-gradient(165deg, rgba(60, 94, 143, 0.82) 0%, rgba(20, 33, 65, 0.95) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(232, 201, 106, 0.28),
        0 8px 24px rgba(0, 8, 24, 0.38);
}

.app-nav-mod.is-active .app-nav-mod__icon i {
    color: var(--gold);
}

.app-nav a.logo {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: opacity 0.3s var(--ease-out);
}

.app-nav a.logo:hover {
    opacity: 0.92;
}

.app-nav a.logo .nav-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(168px, 28vw);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.52rem 1.05rem;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(165deg, #6b2a2a 0%, #4a1818 100%);
    border: 1px solid rgba(212, 184, 120, 0.35);
    text-decoration: none;
    box-shadow:
        0 4px 16px rgba(40, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.btn-logout i {
    font-size: 0.88em;
    color: var(--gold-icon);
    opacity: 0.95;
}

.btn-logout:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(212, 184, 120, 0.55);
    box-shadow:
        0 8px 24px rgba(60, 10, 10, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: brightness(1.06);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(40, 0, 0, 0.32);
}

.app-main {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: var(--app-nav-offset);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
    animation: main-enter 0.5s var(--ease-out) both;
}

.app-content {
    width: 100%;
    max-width: var(--app-content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--app-content-pad);
    padding-right: var(--app-content-pad);
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

@media (max-width: 640px) {
    :root {
        --app-content-pad: 16px;
    }
}

@keyframes main-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.app-shell .card {
    background: var(--surface-glass-strong);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--border-gold-soft);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.5rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        border-color 0.35s var(--ease-out);
}

body.app-shell .card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.52rem 1rem;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(232, 201, 106, 0.35);
    text-decoration: none;
    background: rgba(12, 20, 38, 0.75);
    color: var(--text-primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 22px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s var(--ease-out), border-color 0.28s var(--ease-out), background 0.28s var(--ease-out);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 201, 106, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.24);
}

.btn-primary {
    color: #111;
    background: linear-gradient(135deg, rgba(232, 201, 106, 1), rgba(233, 210, 137, 0.92));
    box-shadow:
        0 8px 28px rgba(186, 143, 48, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(201, 168, 76, 0.9);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    border-color: rgba(255, 221, 143, 0.95);
    box-shadow:
        0 12px 34px rgba(188, 144, 50, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(216, 79, 79, 0.95), rgba(149, 31, 31, 0.95));
    color: #fff;
    border: 1px solid rgba(232, 201, 106, 0.35);
    box-shadow:
        0 8px 26px rgba(120, 30, 30, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 201, 106, 0.55);
    box-shadow: 0 10px 28px rgba(120, 30, 30, 0.32);
}

.btn-ghost {
    background: rgba(9, 18, 38, 0.38);
    color: var(--text-primary);
    border: 1px solid rgba(232, 201, 106, 0.35);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 221, 143, 0.9);
    background: rgba(232, 201, 76, 0.08);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.38rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

body.app-shell label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

body.app-shell input,
body.app-shell select,
body.app-shell textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.58rem 0.85rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-subtle);
    background: rgba(4, 14, 32, 0.72);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

body.app-shell input[type="checkbox"],
body.app-shell input[type="radio"] {
    width: auto;
    max-width: none;
    min-width: 0;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    accent-color: var(--gold-accent);
}

body.app-shell input:focus,
body.app-shell select:focus,
body.app-shell textarea:focus {
    outline: none;
    border-color: rgba(158, 197, 232, 0.5);
    box-shadow:
        0 0 0 3px rgba(80, 130, 190, 0.12),
        0 0 0 1px rgba(201, 168, 76, 0.15);
}

.form-row {
    margin-bottom: 1.05rem;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table.data th,
table.data td {
    padding: 0.5rem 0.55rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

table.data th {
    color: var(--text-secondary);
    font-weight: 600;
}

.err {
    color: #f87171;
    font-size: 0.875rem;
}

.ok {
    color: #4ade80;
    font-size: 0.875rem;
}

/* ── Flash notification standard ── */
@keyframes flashSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

.flash-ok,
.flash-err {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: flashSlideDown 0.28s ease-out both;
}

.flash-ok {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #4ade80;
}

.flash-err {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

@keyframes blink-green {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 4px rgba(52, 180, 110, 0.25);
    }

    50% {
        opacity: 0.92;
        box-shadow: 0 0 2px rgba(52, 180, 110, 0.15);
    }
}

.dot-online {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3ecf8e;
    animation: blink-green 2.2s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.dot-offline {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--logout-red);
    vertical-align: middle;
    margin-right: 0.35rem;
}

/* Dashboard utama — home.php */
.dash-panel {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: var(--surface-glass-strong);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--border-gold-soft);
    border-radius: var(--radius-card);
    padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.1rem, 3vw, 1.5rem) clamp(1.75rem, 4vw, 2.25rem);
    box-shadow: var(--shadow-card);
    animation: dash-panel-in 0.55s var(--ease-out) 0.05s both;
    transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.32s var(--ease-out);
}

body.app-shell .dash-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-gold);
}

@keyframes dash-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-panel--home {
    max-width: min(var(--app-content-max), 100%);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(0.85rem, 2.4vw, 1.1rem) clamp(0.85rem, 2.4vw, 1.15rem) clamp(1rem, 2.8vw, 1.25rem);
}

.dash-home-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 15.5rem);
    gap: clamp(0.85rem, 2vw, 1.15rem);
    align-items: start;
}

.dash-home-stage {
    min-width: 0;
}

.dash-module {
    display: none !important;
    animation: pelapor-card-in 0.38s var(--ease-out) both;
}

.dash-module.is-active {
    display: block !important;
}

.dash-module--profile .pelapor-card {
    margin: 0 auto;
    max-width: min(720px, 100%);
}

.dash-module--k .pelapor-card,
.dash-module--journey .pelapor-card {
    margin: 0;
    max-width: none;
}

.dash-home-modnav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: sticky;
    top: calc(var(--app-nav-offset) + 0.5rem);
}

.dash-home-modnav__label {
    margin: 0 0 0.15rem;
    padding: 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.dash-home-modnav__btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 14px;
    border: 1px solid var(--border-gold-soft);
    background: linear-gradient(165deg, rgba(19, 34, 56, 0.75) 0%, rgba(7, 16, 34, 0.55) 100%);
    color: var(--text-secondary);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.dash-home-modnav__btn:hover {
    transform: translateX(-2px);
    border-color: var(--border-gold);
    color: var(--text-primary);
    box-shadow: 0 8px 22px rgba(0, 8, 22, 0.32);
}

.dash-home-modnav__btn.is-active {
    border-color: var(--border-gold-strong);
    color: var(--text-primary);
    background: linear-gradient(165deg, rgba(30, 58, 95, 0.88) 0%, rgba(13, 30, 56, 0.92) 100%);
    box-shadow: 0 10px 28px rgba(0, 10, 28, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dash-home-modnav__btn.is-active .dash-home-modnav__icon {
    background: rgba(201, 168, 76, 0.22);
    color: var(--gold);
    border-color: var(--border-gold);
}

.dash-home-modnav__btn.is-active .dash-home-modnav__arrow {
    color: var(--gold-icon);
    opacity: 1;
}

.dash-home-modnav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    background: rgba(30, 58, 95, 0.45);
    border: 1px solid rgba(158, 197, 232, 0.18);
}

.dash-home-modnav__text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.dash-home-modnav__title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.dash-home-modnav__desc {
    font-size: 0.66rem;
    line-height: 1.35;
    opacity: 0.85;
}

.dash-home-modnav__arrow {
    font-size: 0.65rem;
    opacity: 0.45;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.dash-home-modnav__btn:hover .dash-home-modnav__arrow {
    opacity: 0.85;
    transform: translateX(2px);
}

.dash-notes-card {
    margin: 0;
    max-width: none;
    animation: pelapor-card-in 0.45s var(--ease-out) 0.1s both;
}

.dash-notes-card:nth-child(2) {
    animation-delay: 0.16s;
}

.dash-notes-card__head {
    margin-bottom: 0.65rem;
}

.dash-notes-card--k .pelapor-card__head {
    align-items: flex-start;
}

.dash-notes-card__lede {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ——— K1–K6 briefing accordion ——— */
.k-briefing-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.k-briefing-stack__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    margin: 0.65rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.k-briefing {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(4, 14, 32, 0.42);
    overflow: hidden;
    transition: border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.k-briefing.is-open {
    border-color: var(--border-gold-soft);
    box-shadow: 0 6px 22px rgba(0, 8, 22, 0.28);
}

.k-briefing__heading {
    margin: 0;
}

.k-briefing__trigger {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.55rem 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    background: linear-gradient(90deg, rgba(30, 58, 95, 0.35) 0%, rgba(7, 16, 34, 0.2) 100%);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.k-briefing__trigger:hover {
    background: linear-gradient(90deg, rgba(30, 58, 95, 0.5) 0%, rgba(19, 34, 56, 0.35) 100%);
}

.k-briefing__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #071022;
    background: linear-gradient(165deg, var(--gold) 0%, var(--gold-accent) 100%);
    border: 1px solid var(--border-gold-strong);
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}

.k-briefing[data-k-code="K1"] .k-briefing__badge { background: linear-gradient(165deg, #7eb8e8 0%, #3d7ab5 100%); color: #fff; border-color: rgba(126, 184, 232, 0.5); }
.k-briefing[data-k-code="K2"] .k-briefing__badge { background: linear-gradient(165deg, #8ec9a0 0%, #3d8f5c 100%); color: #fff; border-color: rgba(142, 201, 160, 0.45); }
.k-briefing[data-k-code="K3"] .k-briefing__badge { background: linear-gradient(165deg, #c9a8e8 0%, #7a4eb5 100%); color: #fff; border-color: rgba(201, 168, 232, 0.45); }
.k-briefing[data-k-code="K4"] .k-briefing__badge { background: linear-gradient(165deg, #e8c96a 0%, #b58a2e 100%); color: #071022; }
.k-briefing[data-k-code="K5"] .k-briefing__badge { background: linear-gradient(165deg, #f0a878 0%, #c45a20 100%); color: #fff; border-color: rgba(240, 168, 120, 0.45); }
.k-briefing[data-k-code="K6"] .k-briefing__badge { background: linear-gradient(165deg, #e88a8a 0%, #a83232 100%); color: #fff; border-color: rgba(232, 138, 138, 0.45); }

.k-briefing__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.k-briefing__title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.k-briefing__index {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.k-briefing__meta {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    color: var(--accent-cyan);
    background: rgba(30, 58, 95, 0.45);
    border: 1px solid rgba(158, 197, 232, 0.2);
    white-space: nowrap;
}

.k-briefing__chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(7, 16, 34, 0.55);
    border: 1px solid var(--border-gold-soft);
    color: var(--gold-icon);
    font-size: 0.7rem;
    transition: transform 0.28s var(--ease-out);
}

.k-briefing.is-open .k-briefing__chev {
    transform: rotate(180deg);
}

.k-briefing__panel {
    padding: 0 0.75rem 0.75rem;
}

.k-briefing__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
    gap: 0.75rem;
    align-items: start;
}

.k-briefing__main {
    min-width: 0;
}

.k-briefing__section-label {
    margin: 0 0 0.55rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-icon);
    border-left: 3px solid var(--gold-accent);
    background: rgba(201, 168, 76, 0.08);
    border-radius: 0 8px 8px 0;
}

.k-briefing__subhead {
    margin: 0 0 0.4rem;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.k-briefing__subhead i {
    color: var(--gold-icon);
    font-size: 0.85em;
}

.k-briefing__criteria,
.k-briefing__audit-text,
.k-briefing__checklist {
    margin-bottom: 0.65rem;
}

.k-briefing__criteria-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.k-briefing__criteria-list li::marker {
    color: var(--gold-accent);
    font-weight: 600;
}

.k-briefing__audit-text p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary);
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: rgba(7, 16, 34, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.k-briefing__check-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
}

.k-briefing__check-grid li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.32rem 0.45rem;
    border-radius: 8px;
    background: rgba(7, 16, 34, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.k-briefing__check-no {
    flex-shrink: 0;
    min-width: 1.35rem;
    font-weight: 700;
    font-size: 0.68rem;
    color: var(--gold-icon);
    text-align: right;
}

.k-briefing__check-label {
    flex: 1;
    min-width: 0;
}

.k-briefing__pic {
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(19, 34, 56, 0.85) 0%, rgba(7, 16, 34, 0.9) 100%);
    border: 1px solid var(--border-gold-soft);
}

.k-briefing__pic-block + .k-briefing__pic-block {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.18);
}

.k-briefing__pic-role {
    margin: 0 0 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.k-briefing__pic-num {
    color: var(--gold-accent);
    margin-right: 0.2rem;
}

.k-briefing__doc-list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.k-briefing__doc-list li::marker {
    color: var(--accent-neon-dim);
}

.k-briefing__pic-empty {
    margin: 0;
    font-size: 0.74rem;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 900px) {
    .k-briefing__layout {
        grid-template-columns: 1fr;
    }

    .k-briefing__check-grid {
        grid-template-columns: 1fr;
    }

    .k-briefing__trigger {
        grid-template-columns: auto 1fr auto;
    }

    .k-briefing__meta {
        grid-column: 2;
        justify-self: start;
        margin-top: -0.15rem;
    }

    .k-briefing__chev {
        grid-row: 1 / span 2;
        grid-column: 3;
        align-self: center;
    }
}

.dash-notes__body {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.dash-notes__intro {
    margin: 0 0 0.65rem;
}

.dash-notes__steps {
    margin: 0 0 0.75rem;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dash-notes__steps li {
    padding-left: 0.15rem;
}

.dash-notes__steps strong {
    color: var(--text-primary);
}

.dash-notes__hint {
    margin: 0;
    padding: 0.5rem 0.6rem;
    font-size: 0.76rem;
    border-radius: 10px;
    background: rgba(30, 58, 95, 0.28);
    border: 1px solid var(--border-gold-soft);
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .dash-home-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .dash-home-modnav {
        order: -1;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .dash-home-modnav__label {
        width: 100%;
    }

    .dash-home-modnav__btn {
        flex: 1 1 min(100%, 10rem);
        grid-template-columns: auto 1fr;
    }

    .dash-home-modnav__arrow {
        display: none;
    }

    .dash-home-modnav__desc {
        display: none;
    }

    .dash-module--profile .pelapor-card {
        max-width: none;
    }
}

.au-upper-field {
    text-transform: uppercase;
}

/* Ringkasan formasi / pasukan — dikongsi home.php & admin_users.php */
.au-file-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
}

.au-file-stack .au-file-cell {
    text-align: center;
}

.au-file-cell {
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.au-file-cell__k {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: lowercase;
}

.au-file-more {
    color: #64748b;
    font-size: 0.75rem;
}

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.dash-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.6vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dash-title i {
    color: var(--gold-icon);
    font-size: 0.95em;
    opacity: 0.95;
}

.dash-alert {
    margin-bottom: 1rem;
}

.link-home-bar {
    margin: 0 0 1.25rem;
}

.btn-back-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.2rem 0.55rem 0.65rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(6, 20, 44, 0.55);
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 18px rgba(0, 10, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), color 0.28s var(--ease-out);
}

.btn-back-dashboard:hover {
    transform: translateY(-2px);
    border-color: var(--border-gold-strong);
    color: #fff;
    box-shadow:
        0 10px 28px rgba(0, 16, 40, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        var(--glow-neon-soft);
}

.btn-back-dashboard:active {
    transform: translateY(-1px);
}

.btn-back-dashboard__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: rgba(212, 184, 120, 0.12);
    color: var(--gold-icon);
    font-size: 0.82rem;
    border: 1px solid var(--border-gold-soft);
    transition: background 0.28s var(--ease-out), color 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.btn-back-dashboard:hover .btn-back-dashboard__icon {
    background: rgba(212, 184, 120, 0.2);
    color: #fff;
    border-color: var(--border-gold);
}

.btn-back-dashboard__text {
    padding-right: 0.1rem;
}

.pelapor-card {
    max-width: min(960px, 100%);
    margin: 0 auto;
    background: var(--surface-glass-strong);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--border-gold-soft);
    border-radius: var(--radius-card);
    padding: clamp(0.75rem, 2vw, 0.95rem) clamp(0.8rem, 2.2vw, 1.05rem) clamp(0.85rem, 2.4vw, 1.05rem);
    box-shadow: var(--shadow-card);
    transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.32s var(--ease-out);
}

body.app-shell .pelapor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-gold);
}

.pelapor-card--profile {
    position: relative;
    overflow: hidden;
    animation: pelapor-card-in 0.45s var(--ease-out) 0.04s both;
}

.pelapor-card--profile::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(ellipse 85% 55% at 50% -30%, rgba(100, 170, 255, 0.14), transparent 58%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 184, 120, 0.06), transparent 50%);
}

@keyframes pelapor-card-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pelapor-card__welcome {
    position: relative;
    z-index: 1;
    margin: 0 0 0.45rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.35;
    border-radius: 10px;
    background: rgba(4, 14, 32, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.pelapor-card__welcome strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.pelapor-card__rolefoot {
    position: relative;
    z-index: 1;
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
}

.pelapor-card__rolefoot strong {
    color: #94a3b8;
}

.pelapor-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border-gold-soft);
    position: relative;
    z-index: 1;
}

.pelapor-card__head-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 184, 120, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold-icon);
    font-size: 0.92rem;
}

.pelapor-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--text-primary);
}

.pelapor-card__avatar-wrap {
    display: flex;
    justify-content: center;
    padding: 0.15rem 0 0.35rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.45rem;
    position: relative;
    z-index: 1;
}

.pelapor-card__passport-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-gold-strong);
    box-shadow:
        0 0 0 1px rgba(212, 184, 120, 0.35),
        0 4px 22px rgba(0, 8, 24, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(32, 56, 88, 0.55) 0%, rgba(8, 20, 42, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pelapor-card__passport-frame--inline {
    flex-shrink: 0;
}

.pelapor-card__passport-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.pelapor-card__passport-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gold-icon);
    font-size: 1.55rem;
}

.pelapor-passport-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.pelapor-passport-edit__inputs {
    flex: 1 1 160px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pelapor-passport-file {
    width: 100%;
    max-width: 100%;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.pelapor-passport-remove {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
}

.pelapor-passport-remove input {
    margin: 0;
}

.pelapor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    position: relative;
    z-index: 1;
}

.pelapor-cell {
    background: rgba(4, 14, 32, 0.45);
    border: 1px solid var(--border-gold-soft);
    border-radius: 12px;
    padding: 0.45rem 0.55rem;
}

.pelapor-cell--full {
    grid-column: 1 / -1;
}

.pelapor-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.pelapor-label i {
    color: var(--gold-icon);
    font-size: 0.85em;
}

.pelapor-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.28;
    text-transform: none;
    word-break: break-word;
}

.pelapor-value--pasukan {
    text-align: center;
}

.pelapor-value--pasukan .au-file-stack {
    align-items: center;
    gap: 0.4rem;
}

.pelapor-value--pasukan .au-file-cell {
    font-size: 0.76rem;
    line-height: 1.25;
}

.pelapor-value--pasukan .au-file-cell__k {
    font-size: 0.66rem;
}

.pelapor-cell--pasukan .pelapor-hint--below-value {
    margin-top: 0.35rem;
}

.pasukan-pentadbir-compact {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

.pelapor-form {
    margin-top: 0.15rem;
    position: relative;
    z-index: 1;
}

.pelapor-form .pelapor-cell.pelapor-field {
    padding-top: 0.4rem;
}

.pelapor-form .pelapor-label {
    margin-bottom: 0.32rem;
}

.pelapor-form input[type="text"],
.pelapor-form select {
    width: 100%;
    max-width: none;
    padding: 0.4rem 0.55rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 17, 32, 0.75);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
}

.pelapor-form input:focus,
.pelapor-form select:focus {
    outline: none;
    border-color: rgba(142, 200, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(100, 170, 255, 0.12);
}

.pelapor-form .pelapor-hint {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.35rem;
    line-height: 1.35;
    text-transform: none;
    font-weight: 500;
}

.pelapor-form-actions {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.pelapor-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    position: relative;
    z-index: 1;
}

.pelapor-is-hidden {
    display: none !important;
}

@media (max-width: 520px) {
    .pelapor-grid {
        grid-template-columns: 1fr;
    }

    .pelapor-cell--full {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .btn-back-dashboard {
        padding: 0.5rem 0.95rem 0.5rem 0.55rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .btn-back-dashboard__icon {
        width: 1.95rem;
        height: 1.95rem;
    }

    .app-nav {
        padding: 0.65rem 0.85rem;
    }
}

/* Kad sempit (halaman awam render_page) */
body:not(.app-shell) .card {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    background: var(--surface-glass-strong);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-gold-soft);
    box-shadow: var(--shadow-card);
}

/* =============================================================================
   Enterprise 2026 — konsisten semua modul (nav, kandungan, jadual, borang)
   ============================================================================= */

body.app-shell h1,
body.app-shell h2,
body.app-shell h3,
body.app-shell h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

body.app-shell h1 {
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    margin: 0 0 0.75rem;
}

body.app-shell h2 {
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    margin: 0 0 0.65rem;
}

body.app-shell h3 {
    font-size: 1.02rem;
    margin: 0 0 0.5rem;
}

body.app-shell .link-home-bar {
    margin-top: 0;
    margin-bottom: 1.35rem;
}

body.app-shell .card h1:first-child,
body.app-shell .card h2:first-child,
body.app-shell .card h3:first-child {
    margin-top: 0;
}

body.app-shell input[type="file"] {
    max-width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px dashed rgba(212, 184, 120, 0.35);
    background: rgba(4, 14, 32, 0.55);
    cursor: pointer;
}

body.app-shell input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.42rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border-gold-soft);
    background: linear-gradient(165deg, rgba(24, 52, 88, 0.75), rgba(10, 28, 52, 0.85));
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), filter 0.22s var(--ease-out);
}

body.app-shell input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    border-color: var(--border-gold-strong);
    filter: brightness(1.05);
}

body.app-shell fieldset {
    border: 1px solid var(--border-gold-soft);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin: 0 0 1rem;
    background: rgba(4, 14, 32, 0.28);
}

body.app-shell legend {
    padding: 0 0.5rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-icon);
}

body.app-shell hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
}

/* Jadual enterprise — semua `table.data` dalam app */
body.app-shell .table-scroll,
body.app-shell .table-wrap,
body.app-shell .bap-table-wrap {
    border-radius: 14px;
    border: 1px solid var(--border-gold-soft);
    background: rgba(13, 30, 61, 0.32);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.app-shell table.data {
    min-width: 0;
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
}

body.app-shell table.data thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.96) 0%, rgba(19, 34, 56, 0.96) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-gold-soft);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

body.app-shell table.data tbody tr {
    transition: background 0.2s var(--ease-out);
}

body.app-shell table.data tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

body.app-shell table.data tbody tr:hover {
    background: rgba(30, 58, 95, 0.22);
}

body.app-shell table.data th:first-child,
body.app-shell table.data td:first-child {
    padding-left: 0.85rem;
}

body.app-shell table.data th:last-child,
body.app-shell table.data td:last-child {
    padding-right: 0.85rem;
}

body.app-shell table.data td {
    vertical-align: middle;
}

/* Nav — desktop order + drawer mudah alih */
@media (min-width: 901px) {
    .app-nav > .logo {
        order: 1;
        flex: 0 0 auto;
    }

    .app-nav > .app-nav__identity {
        order: 2;
        flex: 0 1 auto;
    }

    .app-nav > .app-nav__module-shell {
        order: 3;
        flex: 1 1 0;
        min-width: 0;
        padding: 0 0.15rem;
    }

    .app-nav > .app-nav__end {
        order: 4;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .app-nav > .app-nav__burger {
        display: none !important;
    }

    .app-nav__backdrop {
        display: none !important;
    }

    .app-nav__module-rail {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 901px) and (max-width: 1280px) {
    .app-nav__identity {
        max-width: min(440px, 36vw);
    }

    .app-nav__id-field--name {
        max-width: 11rem;
    }

    .app-nav__id-lbl {
        font-size: 0.52rem;
    }

    .app-nav__id-val {
        font-size: 0.68rem;
    }

    .app-nav-mod {
        padding: 0.44rem 0.58rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 900px) {
    .app-nav {
        align-items: center;
        flex-wrap: wrap;
    }

    .app-nav > .logo {
        order: 1;
    }

    .app-nav > .app-nav__burger {
        display: inline-flex;
        order: 2;
    }

    .app-nav > .app-nav__end {
        order: 3;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .app-nav > .app-nav__identity {
        order: 10;
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .app-nav__id-field--name {
        max-width: none;
        flex: 1 1 12rem;
    }

    .app-nav__module-shell {
        order: 11;
        position: fixed;
        left: 0.65rem;
        right: 0.65rem;
        top: calc(var(--app-nav-offset) + 0.35rem);
        z-index: 101;
        flex: none;
        justify-content: stretch;
        align-items: stretch;
        max-height: min(72vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.65rem 0.75rem;
        background: linear-gradient(180deg, rgba(13, 34, 56, 0.96) 0%, rgba(7, 16, 34, 0.98) 100%);
        border: 1px solid var(--border-gold-soft);
        border-radius: 18px;
        box-shadow: var(--shadow-card-hover);
        transform: translateY(calc(-120% - 2rem));
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s var(--ease-out), opacity 0.32s var(--ease-out);
    }

    .app-nav.app-nav--open .app-nav__module-shell {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .app-nav__module-rail {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
        border-radius: 14px;
        padding: 0.45rem;
        gap: 0.35rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app-nav__module-divider {
        width: auto;
        height: 1px;
        min-height: 1px;
        margin: 0.2rem 0.5rem;
        align-self: stretch;
        background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.35), transparent);
    }

    .app-nav-mod {
        justify-content: flex-start;
        width: 100%;
        min-height: 2.5rem;
        padding: 0.55rem 0.75rem;
    }
}

@media (max-width: 520px) {
    .app-nav-clock {
        font-size: 0.7rem;
        padding: 0.35rem 0.55rem;
    }

    .app-nav-mod {
        font-size: 0.72rem;
        padding: 0.38rem 0.62rem;
    }

    .app-nav__theme-toggle {
        padding: 1px;
    }

    .app-nav-theme {
        width: 1.95rem;
        height: 1.95rem;
    }
}

/* Pagination / pautan halaman generik */
body.app-shell nav[aria-label],
body.app-shell .pagination,
body.app-shell .bap-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(7, 16, 34, 0.48);
    border: 1px solid var(--border-gold-soft);
    font-size: 0.84rem;
    color: var(--muted);
}

body.app-shell .pagination a,
body.app-shell .bap-pagination a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--accent-neon);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

body.app-shell .pagination a:hover,
body.app-shell .bap-pagination a:hover {
    background: rgba(30, 58, 95, 0.28);
    border-color: rgba(201, 168, 76, 0.28);
    color: var(--accent-cyan);
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Kulit modul — gaya dalam <body> selepas app.css (spesifisiti lebih tinggi)
   Paparan: file_pasukan, borang_audit_pasukan, admin (tanpa ubah PHP/JS)
   --------------------------------------------------------------------------- */

@keyframes app-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.app-shell .glossy-card {
    background: linear-gradient(165deg, rgba(19, 34, 56, 0.88) 0%, rgba(7, 16, 34, 0.92) 100%);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.75rem;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--border-gold-soft);
    transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.32s var(--ease-out);
}

body.app-shell .glossy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-gold);
}

body.app-shell .glossy-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gold) 55%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

body.app-shell .glossy-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gold-soft);
}

body.app-shell .glossy-badge {
    background: rgba(7, 16, 34, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--gold-icon);
    font-weight: 500;
}

body.app-shell .glossy-search-form {
    background: rgba(13, 30, 61, 0.42);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-gold-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.app-shell .glossy-input {
    background: rgba(7, 16, 34, 0.72);
    border: 1px solid var(--border-gold-soft);
    border-radius: var(--radius-btn);
    color: var(--text-primary);
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

body.app-shell .glossy-input:focus {
    border-color: rgba(158, 197, 232, 0.45);
    box-shadow: 0 0 0 3px rgba(80, 130, 190, 0.1);
    background: rgba(7, 16, 34, 0.88);
}

body.app-shell .table-wrapper {
    border-radius: var(--radius-card);
    background: rgba(13, 30, 61, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-gold-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.app-shell .glossy-table thead th {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.95) 0%, rgba(19, 34, 56, 0.95) 100%);
    color: var(--gold-icon);
    border-bottom: 1px solid var(--border-gold-soft);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
}

body.app-shell .glossy-table tbody tr {
    transition: background 0.22s var(--ease-out);
}

body.app-shell .glossy-table tbody tr:hover {
    background: rgba(30, 58, 95, 0.2);
    transform: none;
}

body.app-shell .col-number {
    color: var(--gold);
}

body.app-shell .team-badge {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.75), rgba(7, 16, 34, 0.9));
    border: 1px solid var(--border-gold-soft);
    color: var(--gold-icon);
}

body.app-shell .section-title {
    font-family: var(--font-display);
    color: var(--gold);
    border-bottom-color: var(--border-gold-soft);
}

body.app-shell .modal-overlay {
    background: rgba(7, 16, 34, 0.84);
}

body.app-shell .modal-dialog {
    background: linear-gradient(165deg, rgba(19, 34, 56, 0.95) 0%, rgba(7, 16, 34, 0.97) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-hover);
    animation: app-modal-in 0.38s var(--ease-out) both;
}

body.app-shell .modal-dialog h3 {
    font-family: var(--font-display);
    color: var(--gold-icon);
}

body.app-shell .modal-dialog textarea {
    border: 1px solid var(--border-subtle);
    background: rgba(7, 16, 34, 0.85);
    color: var(--text-primary);
    border-radius: var(--radius-btn);
}

body.app-shell .btn-glossy,
body.app-shell .btn-glossy-primary {
    background: linear-gradient(135deg, rgba(232, 201, 106, 1), rgba(233, 210, 137, 0.92));
    border: 1px solid rgba(232, 201, 106, 0.95);
    color: #111;
    border-radius: var(--radius-btn);
    box-shadow: 0 10px 28px rgba(174, 128, 44, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.app-shell .btn-glossy-primary:hover,
body.app-shell .btn-glossy:hover {
    border-color: rgba(232, 201, 106, 0.85);
    box-shadow: 0 10px 28px rgba(0, 12, 28, 0.45), var(--glow-gold-soft);
}

body.app-shell .bap-modal-bg {
    background: rgba(7, 16, 34, 0.82);
}

body.app-shell .bap-modal {
    background: linear-gradient(165deg, rgba(19, 34, 56, 0.97) 0%, rgba(7, 16, 34, 0.98) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-hover);
}

body.app-shell .bap-modal-bg.is-open .bap-modal {
    animation: app-modal-in 0.38s var(--ease-out) both;
}

body.app-shell .bap-toast {
    background: rgba(19, 34, 56, 0.95);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-card);
}

body.app-shell .bap-table th {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.9) 0%, rgba(19, 34, 56, 0.88) 100%);
    border-bottom: 1px solid var(--border-gold-soft);
}

body.app-shell .bap-table tbody tr:hover {
    background: rgba(30, 58, 95, 0.22);
}

body.app-shell .bap-btn--primary {
    background: linear-gradient(165deg, #1e3a5f 0%, #132238 100%);
    border: 1px solid var(--border-gold-strong);
    box-shadow: 0 4px 16px rgba(0, 10, 28, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.app-shell .bap-toolbar h1 {
    font-family: var(--font-display);
    color: var(--text-primary);
}

body.app-shell .au-mod-tile {
    border: 1px solid var(--border-gold-soft);
    background: linear-gradient(165deg, rgba(19, 34, 56, 0.75) 0%, rgba(7, 16, 34, 0.55) 100%);
    border-radius: var(--radius-card);
}

body.app-shell .au-mod-tile:hover {
    border-color: var(--border-gold);
    box-shadow: 0 10px 28px rgba(0, 8, 22, 0.32);
}

body.app-shell .au-mod-tile--stat-negeri {
    border-color: rgba(56, 189, 248, 0.35);
}

body.app-shell .au-file-picker {
    border: 1px solid var(--border-gold-soft);
    background: rgba(7, 16, 34, 0.45);
    border-radius: var(--radius-btn);
}

/* ——— Tema terang (global) + toggel terapung log masuk ——— */
.theme-floating {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(7, 16, 34, 0.55);
    border: 1px solid var(--border-gold-soft);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.theme-floating__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.theme-floating__btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.theme-floating__btn.is-active {
    color: var(--gold-icon);
    background: rgba(30, 58, 95, 0.4);
}

html[data-theme="light"] .theme-floating {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(30, 58, 95, 0.15);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .theme-floating__btn.is-active {
    background: rgba(30, 58, 95, 0.12);
    color: var(--accent-blue);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg-deep: #f2f2f2;
    --bg-mid: #ffffff;
    --bg-elev: #e8e8e8;
    --bg-accent-band: #1a1a1a;
    --surface-glass: rgba(255, 255, 255, 0.92);
    --surface-glass-strong: rgba(255, 255, 255, 0.98);
    --surface-glass-soft: rgba(255, 255, 255, 0.72);
    --border-subtle: rgba(0, 0, 0, 0.10);
    --border-gold: rgba(180, 140, 30, 0.60);
    --border-gold-soft: rgba(180, 140, 30, 0.35);
    --border-gold-strong: rgba(180, 140, 30, 0.88);
    --gold: #c9a84c;
    --gold-accent: #a67c2e;
    --gold-icon: #8a6520;
    --gold-muted: rgba(180, 140, 30, 0.08);
    --accent-neon: #a67c2e;
    --accent-neon-dim: #7a5c12;
    --accent-blue: #333333;
    --accent-cyan: #555555;
    --text-primary: #111111;
    --text-secondary: #444444;
    --surface2: rgba(255, 255, 255, 0.96);
    --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1.5px rgba(180, 140, 30, 0.28);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1.5px rgba(180, 140, 30, 0.52);
    --glow-neon-soft: 0 0 24px rgba(180, 140, 30, 0.12);
    --glow-gold-soft: 0 0 24px rgba(180, 140, 30, 0.20);
}

html[data-theme="light"]::before {
    opacity: 0.28;
    background-image:
        radial-gradient(ellipse 100% 70% at 8% -5%, rgba(30, 58, 95, 0.07), transparent 55%),
        radial-gradient(ellipse 90% 55% at 96% 8%, rgba(201, 168, 76, 0.04), transparent 50%),
        radial-gradient(ellipse 70% 45% at 50% 108%, rgba(219, 228, 240, 0.45), transparent 55%);
}

html[data-theme="light"] body.app-shell::before {
    background:
        radial-gradient(ellipse 100% 55% at 50% -10%, rgba(30, 58, 95, 0.04), transparent 50%),
        linear-gradient(178deg, rgba(255, 255, 255, 0.35) 0%, transparent 38%, rgba(240, 245, 252, 0.55) 100%);
}

html[data-theme="light"] body.app-shell {
    background-color: #e8e8e8 !important;
    background-image:
        linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 55%, #dcdcdc 100%),
        var(--app-page-bg-image, none) !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

html[data-theme="light"] body.page-login,
html[data-theme="light"] body.page-gate {
    background-color: #e8e8e8 !important;
    background-image:
        linear-gradient(180deg, #f5f5f5 0%, #dedede 100%),
        var(--app-page-bg-image, none) !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

html[data-theme="light"] body.page-login::before,
html[data-theme="light"] body.page-gate::before {
    background: linear-gradient(200deg, rgba(30, 58, 95, 0.04) 0%, transparent 42%, rgba(244, 247, 251, 0.65) 100%);
}

html[data-theme="light"] .app-nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 247, 251, 0.82) 100%);
    border-bottom-color: rgba(30, 58, 95, 0.12);
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .app-nav__identity {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(30, 58, 95, 0.12);
}

html[data-theme="light"] .app-nav__id-sep {
    background: linear-gradient(180deg, transparent, rgba(30, 58, 95, 0.2), transparent);
}

html[data-theme="light"] .app-nav__module-rail {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(30, 58, 95, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .app-nav-mod {
    color: var(--text-primary);
}

html[data-theme="light"] .app-nav-mod:hover {
    color: var(--text-primary);
    background: rgba(30, 58, 95, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .app-nav-mod.is-active {
    color: #fff;
    background: linear-gradient(165deg, #1e3a5f 0%, #132238 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 16px rgba(30, 58, 95, 0.22);
}

html[data-theme="light"] .app-nav-mod.is-active .app-nav-mod__icon i {
    color: #fde68a;
}

html[data-theme="light"] .app-nav__module-divider {
    background: linear-gradient(180deg, transparent, rgba(30, 58, 95, 0.22), transparent);
}

html[data-theme="light"] .app-nav-clock {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(30, 58, 95, 0.12);
}

html[data-theme="light"] .app-nav__theme-toggle {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(30, 58, 95, 0.12);
}

html[data-theme="light"] .app-nav-theme.is-active {
    color: #fff;
    background: linear-gradient(165deg, #1e3a5f, #132238);
}

html[data-theme="light"] .app-nav__burger {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(30, 58, 95, 0.15);
    color: var(--accent-blue);
}

html[data-theme="light"] ::placeholder {
    color: #64748b;
    opacity: 1;
}

/* Mod terang — kandungan app (glossy card, borang, jadual) */
html[data-theme="light"] body.app-shell .glossy-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.96) 100%);
    border-color: rgba(30, 58, 95, 0.14);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

html[data-theme="light"] body.app-shell .glossy-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #0f172a;
}

html[data-theme="light"] body.app-shell .glossy-title .fa-folder-open {
    color: #1e3a5f !important;
}

html[data-theme="light"] body.app-shell .glossy-subtitle {
    color: #334155;
    border-bottom-color: rgba(30, 58, 95, 0.12);
}

html[data-theme="light"] body.app-shell .glossy-badge {
    background: rgba(30, 58, 95, 0.08);
    border-color: rgba(30, 58, 95, 0.18);
    color: #1e3a5f;
}

html[data-theme="light"] body.app-shell .glossy-search-form {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(30, 58, 95, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] body.app-shell .glossy-search-form .form-group label {
    color: #1e3a5f;
}

html[data-theme="light"] body.app-shell .glossy-input {
    background: #ffffff;
    border-color: rgba(30, 58, 95, 0.2);
    color: #0f172a;
}

html[data-theme="light"] body.app-shell .glossy-input:focus {
    background: #ffffff;
    border-color: rgba(30, 58, 95, 0.45);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

html[data-theme="light"] body.app-shell .glossy-input::placeholder {
    color: #64748b;
    opacity: 1;
}

html[data-theme="light"] body.app-shell .card label,
html[data-theme="light"] body.app-shell .form-row label {
    color: #334155;
}

html[data-theme="light"] body.app-shell .table-wrapper {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(30, 58, 95, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body.app-shell .glossy-table thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e3a5f;
    border-bottom: 2px solid rgba(30, 58, 95, 0.18);
}

html[data-theme="light"] body.app-shell .glossy-table tbody td {
    color: #1e293b;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body.app-shell .glossy-table tbody tr:hover {
    background: rgba(30, 58, 95, 0.06);
}

html[data-theme="light"] body.app-shell .col-number {
    color: #b45309;
}

html[data-theme="light"] body.app-shell .team-badge {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.12), rgba(30, 58, 95, 0.06));
    border-color: rgba(30, 58, 95, 0.2);
    color: #1e3a5f;
}

html[data-theme="light"] body.app-shell .team-badge:hover {
    color: #0f172a;
    border-color: #1e3a5f;
}

html[data-theme="light"] body.app-shell .section-title {
    color: #1e3a5f;
    border-bottom-color: rgba(30, 58, 95, 0.25);
}

html[data-theme="light"] body.app-shell .section-note {
    color: #475569;
}

html[data-theme="light"] body.app-shell .empty-state {
    color: #334155;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(30, 58, 95, 0.1);
}

html[data-theme="light"] body.app-shell .muted-text {
    color: #475569;
}

html[data-theme="light"] body.app-shell .tujuan-text {
    color: #334155;
}

html[data-theme="light"] body.app-shell .date-cell {
    color: #475569;
}

html[data-theme="light"] body.app-shell .date-cell .date {
    color: #1e293b;
}

html[data-theme="light"] body.app-shell .date-cell .time {
    color: #64748b;
}

html[data-theme="light"] body.app-shell .flash-ok {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.35);
    color: #166534;
}

html[data-theme="light"] body.app-shell .flash-err {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

html[data-theme="light"] body.app-shell .btn-glossy-ghost {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(30, 58, 95, 0.18);
    color: #334155;
}

html[data-theme="light"] body.app-shell .btn-glossy-ghost:hover {
    background: rgba(241, 245, 249, 0.95);
    color: #0f172a;
    border-color: rgba(30, 58, 95, 0.28);
}

html[data-theme="light"] body.app-shell .btn-back-dashboard {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 58, 95, 0.18);
    color: #0f172a;
}

html[data-theme="light"] body.app-shell .btn-back-dashboard:hover {
    color: #0f172a;
    border-color: rgba(30, 58, 95, 0.3);
}

html[data-theme="light"] body.app-shell .btn-back-dashboard__icon {
    background: rgba(30, 58, 95, 0.1);
    color: #1e3a5f;
    border-color: rgba(30, 58, 95, 0.2);
}

html[data-theme="light"] body.app-shell .modal-overlay {
    background: rgba(15, 23, 42, 0.45);
}

html[data-theme="light"] body.app-shell .modal-dialog {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(30, 58, 95, 0.18);
}

html[data-theme="light"] body.app-shell .modal-dialog h3 {
    color: #1e3a5f;
}

html[data-theme="light"] body.app-shell .modal-dialog label {
    color: #334155;
}

html[data-theme="light"] body.app-shell .modal-dialog textarea {
    background: #ffffff;
    border-color: rgba(30, 58, 95, 0.18);
    color: #0f172a;
}

html[data-theme="light"] body.app-shell a:not(.app-nav-mod):not(.btn-logout):not(.btn-back-dashboard):not(.team-badge) {
    color: #1d4ed8;
}

html[data-theme="light"] body.app-shell a:not(.app-nav-mod):not(.btn-logout):not(.btn-back-dashboard):not(.team-badge):hover {
    color: #1e40af;
}

@media (max-width: 900px) {
    html[data-theme="light"] .app-nav__module-shell {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.98) 100%);
        border-color: rgba(30, 58, 95, 0.12);
    }
}

html[data-theme="light"] body.app-shell table.data {
    color: #1e293b;
}

html[data-theme="light"] body.app-shell table.data thead th {
    background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%) !important;
    color: #0f172a !important;
    border-bottom: 2px solid rgba(30, 58, 95, 0.18) !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.app-shell table.data th {
    color: #0f172a !important;
}

html[data-theme="light"] body.app-shell table.data td {
    color: #1e293b;
}

html[data-theme="light"] body.app-shell .ok {
    color: #166534;
}

html[data-theme="light"] body.app-shell .err {
    color: #b91c1c;
}

html[data-theme="light"] body.app-shell .pelapor-label {
    color: #334155;
}

html[data-theme="light"] body.app-shell .pelapor-value {
    color: #0f172a;
}

html[data-theme="light"] body.app-shell .pelapor-card__welcome {
    color: #334155;
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(30, 58, 95, 0.1);
}

html[data-theme="light"] body.app-shell .card h1 {
    color: #0f172a;
}

html[data-theme="light"] body.app-shell .card h2 {
    color: #0f172a !important;
}

html[data-theme="light"] body.app-shell .card h3 {
    color: #1e3a5f !important;
}

html[data-theme="light"] body.app-shell .card p:not(.ok):not(.err) {
    color: #475569 !important;
}

html[data-theme="light"] body.app-shell .card p:not(.ok):not(.err) strong {
    color: #0f172a !important;
}

html[data-theme="light"] body.app-shell .card details {
    border-color: rgba(30, 58, 95, 0.15) !important;
    background: rgba(248, 250, 252, 0.98);
}

html[data-theme="light"] body.app-shell .card summary {
    color: #1e3a5f !important;
}

html[data-theme="light"] body.app-shell .card div[style*='129,140,248'] {
    border-color: rgba(30, 58, 95, 0.2) !important;
    background: rgba(241, 245, 249, 0.98) !important;
}

html[data-theme="light"] body.app-shell .card tr[style*='56,189,248'] {
    outline-color: rgba(30, 58, 95, 0.45) !important;
    background: rgba(30, 58, 95, 0.06) !important;
}

html[data-theme="light"] body.app-shell .card > div[style*='overflow-x'] {
    border-color: rgba(30, 58, 95, 0.12) !important;
}

html[data-theme="light"] .login-card,
html[data-theme="light"] .gate-overlay {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(30, 58, 95, 0.15);
}

html[data-theme="light"] .input-wrap input,
html[data-theme="light"] .gate-input-wrap input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(30, 58, 95, 0.12);
    color: var(--text-primary);
}

/* Skeleton / loading ringan (optional class) */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    min-height: 1rem;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Log masuk & gate — selaras padding kandungan */
body.page-login .login-shell,
body.page-gate .gate-overlay {
    position: relative;
    z-index: 1;
}

body.page-login .login-card,
body.page-gate .gate-overlay {
    box-shadow:
        var(--shadow-card),
        0 0 0 1px rgba(100, 170, 255, 0.06);
}

/* Pemantauan — jadual formasi/pasukan (tengah Negeri, Status, kiraan) */
body.app-shell table.data.pm-pasukan-table th.pm-pasukan-table__col-negeri,
body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__col-negeri,
body.app-shell table.data.pm-pasukan-table th.pm-pasukan-table__col-formasi,
body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__col-formasi,
body.app-shell table.data.pm-pasukan-table th.pm-pasukan-table__col-status,
body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__col-status,
body.app-shell table.data.pm-pasukan-table th.pm-pasukan-table__cnt,
body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__cnt {
    text-align: center !important;
    vertical-align: middle !important;
}

body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__col-status .pm-pasukan-table__status-wrap,
body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__col-negeri .pm-pasukan-table__cell-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.65rem;
    text-align: center;
}

body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__col-negeri .pm-pasukan-table__cell-center {
    display: block;
}

body.app-shell table.data.pm-pasukan-table td.pm-pasukan-table__col-status .pm-pasukan-row__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* =============================================================================
   ██████╗ ██████╗ ███████╗███╗   ███╗██╗██╗   ██╗███╗   ███╗
   ██╔══██╗██╔══██╗██╔════╝████╗ ████║██║██║   ██║████╗ ████║
   ██████╔╝██████╔╝█████╗  ██╔████╔██║██║██║   ██║██╔████╔██║
   ██╔═══╝ ██╔══██╗██╔══╝  ██║╚██╔╝██║██║██║   ██║██║╚██╔╝██║
   ██║     ██║  ██║███████╗██║ ╚═╝ ██║██║╚██████╔╝██║ ╚═╝ ██║
   ╚═╝     ╚═╝  ╚═╝╚══════╝╚═╝     ╚═╝╚═╝ ╚═════╝ ╚═╝     ╚═╝
   PREMIUM GOLD DESIGN UPGRADE — Audit HRMIS TD 2026
   Butang: bingkai emas · NavTop: kemas & cantik · Dashboard: premium
   ============================================================================= */

/* ────────────────────────────────────────────────────────────────────────────
   PEMBOLEH UBAH PREMIUM (tambahan)
   ──────────────────────────────────────────────────────────────────────────── */

:root {
    --gold-vivid: #f0d070;
    --gold-border-btn: rgba(201, 168, 76, 0.68);
    --gold-border-btn-hover: rgba(232, 201, 106, 0.95);
    --gold-glow: 0 0 0 3px rgba(201, 168, 76, 0.16);
    --shadow-btn-premium: 0 12px 36px rgba(174, 128, 44, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    --shadow-btn-premium-hover: 0 0 0 3px rgba(232, 201, 106, 0.2), 0 18px 44px rgba(174, 128, 44, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    --nav-height: clamp(3.75rem, 4.5rem, 5.5rem);
    --card-accent-strip: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.5) 18%, rgba(232, 201, 106, 0.95) 45%, rgba(255, 238, 160, 1) 50%, rgba(232, 201, 106, 0.95) 55%, rgba(201, 168, 76, 0.5) 82%, transparent 100%);
    --nav-gold-strip: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.45) 12%, rgba(232, 201, 106, 1) 38%, rgba(255, 240, 165, 1) 50%, rgba(232, 201, 106, 1) 62%, rgba(201, 168, 76, 0.45) 88%, transparent 100%);
}

/* ────────────────────────────────────────────────────────────────────────────
   NAVTOP — premium, kemas, tersusun
   ──────────────────────────────────────────────────────────────────────────── */

/* Garis emas di bahagian ATAS nav (tanda mahkota) */
.app-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--nav-gold-strip);
    pointer-events: none;
    z-index: 200;
    border-radius: 0;
}

.app-nav {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
    border-bottom: 1.5px solid rgba(232, 201, 106, 0.32) !important;
    box-shadow:
        0 14px 52px rgba(0, 5, 18, 0.55),
        0 2px 0 rgba(232, 201, 106, 0.06),
        inset 0 -1px 0 rgba(232, 201, 106, 0.08) !important;
    background: linear-gradient(180deg,
        rgba(7, 12, 28, 0.97) 0%,
        rgba(5, 10, 24, 0.90) 55%,
        rgba(7, 16, 34, 0.80) 100%) !important;
}

/* Logo — lebih menonjol */
.app-nav a.logo .nav-brand-logo {
    height: 38px;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 8px rgba(201, 168, 76, 0.1));
    transition: filter 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.app-nav a.logo:hover .nav-brand-logo {
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(232, 201, 106, 0.18));
}

/* Identity strip — kotak pengguna lebih premium */
.app-nav__identity {
    border: 1.5px solid rgba(201, 168, 76, 0.32) !important;
    background: linear-gradient(165deg, rgba(25, 42, 68, 0.72) 0%, rgba(7, 16, 34, 0.78) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 16px rgba(0, 5, 18, 0.28) !important;
}

.app-nav__id-lbl {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    color: rgba(201, 168, 76, 0.78) !important;
    text-transform: uppercase;
    font-weight: 700;
}

.app-nav__id-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f0f4fa;
    letter-spacing: 0.02em;
}

.app-nav__id-sep {
    background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.4), transparent) !important;
}

/* Module rail — lebih kemas */
.app-nav__module-rail {
    border: 1.5px solid rgba(201, 168, 76, 0.28) !important;
    background: rgba(7, 14, 32, 0.62) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 4, 16, 0.22) !important;
}

/* Nav module — keadaan aktif lebih menonjol */
.app-nav-mod.is-active {
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.2) 0%, rgba(30, 58, 95, 0.85) 100%) !important;
    box-shadow:
        0 0 0 1.5px rgba(232, 201, 106, 0.55),
        0 8px 28px rgba(0, 8, 24, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.app-nav-mod.is-active .app-nav-mod__icon i {
    color: var(--gold) !important;
    text-shadow: 0 0 14px rgba(232, 201, 106, 0.5);
}

.app-nav-mod.is-active .app-nav-mod__label {
    color: #fff;
    font-weight: 700;
}

.app-nav-mod:hover {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.6) 0%, rgba(14, 30, 54, 0.92) 100%) !important;
    box-shadow:
        0 0 0 1px rgba(201, 168, 76, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
}

/* Module divider — garis emas */
.app-nav__module-divider {
    background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.45), transparent) !important;
    opacity: 1 !important;
}

/* Jam — lebih premium */
.app-nav-clock {
    border: 1.5px solid rgba(201, 168, 76, 0.32) !important;
    background: linear-gradient(165deg, rgba(19, 34, 56, 0.72) 0%, rgba(7, 16, 34, 0.8) 100%) !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.app-nav-clock i {
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(232, 201, 106, 0.3);
}

/* Toggle tema nav */
.app-nav__theme-toggle {
    border: 1.5px solid rgba(201, 168, 76, 0.28) !important;
    background: rgba(7, 14, 32, 0.55) !important;
}

/* Log keluar — bingkai emas lebih jelas */
.btn-logout {
    border: 1.5px solid rgba(201, 168, 76, 0.52) !important;
    box-shadow:
        0 6px 20px rgba(40, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-logout:hover {
    border-color: rgba(232, 201, 106, 0.85) !important;
    box-shadow:
        0 0 0 2px rgba(201, 168, 76, 0.18),
        0 10px 28px rgba(60, 10, 10, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   SEMUA BUTANG — bingkai emas premium (gold border)
   ──────────────────────────────────────────────────────────────────────────── */

.btn {
    border: 1.5px solid var(--gold-border-btn) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

.btn:hover {
    border-color: var(--gold-border-btn-hover) !important;
    box-shadow:
        0 0 0 2px rgba(201, 168, 76, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 14px 38px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
}

.btn:active {
    transform: translateY(0px) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.22) !important;
}

/* Butang utama (emas penuh) */
.btn-primary {
    border: 1.5px solid rgba(232, 201, 106, 0.95) !important;
    background: linear-gradient(135deg, #e8c96a 0%, #c9a84c 45%, #dab84a 70%, #e8c96a 100%) !important;
    background-size: 220% auto !important;
    color: #0d1520 !important;
    font-weight: 700;
    box-shadow: var(--shadow-btn-premium) !important;
    transition: transform 0.28s var(--ease-premium), box-shadow 0.28s var(--ease-premium),
                border-color 0.28s var(--ease-premium), filter 0.28s var(--ease-premium),
                background-position 0.5s ease !important;
}

.btn-primary:hover {
    background-position: right center !important;
    border-color: rgba(255, 238, 150, 1) !important;
    box-shadow: var(--shadow-btn-premium-hover) !important;
    transform: translateY(-2px) !important;
    filter: brightness(1.03) !important;
}

/* Butang bahaya — kekal merah, bingkai emas */
.btn-danger {
    border: 1.5px solid rgba(201, 168, 76, 0.52) !important;
    box-shadow:
        0 8px 26px rgba(120, 30, 30, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.btn-danger:hover {
    border-color: rgba(232, 201, 106, 0.78) !important;
    box-shadow:
        0 0 0 2px rgba(201, 168, 76, 0.15),
        0 12px 30px rgba(120, 30, 30, 0.38) !important;
    transform: translateY(-2px) !important;
}

/* Butang hantu (ghost) */
.btn-ghost {
    border: 1.5px solid rgba(201, 168, 76, 0.52) !important;
    background: rgba(9, 18, 38, 0.42) !important;
}

.btn-ghost:hover {
    border-color: rgba(232, 201, 106, 0.88) !important;
    background: rgba(201, 168, 76, 0.1) !important;
    box-shadow:
        0 0 0 2px rgba(201, 168, 76, 0.14),
        0 10px 28px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Butang kembali ke dashboard */
.btn-back-dashboard {
    border: 1.5px solid var(--gold-border-btn) !important;
}

.btn-back-dashboard:hover {
    border-color: var(--gold-border-btn-hover) !important;
    box-shadow:
        0 12px 32px rgba(0, 16, 40, 0.45),
        0 0 0 2px rgba(201, 168, 76, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Glossy buttons */
body.app-shell .btn-glossy,
body.app-shell .btn-glossy-primary {
    border: 1.5px solid rgba(232, 201, 106, 0.92) !important;
    box-shadow: var(--shadow-btn-premium) !important;
}

body.app-shell .btn-glossy:hover,
body.app-shell .btn-glossy-primary:hover {
    border-color: rgba(255, 238, 150, 1) !important;
    box-shadow: var(--shadow-btn-premium-hover) !important;
    transform: translateY(-2px) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   PENGESAHAN KOD (Gate) — reka bentuk premium & dramatik
   ──────────────────────────────────────────────────────────────────────────── */

.gate-overlay {
    max-width: 510px !important;
    padding: 2.35rem 2.1rem 1.85rem !important;
    border: 1.5px solid rgba(232, 201, 106, 0.52) !important;
    box-shadow:
        0 32px 88px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(232, 201, 106, 0.12),
        0 0 70px rgba(201, 168, 76, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    background: rgba(6, 16, 38, 0.88) !important;
}

/* Garis emas tebal di atas kad pengesahan */
.gate-overlay::before {
    height: 3px !important;
    background: var(--card-accent-strip) !important;
}

.gate-brand img {
    max-height: 104px !important;
    filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 14px rgba(201, 168, 76, 0.14)) !important;
}

.gate-brand {
    margin-bottom: 0.65rem !important;
}

.gate-welcome {
    font-size: 1.05rem !important;
    font-weight: 400;
    margin-bottom: 1.4rem !important;
    color: var(--text-secondary);
    line-height: 1.6;
}

.gate-welcome strong {
    color: var(--gold) !important;
    font-weight: 600;
}

.gate-title {
    font-size: 0.9rem !important;
    font-weight: 600;
    margin-bottom: 1.2rem !important;
    padding: 0.52rem 0.88rem;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.09);
    border: 1.5px solid rgba(201, 168, 76, 0.25) !important;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gate-title i {
    color: var(--gold) !important;
    font-size: 1.1rem;
}

.gate-captcha-img {
    border: 1.5px solid rgba(201, 168, 76, 0.45) !important;
    border-radius: 16px !important;
    margin-bottom: 1.3rem !important;
    box-shadow:
        0 10px 36px rgba(0, 8, 20, 0.48),
        0 0 0 4px rgba(201, 168, 76, 0.06) !important;
}

.gate-input-wrap input {
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 0.88rem 2.85rem 0.88rem 1.05rem !important;
    font-size: 1rem !important;
    background: rgba(4, 13, 30, 0.78) !important;
}

.gate-input-wrap input:focus {
    border-color: rgba(232, 201, 106, 0.62) !important;
    box-shadow:
        0 0 0 3px rgba(201, 168, 76, 0.15),
        0 0 0 1px rgba(232, 201, 106, 0.35) !important;
}

.gate-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.84rem !important;
    font-weight: 500;
    border: 1.5px solid rgba(201, 168, 76, 0.38) !important;
    border-radius: 10px !important;
    padding: 0.52rem 0.95rem !important;
    background: rgba(7, 16, 34, 0.5) !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), background 0.25s var(--ease-out) !important;
}

.gate-reset:hover {
    border-color: rgba(232, 201, 106, 0.72) !important;
    color: var(--gold-icon) !important;
    background: rgba(201, 168, 76, 0.09) !important;
}

.gate-submit {
    border: 1.5px solid rgba(232, 201, 106, 0.95) !important;
    background: linear-gradient(135deg, #e8c96a 0%, #c9a84c 45%, #dab84a 70%, #e8c96a 100%) !important;
    background-size: 220% auto !important;
    color: #0d1520 !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.72rem 1.75rem !important;
    border-radius: var(--radius-btn) !important;
    box-shadow: var(--shadow-btn-premium) !important;
    transition: transform 0.28s var(--ease-premium), box-shadow 0.28s var(--ease-premium),
                border-color 0.28s var(--ease-premium), background-position 0.5s ease !important;
}

.gate-submit:hover {
    background-position: right center !important;
    border-color: rgba(255, 240, 155, 1) !important;
    box-shadow: var(--shadow-btn-premium-hover) !important;
    transform: translateY(-3px) !important;
}

.gate-submit:active {
    transform: translateY(0) !important;
}

.gate-actions {
    margin-top: 1.15rem !important;
    gap: 0.85rem !important;
}

.gate-footer-line {
    margin-top: 1.55rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.gate-footer-line span {
    font-size: 0.63rem !important;
    letter-spacing: 0.22em;
    color: rgba(148, 168, 196, 0.6) !important;
}

.gate-copy {
    margin-top: 1.5rem !important;
    font-size: 0.79rem;
    color: rgba(148, 168, 196, 0.62) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   LOG MASUK (Login) — premium, mewah, lebih lebar
   ──────────────────────────────────────────────────────────────────────────── */

.login-shell {
    max-width: 470px !important;
}

.login-card {
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(232, 201, 106, 0.5) !important;
    padding: 2.35rem 2.25rem 2.1rem !important;
    box-shadow:
        0 32px 88px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(232, 201, 106, 0.1),
        0 0 70px rgba(201, 168, 76, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

/* Garis emas di bahagian atas kad log masuk */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    background: var(--card-accent-strip);
    pointer-events: none;
    z-index: 1;
}

.login-brand {
    margin-bottom: 1.95rem !important;
}

.login-brand h1 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gold-vivid) 55%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    margin-top: 0.25rem;
}

.login-brand p {
    font-size: 0.9rem !important;
    color: var(--text-secondary);
    margin-top: 0.5rem !important;
}

.login-brand-badge {
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
    padding: 0.44rem 0.92rem !important;
    border: 1.5px solid rgba(201, 168, 76, 0.48) !important;
    background: rgba(201, 168, 76, 0.1) !important;
    color: var(--gold-icon) !important;
}

.field label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: rgba(201, 168, 76, 0.85) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.field {
    margin-bottom: 1.25rem !important;
}

.input-wrap input {
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 0.88rem 1.05rem !important;
    font-size: 0.95rem !important;
    background: rgba(4, 13, 30, 0.78) !important;
}

.input-wrap--pass input {
    padding-right: 3.2rem !important;
}

.input-wrap input:focus {
    border-color: rgba(232, 201, 106, 0.62) !important;
    box-shadow:
        0 0 0 3px rgba(201, 168, 76, 0.15),
        0 0 0 1px rgba(232, 201, 106, 0.35) !important;
}

.btn-login {
    margin-top: 0.5rem !important;
    padding: 0.95rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1.5px solid rgba(232, 201, 106, 0.95) !important;
    background: linear-gradient(135deg, #e8c96a 0%, #c9a84c 45%, #dab84a 70%, #e8c96a 100%) !important;
    background-size: 220% auto !important;
    color: #0d1520 !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-btn-premium) !important;
    transition: transform 0.28s var(--ease-premium), box-shadow 0.28s var(--ease-premium),
                border-color 0.28s var(--ease-premium), background-position 0.5s ease !important;
}

.btn-login:hover {
    background-position: right center !important;
    border-color: rgba(255, 240, 155, 1) !important;
    box-shadow: var(--shadow-btn-premium-hover) !important;
    transform: translateY(-2px) !important;
}

.btn-login:active {
    transform: translateY(0) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   KAD DASHBOARD — garis emas di atas, lebih premium
   ──────────────────────────────────────────────────────────────────────────── */

/* Garis emas di atas dash-panel */
.dash-panel {
    border: 1.5px solid rgba(201, 168, 76, 0.32) !important;
    position: relative;
    overflow: hidden;
}

.dash-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--card-accent-strip);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

body.app-shell .dash-panel:hover {
    border-color: rgba(232, 201, 106, 0.58) !important;
    box-shadow: var(--shadow-card-hover) !important;
}

/* pelapor-card — bingkai emas lebih kuat */
.pelapor-card {
    border: 1.5px solid rgba(201, 168, 76, 0.28) !important;
    position: relative;
    overflow: hidden;
}

.pelapor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-accent-strip);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

body.app-shell .pelapor-card:hover {
    border-color: rgba(232, 201, 106, 0.55) !important;
}

/* Kad generik */
body.app-shell .card {
    border: 1.5px solid rgba(201, 168, 76, 0.28) !important;
    position: relative;
    overflow: hidden;
}

body.app-shell .card:hover {
    border-color: rgba(232, 201, 106, 0.55) !important;
}

/* Glossy card — modul utama */
body.app-shell .glossy-card {
    border: 1.5px solid rgba(201, 168, 76, 0.32) !important;
    position: relative;
    overflow: hidden;
}

body.app-shell .glossy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--card-accent-strip);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

body.app-shell .glossy-card:hover {
    border-color: rgba(232, 201, 106, 0.58) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   DASHBOARD UTAMA — panel navigasi dalaman
   ──────────────────────────────────────────────────────────────────────────── */

.dash-home-modnav__btn {
    border: 1.5px solid rgba(201, 168, 76, 0.28) !important;
}

.dash-home-modnav__btn:hover {
    border-color: rgba(232, 201, 106, 0.72) !important;
    box-shadow:
        0 0 0 1px rgba(201, 168, 76, 0.15),
        0 12px 32px rgba(0, 8, 22, 0.42) !important;
    transform: translateX(-3px) !important;
}

.dash-home-modnav__btn.is-active {
    border-color: rgba(232, 201, 106, 0.72) !important;
    box-shadow:
        0 0 0 2px rgba(201, 168, 76, 0.15),
        0 14px 36px rgba(0, 10, 28, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.dash-home-modnav__btn.is-active .dash-home-modnav__icon {
    background: rgba(201, 168, 76, 0.25) !important;
    border-color: rgba(201, 168, 76, 0.48) !important;
    color: var(--gold) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   TAJUK HALAMAN — lebih besar, berat, premium
   ──────────────────────────────────────────────────────────────────────────── */

.dash-title {
    font-size: clamp(1.38rem, 2.8vw, 1.65rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em;
}

.dash-title i {
    color: var(--gold) !important;
    text-shadow: 0 0 18px rgba(232, 201, 106, 0.4);
}

body.app-shell h1 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
}

body.app-shell h2 {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
}

body.app-shell .glossy-title {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   INPUT FORM DALAM APP — focus dengan garis emas
   ──────────────────────────────────────────────────────────────────────────── */

body.app-shell input:focus,
body.app-shell select:focus,
body.app-shell textarea:focus {
    border-color: rgba(232, 201, 106, 0.5) !important;
    box-shadow:
        0 0 0 3px rgba(201, 168, 76, 0.14),
        0 0 0 1px rgba(232, 201, 106, 0.28) !important;
    outline: none;
}

body.app-shell input,
body.app-shell select,
body.app-shell textarea {
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   JADUAL DATA — header emas lebih jelas
   ──────────────────────────────────────────────────────────────────────────── */

body.app-shell table.data thead th {
    border-bottom: 1.5px solid rgba(201, 168, 76, 0.32) !important;
    color: var(--gold-icon) !important;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
}

body.app-shell .table-scroll,
body.app-shell .table-wrap,
body.app-shell .bap-table-wrap {
    border: 1.5px solid rgba(201, 168, 76, 0.25) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   MOD TERANG — kekalkan keserasian
   ──────────────────────────────────────────────────────────────────────────── */

html[data-theme="light"] .app-nav::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(30, 58, 95, 0.35) 12%,
        rgba(30, 58, 95, 0.85) 38%,
        rgba(30, 58, 95, 1) 50%,
        rgba(30, 58, 95, 0.85) 62%,
        rgba(30, 58, 95, 0.35) 88%,
        transparent 100%
    );
}

html[data-theme="light"] .login-card::before,
html[data-theme="light"] .gate-overlay::before,
html[data-theme="light"] .dash-panel::before,
html[data-theme="light"] .pelapor-card::before,
html[data-theme="light"] body.app-shell .glossy-card::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(30, 58, 95, 0.4) 18%,
        rgba(30, 58, 95, 0.85) 45%,
        rgba(30, 58, 95, 1) 50%,
        rgba(30, 58, 95, 0.85) 55%,
        rgba(30, 58, 95, 0.4) 82%,
        transparent 100%
    ) !important;
}

html[data-theme="light"] .btn {
    border-color: rgba(30, 58, 95, 0.38) !important;
}

html[data-theme="light"] .btn:hover {
    border-color: rgba(30, 58, 95, 0.7) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 2px rgba(30, 58, 95, 0.1),
        0 8px 24px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 45%, #1a4a7a 70%, #1e3a5f 100%) !important;
    background-size: 220% auto !important;
    border-color: rgba(30, 58, 95, 0.92) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="light"] .btn-primary:hover {
    background-position: right center !important;
    border-color: rgba(30, 58, 95, 1) !important;
    box-shadow:
        0 0 0 3px rgba(30, 58, 95, 0.15),
        0 16px 38px rgba(30, 58, 95, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="light"] .btn-ghost {
    border-color: rgba(30, 58, 95, 0.38) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: #1e3a5f !important;
}

html[data-theme="light"] .btn-ghost:hover {
    border-color: rgba(30, 58, 95, 0.65) !important;
    background: rgba(30, 58, 95, 0.08) !important;
}

html[data-theme="light"] .btn-login,
html[data-theme="light"] .gate-submit {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 45%, #1a4a7a 70%, #1e3a5f 100%) !important;
    background-size: 220% auto !important;
    border-color: rgba(30, 58, 95, 0.92) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="light"] .btn-login:hover,
html[data-theme="light"] .gate-submit:hover {
    background-position: right center !important;
    border-color: rgba(30, 58, 95, 1) !important;
    box-shadow:
        0 0 0 3px rgba(30, 58, 95, 0.15),
        0 18px 42px rgba(30, 58, 95, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

html[data-theme="light"] .field label {
    color: #1e3a5f !important;
}

html[data-theme="light"] .login-brand h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #0f172a !important;
}

html[data-theme="light"] .btn-logout {
    border-color: rgba(30, 58, 95, 0.4) !important;
}

html[data-theme="light"] .btn-logout:hover {
    border-color: rgba(30, 58, 95, 0.7) !important;
    box-shadow:
        0 0 0 2px rgba(30, 58, 95, 0.12),
        0 10px 28px rgba(60, 10, 10, 0.38) !important;
}

html[data-theme="light"] body.app-shell input:focus,
html[data-theme="light"] body.app-shell select:focus,
html[data-theme="light"] body.app-shell textarea:focus {
    border-color: rgba(30, 58, 95, 0.55) !important;
    box-shadow:
        0 0 0 3px rgba(30, 58, 95, 0.12),
        0 0 0 1px rgba(30, 58, 95, 0.32) !important;
}

html[data-theme="light"] .input-wrap input:focus,
html[data-theme="light"] .gate-input-wrap input:focus {
    border-color: rgba(30, 58, 95, 0.55) !important;
    box-shadow:
        0 0 0 3px rgba(30, 58, 95, 0.12),
        0 0 0 1px rgba(30, 58, 95, 0.32) !important;
}

html[data-theme="light"] .dash-home-modnav__btn {
    border-color: rgba(30, 58, 95, 0.22) !important;
}

html[data-theme="light"] .dash-home-modnav__btn:hover,
html[data-theme="light"] .dash-home-modnav__btn.is-active {
    border-color: rgba(30, 58, 95, 0.5) !important;
}

html[data-theme="light"] body.app-shell .glossy-card,
html[data-theme="light"] .dash-panel,
html[data-theme="light"] .pelapor-card,
html[data-theme="light"] body.app-shell .card {
    border-color: rgba(30, 58, 95, 0.15) !important;
}

html[data-theme="light"] body.app-shell table.data thead th {
    border-bottom-color: rgba(30, 58, 95, 0.28) !important;
    color: #1e3a5f !important;
}

/* =============================================================================
   LIGHT MODE ENHANCEMENT v2 — Nav labels + Rich card appearance
   ============================================================================= */

/* ── Fix: Nav module labels invisible ──────────────────────────────────────────
   The premium design keeps the nav DARK (via !important) in both modes.
   Light mode sets --text-primary = #0f172a (dark navy), making labels invisible
   on the dark nav. Restore white labels so they're readable.
   ──────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .app-nav-mod {
    color: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="light"] .app-nav-mod:hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="light"] .app-nav-mod.is-active {
    color: #ffffff !important;
}

/* ── Richer page background ────────────────────────────────────────────────── */
html[data-theme="light"] body.app-shell {
    background-color: #d8e4f2 !important;
    background-image:
        linear-gradient(185deg, rgba(240, 246, 255, 0.68) 0%, rgba(235, 242, 252, 0.76) 55%, rgba(215, 228, 245, 0.80) 100%),
        radial-gradient(ellipse 80% 40% at 15% -5%, rgba(30, 58, 95, 0.04), transparent 55%),
        var(--app-page-bg-image, none) !important;
    background-size: cover, cover, cover !important;
    background-position: center, center, center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* ── Cards — more depth, off-white, subtle navy top accent ─────────────────── */
html[data-theme="light"] body.app-shell .card {
    background: #fafcff !important;
    border: 1.5px solid rgba(30, 58, 95, 0.13) !important;
    border-top: 2.5px solid rgba(30, 58, 95, 0.26) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 24px rgba(15, 23, 42, 0.07),
        0 20px 48px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

html[data-theme="light"] body.app-shell .card:hover {
    border-color: rgba(30, 58, 95, 0.28) !important;
    border-top-color: rgba(201, 168, 76, 0.65) !important;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 12px 36px rgba(15, 23, 42, 0.1),
        0 28px 56px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* Glossy card & dash-panel stay richer too */
html[data-theme="light"] body.app-shell .glossy-card,
html[data-theme="light"] .dash-panel,
html[data-theme="light"] .pelapor-card {
    background: #fafcff !important;
    border: 1.5px solid rgba(30, 58, 95, 0.13) !important;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.05),
        0 10px 36px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* ── Summary / stat cards — colored left border accent ─────────────────────── */
html[data-theme="light"] .pm-summary__card {
    background: #ffffff !important;
    border-color: rgba(30, 58, 95, 0.15) !important;
    border-left: 3.5px solid rgba(30, 58, 95, 0.35) !important;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 4px 14px rgba(15, 23, 42, 0.07) !important;
    position: relative;
}

html[data-theme="light"] .pm-summary__card--neutral {
    border-left-color: rgba(30, 58, 95, 0.45) !important;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.7) 0%, #ffffff 100%) !important;
}

html[data-theme="light"] .pm-summary__card--belum {
    border-left-color: #64748b !important;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, #ffffff 100%) !important;
}

html[data-theme="light"] .pm-summary__card--sedang {
    border-left-color: #2563eb !important;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.85) 0%, #ffffff 100%) !important;
}

html[data-theme="light"] .pm-summary__card--selesai {
    border-left-color: #16a34a !important;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.85) 0%, #ffffff 100%) !important;
}

html[data-theme="light"] .pm-summary__card--gagal {
    border-left-color: #dc2626 !important;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.85) 0%, #ffffff 100%) !important;
}

/* ── Back button — a bit more visible on lighter bg ────────────────────────── */
html[data-theme="light"] body.app-shell .btn-back-dashboard {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1.5px solid rgba(30, 58, 95, 0.22) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255,255,255,1) !important;
}

/* ── Table rows — slight alternating tint ──────────────────────────────────── */
html[data-theme="light"] body.app-shell table.data tbody tr:nth-child(even) {
    background: rgba(238, 245, 255, 0.45);
}

html[data-theme="light"] body.app-shell table.data tbody tr:hover {
    background: rgba(30, 58, 95, 0.06) !important;
}

/* ── Input fields — crisp white on tinted page ─────────────────────────────── */
html[data-theme="light"] body.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] body.app-shell select,
html[data-theme="light"] body.app-shell textarea {
    background: #ffffff !important;
    border-color: rgba(30, 58, 95, 0.22) !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.app-shell input:focus,
html[data-theme="light"] body.app-shell select:focus,
html[data-theme="light"] body.app-shell textarea:focus {
    border-color: rgba(30, 58, 95, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
    outline: none !important;
}


/* ============================================================
   LIGHT MODE — k-briefing (Penerangan K1–K6) overrides
   ============================================================ */

html[data-theme="light"] .k-briefing {
    background: #ffffff !important;
    border-color: rgba(30, 58, 95, 0.18) !important;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.08) !important;
}
html[data-theme="light"] .k-briefing.is-open {
    border-color: rgba(30, 58, 95, 0.35) !important;
    box-shadow: 0 4px 18px rgba(30, 58, 95, 0.14) !important;
}
html[data-theme="light"] .k-briefing__trigger {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.75) 0%, rgba(241, 245, 249, 0.55) 100%) !important;
    color: #0f172a !important;
}
html[data-theme="light"] .k-briefing__trigger:hover {
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.88) 0%, rgba(226, 232, 240, 0.72) 100%) !important;
}
html[data-theme="light"] .k-briefing__meta {
    background: rgba(30, 58, 95, 0.10) !important;
    border-color: rgba(30, 58, 95, 0.22) !important;
    color: #1e3a5f !important;
}
html[data-theme="light"] .k-briefing__chev {
    background: rgba(30, 58, 95, 0.10) !important;
    border-color: rgba(30, 58, 95, 0.28) !important;
    color: #1e3a5f !important;
}
html[data-theme="light"] .k-briefing__title {
    color: #0f172a !important;
}
html[data-theme="light"] .k-briefing__index {
    color: #475569 !important;
}
html[data-theme="light"] .k-briefing__section-label {
    background: rgba(201, 168, 76, 0.10) !important;
    color: #7a5c12 !important;
    border-left-color: #b58a2e !important;
}
html[data-theme="light"] .k-briefing__subhead {
    color: #334155 !important;
}
html[data-theme="light"] .k-briefing__subhead i {
    color: #b58a2e !important;
}
html[data-theme="light"] .k-briefing__criteria-list {
    color: #334155 !important;
}
html[data-theme="light"] .k-briefing__criteria-list li::marker {
    color: #b58a2e !important;
}
html[data-theme="light"] .k-briefing__audit-text p {
    background: rgba(241, 245, 249, 0.85) !important;
    border-color: rgba(30, 58, 95, 0.14) !important;
    color: #334155 !important;
}
html[data-theme="light"] .k-briefing__check-grid li {
    background: rgba(241, 245, 249, 0.90) !important;
    border-color: rgba(30, 58, 95, 0.14) !important;
    color: #334155 !important;
}
html[data-theme="light"] .k-briefing__check-no {
    color: #b58a2e !important;
}
html[data-theme="light"] .k-briefing__check-label {
    color: #1e293b !important;
}
html[data-theme="light"] .k-briefing__pic {
    background: linear-gradient(165deg, rgba(219, 234, 254, 0.70) 0%, rgba(241, 245, 249, 0.85) 100%) !important;
    border-color: rgba(30, 58, 95, 0.22) !important;
}
html[data-theme="light"] .k-briefing__pic-block + .k-briefing__pic-block {
    border-top-color: rgba(30, 58, 95, 0.14) !important;
}
html[data-theme="light"] .k-briefing__pic-role {
    color: #0f172a !important;
}
html[data-theme="light"] .k-briefing__pic-num {
    color: #b58a2e !important;
}
html[data-theme="light"] .k-briefing__doc-list {
    color: #334155 !important;
}
html[data-theme="light"] .k-briefing__doc-list li::marker {
    color: #1d4ed8 !important;
}
html[data-theme="light"] .k-briefing__pic-empty {
    color: #64748b !important;
}
html[data-theme="light"] .k-briefing-stack__foot {
    border-top-color: rgba(30, 58, 95, 0.15) !important;
}

/* ====================================================================
   GOLD THEME — Light Mode master override (white / grey / black + emas)
   Appended last; all rules use !important to win over earlier blocks.
   ==================================================================== */

/* --- Nav bar: white with gold bottom border --- */
html[data-theme="light"] .app-nav {
    background: #ffffff !important;
    border-bottom: 2px solid rgba(180, 140, 30, 0.55) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .app-nav__identity {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(180, 140, 30, 0.30) !important;
}
html[data-theme="light"] .app-nav__id-sep {
    background: linear-gradient(180deg, transparent, rgba(180, 140, 30, 0.28), transparent) !important;
}
html[data-theme="light"] .app-nav__module-rail {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(180, 140, 30, 0.25) !important;
    box-shadow: none !important;
}
html[data-theme="light"] .app-nav-mod {
    color: #333333 !important;
}
html[data-theme="light"] .app-nav-mod:hover {
    color: #111111 !important;
    background: rgba(180, 140, 30, 0.08) !important;
    box-shadow: none !important;
}
html[data-theme="light"] .app-nav-mod.is-active {
    color: #ffffff !important;
    background: linear-gradient(165deg, #c9a84c 0%, #a67c2e 100%) !important;
    box-shadow: 0 4px 16px rgba(180, 140, 30, 0.35) !important;
}
html[data-theme="light"] .app-nav-mod.is-active .app-nav-mod__icon i {
    color: #ffffff !important;
}
html[data-theme="light"] .app-nav__module-divider {
    background: linear-gradient(180deg, transparent, rgba(180, 140, 30, 0.25), transparent) !important;
}
html[data-theme="light"] .app-nav-clock {
    background: #f8f8f8 !important;
    border-color: rgba(180, 140, 30, 0.28) !important;
}
html[data-theme="light"] .app-nav__theme-toggle {
    background: #f8f8f8 !important;
    border-color: rgba(180, 140, 30, 0.28) !important;
}
html[data-theme="light"] .app-nav-theme.is-active {
    background: linear-gradient(135deg, #c9a84c, #a67c2e) !important;
    color: #ffffff !important;
}
html[data-theme="light"] .app-nav__burger {
    background: #f8f8f8 !important;
    border-color: rgba(180, 140, 30, 0.38) !important;
    color: #333333 !important;
}
@media (max-width: 900px) {
    html[data-theme="light"] .app-nav__module-shell {
        background: #ffffff !important;
        border-color: rgba(180, 140, 30, 0.30) !important;
    }
}

/* --- Theme toggle floating --- */
html[data-theme="light"] .theme-floating {
    background: #ffffff !important;
    border-color: rgba(180, 140, 30, 0.45) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10) !important;
}
html[data-theme="light"] .theme-floating__btn.is-active {
    background: linear-gradient(135deg, #c9a84c, #a67c2e) !important;
    color: #ffffff !important;
}

/* --- Cards / module panels: white bg + gold border --- */
html[data-theme="light"] body.app-shell .glossy-card,
html[data-theme="light"] body.app-shell .card,
html[data-theme="light"] body.app-shell .pelapor-card,
html[data-theme="light"] body.app-shell .dash-notes-card,
html[data-theme="light"] body.app-shell .table-wrapper {
    background: #ffffff !important;
    border: 1.5px solid rgba(180, 140, 30, 0.45) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
}
html[data-theme="light"] body.app-shell .glossy-search-form {
    background: #f5f5f5 !important;
    border: 1px solid rgba(180, 140, 30, 0.35) !important;
    box-shadow: none !important;
}

/* --- Card text --- */
html[data-theme="light"] body.app-shell .glossy-title {
    color: #111111 !important;
}
html[data-theme="light"] body.app-shell .glossy-title .fa-folder-open {
    color: #a67c2e !important;
}
html[data-theme="light"] body.app-shell .glossy-subtitle {
    color: #333333 !important;
    border-bottom-color: rgba(180, 140, 30, 0.28) !important;
}
html[data-theme="light"] body.app-shell .glossy-badge {
    background: rgba(180, 140, 30, 0.10) !important;
    border-color: rgba(180, 140, 30, 0.42) !important;
    color: #7a5c12 !important;
}
html[data-theme="light"] body.app-shell .section-title {
    color: #111111 !important;
    border-bottom: 1.5px solid rgba(180, 140, 30, 0.45) !important;
}
html[data-theme="light"] body.app-shell .glossy-search-form .form-group label {
    color: #333333 !important;
}
html[data-theme="light"] body.app-shell .pelapor-card__welcome {
    background: #f5f5f5 !important;
    border-color: rgba(180, 140, 30, 0.28) !important;
}
html[data-theme="light"] body.app-shell .card h3 {
    color: #222222 !important;
}
html[data-theme="light"] body.app-shell .card summary {
    color: #333333 !important;
}
html[data-theme="light"] body.app-shell .card details {
    border-color: rgba(180, 140, 30, 0.30) !important;
    background: #f8f8f8 !important;
}
html[data-theme="light"] body.app-shell .empty-state {
    background: #f5f5f5 !important;
    border: 1px solid rgba(180, 140, 30, 0.28) !important;
    color: #444444 !important;
}

/* --- Inputs: white bg, gold border on focus --- */
html[data-theme="light"] body.app-shell .glossy-input,
html[data-theme="light"] body.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
html[data-theme="light"] body.app-shell select,
html[data-theme="light"] body.app-shell textarea {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    color: #111111 !important;
}
html[data-theme="light"] body.app-shell .glossy-input:focus,
html[data-theme="light"] body.app-shell input:focus,
html[data-theme="light"] body.app-shell select:focus,
html[data-theme="light"] body.app-shell textarea:focus {
    border-color: rgba(180, 140, 30, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(180, 140, 30, 0.14) !important;
    outline: none !important;
}
html[data-theme="light"] .input-wrap input,
html[data-theme="light"] .gate-input-wrap input {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #111111 !important;
}
html[data-theme="light"] .input-wrap input:focus,
html[data-theme="light"] .gate-input-wrap input:focus {
    border-color: rgba(180, 140, 30, 0.70) !important;
    box-shadow: 0 0 0 3px rgba(180, 140, 30, 0.14) !important;
}

/* --- Buttons: gold border on ghost/outline buttons --- */
html[data-theme="light"] body.app-shell .btn-glossy-ghost,
html[data-theme="light"] body.app-shell .btn-back-dashboard,
html[data-theme="light"] body.app-shell .btn.btn-ghost,
html[data-theme="light"] body.app-shell button.btn-ghost,
html[data-theme="light"] body.app-shell .btn-sm.btn-ghost {
    background: #ffffff !important;
    border-color: rgba(180, 140, 30, 0.55) !important;
    color: #333333 !important;
}
html[data-theme="light"] body.app-shell .btn-glossy-ghost:hover,
html[data-theme="light"] body.app-shell .btn-back-dashboard:hover,
html[data-theme="light"] body.app-shell .btn.btn-ghost:hover,
html[data-theme="light"] body.app-shell button.btn-ghost:hover {
    background: rgba(180, 140, 30, 0.06) !important;
    border-color: rgba(180, 140, 30, 0.80) !important;
    color: #111111 !important;
}
html[data-theme="light"] body.app-shell .btn-back-dashboard__icon {
    background: rgba(180, 140, 30, 0.10) !important;
    color: #a67c2e !important;
    border-color: rgba(180, 140, 30, 0.32) !important;
}

/* --- Table headers & rows --- */
html[data-theme="light"] body.app-shell .glossy-table thead th,
html[data-theme="light"] body.app-shell table.data thead th {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%) !important;
    color: #111111 !important;
    border-bottom: 2px solid rgba(180, 140, 30, 0.50) !important;
    box-shadow: none !important;
}
html[data-theme="light"] body.app-shell .glossy-table tbody td,
html[data-theme="light"] body.app-shell table.data td {
    color: #222222 !important;
    border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}
html[data-theme="light"] body.app-shell .glossy-table tbody tr:hover,
html[data-theme="light"] body.app-shell table.data tbody tr:hover {
    background: rgba(180, 140, 30, 0.05) !important;
}
html[data-theme="light"] body.app-shell table.data th {
    color: #111111 !important;
}

/* --- Team badge --- */
html[data-theme="light"] body.app-shell .team-badge {
    background: #f5f5f5 !important;
    border: 1.5px solid rgba(180, 140, 30, 0.45) !important;
    color: #222222 !important;
}
html[data-theme="light"] body.app-shell .team-badge:hover {
    background: rgba(180, 140, 30, 0.08) !important;
    border-color: rgba(180, 140, 30, 0.75) !important;
    color: #111111 !important;
}

/* --- Modal dialog --- */
html[data-theme="light"] body.app-shell .modal-dialog {
    background: #ffffff !important;
    border: 1.5px solid rgba(180, 140, 30, 0.52) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18) !important;
}
html[data-theme="light"] body.app-shell .modal-dialog h3 {
    color: #111111 !important;
}
html[data-theme="light"] body.app-shell .modal-dialog label {
    color: #333333 !important;
}
html[data-theme="light"] body.app-shell .modal-dialog textarea {
    background: #f8f8f8 !important;
    border-color: rgba(180, 140, 30, 0.42) !important;
    color: #111111 !important;
}

/* --- Login / gate card --- */
html[data-theme="light"] .login-card,
html[data-theme="light"] .gate-overlay {
    background: #ffffff !important;
    border: 1.5px solid rgba(180, 140, 30, 0.48) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10) !important;
}

/* --- k-briefing accordion: white/grey, gold borders --- */
html[data-theme="light"] .k-briefing {
    background: #ffffff !important;
    border: 1.5px solid rgba(180, 140, 30, 0.42) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}
html[data-theme="light"] .k-briefing.is-open {
    border-color: rgba(180, 140, 30, 0.72) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09) !important;
}
html[data-theme="light"] .k-briefing__trigger {
    background: linear-gradient(90deg, rgba(180, 140, 30, 0.08) 0%, rgba(245, 245, 245, 0.80) 100%) !important;
    color: #111111 !important;
}
html[data-theme="light"] .k-briefing__trigger:hover {
    background: linear-gradient(90deg, rgba(180, 140, 30, 0.15) 0%, #eeeeee 100%) !important;
}
html[data-theme="light"] .k-briefing__meta {
    background: rgba(180, 140, 30, 0.10) !important;
    border-color: rgba(180, 140, 30, 0.38) !important;
    color: #7a5c12 !important;
}
html[data-theme="light"] .k-briefing__chev {
    background: rgba(180, 140, 30, 0.10) !important;
    border-color: rgba(180, 140, 30, 0.45) !important;
    color: #a67c2e !important;
}
html[data-theme="light"] .k-briefing__title { color: #111111 !important; }
html[data-theme="light"] .k-briefing__index { color: #555555 !important; }
html[data-theme="light"] .k-briefing__section-label {
    background: rgba(180, 140, 30, 0.08) !important;
    color: #7a5c12 !important;
    border-left-color: #c9a84c !important;
}
html[data-theme="light"] .k-briefing__subhead { color: #333333 !important; }
html[data-theme="light"] .k-briefing__subhead i { color: #a67c2e !important; }
html[data-theme="light"] .k-briefing__criteria-list { color: #333333 !important; }
html[data-theme="light"] .k-briefing__criteria-list li::marker { color: #a67c2e !important; }
html[data-theme="light"] .k-briefing__audit-text p {
    background: #f5f5f5 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #333333 !important;
}
html[data-theme="light"] .k-briefing__check-grid li {
    background: #f5f5f5 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #333333 !important;
}
html[data-theme="light"] .k-briefing__check-no { color: #a67c2e !important; }
html[data-theme="light"] .k-briefing__check-label { color: #222222 !important; }
html[data-theme="light"] .k-briefing__pic {
    background: linear-gradient(165deg, rgba(180, 140, 30, 0.06) 0%, #f8f8f8 100%) !important;
    border: 1.5px solid rgba(180, 140, 30, 0.38) !important;
}
html[data-theme="light"] .k-briefing__pic-block + .k-briefing__pic-block {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .k-briefing__pic-role { color: #111111 !important; }
html[data-theme="light"] .k-briefing__pic-num { color: #a67c2e !important; }
html[data-theme="light"] .k-briefing__doc-list { color: #333333 !important; }
html[data-theme="light"] .k-briefing__doc-list li::marker { color: #a67c2e !important; }
html[data-theme="light"] .k-briefing__pic-empty { color: #666666 !important; }
html[data-theme="light"] .k-briefing-stack__foot { border-top-color: rgba(180, 140, 30, 0.22) !important; }

/* --- Rekod audit / borang: generic card borders --- */
html[data-theme="light"] body.app-shell .ra-year-bar {
    background: #f5f5f5 !important;
    border-color: rgba(180, 140, 30, 0.38) !important;
}
html[data-theme="light"] body.app-shell .ra-year-btn.is-active {
    background: linear-gradient(135deg, #c9a84c, #a67c2e) !important;
    border-color: #c9a84c !important;
    color: #ffffff !important;
}
html[data-theme="light"] body.app-shell .ra-year-btn {
    border-color: rgba(180, 140, 30, 0.38) !important;
    color: #333333 !important;
    background: #ffffff !important;
}

/* --- File pasukan / generic form cards --- */
html[data-theme="light"] body.app-shell [class*="glossy-card"],
html[data-theme="light"] body.app-shell [class*="-card"] {
    border-color: rgba(180, 140, 30, 0.42) !important;
}

/* --- Generic bordered blocks in light mode --- */
html[data-theme="light"] body.app-shell [style*="border"] {
    /* Can't target reliably; handled per-component above */
}