﻿/**
 * 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: 1600px;
    --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 {
    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-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__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%;
    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;
    }
}

body.page-dashboard .app-content,
body.page-log .app-content,
body.page-log-crud .app-content {
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

@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: #1a1a1a;
    background: #F4E46A;
    box-shadow:
        0 8px 28px rgba(186, 143, 48, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(201, 168, 76, 0.9);
}

.btn-primary:hover,
a.btn-primary:hover {
    color: #000000;
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    background: #FFD84D;
    border-color: rgba(180, 148, 55, 0.95);
    box-shadow:
        0 10px 28px rgba(188, 144, 50, 0.32),
        0 0 0 2px rgba(255, 216, 77, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.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;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, var(--gold) 0%, var(--gold-accent) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.k-briefing__badge::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 52%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 13px 13px 0 0;
    pointer-events: none;
}

.k-briefing[data-k-code="K1"] .k-briefing__badge { background: linear-gradient(145deg, #4d9de0 0%, #1a5fa8 55%, #0d3d7a 100%); box-shadow: 0 6px 22px rgba(29, 78, 216, 0.52), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.15); border-color: rgba(77, 157, 224, 0.35); }
.k-briefing[data-k-code="K2"] .k-briefing__badge { background: linear-gradient(145deg, #4ade80 0%, #16a34a 55%, #14532d 100%); box-shadow: 0 6px 22px rgba(22, 163, 74, 0.52), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.15); border-color: rgba(74, 222, 128, 0.35); }
.k-briefing[data-k-code="K3"] .k-briefing__badge { background: linear-gradient(145deg, #c084fc 0%, #9333ea 55%, #581c87 100%); box-shadow: 0 6px 22px rgba(147, 51, 234, 0.52), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.15); border-color: rgba(192, 132, 252, 0.35); }
.k-briefing[data-k-code="K4"] .k-briefing__badge { background: linear-gradient(145deg, #fbbf24 0%, #d97706 55%, #92400e 100%); box-shadow: 0 6px 22px rgba(217, 119, 6, 0.52), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.15); border-color: rgba(251, 191, 36, 0.35); color: #fff; }
.k-briefing[data-k-code="K5"] .k-briefing__badge { background: linear-gradient(145deg, #fb923c 0%, #ea580c 55%, #9a3412 100%); box-shadow: 0 6px 22px rgba(234, 88, 12, 0.52), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.15); border-color: rgba(251, 146, 60, 0.35); }
.k-briefing[data-k-code="K6"] .k-briefing__badge { background: linear-gradient(145deg, #f87171 0%, #dc2626 55%, #7f1d1d 100%); box-shadow: 0 6px 22px rgba(220, 38, 38, 0.52), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.15); border-color: rgba(248, 113, 113, 0.35); }

.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: flex-start;
    gap: 0.65rem;
}

.au-file-cell {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.au-file-cell__row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.83rem;
    line-height: 1.6;
}

.au-file-cell__k {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: .06em;
    min-width: 5.5rem;
    flex-shrink: 0;
}

.au-file-cell__sep {
    color: #64748b;
    flex-shrink: 0;
}

.au-file-cell__v {
    color: var(--text-primary);
    font-weight: 600;
}

.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);
}

