:root {
    --ink: #0b1f33;
    --muted: #5d7387;
    --line: #d3e1ec;
    --canvas: #f0f5fa;
    --surface: #ffffff;
    --green-950: #061725;
    --green-900: #0a2940;
    --green-800: #0d526b;
    --green-700: #11778b;
    --green-100: #d9eff3;
    --gold: #d6ad55;
    --gold-soft: #fbf2dc;
    --blue: #176d9d;
    --blue-soft: #deeff8;
    --red: #bd4b48;
    --red-soft: #fbe9e7;
    --amber: #ad711c;
    --amber-soft: #fff2d8;
    --shadow: 0 15px 40px rgba(12, 39, 62, .075);
    --shadow-hover: 0 24px 55px rgba(8, 35, 55, .13);
    --radius: 18px;
    --sidebar: 270px;

    /* Next-Gen Typography */
    --font-main: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-display: "Outfit", "Plus Jakarta Sans", sans-serif;
    --font-tech: "Space Grotesk", "Outfit", sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    /* Luminous logistics interface palettes */
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-glow: rgba(34, 211, 238, 0.45);
    --gold-300: #fde047;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.45);
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.45);
    --crimson-glow: rgba(239, 68, 68, 0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 85% -5%, rgba(34, 211, 238, .09), transparent 38%),
        radial-gradient(circle at 15% 100%, rgba(245, 158, 11, .06), transparent 36%),
        var(--canvas);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, .brand-name, .login-hero h1 { margin-top: 0; font-family: var(--font-display); }
code, .code, .topbar-clock, .login-panel-index, .data-status-pill, .stat-signal, time, .brand-edition, .system-sync-tag {
    font-family: var(--font-mono);
}
button { cursor: pointer; }
::selection { color: #061725; background: #67e8f9; }

.app-shell { min-height: 100vh; position: relative; isolation: isolate; }
.app-background { position: fixed; z-index: -2; inset: 0; overflow: hidden; pointer-events: none; }
.app-aurora { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .38; }
.app-aurora-one { width: 560px; height: 560px; right: -170px; top: -230px; background: radial-gradient(circle, rgba(28,169,189,.17), transparent 68%); animation: appAuroraOne 14s ease-in-out infinite alternate; }
.app-aurora-two { width: 480px; height: 480px; left: 15%; bottom: -260px; background: radial-gradient(circle, rgba(214,173,85,.12), transparent 68%); animation: appAuroraTwo 17s ease-in-out infinite alternate; }
.app-grid-pattern { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(91,125,145,.24) .7px, transparent .7px); background-size: 28px 28px; mask-image: linear-gradient(135deg, transparent 12%, #000 46%, transparent 88%); animation: appGridDrift 30s linear infinite; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    background:
        radial-gradient(circle at 15% 0, rgba(32, 174, 194, .15), transparent 25%),
        linear-gradient(180deg, #061725 0%, #081d2e 48%, #061520 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 50;
    box-shadow: 12px 0 45px rgba(2, 18, 31, .14);
}
.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .13;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
.sidebar > * { position: relative; z-index: 1; }
.brand {
    min-height: 98px;
    padding: 18px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.sidebar-emblem {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(239,208,120,.34);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 0 10px 26px rgba(0,0,0,.18);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.sidebar-emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.brand:hover .sidebar-emblem { transform: translateY(-2px) rotate(-2deg) scale(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 30px rgba(0,0,0,.24); }
.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f1d27c, #c39338);
    color: #071927;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 22px rgba(214,173,85,.2), 0 0 0 1px rgba(255,255,255,.12);
    position: relative;
    isolation: isolate;
    transform: rotate(-3deg);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.brand-mark::before { content:""; position:absolute; inset:5px; border:1px solid rgba(7,25,39,.18); border-radius:7px; z-index:-1; }
.brand-mark span { transform: rotate(3deg); }
.brand:hover .brand-mark, .login-brand:hover .brand-mark { transform: rotate(0) scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 13px 30px rgba(214,173,85,.3); }
.brand-mark.large { width: 56px; height: 56px; flex-basis: 56px; border-radius: 15px; font-size: 18px; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.2px; }
.brand small { color: rgba(255,255,255,.54); display: block; margin-top: 1px; font-size: 11px; }
.sidebar-nav { padding: 18px 12px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.nav-label {
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: 1.25px;
    font-weight: 700;
    font-size: 9px;
    margin: 17px 12px 7px;
}
.nav-label:first-child { margin-top: 1px; }
.nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,255,255,.68);
    border-radius: 10px;
    padding: 8px 11px;
    margin: 2px 0;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(32,174,194,.18), rgba(214,173,85,.08)); box-shadow: inset 3px 0 #27b1c4; }
.nav-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -.25px;
    transition: transform .2s ease, background .2s ease;
}
.nav-item:hover .nav-icon { transform: translateX(2px) scale(1.04); }
.nav-icon.incoming { color: #91ddb6; }
.nav-icon.outgoing { color: #f3c47d; }
.nav-group summary { list-style: none; cursor: pointer; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group .chevron { margin-left: auto; color: rgba(255,255,255,.4); transition: .2s; }
.nav-group[open] .chevron { transform: rotate(180deg); }
.nav-submenu { padding: 2px 0 5px 49px; display: grid; }
.nav-submenu a { padding: 7px 4px; color: rgba(255,255,255,.48); font-size: 12px; }
.nav-submenu a:hover { color: #fff; }
.sidebar-user {
    border-top: 1px solid rgba(255,255,255,.09);
    margin: 0 12px;
    padding: 15px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #142d26;
    background: #d9e7e1;
    font-weight: 800;
}
.user-copy { min-width: 0; flex: 1; }
.user-copy strong, .user-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.user-copy strong { font-size: 12px; }
.user-copy small { font-size: 10px; color: rgba(255,255,255,.46); }
.logout-button { border: 0; background: transparent; color: rgba(255,255,255,.5); width: 31px; height: 31px; border-radius: 8px; }
.logout-button:hover { background: rgba(255,255,255,.08); color: #fff; }

.main { margin-left: var(--sidebar); min-height: 100vh; position: relative; }
.topbar {
    height: 88px;
    padding: 0 clamp(20px, 3vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250,252,254,.9);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px) saturate(140%);
}
.page-transition-bar { position: absolute; inset: auto auto -1px 0; width: 0; height: 2px; opacity: 0; background: linear-gradient(90deg, #1eb0c3, #efd078); box-shadow: 0 0 12px rgba(30,176,195,.5); transition: width .45s cubic-bezier(.2,.8,.2,1), opacity .15s; }
body.is-navigating .page-transition-bar { width: 82%; opacity: 1; }
.topbar h1 { font-size: 18px; margin: 1px 0 0; letter-spacing: -.35px; }
.topbar-kicker { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; margin: 0; font-weight: 700; }
.topbar-meta { display: flex; align-items: center; gap: 10px; }
.topbar-meta div { display: grid; }
.topbar-meta small { color: var(--muted); font-size: 10px; }
.topbar-meta strong { font-size: 12px; }
.live-dot { width: 9px; height: 9px; background: #1aa8bd; border-radius: 50%; box-shadow: 0 0 0 4px #dff3f6, 0 0 14px rgba(26,168,189,.45); animation: livePulse 2.2s ease-out infinite; }
.menu-button { display: none; border: 0; background: #edf2ef; width: 40px; height: 40px; border-radius: 10px; }
.content { padding: 30px clamp(18px, 3vw, 42px) 50px; max-width: 1640px; margin: 0 auto; }
.mobile-overlay { display: none; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.page-heading h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin: 4px 0 8px; letter-spacing: -1px; }
.page-heading p { color: var(--muted); margin: 0; max-width: 660px; }
.eyebrow { display: inline-block; color: var(--green-700); font-size: 9px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
.eyebrow.light { color: #e2c477; }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.back-link { display: block; width: fit-content; color: var(--green-700); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.text-link { color: var(--green-700); font-weight: 700; font-size: 12px; }
.text-link:hover, .back-link:hover { text-decoration: underline; }

.btn {
    min-height: 41px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 750;
    font-size: 12px;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: var(--green-700); box-shadow: 0 7px 16px rgba(29,103,80,.17); }
.btn.primary { background: linear-gradient(135deg, #0e7187, #0c526f); box-shadow: 0 10px 24px rgba(12,82,111,.2); }
.btn.primary:hover { background: linear-gradient(135deg, #0c6378, #093f5a); }
.btn.warning { color: #fff; background: #b67622; box-shadow: 0 7px 16px rgba(182,118,34,.17); }
.btn.secondary { color: var(--green-800); border-color: #cddbd4; background: #fff; }
.btn.secondary:hover { border-color: var(--green-700); }
.btn.ghost { color: var(--muted); background: transparent; }
.btn.subtle { background: #edf4f0; color: var(--green-800); }
.btn.wide { width: 100%; }

.panel {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 22px;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-header h3 { margin: 2px 0 0; font-size: 17px; letter-spacing: -.3px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.stat-grid.compact .stat-card { min-height: 145px; }
.stat-card {
    min-height: 160px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 19px;
    position: relative;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.stat-card:hover, .panel:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #c7d8e4; }
.stat-card:hover::after { transform: scale(1.3); opacity: .075; }
.stat-card::after { transition: transform .45s ease, opacity .45s; }
.stat-card::before { content:""; position:absolute; inset:0 0 auto; height:3px; background: linear-gradient(90deg, transparent, currentColor, transparent); opacity:.55; }
.stat-card::after { content:""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -30px; bottom: -35px; background: currentColor; opacity: .045; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.stat-card.green .stat-icon { background: var(--green-100); color: var(--green-700); }
.stat-card.blue .stat-icon { background: var(--blue-soft); color: var(--blue); }
.stat-card.amber .stat-icon { background: var(--amber-soft); color: var(--amber); }
.stat-card.red .stat-icon { background: var(--red-soft); color: var(--red); }
.stat-card > strong { display: block; font-size: 31px; margin-top: 12px; line-height: 1; letter-spacing: -1px; }
.stat-card > p { font-weight: 700; margin: 7px 0 3px; }
.stat-card > small, .trend { color: var(--muted); font-size: 10px; }
.trend { background: #f2f5f3; padding: 4px 7px; border-radius: 20px; }
.trend.positive { color: var(--green-700); background: var(--green-100); }
.trend.negative { color: var(--red); background: var(--red-soft); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 18px; margin-bottom: 18px; }
.activity-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mini-heading { display: flex; align-items: center; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-heading > span:last-child { color: var(--muted); font-size: 10px; margin-left: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.incoming { background: #37996d; }
.dot.outgoing { background: #cf8730; }
.activity-list { display: grid; }
.activity-item { display: flex; align-items: center; gap: 10px; min-height: 60px; border-bottom: 1px solid #edf1ef; transition: .15s; }
.activity-item:hover { background: #f8faf9; }
.activity-icon, .quick-icon {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900;
}
.activity-icon.incoming, .quick-icon.incoming { color: var(--green-700); background: var(--green-100); }
.activity-icon.outgoing, .quick-icon.outgoing { color: var(--amber); background: var(--amber-soft); }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy strong, .activity-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-copy strong { font-size: 12px; }
.activity-copy small { font-size: 10px; color: var(--muted); }
.activity-qty { font-weight: 800; font-size: 12px; text-align: right; }
.activity-qty small { font-size: 8px; color: var(--muted); display: block; font-weight: 500; }
.positive { color: var(--green-700)!important; }
.negative { color: var(--red)!important; }
.count-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.count-badge.danger { background: var(--red-soft); color: var(--red); }
.stock-alert-list { margin-bottom: 15px; }
.stock-alert { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; border-bottom: 1px solid #edf1ef; min-height: 60px; }
.stock-initial { width: 34px; height: 34px; display: grid; place-items: center; background: #f1f3f2; border-radius: 9px; font-size: 9px; font-weight: 800; color: var(--muted); }
.stock-alert strong, .stock-alert small { display: block; }
.stock-alert > span:nth-child(2) strong { font-size: 11px; }
.stock-alert small { color: var(--muted); font-size: 9px; }
.stock-number { text-align: right; }
.stock-number strong { color: var(--red); font-size: 15px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.quick-card { min-height: 88px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow); transition: .18s; }
.quick-card:hover { transform: translateY(-2px); border-color: #bdcec5; }
.quick-card > span:nth-child(2) { flex: 1; min-width: 0; }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { font-size: 12px; }
.quick-card small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.quick-card > b { color: #9aaaA3; }
.quick-icon.report { background: var(--blue-soft); color: var(--blue); }
.quick-icon.user { background: #efe8f6; color: #75518e; }

.dashboard-page .content { padding-top: 24px; }
.dashboard-page .topbar { background: rgba(247,250,252,.84); }
.dashboard-command-hero {
    min-height: 270px;
    margin-bottom: 18px;
    padding: clamp(25px, 3vw, 38px);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at 74% 20%, rgba(28,166,188,.18), transparent 30%),
        radial-gradient(circle at 5% 120%, rgba(214,173,85,.15), transparent 36%),
        linear-gradient(118deg, #061725 0%, #08253a 58%, #0a354a 100%);
    box-shadow: 0 25px 60px rgba(7,31,48,.2), inset 0 1px 0 rgba(255,255,255,.07);
}
.dashboard-command-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000, transparent 74%);
    animation: dashboardGridFlow 22s linear infinite;
}
.command-hero-aurora {
    position: absolute;
    z-index: -1;
    width: 470px;
    height: 470px;
    right: -110px;
    top: -250px;
    border-radius: 50%;
    pointer-events: none;
    opacity: .7;
    filter: blur(8px);
    background: radial-gradient(circle, rgba(57,200,210,.3), rgba(21,120,151,.06) 53%, transparent 70%);
    transform: translate3d(var(--dashboard-x, 0), var(--dashboard-y, 0), 0);
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
    animation: dashboardAurora 7s ease-in-out infinite alternate;
}
.command-network {
    position: absolute;
    z-index: -1;
    inset: 0 -3% 0 38%;
    pointer-events: none;
    opacity: .5;
    transform: translate3d(var(--dashboard-network-x, 0), var(--dashboard-network-y, 0), 0);
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.command-network svg { width: 100%; height: 100%; overflow: visible; }
.command-route { fill: none; stroke: rgba(105,211,222,.43); stroke-width: 1.2; stroke-dasharray: 5 8; vector-effect: non-scaling-stroke; animation: dashboardRouteFlow 11s linear infinite; }
.command-route.route-secondary { stroke: rgba(239,208,120,.35); animation-duration: 16s; animation-direction: reverse; }
.command-packet { fill: #70dce5; filter: drop-shadow(0 0 8px rgba(112,220,229,.9)); }
.command-packet.packet-secondary { fill: #efd078; }
.command-node circle:first-child { fill: rgba(6,42,60,.6); stroke: rgba(255,255,255,.28); stroke-width: 1; }
.command-node circle:last-child { fill: #efd078; filter: drop-shadow(0 0 6px rgba(239,208,120,.85)); }
.command-node { animation: dashboardNodePulse 2.6s ease-out infinite; }
.command-node.node-delay { animation-delay: -1.3s; }
.command-scan {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 46%;
    width: 1px;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(91,224,233,.58), transparent);
    box-shadow: 0 0 20px rgba(91,224,233,.28);
    animation: dashboardScan 7s ease-in-out infinite 1.2s;
}
.command-hero-copy { max-width: 720px; position: relative; z-index: 1; }
.command-kicker { display: inline-flex; align-items: center; gap: 7px; color: #e9cb78; font-size: 9px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
.command-kicker i { width: 17px; height: 1px; background: #e9cb78; box-shadow: 0 0 8px rgba(233,203,120,.5); }
.command-hero-copy h2 { margin: 10px 0 9px; font-size: clamp(29px, 3vw, 42px); line-height: 1.06; letter-spacing: -1.8px; }
.command-hero-copy h2 span { color: #efd078; }
.command-hero-copy p { max-width: 610px; margin-bottom: 20px; color: rgba(255,255,255,.63); font-size: 13px; line-height: 1.7; }
.command-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.command-actions .btn { min-height: 43px; padding-inline: 16px; border-radius: 11px; position: relative; overflow: hidden; }
.command-primary { color: #08273a; background: linear-gradient(135deg, #f1d77f, #d9ad50); border-color: rgba(255,255,255,.2); box-shadow: 0 12px 26px rgba(214,173,85,.16); }
.command-primary:hover { box-shadow: 0 16px 32px rgba(214,173,85,.26); }
.command-secondary { color: rgba(255,255,255,.84); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.command-secondary:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.11); }
.command-status-card {
    position: relative;
    z-index: 2;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.115), rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.16);
    backdrop-filter: blur(16px);
}
.command-status-head { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.command-status-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 2px; border-radius: 11px; background: rgba(70,207,179,.12); }
.command-status-icon i { width: 2px; height: 10px; border-radius: 4px; background: #54d6b6; transform-origin: center; animation: signalBars 1.1s ease-in-out infinite; }
.command-status-icon i:nth-child(2) { height: 20px; animation-delay: -.8s; }
.command-status-icon i:nth-child(3) { height: 14px; animation-delay: -.4s; }
.command-status-icon i:nth-child(4) { height: 23px; animation-delay: -.65s; }
.command-status-head > span:nth-child(2) { min-width: 0; display: grid; }
.command-status-head small { color: rgba(255,255,255,.4); font-size: 7px; letter-spacing: .65px; text-transform: uppercase; }
.command-status-head strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.command-status-head > b { display: inline-flex; align-items: center; gap: 5px; color: #78e1c6; font: 700 7px "SFMono-Regular", Consolas, monospace; letter-spacing: .6px; }
.command-status-head > b i { width: 5px; height: 5px; border-radius: 50%; background: #52d4b1; animation: feedPulse 1.8s ease-out infinite; }
.command-health { display: grid; gap: 7px; padding: 12px 1px; }
.command-health span { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 7px; color: rgba(255,255,255,.53); font-size: 8px; }
.command-health span > i { width: 5px; height: 5px; border-radius: 50%; }
.health-ok { background: #53d3af; box-shadow: 0 0 8px rgba(83,211,175,.5); }
.health-warning { background: #efd078; box-shadow: 0 0 8px rgba(239,208,120,.45); animation: feedPulse 1.8s ease-out infinite; }
.command-health strong { color: rgba(255,255,255,.82); font-size: 8px; }
.command-status-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.35); font-size: 7px; }
.command-status-foot strong { color: rgba(255,255,255,.55); font-weight: 600; }

.dashboard-stat-grid { gap: 14px; }
.dashboard-stat {
    min-height: 174px;
    padding: 18px 19px;
    isolation: isolate;
    border-color: rgba(204,219,229,.82);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,251,252,.94));
    box-shadow: 0 14px 36px rgba(10,42,65,.07), inset 0 1px 0 #fff;
    transform: perspective(900px) rotateX(var(--card-rotate-x, 0deg)) rotateY(var(--card-rotate-y, 0deg));
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.dashboard-stat::before { height: 2px; opacity: .7; }
.dashboard-stat::after { width: 120px; height: 120px; right: -50px; bottom: -62px; opacity: .035; }
.dashboard-stat .stat-card-glow { position: absolute; z-index: -1; width: 140px; height: 140px; right: -60px; top: -75px; border-radius: 50%; opacity: .1; filter: blur(4px); background: currentColor; transition: transform .5s, opacity .5s; }
.dashboard-stat:hover .stat-card-glow { opacity: .17; transform: scale(1.16); }
.dashboard-stat .stat-icon { width: 41px; height: 41px; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.dashboard-stat .stat-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-stat .trend { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(132,154,168,.1); }
.dashboard-stat .trend i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(100,123,137,.08); }
.dashboard-stat > strong { margin-top: 15px; font-size: 33px; }
.dashboard-stat > p { margin-bottom: 2px; }
.stat-signal { position: absolute; right: 17px; bottom: 16px; height: 25px; display: flex; align-items: end; gap: 2px; opacity: .2; }
.stat-signal i { width: 3px; height: 8px; border-radius: 4px 4px 1px 1px; background: currentColor; transform-origin: bottom; animation: dashboardSignal 2.6s ease-in-out infinite; }
.stat-signal i:nth-child(2) { height: 15px; animation-delay: -.9s; }
.stat-signal i:nth-child(3) { height: 11px; animation-delay: -.4s; }
.stat-signal i:nth-child(4) { height: 22px; animation-delay: -1.4s; }
.stat-signal i:nth-child(5) { height: 17px; animation-delay: -.7s; }
.stat-signal i:nth-child(6) { height: 10px; animation-delay: -1.1s; }

.dashboard-page .dashboard-grid { grid-template-columns: minmax(0, 2.05fr) minmax(280px, .95fr); gap: 14px; }
.dashboard-activity-panel, .dashboard-monitor-panel { position: relative; overflow: hidden; border-color: rgba(204,219,229,.84); box-shadow: 0 14px 38px rgba(10,42,65,.07), inset 0 1px 0 #fff; }
.panel-live-line { position: absolute; top: 0; left: -30%; width: 28%; height: 2px; background: linear-gradient(90deg, transparent, #23a9bd, #efd078, transparent); box-shadow: 0 0 10px rgba(35,169,189,.25); animation: panelLiveScan 5.5s ease-in-out infinite; }
.dashboard-activity-panel .activity-columns { gap: 38px; }
.dashboard-activity-panel .mini-heading { padding-bottom: 12px; }
.dashboard-activity-panel .activity-item { position: relative; border-radius: 9px; padding-inline: 2px; }
.dashboard-activity-panel .activity-item::before { content: ""; position: absolute; left: -10px; top: 20%; bottom: 20%; width: 2px; border-radius: 3px; opacity: 0; background: #24a7b8; transform: scaleY(.3); transition: opacity .2s, transform .2s; }
.dashboard-activity-panel .activity-item:hover { padding-left: 7px; background: linear-gradient(90deg, rgba(17,119,139,.055), transparent); }
.dashboard-activity-panel .activity-item:hover::before { opacity: 1; transform: scaleY(1); }
.dashboard-activity-panel .activity-icon { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.dashboard-activity-panel .activity-item:hover .activity-icon { transform: scale(1.07) rotate(-3deg); box-shadow: 0 8px 16px rgba(17,119,139,.1); }
.dashboard-monitor-panel .count-badge { width: auto; min-width: 31px; padding: 0 7px; display: flex; gap: 5px; }
.dashboard-monitor-panel .count-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: feedPulse 1.8s ease-out infinite; }
.dashboard-monitor-panel .stock-alert { border-radius: 8px; padding-inline: 2px; transition: padding .2s, background .2s; }
.dashboard-monitor-panel .stock-alert:hover { padding-inline: 6px; background: #f8fafb; }
.dashboard-monitor-panel .btn { position: relative; overflow: hidden; }
.dashboard-monitor-panel .btn::after { content: "→"; position: absolute; right: 14px; transition: transform .2s; }
.dashboard-monitor-panel .btn:hover::after { transform: translateX(3px); }

.dashboard-quick-grid { gap: 12px; }
.dashboard-quick-grid .quick-card { min-height: 94px; position: relative; isolation: isolate; overflow: hidden; border-color: rgba(204,219,229,.84); box-shadow: 0 12px 30px rgba(10,42,65,.06), inset 0 1px 0 #fff; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.dashboard-quick-grid .quick-card > i { position: absolute; z-index: -1; width: 92px; height: 92px; right: -52px; bottom: -55px; border-radius: 50%; opacity: .05; background: currentColor; transition: transform .4s, opacity .4s; }
.dashboard-quick-grid .quick-card:hover { transform: translateY(-4px); border-color: #b8d0d9; box-shadow: 0 20px 38px rgba(10,42,65,.1); }
.dashboard-quick-grid .quick-card:hover > i { transform: scale(1.55); opacity: .085; }
.dashboard-quick-grid .quick-card > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #f2f6f7; transition: transform .22s, background .22s, color .22s; }
.dashboard-quick-grid .quick-card:hover > b { color: #fff; background: #11778b; transform: translateX(2px); }
.dashboard-quick-grid .quick-icon { width: 39px; height: 39px; flex-basis: 39px; border-radius: 11px; transition: transform .25s; }
.dashboard-quick-grid .quick-card:hover .quick-icon { transform: scale(1.08) rotate(-3deg); }

.staff-dashboard-page .staff-hero { box-shadow: 0 24px 55px rgba(7,31,48,.17); }
.staff-dashboard-page .staff-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; animation: dashboardGridFlow 22s linear infinite; }
.staff-dashboard-page .staff-choice { isolation: isolate; overflow: hidden; }
.staff-dashboard-page .staff-choice::after { content: ""; position: absolute; z-index: -1; width: 190px; height: 190px; right: -100px; bottom: -110px; border-radius: 50%; opacity: .08; background: currentColor; transition: transform .5s; }
.staff-dashboard-page .staff-choice:hover::after { transform: scale(1.35); }

.staff-hero {
    min-height: 235px;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 18px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 85% 10%, rgba(214,173,85,.2), transparent 28%),
        radial-gradient(circle at 15% 110%, rgba(29,174,195,.22), transparent 35%),
        linear-gradient(120deg, #071927, #0a3850);
}
.staff-hero::after { content:""; position:absolute; width:280px; height:280px; border:1px solid rgba(255,255,255,.07); border-radius:50%; right:-120px; bottom:-160px; }
.staff-hero-copy { max-width: 570px; position: relative; z-index: 1; }
.staff-hero h2 { font-size: 30px; margin: 6px 0 8px; letter-spacing: -.8px; }
.staff-hero p { color: rgba(255,255,255,.67); max-width: 530px; }
.staff-today { display: flex; gap: 35px; margin-top: 22px; }
.staff-today span { display: grid; }
.staff-today small { color: rgba(255,255,255,.54); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.staff-today strong { font-size: 20px; margin-top: 2px; }
.process-line { display: flex; align-items: center; min-width: 360px; position: relative; z-index: 1; }
.process-line span { display: grid; justify-items: center; gap: 6px; }
.process-line b { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.process-line .done b { background: var(--gold); color: var(--green-950); border-color: var(--gold); }
.process-line small { color: rgba(255,255,255,.5); font-size: 9px; }
.process-line i { width: 60px; height: 1px; background: rgba(255,255,255,.18); margin: 0 4px 21px; }
.staff-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.staff-choice { min-height: 290px; position: relative; overflow: hidden; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .2s; }
.staff-choice:hover { transform: translateY(-3px); }
.staff-choice.incoming:hover { border-color: #8dc4aa; }
.staff-choice.outgoing:hover { border-color: #d9b476; }
.choice-number { position: absolute; right: 24px; top: 18px; font-size: 55px; font-weight: 900; color: #eef2f0; letter-spacing: -5px; }
.choice-icon { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 15px; font-size: 24px; font-weight: 900; margin-bottom: 24px; }
.staff-choice.incoming .choice-icon { color: var(--green-700); background: var(--green-100); }
.staff-choice.outgoing .choice-icon { color: var(--amber); background: var(--amber-soft); }
.staff-choice h3 { font-size: 23px; letter-spacing: -.7px; margin: 5px 0 8px; }
.staff-choice p { color: var(--muted); max-width: 470px; }
.choice-action { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); font-weight: 800; font-size: 12px; color: var(--green-700); }

.toolbar { display: flex; gap: 9px; align-items: end; margin-bottom: 18px; }
.toolbar .field { margin: 0; min-width: 190px; }
.search-box { position: relative; flex: 1; max-width: 520px; }
.search-box > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #89958f; font-size: 18px; }
.search-box input { padding-left: 39px; width: 100%; }
input, select, textarea {
    width: 100%;
    color: var(--ink);
    background: #fff;
    border: 1px solid #ccd7d1;
    border-radius: 9px;
    padding: 10px 12px;
    outline: none;
    transition: border .15s, box-shadow .15s;
}
input, select { min-height: 42px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(29,103,80,.1); }
input::placeholder, textarea::placeholder { color: #a1aba6; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 12px; color: #7d8983; font-size: 9px; letter-spacing: .65px; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line); background: #f8faf9; white-space: nowrap; }
.data-table th:first-child { border-radius: 9px 0 0 9px; }
.data-table th:last-child { border-radius: 0 9px 9px 0; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid #e9eeeb; vertical-align: middle; font-size: 12px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.data-table td > strong, .data-table td > small { display: block; }
.data-table td > small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.text-right { text-align: right!important; }
.code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px!important; letter-spacing: -.2px; }
.barcode-table-code {
    display: inline-flex;
    max-width: 220px;
    overflow-wrap: anywhere;
    border: 1px solid #c9dce5;
    border-radius: 7px;
    padding: 5px 7px;
    color: var(--green-800);
    background: #eff8fa;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    letter-spacing: .15px;
}
.badge { display: inline-flex; width: fit-content; align-items: center; border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.badge.neutral { background: #edf1ef; color: #64716b; }
.badge.success { background: var(--green-100); color: var(--green-700); }
.badge.danger { background: var(--red-soft); color: var(--red); }
.badge.warning { background: var(--amber-soft); color: var(--amber); }
.badge.role-administrator { background: #e9e4f5; color: #654788; }
.badge.role-staf { background: var(--blue-soft); color: var(--blue); }
.badge.role-anggota { background: #edf1ef; color: #5f6c66; }
.chip-list { display: flex; flex-wrap: wrap; gap: 5px 6px; }
.stock-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid #dfe8e3;
    border-radius: 999px;
    background: #f4f7f5;
    color: #55655c;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}
.stock-chip strong { color: #33453b; font-weight: 800; }
.quantity, .stock-large { font-size: 14px; font-weight: 900; }
.user-chip { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.user-chip b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #edf1ef; font-size: 9px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.row-actions form { margin: 0; }
.icon-button { border: 0; color: var(--green-700); background: #eef5f1; padding: 7px 9px; border-radius: 7px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.icon-button:hover { background: #dcebe4; }
.icon-button.danger { color: var(--red); background: var(--red-soft); }
.empty-state { min-height: 190px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-state > span { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: #f0f4f2; font-size: 22px; margin-bottom: 9px; }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 3px 0 0; font-size: 11px; }
.empty-state.small { min-height: 170px; }
.empty-compact { color: var(--muted); font-size: 11px; padding: 25px 4px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 17px; border-top: 1px solid var(--line); margin-top: 5px; }
.pagination a, .pagination > span:not(.page-info) { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 18px; }
.pagination .disabled { opacity: .4; }
.page-info { color: var(--muted); font-size: 10px; margin: 0 5px; }

.process-badge, .read-only-badge, .sent-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; padding: 9px 13px; font-weight: 800; font-size: 10px; }
.process-badge b, .read-only-badge b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.process-badge.masuk { background: var(--green-100); color: var(--green-700); }
.process-badge.masuk b { background: #fff; }
.process-badge.keluar { background: var(--amber-soft); color: var(--amber); }
.process-badge.keluar b { background: #fff; }
.process-badge.laporan { background: var(--blue-soft); color: var(--blue); }
.process-badge.laporan b { background: #fff; }
.read-only-badge { background: #edf1ef; color: #596861; }
.read-only-badge b { background: #fff; color: var(--green-700); }
.sent-badge { background: var(--green-100); color: var(--green-700); }
.transaction-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; align-items: start; }
.form-main { display: grid; gap: 18px; }
.form-section { padding: 25px; }
.section-heading { display: flex; gap: 13px; align-items: center; padding-bottom: 19px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.section-heading h3 { margin: 0 0 2px; font-size: 16px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.section-number { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; color: var(--green-700); background: var(--green-100); font-size: 10px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; align-content: start; gap: 6px; }
.field > span:first-child { font-size: 10px; font-weight: 800; color: #47564f; }
.field em { color: var(--red); font-style: normal; }
.field.span-2, .span-2 { grid-column: span 2; }
.field-hint { color: var(--muted); font-size: 9px; }
.barcode-lookup {
    padding: 15px;
    border: 1px solid #c9dce5;
    border-radius: 13px;
    background: linear-gradient(135deg, #f3fafb, #f8fbfd);
}
.barcode-input-group { display: flex; align-items: stretch; gap: 8px; }
.barcode-input-group input { flex: 1 1 250px; min-width: 0; }
.barcode-input-group .btn { flex: 0 0 auto; min-height: 42px; }
.barcode-lookup-status { color: var(--muted); font-size: 10px; min-height: 15px; }
.barcode-lookup-status.is-loading, .barcode-camera-status.is-loading { color: var(--blue); }
.barcode-lookup-status.is-success, .barcode-camera-status.is-success { color: var(--green-700); font-weight: 700; }
.barcode-lookup-status.is-error, .barcode-camera-status.is-error { color: var(--red); font-weight: 700; }
.barcode-link-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 12px;
    border: 1px solid #ead29e;
    border-radius: 10px;
    background: #fff9e9;
}
.barcode-link-panel div { display: grid; gap: 2px; }
.barcode-link-panel strong { color: var(--amber); font-size: 10px; }
.barcode-link-panel small { color: var(--muted); font-size: 9px; }
.barcode-link-panel .btn { flex: 0 0 auto; }
.barcode-link-panel .btn:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.input-wrap { display: flex; position: relative; }
.input-wrap input { padding-left: 43px; }
.input-prefix { position: absolute; z-index: 1; left: 12px; top: 50%; transform: translateY(-50%); color: #697770; font-size: 11px; font-weight: 700; }
.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; background: #eff3f1; color: var(--green-700); font-size: 9px; font-weight: 800; border-radius: 6px; padding: 6px 8px; }
.input-with-suffix { display: flex; position: relative; }
.input-with-suffix input { padding-right: 58px; }
.input-with-suffix b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 10px; }
.availability-card { align-self: end; min-height: 67px; background: #f4f8f6; border: 1px dashed #b9cdc3; border-radius: 10px; padding: 10px 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.availability-card > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.availability-card strong { font-size: 17px; color: var(--green-700); }
.availability-card small { grid-column: span 2; color: var(--muted); font-size: 8px; }
.sticky-panel { position: sticky; top: 112px; }
.sticky-panel h3 { margin: 5px 0 15px; }
.check-list { list-style: none; padding: 0; margin: 0 0 17px; display: grid; gap: 12px; }
.check-list li { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 8px; }
.check-list li span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); font-size: 9px; font-weight: 900; }
.info-callout { border-left: 3px solid var(--gold); background: #fbf8ef; border-radius: 0 9px 9px 0; padding: 11px; margin: 16px 0; }
.info-callout strong { font-size: 10px; }
.info-callout p { color: var(--muted); font-size: 9px; margin: 3px 0 0; }
.sticky-panel .btn + .btn { margin-top: 7px; }

.filter-panel { margin-bottom: 16px; padding: 17px 20px; }
.filter-grid { display: grid; grid-template-columns: 2fr 1.1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.filter-grid .span-2 { grid-column: auto; }
.filter-actions { display: flex; gap: 5px; }
.tabs-panel { padding: 0; overflow: hidden; }
.tabs { display: flex; gap: 3px; padding: 12px 16px 0; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 12px 14px; color: var(--muted); font-weight: 750; font-size: 11px; border-bottom: 2px solid transparent; }
.tab span { background: #edf1ef; padding: 2px 6px; border-radius: 10px; margin-left: 5px; font-size: 8px; }
.tab.active { color: var(--green-700); border-bottom-color: var(--green-700); }
.tab-panel { display: none; padding: 17px 20px 20px; }
.tab-panel.active { display: block; }
.info-strip { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid #c7dded; background: #edf6fb; color: #3e6681; border-radius: 11px; margin-bottom: 15px; }
.info-strip span { width: 22px; height: 22px; display: grid; place-items: center; background: #fff; border-radius: 50%; font-weight: 900; }
.info-strip p { margin: 0; font-size: 10px; }

.report-flow { display: flex; align-items: center; margin: 22px 0; }
.report-flow span { display: grid; justify-items: center; gap: 5px; }
.report-flow span b { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cfd8d3; display: grid; place-items: center; color: var(--muted); font-size: 9px; }
.report-flow span.active b { color: #fff; border-color: var(--green-700); background: var(--green-700); }
.report-flow small { font-size: 8px; color: var(--muted); }
.report-flow i { flex: 1; height: 1px; background: var(--line); margin: 0 3px 18px; }
.report-document { max-width: 1100px; margin: 0 auto; padding: 35px; }
.report-letterhead { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 2px solid var(--green-900); }
.report-letterhead > div { flex: 1; display: grid; }
.report-letterhead > div strong { font-size: 15px; }
.report-letterhead > div span { color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.report-title { text-align: center; padding: 28px 10px; }
.report-title > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; }
.report-title h3 { font-size: 22px; margin: 5px 0 3px; }
.report-title p { color: var(--muted); margin: 0; }
.report-meta-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report-meta-grid div { padding: 13px 15px; border-bottom: 1px solid var(--line); }
.report-meta-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.report-meta-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.report-meta-grid small, .report-meta-grid strong { display: block; }
.report-meta-grid small { color: var(--muted); text-transform: uppercase; font-size: 8px; letter-spacing: .8px; }
.report-meta-grid strong { margin-top: 2px; font-size: 11px; }
.report-note { padding: 13px; background: #f7f9f8; border-radius: 10px; margin-top: 14px; }
.report-note strong { font-size: 10px; }
.report-note p { color: var(--muted); margin: 3px 0 0; font-size: 10px; }
.report-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin: 20px 0; }
.report-summary > div { border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.report-summary span, .report-summary small, .report-summary strong { display: block; }
.report-summary span { color: var(--muted); text-transform: uppercase; font-size: 8px; letter-spacing: .7px; }
.report-summary strong { font-size: 20px; margin: 3px 0; }
.report-summary small { color: var(--muted); font-size: 8px; }
.report-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; margin: 25px 0 9px; }
.compact-table td { padding-block: 9px; }

.role-explainer { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 17px; }
.role-explainer article { display: flex; gap: 11px; align-items: center; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.role-explainer strong { font-size: 11px; }
.role-explainer p { color: var(--muted); font-size: 9px; margin: 2px 0 0; }
.role-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 10px; font-weight: 900; }
.role-icon.admin { background: #e9e4f5; color: #654788; }
.role-icon.staff { background: var(--blue-soft); color: var(--blue); }
.role-icon.member { background: #edf1ef; color: #5f6c66; }
.person-cell { display: flex; gap: 9px; align-items: center; }
.person-cell > b { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #edf2ef; color: var(--green-700); }
.person-cell strong, .person-cell small { display: block; }
.person-cell small { color: var(--muted); font-size: 9px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.status-dot.active { background: #40a879; box-shadow: 0 0 0 3px #e2f2ea; }
.status-dot.inactive { background: #aaa; }
.app-dialog {
    width: min(620px, calc(100% - 28px));
    border: 0;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(5,28,21,.25);
}
.dialog-scroll {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
.app-dialog::backdrop { background: rgba(7,28,22,.62); backdrop-filter: blur(3px); }
.dialog-form { padding: 24px; }
.barcode-scanner-dialog { width: min(680px, calc(100% - 28px)); }
.barcode-scanner-content { padding: 24px; }
.barcode-viewport {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 14px;
    background: #06131c;
    border: 1px solid #16364a;
}
.barcode-viewport video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .2s;
}
.barcode-viewport video.is-active { opacity: 1; }
.barcode-camera-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 25px;
    text-align: center;
    color: #dce9ef;
}
.barcode-camera-placeholder strong { font-size: 15px; }
.barcode-camera-placeholder small { color: #91a9b6; }
.barcode-camera-placeholder.is-hidden { display: none; }
.barcode-scan-line {
    position: absolute;
    z-index: 2;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 2px;
    background: #31d6c6;
    box-shadow: 0 0 12px rgba(49,214,198,.9);
    animation: barcodeScan 2.1s ease-in-out infinite;
}
.barcode-viewport::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 20% 11%;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 10px;
    box-shadow: 0 0 0 999px rgba(3,15,22,.18);
    pointer-events: none;
}
.barcode-camera-status { min-height: 21px; margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.dialog-header h3 { margin: 2px 0 0; font-size: 19px; }
.dialog-header button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: #eef2f0; color: var(--muted); font-size: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.switch-row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 0; }
.switch-row > input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 39px; height: 22px; flex: 0 0 39px; border-radius: 15px; background: #c7d0cb; position: relative; transition: .2s; }
.switch::after { content:""; width: 16px; height: 16px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch-row input:checked + .switch { background: var(--green-700); }
.switch-row input:checked + .switch::after { transform: translateX(17px); }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 10px; }
.switch-row small { color: var(--muted); font-size: 8px; }

/* Unified dashboard-style surfaces for every application menu. */
body.app-shell:not(.dashboard-page) .page-heading {
    min-height: 154px;
    margin-bottom: 18px;
    padding: 26px clamp(22px, 3vw, 34px);
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 21px;
    background:
        radial-gradient(circle at 85% 12%, rgba(35,176,194,.17), transparent 28%),
        radial-gradient(circle at 4% 130%, rgba(214,173,85,.15), transparent 34%),
        linear-gradient(118deg, #061725 0%, #08283d 62%, #0a3a4e 100%);
    box-shadow: 0 22px 52px rgba(7,31,48,.16), inset 0 1px 0 rgba(255,255,255,.07);
}
body.app-shell:not(.dashboard-page) .page-heading::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .12;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000, transparent 76%);
    animation: dashboardGridFlow 22s linear infinite;
}
body.app-shell:not(.dashboard-page) .page-heading::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 310px;
    height: 310px;
    right: -105px;
    top: -205px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.018);
    animation: unifiedHeadingOrb 8s ease-in-out infinite alternate;
}
body.app-shell:not(.dashboard-page) .page-heading > * { position: relative; z-index: 1; }
body.app-shell:not(.dashboard-page) .page-heading h2 { max-width: 760px; margin: 6px 0 7px; color: #fff; font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -1.15px; }
body.app-shell:not(.dashboard-page) .page-heading p { color: rgba(255,255,255,.59); font-size: 12px; line-height: 1.65; }
body.app-shell:not(.dashboard-page) .page-heading .eyebrow { color: #efd078; }
body.app-shell:not(.dashboard-page) .page-heading .back-link { color: rgba(255,255,255,.67); margin-bottom: 8px; }
body.app-shell:not(.dashboard-page) .page-heading .back-link:hover { color: #fff; }
body.app-shell:not(.dashboard-page) .page-heading .btn { min-height: 43px; border-radius: 11px; }
body.app-shell:not(.dashboard-page) .page-heading .btn.primary {
    color: #08283a;
    border-color: rgba(255,255,255,.18);
    background: linear-gradient(135deg, #f1d77f, #d8ab4e);
    box-shadow: 0 12px 25px rgba(214,173,85,.17);
}
body.app-shell:not(.dashboard-page) .page-heading .btn.primary:hover { background: linear-gradient(135deg, #f6df92, #e1b95c); box-shadow: 0 16px 30px rgba(214,173,85,.24); }
body.app-shell:not(.dashboard-page) .page-heading .btn.secondary {
    color: rgba(255,255,255,.86);
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}
body.app-shell:not(.dashboard-page) .page-heading .btn.secondary:hover { color: #fff; border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.12); }
body.app-shell:not(.dashboard-page) .page-heading .btn.warning { color: #fff; border-color: rgba(255,200,123,.25); background: linear-gradient(135deg, #c2832d, #9e621e); box-shadow: 0 12px 25px rgba(158,98,30,.2); }
body.app-shell:not(.dashboard-page) .page-heading .process-badge,
body.app-shell:not(.dashboard-page) .page-heading .read-only-badge,
body.app-shell:not(.dashboard-page) .page-heading .sent-badge {
    color: rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}
body.app-shell:not(.dashboard-page) .page-heading .process-badge b,
body.app-shell:not(.dashboard-page) .page-heading .read-only-badge b { color: #08283a; background: #efd078; }

.app-shell .panel {
    border-color: rgba(202,217,227,.86);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(249,251,252,.95));
    box-shadow: 0 14px 38px rgba(10,42,65,.07), inset 0 1px 0 #fff;
}
.app-shell .panel-header h3 { font-size: 18px; letter-spacing: -.45px; }
.app-shell .panel:hover { border-color: #bdd3dc; box-shadow: 0 21px 46px rgba(9,39,60,.105), inset 0 1px 0 #fff; }
.app-shell .filter-panel:hover,
.app-shell .tabs-panel:hover,
.app-shell .form-section:hover,
.app-shell .sticky-panel:hover,
.app-shell .report-document:hover { transform: none; }

body.app-shell:not(.dashboard-page) .stat-card {
    min-height: 158px;
    border-color: rgba(202,217,227,.84);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,251,252,.94));
    box-shadow: 0 13px 34px rgba(10,42,65,.07), inset 0 1px 0 #fff;
}
body.app-shell:not(.dashboard-page) .stat-card::before { height: 2px; opacity: .68; }
body.app-shell:not(.dashboard-page) .stat-card::after { width: 125px; height: 125px; right: -56px; bottom: -68px; opacity: .038; }
body.app-shell:not(.dashboard-page) .stat-card .stat-icon { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); transition: transform .25s; }
body.app-shell:not(.dashboard-page) .stat-card:hover .stat-icon { transform: scale(1.08) rotate(-3deg); }
body.app-shell:not(.dashboard-page) .stat-card > strong { margin-top: 14px; font-size: 32px; }
body.app-shell:not(.dashboard-page) .trend { display: inline-flex; align-items: center; border: 1px solid rgba(125,151,164,.1); }

.app-shell .toolbar {
    padding: 11px;
    border: 1px solid rgba(202,217,227,.75);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(243,248,250,.9), rgba(249,251,252,.92));
}
.app-shell .search-box > span { color: #5f8492; transition: color .2s, transform .2s; }
.app-shell .search-box:focus-within > span { color: #11778b; transform: translateY(-50%) scale(1.08); }
.app-shell input,
.app-shell select,
.app-shell textarea {
    border-color: #cbd9e1;
    border-radius: 11px;
    background: rgba(255,255,255,.94);
    box-shadow: inset 0 1px 2px rgba(10,42,65,.025);
    transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
}
.app-shell input,
.app-shell select { min-height: 45px; }
.app-shell input:hover,
.app-shell select:hover,
.app-shell textarea:hover { border-color: #afc6d1; background: #fff; }
.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus { border-color: #16889b; background: #fff; box-shadow: 0 0 0 4px rgba(17,119,139,.09), 0 8px 22px rgba(17,119,139,.055); }
.app-shell .field:focus-within > span:first-child { color: #0e7187; }

.app-shell .btn { border-radius: 10px; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, border-color .18s; }
.app-shell .btn:hover { transform: translateY(-2px); }
.app-shell .btn.primary { box-shadow: 0 10px 23px rgba(12,82,111,.17); }
.app-shell .btn.secondary { border-color: #c8d8df; box-shadow: 0 5px 14px rgba(10,42,65,.035); }
.app-shell .btn.ghost:hover { color: var(--green-700); background: #eef5f7; }
.app-shell .icon-button { border: 1px solid rgba(17,119,139,.08); border-radius: 8px; background: #edf6f7; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.app-shell .icon-button:hover { transform: translateY(-1px); border-color: rgba(17,119,139,.18); background: #deeff2; box-shadow: 0 7px 14px rgba(10,42,65,.06); }
.app-shell .icon-button.danger { border-color: rgba(189,75,72,.08); background: #fbeceb; }
.app-shell .icon-button.danger:hover { border-color: rgba(189,75,72,.2); background: #f8dcda; }

.app-shell .data-table th {
    padding-block: 12px;
    color: #65808d;
    border-bottom-color: #d5e1e7;
    background: linear-gradient(180deg, #f3f7f9, #edf3f5);
}
.app-shell .data-table td { padding-block: 15px; border-bottom-color: #e5ecef; transition: background .18s, padding .18s; }
.app-shell .data-table tbody tr:hover { background: transparent; }
.app-shell .data-table tbody tr:hover td { background: rgba(235,245,247,.68); }
.app-shell .data-table tbody tr:hover td:first-child { padding-left: 16px; }
.app-shell .badge { gap: 4px; border: 1px solid rgba(110,137,150,.08); padding: 5px 9px; }
.app-shell .user-chip b,
.app-shell .person-cell > b { background: linear-gradient(145deg, #e6f2f4, #dcecef); color: #0d7185; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }

.app-shell .tabs { gap: 7px; padding: 12px 14px; background: linear-gradient(180deg, #f7fafb, #f1f5f7); }
.app-shell .tab { border: 1px solid transparent; border-radius: 10px; padding: 10px 13px; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.app-shell .tab:hover { color: #0f7185; background: rgba(255,255,255,.7); transform: translateY(-1px); }
.app-shell .tab.active { color: #0d6779; border-color: #c9e0e5; background: #fff; box-shadow: 0 7px 17px rgba(10,42,65,.07); }
.app-shell .tab.active span { color: #0d6779; background: #dff0f3; }
.app-shell .tab-panel { animation: menuPanelIn .3s ease both; }

.app-shell .form-section { position: relative; overflow: hidden; }
.app-shell .form-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; opacity: .55; background: linear-gradient(90deg, transparent, #21a3b5, #efd078, transparent); }
.app-shell .section-heading { border-bottom-color: #dce6eb; }
.app-shell .section-number { color: #0c6378; background: linear-gradient(145deg, #e0f1f3, #d4e9ed); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 7px 16px rgba(17,119,139,.08); }
.app-shell .barcode-lookup { border-color: #c5dce4; background: linear-gradient(135deg, #eef8fa, #f8fbfc); box-shadow: inset 0 1px 0 #fff; }
.app-shell .availability-card { border-color: #bdd7d1; background: linear-gradient(135deg, #eef8f4, #f8fbfa); }
.app-shell .sticky-panel { border-top: 2px solid rgba(214,173,85,.68); }
.app-shell .check-list li span { box-shadow: 0 0 0 3px rgba(17,119,139,.055); }
.app-shell .info-callout { border-left-color: #d6ad55; background: linear-gradient(90deg, #fbf5e6, #fdfbf6); }

.app-shell .role-explainer article {
    position: relative;
    overflow: hidden;
    border-color: rgba(202,217,227,.84);
    background: linear-gradient(145deg, #fff, #f8fafb);
    box-shadow: 0 10px 27px rgba(10,42,65,.055), inset 0 1px 0 #fff;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.app-shell .role-explainer article::after { content: ""; position: absolute; width: 90px; height: 90px; right: -55px; bottom: -60px; border-radius: 50%; opacity: .045; background: #11778b; transition: transform .4s; }
.app-shell .role-explainer article:hover { transform: translateY(-3px); border-color: #bfd4dd; box-shadow: 0 17px 35px rgba(10,42,65,.09); }
.app-shell .role-explainer article:hover::after { transform: scale(1.5); }

.app-shell .pagination a,
.app-shell .pagination > span:not(.page-info) { border-color: #cedde4; border-radius: 9px; box-shadow: 0 4px 10px rgba(10,42,65,.035); transition: transform .18s, border-color .18s, color .18s, background .18s; }
.app-shell .pagination a:hover { color: #fff; border-color: #11778b; background: #11778b; transform: translateY(-2px); }
.app-shell .empty-state > span { color: #11778b; background: linear-gradient(145deg, #e5f2f4, #dcecef); box-shadow: 0 0 0 6px rgba(17,119,139,.045); }

.app-shell .app-dialog {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 21px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 34px 90px rgba(5,31,47,.26), inset 0 1px 0 #fff;
    animation: menuDialogIn .28s cubic-bezier(.2,.8,.2,1);
}
.app-shell .app-dialog.dialog-scroll {
    overflow-x: hidden;
    overflow-y: auto;
}
.app-shell .app-dialog::backdrop { background: rgba(4,22,34,.66); backdrop-filter: blur(7px); }
.app-shell .dialog-header { position: relative; border-bottom-color: #dce6eb; }
.app-shell .dialog-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 70px; height: 2px; background: linear-gradient(90deg, #21a3b5, #efd078); }
.app-shell .dialog-header button { transition: transform .18s, background .18s, color .18s; }
.app-shell .dialog-header button:hover { color: #fff; background: #11778b; transform: rotate(4deg); }

.alert { position: relative; display: grid; grid-template-columns: 30px 1fr 25px; gap: 10px; align-items: start; padding: 13px 14px; border-radius: 11px; margin-bottom: 18px; animation: slideDown .25s ease; }
.alert.success { background: #e5f3eb; color: #236c4f; border: 1px solid #c7e5d5; }
.alert.danger { background: #fbecea; color: #9d403e; border: 1px solid #f0ceca; }
.alert-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.7); font-weight: 900; }
.alert strong { font-size: 11px; }
.alert p { margin: 1px 0 0; font-size: 10px; }
.alert ul { margin: 3px 0 0; padding-left: 16px; font-size: 10px; }
.alert button { border: 0; background: transparent; color: currentColor; font-size: 17px; }
@keyframes slideDown { from { opacity:0; transform:translateY(-6px) } }

.login-page { min-height: 100vh; background: #071927; overflow-x: hidden; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(560px, 1.2fr) minmax(470px, .8fr); }
.login-visual {
    min-height: 100vh;
    padding: 38px clamp(36px, 4.5vw, 78px) 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #061725;
}
.login-visual-media { position: absolute; z-index: -3; inset: 0; overflow: hidden; }
.login-visual-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    filter: saturate(.9) contrast(1.02);
    transform: scale(1.075) translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
    transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .8s ease;
    animation: loginImageBreathe 12s ease-in-out infinite alternate;
}
.login-visual-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,17,29,.98) 0%, rgba(3,20,33,.91) 34%, rgba(3,19,31,.5) 66%, rgba(3,15,25,.2) 100%),
        linear-gradient(180deg, rgba(1,11,19,.42), transparent 35%, rgba(1,10,17,.62));
}
.ambient-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, #000, transparent 70%);
    animation: gridDrift 22s linear infinite;
}
.login-aurora {
    position: absolute;
    z-index: -1;
    width: min(72vw, 900px);
    aspect-ratio: 1;
    right: -46%;
    top: -27%;
    border-radius: 50%;
    pointer-events: none;
    opacity: .55;
    filter: blur(12px);
    background: radial-gradient(circle, rgba(18,161,181,.3), rgba(11,101,130,.08) 38%, transparent 68%);
    animation: auroraFloat 9s ease-in-out infinite alternate;
}
.logistics-network {
    position: absolute;
    z-index: 0;
    inset: 4% -5% 0 32%;
    pointer-events: none;
    opacity: .42;
    filter: drop-shadow(0 0 10px rgba(38,181,198,.08));
}
.logistics-network svg { width: 100%; height: 100%; overflow: visible; }
.network-route {
    fill: none;
    stroke: rgba(117,213,224,.42);
    stroke-width: 1.15;
    stroke-dasharray: 6 9;
    vector-effect: non-scaling-stroke;
    animation: routeFlow 12s linear infinite;
}
.route-two { stroke: rgba(239,208,120,.34); animation-duration: 16s; animation-direction: reverse; }
.route-three { animation-duration: 20s; }
.network-node circle:first-child { fill: rgba(5,39,57,.58); stroke: rgba(255,255,255,.28); stroke-width: 1; }
.network-node circle:last-child { fill: #efd078; filter: drop-shadow(0 0 7px rgba(239,208,120,.9)); }
.network-node { transform-box: fill-box; transform-origin: center; animation: networkNodePulse 2.8s ease-out infinite; }
.node-two { animation-delay: -.9s; }
.node-three { animation-delay: -1.8s; }
.network-packet { fill: #6ad5df; filter: drop-shadow(0 0 7px rgba(106,213,223,.9)); }
.packet-two { fill: #efd078; }
.visual-scan-line {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    left: 38%;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 8%, rgba(95,220,232,.1) 24%, rgba(95,220,232,.65) 50%, rgba(95,220,232,.1) 76%, transparent 92%);
    box-shadow: 0 0 18px rgba(95,220,232,.25);
    animation: visualScan 8s ease-in-out infinite 1.2s;
}
.brand-orbit { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; pointer-events: none; animation: orbitSpin 24s linear infinite; }
.brand-orbit i { position: absolute; width: 7px; height: 7px; top: 50%; left: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(214,173,85,.8); }
.orbit-one { width: 440px; height: 440px; right: -230px; top: 10%; }
.orbit-two { width: 660px; height: 660px; right: -345px; top: 0; animation-direction: reverse; animation-duration: 34s; }
.login-brand {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .65s .1s, transform .65s .1s;
}
.login-emblem {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    border: 1px solid rgba(239,208,120,.42);
    border-radius: 17px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 40px rgba(0,0,0,.22);
    backdrop-filter: blur(14px);
}
.login-emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.22)); }
.login-brand-copy { display: grid; line-height: 1.25; }
.login-brand-copy small { color: rgba(255,255,255,.54); font-size: 8px; letter-spacing: 1.1px; text-transform: uppercase; }
.login-brand-copy strong { margin-top: 3px; font-size: 17px; letter-spacing: -.35px; }
.login-brand-copy em { color: #e7c875; font-size: 8px; font-style: normal; letter-spacing: .8px; text-transform: uppercase; }
.brand-status, .access-security { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; font-size: 8px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.brand-status { padding: 7px 10px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.13); background: rgba(3,20,32,.34); backdrop-filter: blur(10px); }
.brand-status i, .access-security i { width: 6px; height: 6px; border-radius: 50%; background: #39c69a; box-shadow: 0 0 0 3px rgba(57,198,154,.14); }
.login-hero { margin: auto 0; position: relative; z-index: 1; max-width: 650px; padding-block: 44px; }
.login-hero > * { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.login-hero .eyebrow { transition-delay: .2s; }
.login-hero h1 { transition-delay: .3s; }
.login-hero p { transition-delay: .42s; }
.login-hero .login-capabilities { transition-delay: .52s; }
.login-hero .login-live-feed { transition-delay: .6s; }
.login-hero h1 { max-width: 620px; font-size: clamp(45px, 4.6vw, 68px); line-height: 1.01; margin: 13px 0 19px; letter-spacing: -3.3px; text-shadow: 0 8px 35px rgba(0,0,0,.28); }
.login-hero h1 span { color: #efd078; }
.login-hero p { color: rgba(255,255,255,.68); font-size: 14px; max-width: 540px; line-height: 1.75; }
.login-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.login-capabilities span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: rgba(255,255,255,.78); background: rgba(4,24,38,.34); backdrop-filter: blur(9px); font-size: 9px; font-weight: 700; }
.login-capabilities b { color: #efd078; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.login-live-feed {
    width: min(360px, 100%);
    min-height: 52px;
    margin-top: 15px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: linear-gradient(110deg, rgba(5,32,47,.65), rgba(11,66,79,.35));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 30px rgba(0,0,0,.1);
    backdrop-filter: blur(12px);
}
.live-feed-icon {
    width: 35px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 9px;
    background: rgba(62,193,167,.11);
}
.live-feed-icon i { width: 2px; height: 9px; border-radius: 3px; background: #4fd2b1; transform-origin: center; animation: signalBars 1.1s ease-in-out infinite; }
.live-feed-icon i:nth-child(2) { height: 17px; animation-delay: -.7s; }
.live-feed-icon i:nth-child(3) { height: 13px; animation-delay: -.35s; }
.live-feed-icon i:nth-child(4) { height: 20px; animation-delay: -.85s; }
.login-live-feed > span:nth-child(2) { min-width: 0; display: grid; }
.login-live-feed small { color: rgba(255,255,255,.38); font-size: 7px; letter-spacing: .65px; text-transform: uppercase; }
.login-live-feed strong { overflow: hidden; margin-top: 1px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.login-live-feed > b { display: inline-flex; align-items: center; gap: 5px; color: #7de1c7; font: 700 7px "SFMono-Regular", Consolas, monospace; letter-spacing: .7px; }
.login-live-feed > b i { width: 5px; height: 5px; border-radius: 50%; background: #4fd2a8; box-shadow: 0 0 0 0 rgba(79,210,168,.45); animation: feedPulse 1.8s ease-out infinite; }
.login-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 19px; position:relative; z-index:1; opacity:0; transform:translateY(14px); transition: opacity .7s .62s, transform .7s .62s; }
.login-metrics div { display: grid; gap: 2px; }
.login-metrics strong { color: #efd078; font-size: 11px; letter-spacing: .3px; text-transform: uppercase; }
.login-metrics span { color: rgba(255,255,255,.45); font-size: 8px; letter-spacing: .35px; }
.visual-footer { color: rgba(255,255,255,.26); letter-spacing: 1.35px; font-size: 7px; margin: 16px 0 0; position:relative; z-index:1; }
.login-form-panel {
    display: grid;
    place-items: center;
    position: relative;
    min-width: 0;
    overflow: hidden auto;
    padding: clamp(26px, 4vw, 56px);
    background:
        radial-gradient(circle at 15% 10%, rgba(17,119,139,.1), transparent 27%),
        radial-gradient(circle at 90% 90%, rgba(214,173,85,.09), transparent 28%),
        #f1f5f8;
}
.login-form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .32;
    pointer-events: none;
    background-image: radial-gradient(#9fb3c1 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(135deg, #000, transparent 45%);
    animation: panelDots 20s linear infinite;
}
.form-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3px);
}
.form-ambient-one {
    width: 340px;
    height: 340px;
    top: -130px;
    right: -90px;
    background: radial-gradient(circle at 38% 42%, rgba(36,174,191,.2), rgba(17,119,139,.04) 48%, transparent 72%);
    animation: formOrbOne 10s ease-in-out infinite alternate;
}
.form-ambient-two {
    width: 300px;
    height: 300px;
    bottom: -145px;
    left: -105px;
    background: radial-gradient(circle at 60% 35%, rgba(224,180,83,.18), rgba(214,173,85,.035) 52%, transparent 72%);
    animation: formOrbTwo 12s ease-in-out infinite alternate;
}
.form-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 7%;
    right: -160px;
    border: 1px solid rgba(17,119,139,.09);
    border-radius: 50%;
    animation: orbitSpin 38s linear infinite;
}
.form-ring i { position: absolute; border: 1px solid rgba(17,119,139,.07); border-radius: 50%; inset: 24px; }
.form-ring i:nth-child(2) { inset: 58px; }
.form-ring i:nth-child(3) { width: 8px; height: 8px; inset: auto; left: 25px; top: 48%; border: 0; background: rgba(17,119,139,.5); box-shadow: 0 0 14px rgba(17,119,139,.25); }
.login-form-wrap {
    width: 100%;
    max-width: 470px;
    min-width: 0;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 27px;
    padding: clamp(28px, 3.2vw, 43px);
    background: rgba(255,255,255,.9);
    box-shadow: 0 30px 85px rgba(15,48,72,.14), inset 0 1px 0 #fff;
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s .25s, transform .7s .25s cubic-bezier(.2,.8,.2,1);
}
.login-form-wrap::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    border-radius: 27px 27px 0 0;
    background: linear-gradient(90deg, transparent 6%, rgba(17,119,139,.36), rgba(239,208,120,.55), transparent 94%);
}
.login-card-glow {
    position: absolute;
    z-index: -1;
    width: 52%;
    height: 80px;
    top: -42px;
    left: 24%;
    pointer-events: none;
    opacity: .45;
    filter: blur(28px);
    background: rgba(44,177,192,.28);
    animation: cardGlow 5s ease-in-out infinite alternate;
}
.login-access-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.access-security { padding: 6px 9px; color: #547080; background: #edf4f6; border: 1px solid #d8e5ea; }
.login-form-wrap h2 { font-size: clamp(27px, 2.1vw, 32px); margin: 8px 0 6px; letter-spacing: -1.1px; }
.muted { color: var(--muted); }
.login-form-wrap > .muted { margin-bottom: 25px; font-size: 12px; }
.stack-form { display: grid; gap: 16px; }
.login-form .field > span:first-child { color: #334c5d; font-size: 9px; letter-spacing: .35px; text-transform: uppercase; }
.login-form input { min-height: 50px; border-color: #d4e0e7; border-radius: 12px; background: #f8fafc; padding-left: 47px; font-size: 12px; }
.login-form input:hover { border-color: #b8cbd6; background: #fff; }
.login-form input:focus { border-color: #11778b; background: #fff; box-shadow: 0 0 0 4px rgba(17,119,139,.1), 0 8px 24px rgba(17,119,139,.07); transform: translateY(-1px); }
.login-form input.demo-filled { animation: demoFilled .55s cubic-bezier(.2,.8,.2,1); }
.login-input-icon { width: 19px; height: 19px; display: grid; place-items: center; left: 15px; color: #6e8796; }
.login-input-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-form .field:focus-within .login-input-icon { color: #11778b; transform: translateY(-50%) scale(1.06); }
.login-form .password-toggle { right: 9px; color: #0d6075; background: #e7f1f4; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.check-row input { width: 15px; height: 15px; min-height: 0; accent-color: var(--green-700); }
.login-submit { min-height: 51px; justify-content: space-between; padding-inline: 20px 10px; margin-top: 4px; border-radius: 12px; position: relative; isolation: isolate; overflow: hidden; }
.login-submit::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 70px;
    height: 150%;
    left: -100px;
    top: -25%;
    transform: rotate(18deg);
    opacity: .5;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    animation: buttonShine 4.6s ease-in-out infinite 1.4s;
}
.login-submit b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #063245; background: #efd078; font-size: 16px; transition: transform .2s; }
.login-submit:hover b { transform: translateX(2px); }
.login-submit.is-loading { cursor: wait; opacity: .9; }
.login-submit.is-loading b { color: transparent; position: relative; }
.login-submit.is-loading b::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid rgba(6,50,69,.26); border-top-color: #063245; border-radius: 50%; animation: orbitSpin .7s linear infinite; }
.login-trust { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 11px; border: 1px solid #dbe6eb; border-radius: 11px; background: #f6f9fa; }
.login-trust > span { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 9px; color: #11778b; background: #dff0f3; }
.login-trust svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-trust div { display: grid; }
.login-trust strong { color: #294453; font-size: 9px; }
.login-trust small { color: var(--muted); font-size: 8px; }
.demo-accounts { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-accounts summary { color: var(--muted); font-size: 9px; cursor: pointer; width: fit-content; font-weight: 700; }
.demo-accounts summary:hover { color: var(--green-700); }
.demo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 10px; }
.demo-grid button { min-width: 0; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #f8fafb; border-radius: 9px; padding: 8px; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.demo-grid button:hover { border-color: #9fbfc9; background: #eef7f8; transform: translateY(-1px); }
.demo-grid button > b { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 7px; color: #0d6075; background: #e1eff2; font-size: 7px; }
.demo-grid button > span { min-width: 0; display: grid; }
.demo-grid strong { overflow: hidden; color: #314957; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.demo-grid small { color: var(--muted); font-size: 7px; }
.login-help { text-align: center; color: var(--muted); font-size: 8px; margin: 18px 0 0; }
.login-help span { color: #96a7b2; font-size: 7px; letter-spacing: .25px; }
.mobile-login-visual { display: none; }
.mobile-login-brand { display: none; }
.mobile-login-brand > span { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; padding: 6px; border: 1px solid rgba(17,119,139,.18); border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 10px 26px rgba(15,48,72,.1); }
.mobile-login-brand img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(8,35,55,.16)); }
.mobile-login-brand div { display: grid; }
.mobile-login-brand small { color: var(--muted); font-size: 8px; letter-spacing: .6px; text-transform: uppercase; }
.mobile-login-brand strong { color: #173747; font-size: 14px; letter-spacing: -.2px; }

body.is-ready .login-brand,
body.is-ready .login-metrics,
body.is-ready .login-form-wrap,
body.is-ready .login-hero > * { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .55s var(--reveal-delay, 0ms), transform .55s var(--reveal-delay, 0ms) cubic-bezier(.2,.8,.2,1); }
.dashboard-page .dashboard-stat.reveal.is-visible { transform: perspective(900px) rotateX(var(--card-rotate-x, 0deg)) rotateY(var(--card-rotate-y, 0deg)); }
.dashboard-page .dashboard-stat.reveal.is-visible:hover { transform: translateY(-4px) perspective(900px) rotateX(var(--card-rotate-x, 0deg)) rotateY(var(--card-rotate-y, 0deg)); }
.dashboard-page .panel.reveal.is-visible:hover { transform: translateY(-3px); }
.dashboard-page .quick-card.reveal.is-visible:hover { transform: translateY(-4px); }
.staff-dashboard-page .staff-choice.reveal.is-visible:hover { transform: translateY(-3px); }
.app-shell:not(.dashboard-page) .stat-card.reveal.is-visible:hover { transform: translateY(-3px); }
.app-shell .role-explainer article.reveal.is-visible:hover { transform: translateY(-3px); }

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 4px #dff3f6, 0 0 14px rgba(26,168,189,.45); }
    50% { box-shadow: 0 0 0 7px rgba(223,243,246,.35), 0 0 20px rgba(26,168,189,.65); }
}
@keyframes appAuroraOne { to { transform: translate3d(-65px, 55px, 0) scale(1.12); opacity: .58; } }
@keyframes appAuroraTwo { to { transform: translate3d(70px, -38px, 0) scale(1.08); opacity: .5; } }
@keyframes appGridDrift { to { background-position: 28px 28px; } }
@keyframes dashboardGridFlow { to { background-position: 48px 48px; } }
@keyframes dashboardAurora { to { opacity: .92; filter: blur(14px); } }
@keyframes dashboardRouteFlow { to { stroke-dashoffset: -130; } }
@keyframes dashboardNodePulse { 0%, 100% { opacity: .48; } 50% { opacity: 1; } }
@keyframes dashboardScan {
    0%, 12% { left: 43%; opacity: 0; }
    20% { opacity: .6; }
    68% { opacity: .3; }
    78%, 100% { left: 98%; opacity: 0; }
}
@keyframes dashboardSignal { 0%, 100% { transform: scaleY(.5); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes panelLiveScan { 0%, 15% { left: -32%; opacity: 0; } 25% { opacity: 1; } 75% { opacity: .7; } 90%, 100% { left: 105%; opacity: 0; } }
@keyframes unifiedHeadingOrb { to { transform: translate3d(-28px, 34px, 0) scale(1.08); opacity: .65; } }
@keyframes menuPanelIn { from { opacity: 0; transform: translateY(7px); } }
@keyframes menuDialogIn { from { opacity: 0; transform: translateY(12px) scale(.975); } }
@keyframes gridDrift { to { background-position: 64px 64px; } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes loginImageBreathe { from { filter: saturate(.88) contrast(1.02); } to { filter: saturate(1.04) contrast(1.055); } }
@keyframes auroraFloat { to { transform: translate3d(-7%, 8%, 0) scale(1.08); opacity: .75; } }
@keyframes routeFlow { to { stroke-dashoffset: -120; } }
@keyframes networkNodePulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes visualScan {
    0%, 12% { left: 34%; opacity: 0; }
    20% { opacity: .65; }
    68% { opacity: .35; }
    78%, 100% { left: 96%; opacity: 0; }
}
@keyframes signalBars { 0%, 100% { transform: scaleY(.45); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes feedPulse { 70% { box-shadow: 0 0 0 6px rgba(79,210,168,0); } 100% { box-shadow: 0 0 0 0 rgba(79,210,168,0); } }
@keyframes panelDots { to { background-position: 22px 22px; } }
@keyframes formOrbOne { to { transform: translate3d(-38px, 28px, 0) scale(1.12); } }
@keyframes formOrbTwo { to { transform: translate3d(34px, -24px, 0) scale(1.08); } }
@keyframes cardGlow { to { opacity: .78; transform: scaleX(1.18); } }
@keyframes buttonShine { 0%, 55% { left: -100px; } 82%, 100% { left: calc(100% + 70px); } }
@keyframes demoFilled { 0% { box-shadow: 0 0 0 0 rgba(17,119,139,.22); } 55% { box-shadow: 0 0 0 6px rgba(17,119,139,.08); } }
@keyframes barcodeScan {
    0%, 100% { transform: translateY(-65px); opacity: .35; }
    50% { transform: translateY(65px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal, .login-brand, .login-metrics, .login-form-wrap, .login-hero > * { opacity: 1 !important; transform: none !important; }
    .login-visual-media img { transform: scale(1.04) !important; }
    .dashboard-stat { --card-rotate-x: 0deg !important; --card-rotate-y: 0deg !important; }
}

@media (max-width: 1180px) {
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-command-hero { grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); }
    .filter-grid { grid-template-columns: 2fr 1fr 1fr; }
    .filter-grid .field:nth-child(4), .filter-grid .field:nth-child(5) { grid-row: 2; }
    .filter-actions { grid-row: 2; align-self: end; }
    .process-line { min-width: 310px; }
}
@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); transition: transform .24s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .mobile-overlay { position: fixed; inset: 0; background: rgba(5,25,19,.55); z-index: 45; }
    body.sidebar-open .mobile-overlay { display: block; }
    .main { margin-left: 0; }
    .menu-button { display: grid; place-items: center; margin-right: 12px; }
    .topbar { justify-content: flex-start; }
    .topbar-meta { margin-left: auto; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-page .dashboard-grid { grid-template-columns: 1fr; }
    .transaction-layout { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
    .login-shell { width: 100%; min-width: 0; min-height: 100svh; grid-template-columns: minmax(0, 1fr); }
    .login-visual { display: none; }
    .login-form-panel { min-height: 100svh; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 20px; padding: clamp(28px, 6vw, 54px); background: linear-gradient(180deg,#e8f2f7,#fff 35%); }
    .mobile-login-visual { width: 100%; max-width: 530px; min-width: 0; height: clamp(130px, 26vw, 185px); display: block; position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: #093044; box-shadow: 0 18px 36px rgba(15,48,72,.16); }
    .mobile-login-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 45%; filter: saturate(.9) contrast(1.03); }
    .mobile-login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,20,33,.34), transparent 58%), linear-gradient(180deg, transparent 42%, rgba(3,20,33,.38)); }
    .login-form-wrap { width: 100%; max-width: 530px; }
    .login-access-heading { flex-wrap: wrap; }
    .form-ring { right: -115px; top: -85px; }
    .mobile-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
}
@media (max-width: 740px) {
    .topbar { height: 72px; padding-inline: 14px; }
    .topbar h1 { font-size: 15px; }
    .topbar-meta small { display: none; }
    .content { padding: 21px 13px 35px; }
    .dashboard-page .content { padding-top: 14px; }
    .dashboard-command-hero { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding: 25px; border-radius: 19px; }
    .command-network { inset: 0 -35% 0 5%; opacity: .32; }
    .command-scan { display: none; }
    .command-hero-copy h2 { font-size: 31px; letter-spacing: -1.2px; }
    .command-status-card { max-width: 430px; }
    .dashboard-activity-panel .activity-columns { gap: 20px; }
    body.app-shell:not(.dashboard-page) .page-heading { min-height: 0; align-items: flex-start; padding: 24px 21px; border-radius: 18px; }
    body.app-shell:not(.dashboard-page) .page-heading::after { right: -185px; top: -210px; }
    body.app-shell:not(.dashboard-page) .page-heading > .btn { width: 100%; }
    body.app-shell:not(.dashboard-page) .page-heading .process-badge,
    body.app-shell:not(.dashboard-page) .page-heading .read-only-badge,
    body.app-shell:not(.dashboard-page) .page-heading .sent-badge { align-self: flex-start; }
    .app-shell .toolbar { padding: 9px; }
    .app-shell .data-table tr { overflow: hidden; border-color: #d2e0e6; background: #fff; box-shadow: 0 8px 20px rgba(10,42,65,.045); }
    .app-shell .data-table td { background: transparent; }
    .app-shell .data-table tbody tr:hover td:first-child { padding-left: 0; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .page-heading h2 { font-size: 24px; }
    .heading-actions { width: 100%; }
    .heading-actions .btn, .page-heading > .btn { flex: 1; }
    .stat-grid, .quick-grid, .staff-choice-grid, .role-explainer, .report-summary { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 145px; padding: 15px; }
    .stat-card > strong { font-size: 26px; }
    .activity-columns { grid-template-columns: 1fr; gap: 20px; }
    .staff-hero { padding: 25px; display: block; }
    .staff-hero h2 { font-size: 26px; }
    .process-line { margin-top: 28px; min-width: 0; }
    .process-line i { flex: 1; width: auto; }
    .staff-choice { min-height: 250px; padding: 21px; }
    .toolbar { flex-wrap: wrap; }
    .search-box { max-width: none; width: 100%; flex-basis: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .field.span-2, .span-2 { grid-column: span 1; }
    .barcode-input-group { flex-wrap: wrap; }
    .barcode-input-group input { flex-basis: 100%; }
    .barcode-input-group .btn { flex: 1 1 calc(50% - 4px); }
    .barcode-link-panel { align-items: stretch; flex-direction: column; }
    .barcode-link-panel .btn { width: 100%; }
    .barcode-viewport { min-height: 245px; }
    .barcode-scanner-content { padding: 18px; }
    .panel, .form-section { padding: 16px; border-radius: 13px; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .filter-grid .field:first-child, .filter-grid .field:nth-child(2) { grid-column: span 2; }
    .filter-grid .field:nth-child(4), .filter-grid .field:nth-child(5), .filter-actions { grid-row: auto; }
    .filter-actions { grid-column: span 2; }
    .tabs { overflow-x: auto; padding-inline: 8px; }
    .tab { white-space: nowrap; padding-inline: 10px; }
    .tab-panel { padding: 10px; }
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { border: 1px solid var(--line); border-radius: 11px; padding: 8px 11px; margin-bottom: 9px; }
    .data-table td { display: grid; grid-template-columns: 112px 1fr; padding: 8px 0; border-bottom: 1px dashed #e1e7e4; text-align: left!important; }
    .data-table td:last-child { border: 0; }
    .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .6px; padding-top: 2px; }
    .data-table td[colspan] { display: block; }
    .data-table td[colspan]::before { display: none; }
    .row-actions { justify-content: flex-start; }
    .report-document { padding: 18px; }
    .report-letterhead > div strong { font-size: 11px; }
    .report-meta-grid { grid-template-columns: 1fr; }
    .report-meta-grid div, .report-meta-grid div:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
    .report-meta-grid div:last-child { border-bottom: 0; }
    .role-explainer { grid-template-columns: 1fr; }
    .dialog-form { padding: 18px; }
}
@media (max-width: 500px) {
    .topbar-meta strong { font-size: 10px; }
    .topbar-kicker { display: none; }
    .stat-grid, .quick-grid, .staff-choice-grid, .report-summary { grid-template-columns: 1fr; }
    .stat-card { min-height: 133px; }
    .dashboard-command-hero { padding: 22px 18px; }
    .command-hero-copy p { font-size: 11px; }
    .command-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .command-actions .btn { min-width: 0; padding-inline: 10px; }
    .command-status-foot { align-items: flex-start; flex-direction: column; }
    .dashboard-stat { min-height: 160px; }
    .dashboard-quick-grid .quick-card { min-height: 88px; }
    body.app-shell:not(.dashboard-page) .page-heading { padding: 21px 17px; }
    body.app-shell:not(.dashboard-page) .page-heading h2 { font-size: 25px; }
    body.app-shell:not(.dashboard-page) .page-heading p { font-size: 10px; }
    body.app-shell:not(.dashboard-page) .heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
    body.app-shell:not(.dashboard-page) .heading-actions .btn { min-width: 0; padding-inline: 9px; }
    .app-shell .panel { border-radius: 14px; }
    .app-shell .tabs { overflow-x: auto; }
    .staff-today { gap: 20px; }
    .process-line small { font-size: 7px; }
    .filter-grid { grid-template-columns: 1fr; }
    .filter-grid .field:first-child, .filter-grid .field:nth-child(2), .filter-actions { grid-column: auto; }
    .login-form-panel { align-content: start; gap: 14px; padding: 18px 14px 26px; }
    .mobile-login-visual { height: 126px; border-radius: 16px; }
    .mobile-login-brand { margin-bottom: 26px; }
    .login-form-wrap { padding: 27px 20px; border-radius: 22px; }
    .login-access-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .login-form input { min-height: 52px; font-size: 16px; }
    .login-form .password-toggle { min-height: 42px; right: 5px; padding-inline: 11px; }
    .login-submit { min-height: 54px; }
    .demo-grid { grid-template-columns: 1fr; }
    .data-table td { grid-template-columns: 96px 1fr; }
}

/* ========================================================================== 
   Command Logistics Brand System — Edition 02
   Final cascade intentionally consolidates the legacy visual rules above.
   ========================================================================== */
:root {
    --ink: #0d2234;
    --muted: #5d7080;
    --line: #d6e0e6;
    --canvas: #f2f1ed;
    --surface: #ffffff;
    --brand-950: #051521;
    --brand-900: #071d2d;
    --brand-800: #0a3348;
    --brand-700: #0e6478;
    --brand-600: #108197;
    --brand-100: #dceff1;
    --accent: #d9b45f;
    --accent-strong: #bf8f35;
    --accent-soft: #f8efd9;
    --green-950: var(--brand-950);
    --green-900: var(--brand-900);
    --green-800: var(--brand-800);
    --green-700: var(--brand-700);
    --green-100: var(--brand-100);
    --gold: var(--accent);
    --gold-soft: var(--accent-soft);
    --shadow: 0 18px 50px rgba(7, 29, 45, .07);
    --shadow-hover: 0 26px 65px rgba(7, 29, 45, .12);
    --radius: 21px;
    --sidebar: 288px;
}

html { background: var(--canvas); }
body {
    min-width: 320px;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid rgba(20, 139, 160, .3);
    outline-offset: 3px;
}

input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; }
.ui-icon { width: 1.25em; height: 1.25em; display: block; flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: 12px; padding: 10px 15px; color: #fff; background: var(--brand-700); border-radius: 10px; transform: translateY(-150%); transition: transform .18s; }
.skip-link:focus { transform: translateY(0); }

.app-light-beam { position: absolute; width: 54vw; height: 100vh; right: -17vw; top: -34vh; transform: rotate(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), transparent); filter: blur(10px); opacity: .42; }
.app-noise { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(16,55,75,.14) .55px, transparent .7px); background-size: 4px 4px; mask-image: linear-gradient(115deg, transparent 10%, #000 46%, transparent 90%); }
.app-grid-pattern { opacity: .14; background-size: 32px 32px; }

/* Shell and navigation */
.sidebar {
    width: var(--sidebar);
    background:
        radial-gradient(circle at 5% 0, rgba(20,151,172,.17), transparent 27%),
        linear-gradient(180deg, #061a29 0%, #071b2a 52%, #04131e 100%);
    box-shadow: 18px 0 60px rgba(3,17,28,.12);
}
.sidebar::before { content: ""; position: absolute; inset: auto 0 0; height: 42%; pointer-events: none; background: linear-gradient(145deg, transparent 45%, rgba(218,180,95,.035)); border-top: 1px solid rgba(255,255,255,.035); clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%); }
.sidebar::after { opacity: .1; background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 48%); }
.brand { min-height: 112px; padding: 20px 18px 18px; gap: 13px; border-bottom-color: rgba(255,255,255,.075); }
.sidebar-emblem { width: 50px; height: 50px; flex-basis: 50px; padding: 7px; border-radius: 16px; border-color: rgba(230,194,110,.42); background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)); }
.brand-copy { min-width: 0; display: grid; line-height: 1.05; }
.brand-copy small { color: #d9b45f; margin-bottom: 5px; font-size: 8px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
.brand-copy strong { color: #fff; font-size: 18px; font-weight: 760; letter-spacing: -.55px; }
.brand-copy > span { color: rgba(255,255,255,.5); margin-top: 5px; font-size: 9px; font-weight: 650; letter-spacing: .85px; }
.brand-edition { align-self: flex-start; margin-left: auto; color: rgba(255,255,255,.36); font: 700 8px "SFMono-Regular", Consolas, monospace; letter-spacing: .8px; }
.sidebar-nav { padding: 19px 13px 12px; }
.nav-label { display: flex; align-items: center; gap: 7px; margin: 21px 12px 8px; color: rgba(255,255,255,.35); font-size: 9px; letter-spacing: 1.35px; }
.nav-label span { color: rgba(218,180,95,.72); font: 700 8px "SFMono-Regular", Consolas, monospace; }
.nav-item { min-height: 48px; gap: 12px; margin: 3px 0; padding: 7px 11px; border: 1px solid transparent; border-radius: 13px; color: rgba(255,255,255,.67); font-size: 13.5px; font-weight: 650; }
.nav-item:hover { color: #fff; border-color: rgba(255,255,255,.055); background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; border-color: rgba(56,181,199,.1); background: linear-gradient(100deg, rgba(32,169,189,.18), rgba(255,255,255,.045)); box-shadow: inset 3px 0 #24acc0, 0 10px 25px rgba(0,0,0,.08); }
.nav-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; color: rgba(255,255,255,.64); background: rgba(255,255,255,.07); }
.nav-icon .ui-icon { width: 18px; height: 18px; }
.nav-item.active .nav-icon { color: #8de2ed; background: rgba(36,172,192,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.nav-icon.incoming { color: #77d8ba; }
.nav-icon.outgoing { color: #f0c770; }
.nav-group .chevron { width: 18px; height: 18px; margin-left: auto; color: rgba(255,255,255,.36); transition: transform .2s; }
.nav-submenu { margin: 5px 6px 9px 28px; padding: 4px 0 4px 23px; border-left: 1px solid rgba(255,255,255,.09); }
.nav-submenu a { position: relative; padding: 8px 6px; color: rgba(255,255,255,.48); font-size: 12px; }
.nav-submenu a::before { content: ""; position: absolute; width: 5px; height: 5px; left: -26px; top: 50%; border-radius: 50%; background: #516878; transform: translateY(-50%); }
.nav-submenu a:hover, .nav-submenu a.active { color: #fff; }
.nav-submenu a.active::before { background: #d9b45f; box-shadow: 0 0 0 4px rgba(217,180,95,.09); }
.sidebar-footnote { margin: 0 18px 2px; padding: 10px 0 11px; display: flex; justify-content: space-between; color: rgba(255,255,255,.25); border-top: 1px solid rgba(255,255,255,.07); font: 700 7px "SFMono-Regular", Consolas, monospace; letter-spacing: .75px; text-transform: uppercase; }
.sidebar-footnote b { color: rgba(217,180,95,.5); font-weight: 700; }
.sidebar-user { margin: 0 13px; padding: 14px 6px 18px; border-top: 0; }
.avatar { position: relative; width: 39px; height: 39px; border-radius: 12px; color: #0b3140; background: linear-gradient(145deg,#e8f3ef,#cfe2dc); }
.avatar i { position: absolute; width: 9px; height: 9px; right: -1px; bottom: -1px; border: 2px solid #061724; border-radius: 50%; background: #3ec59b; }
.user-copy strong { font-size: 12.5px; }
.user-copy small { font-size: 10.5px; }
.logout-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.05); }
.logout-button .ui-icon { width: 18px; height: 18px; }
.main { margin-left: var(--sidebar); }

/* Top bar */
.topbar { height: 94px; padding: 0 clamp(24px,3.1vw,48px); border-bottom-color: rgba(187,202,212,.72); background: rgba(247,248,246,.82); backdrop-filter: blur(22px) saturate(145%); }
.topbar-title { min-width: 0; }
.topbar h1 { margin-top: 4px; font-size: 21px; font-weight: 740; letter-spacing: -.65px; }
.topbar-kicker { display: flex; align-items: center; gap: 7px; color: #6b7d89; font-size: 9px; letter-spacing: 1.35px; }
.topbar-kicker span { color: var(--brand-700); }
.topbar-kicker i { width: 18px; height: 1px; background: #d1a94e; }
.topbar-meta { gap: 13px; }
.topbar-access { display: flex; align-items: center; gap: 9px; }
.topbar-access > span:last-child, .topbar-meta time { display: grid; }
.topbar-meta small { color: #788995; font-size: 10px; }
.topbar-meta strong { color: var(--ink); font-size: 12px; }
.topbar-divider { width: 1px; height: 31px; background: #d9e1e5; }
.topbar-clock { min-width: 67px; padding: 6px 8px; color: #49606f; border: 1px solid #d6e1e5; border-radius: 8px; background: rgba(255,255,255,.65); font: 700 9px "SFMono-Regular", Consolas, monospace; text-align: center; }
.live-dot { width: 8px; height: 8px; }
.menu-button { width: 44px; height: 44px; color: var(--brand-800); border: 1px solid #d5e1e5; background: #fff; }
.menu-button .ui-icon { width: 20px; height: 20px; }
.content { max-width: 1700px; padding: 32px clamp(22px,3.1vw,48px) 58px; }

/* Compact editorial page headers */
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading {
    min-height: 0;
    margin: 0 0 24px;
    padding: 8px 0 25px;
    align-items: flex-end;
    overflow: visible;
    color: var(--ink);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading::before { content: ""; position: absolute; z-index: 0; inset: auto 0 0; height: 1px; opacity: 1; background: linear-gradient(90deg, #b9cbd3 0, #b9cbd3 72%, transparent); animation: none; mask-image: none; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading::after { content: ""; z-index: 1; width: 70px; height: 3px; left: 0; right: auto; top: auto; bottom: -1px; border: 0; border-radius: 4px; background: linear-gradient(90deg, var(--brand-600), #d9b45f); box-shadow: none; animation: none; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading h2 { max-width: 820px; margin: 6px 0 7px; color: var(--ink); font-size: clamp(28px,2.5vw,38px); font-weight: 750; letter-spacing: -1.35px; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading p { max-width: 720px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .eyebrow { color: var(--brand-700); }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); margin-bottom: 9px; font-size: 12px; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .back-link:hover { color: var(--brand-900); }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .btn { min-height: 45px; border-radius: 12px; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg,var(--brand-600),var(--brand-800)); box-shadow: 0 12px 27px rgba(10,74,95,.19); }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .btn.secondary { color: var(--brand-800); border-color: #cbdadf; background: #fff; backdrop-filter: none; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .btn.warning { color: #fff; border-color: transparent; background: linear-gradient(135deg,#bc812a,#94601e); }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .process-badge,
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .read-only-badge,
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .sent-badge { color: #3f5868; border-color: #d1dfe3; background: #fff; box-shadow: 0 8px 22px rgba(7,29,45,.055); backdrop-filter: none; }
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .process-badge b,
body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading .read-only-badge b { color: #fff; background: var(--brand-700); }
.eyebrow { color: var(--brand-700); font-size: 10px; letter-spacing: 1.45px; }

/* Shared surfaces and controls */
.btn { min-height: 44px; padding: 10px 17px; border-radius: 12px; font-size: 12.5px; font-weight: 720; }
.btn .ui-icon, .back-link .ui-icon { width: 16px; height: 16px; }
.heading-actions form { display: flex; margin: 0; }
.heading-actions form .btn { width: 100%; }
.sent-badge .ui-icon { width: 15px; height: 15px; }
.btn.primary { background: linear-gradient(135deg,var(--brand-600),var(--brand-800)); box-shadow: 0 11px 25px rgba(9,75,97,.18); }
.btn.primary:hover { background: linear-gradient(135deg,#0f7185,#072f47); box-shadow: 0 15px 31px rgba(9,75,97,.24); }
.btn.secondary { color: var(--brand-800); border-color: #cbd9df; }
.panel, .app-shell .panel { border-color: rgba(194,207,216,.82); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow), inset 0 1px 0 #fff; }
.panel:hover, .app-shell .panel:hover { border-color: rgba(174,195,205,.95); box-shadow: 0 22px 58px rgba(7,29,45,.1), inset 0 1px 0 #fff; }
.panel-header h3, .app-shell .panel-header h3 { font-size: 19px; }
.field > span:first-child { color: #39515f; font-size: 10.5px; letter-spacing: .25px; }
input, select, textarea, .app-shell input, .app-shell select, .app-shell textarea { min-height: 47px; color: var(--ink); border-color: #c7d5dc; border-radius: 12px; background: #fcfdfd; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #91a0a9; }
input:focus, select:focus, textarea:focus, .app-shell input:focus, .app-shell select:focus, .app-shell textarea:focus { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(16,129,151,.1), 0 9px 24px rgba(7,48,68,.06); }
input[readonly], .app-shell input[readonly] { color: #60727e; border-style: dashed; background: #eef3f4; cursor: not-allowed; }
.toggle-field { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #cfdae0; border-radius: 13px; background: #f8faf9; cursor: pointer; }
.toggle-field > input[type="hidden"] { display: none; }
.toggle-field > input[type="checkbox"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.toggle-field > i { position: relative; width: 42px; height: 24px; flex: 0 0 42px; border-radius: 999px; background: #b6c3c9; transition: background .2s, box-shadow .2s; }
.toggle-field > i::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(7,29,45,.2); transition: transform .2s; }
.toggle-field > input:checked + i { background: var(--brand-600); box-shadow: 0 0 0 4px rgba(16,129,151,.09); }
.toggle-field > input:checked + i::after { transform: translateX(18px); }
.toggle-field > input:focus-visible + i { outline: 3px solid rgba(20,139,160,.28); outline-offset: 3px; }
.toggle-field > span { display: grid; }
.toggle-field strong { color: var(--ink); font-size: 11.5px; }
.toggle-field small { color: var(--muted); font-size: 9.5px; }
.new-item-metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border: 1px dashed #bdd0d7; border-radius: 15px; background: linear-gradient(135deg,#f5faf9,#f8fafb); }
.new-item-metadata-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #dce7e9; }
.new-item-metadata-head > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: var(--brand-700); border-radius: 10px; background: var(--brand-100); }
.new-item-metadata-head .ui-icon { width: 17px; height: 17px; }
.new-item-metadata-head > div { display: grid; }
.new-item-metadata-head strong { font-size: 11.5px; }
.new-item-metadata-head small { color: var(--muted); font-size: 9.5px; }
.toolbar, .app-shell .toolbar { padding: 12px; border-color: #d5e0e5; border-radius: 15px; background: #f5f8f8; }
.search-box > span { font-size: 0; }
.search-box > span::before { content: ""; display: block; width: 17px; height: 17px; border: 1.8px solid currentColor; border-radius: 50%; }
.search-box > span::after { content: ""; position: absolute; width: 7px; height: 1.8px; right: -4px; bottom: 1px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.data-table th, .app-shell .data-table th { position: sticky; top: 0; z-index: 2; padding: 13px 14px; color: #5d7482; background: #f1f5f6; font-size: 10px; letter-spacing: .8px; }
.data-table td, .app-shell .data-table td { padding: 16px 14px; color: #263f4f; border-bottom-color: #e4ebee; font-size: 13px; }
.data-table td > small { color: #72848f; font-size: 10.5px; }
.data-table tbody tr:hover td, .app-shell .data-table tbody tr:hover td { background: #f7faf9; }
.badge { min-height: 27px; padding: 5px 9px; border-radius: 999px; font-size: 10px; }
.badge.role-admin { color: #634483; background: #eee7f6; }
.badge.role-staff { color: #176d9d; background: #deeff8; }
.badge.role-anggota { color: #526660; background: #e9f0ed; }
.icon-button { min-height: 38px; min-width: 42px; padding: 8px 11px; }
.icon-button .ui-icon { width: 17px; height: 17px; }
.pagination a, .pagination > span:not(.page-info) { min-width: 42px; min-height: 42px; }
.page-info { font-size: 11px; }
.alert { padding: 15px 16px; border-radius: 14px; }
.alert strong { font-size: 12px; }
.alert p, .alert ul { font-size: 11px; }
.empty-state p { font-size: 11px; }
.app-dialog { max-height: min(88vh,760px); overflow-y: auto; }
.app-dialog .dialog-header h3 { font-size: 20px; }
.app-dialog .dialog-header > button { min-width: 42px; min-height: 42px; }
.role-explainer strong { font-size: 12.5px; }
.role-explainer p { font-size: 11px; }
.activity-icon .ui-icon, .quick-icon .ui-icon, .choice-icon .ui-icon, .role-icon .ui-icon { width: 19px; height: 19px; }
.choice-icon .ui-icon { width: 27px; height: 27px; }
.choice-action b, .quick-card > b { display: grid; place-items: center; }
.choice-action b .ui-icon, .quick-card > b .ui-icon { width: 15px; height: 15px; }
.process-badge b .ui-icon, .read-only-badge b .ui-icon { width: 14px; height: 14px; }
.empty-state span .ui-icon { width: 25px; height: 25px; }

.report-emblem { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; padding: 7px; border: 1px solid #d5b868; border-radius: 16px; background: #f8f3e7; }
.report-emblem img { width: 100%; height: 100%; object-fit: contain; }
.report-letterhead > div small { color: var(--brand-700); font-size: 9px; font-weight: 750; letter-spacing: .75px; text-transform: uppercase; }

/* Dashboard refinement */
.dashboard-page .content { padding-top: 28px; }
.dashboard-command-hero { min-height: 285px; padding: 35px 38px; border-radius: 27px; border-color: rgba(255,255,255,.1); background: radial-gradient(circle at 82% 10%,rgba(28,155,175,.24),transparent 30%), radial-gradient(circle at 3% 110%,rgba(217,180,95,.17),transparent 36%), linear-gradient(118deg,#061724 0%,#07283c 60%,#083d50 100%); box-shadow: 0 28px 70px rgba(5,27,43,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.dashboard-command-hero::after { content: "COMMAND / 01"; position: absolute; z-index: 1; right: 32px; top: 20px; color: rgba(255,255,255,.22); font: 700 8px "SFMono-Regular",Consolas,monospace; letter-spacing: 1.2px; }
.command-hero-copy h2 { margin: 10px 0 10px; font-size: clamp(38px,3.5vw,51px); line-height: 1.02; letter-spacing: -2px; }
.command-hero-copy p { max-width: 610px; font-size: 13px; }
.command-status-card { border-radius: 18px; background: rgba(255,255,255,.085); box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 22px 48px rgba(0,0,0,.13); }
.stat-grid { gap: 17px; }
.stat-card, body.app-shell:not(.dashboard-page) .stat-card { min-height: 166px; border-radius: 20px; }
.dashboard-stat { padding: 21px; }
.dashboard-stat > strong { font-size: 36px; }
.dashboard-stat > p { font-size: 13px; }
.dashboard-stat > small, .trend { font-size: 10.5px; }
.activity-copy strong { font-size: 12.5px; }
.activity-copy small { font-size: 10.5px; }
.stock-alert > span:nth-child(2) strong { font-size: 12px; }
.stock-alert small { font-size: 10px; }
.quick-card { min-height: 98px; border-radius: 17px; }
.quick-card strong { font-size: 12.5px; }
.quick-card small { font-size: 10px; }

/* Staff workspace */
.staff-hero { min-height: 260px; padding: 36px; border-radius: 26px; box-shadow: 0 27px 65px rgba(6,29,45,.19); }
.staff-hero h2 { font-size: 38px; letter-spacing: -1.4px; }
.staff-hero p { font-size: 13px; }
.staff-today small { font-size: 10px; }
.staff-choice { border-radius: 22px; }
.staff-choice h3 { font-size: 23px; }
.staff-choice p { font-size: 12px; }

/* Login brand experience */
.login-page { background: var(--brand-950); }
.login-shell { grid-template-columns: minmax(610px,1.16fr) minmax(500px,.84fr); }
.login-visual { padding: clamp(34px,4.5vw,68px); }
.login-visual::before { background: linear-gradient(90deg,rgba(3,16,27,.98) 0%,rgba(3,19,31,.82) 43%,rgba(4,24,38,.24) 80%,rgba(4,24,38,.08) 100%), linear-gradient(180deg,rgba(3,18,30,.32),rgba(3,18,30,.08) 50%,rgba(3,18,30,.82)); }
.login-visual-media { display: block; }
.login-visual-media img { filter: saturate(.78) contrast(1.08); }
.login-brand { gap: 13px; }
.login-brand-copy small { font-size: 8.5px; letter-spacing: 1.35px; }
.login-brand-copy strong { font-size: 19px; }
.login-brand-copy strong b { color: #f0ce76; font-weight: inherit; }
.login-brand-copy em { margin-top: 3px; font-size: 8px; }
.login-coordinate { position: absolute; z-index: 2; right: clamp(34px,4.5vw,68px); top: 50px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.38); font: 700 7px "SFMono-Regular",Consolas,monospace; letter-spacing: .7px; }
.login-coordinate i { width: 18px; height: 1px; background: rgba(255,255,255,.2); }
.login-coordinate b { margin-left: 8px; padding: 5px 7px; color: #e8c66f; border: 1px solid rgba(232,198,111,.22); border-radius: 6px; font-weight: 700; }
.login-hero { max-width: 720px; padding-block: 46px; }
.login-hero > *, .login-brand, .login-metrics, .login-form-wrap { opacity: 1; transform: none; }
.login-hero h1 { max-width: 700px; margin: 15px 0 20px; font-size: clamp(52px,5vw,76px); line-height: .98; letter-spacing: -4px; }
.login-hero p { max-width: 600px; color: rgba(255,255,255,.72); font-size: 14px; }
.login-capabilities span { min-height: 35px; padding: 9px 12px; font-size: 10px; }
.login-live-feed { max-width: 430px; padding: 11px 13px; }
.login-live-feed small { font-size: 8px; }
.login-live-feed strong { font-size: 10px; }
.login-metrics strong { font-size: 12px; }
.login-metrics span { color: rgba(255,255,255,.55); font-size: 9px; }
.visual-footer { color: rgba(255,255,255,.32); font-size: 7.5px; }
.visual-footer span { color: #d9b45f; padding-inline: 3px; }
.login-form-panel { position: relative; padding: clamp(30px,4vw,64px); background: radial-gradient(circle at 100% 0,rgba(26,145,166,.12),transparent 30%), radial-gradient(circle at 20% 100%,rgba(217,180,95,.15),transparent 29%), #eef2f2; }
.login-panel-index { position: absolute; top: 31px; right: 34px; display: flex; align-items: center; gap: 11px; color: #6d808c; font: 700 8px "SFMono-Regular",Consolas,monospace; letter-spacing: 1px; }
.login-panel-index b { color: #0d6579; font-size: 11px; }
.login-form-wrap { max-width: 510px; padding: clamp(38px,3.3vw,54px); border: 1px solid rgba(255,255,255,.9); border-radius: 32px; background: rgba(255,255,255,.93); box-shadow: 0 38px 90px rgba(10,37,55,.14),inset 0 1px 0 #fff; }
.login-form-wrap::before { border-radius: inherit; }
.login-form-wrap h2 { margin: 10px 0 7px; font-size: clamp(31px,2.3vw,38px); letter-spacing: -1.5px; }
.login-form-wrap > .muted { margin-bottom: 28px; font-size: 13px; }
.access-security { min-height: 28px; padding-inline: 9px; font-size: 8.5px; }
.login-form .field > span:first-child { font-size: 10px; }
.login-form input { min-height: 54px; padding-left: 48px; border-radius: 14px; font-size: 13px; }
.login-submit { min-height: 56px; padding-left: 21px; border-radius: 14px; }
.login-submit b { width: 36px; height: 36px; }
.login-submit b .ui-icon { width: 17px; height: 17px; }
.login-trust { margin-top: 18px; padding: 12px; border-radius: 13px; }
.login-trust strong { font-size: 10.5px; }
.login-trust small { font-size: 9px; }
.demo-accounts summary { font-size: 10px; }
.demo-grid button strong { font-size: 9.5px; }
.demo-grid button small { font-size: 8.5px; }
.login-help { font-size: 9px; }
.login-help span { font-size: 8px; }

@media (max-width: 1240px) {
    :root { --sidebar: 270px; }
    .login-shell { grid-template-columns: minmax(560px,1.08fr) minmax(470px,.92fr); }
    .login-hero h1 { font-size: clamp(48px,5vw,64px); }
    .login-form-panel { padding: 34px; }
}

@media (max-width: 1080px) {
    .login-shell { width: 100%; min-width: 0; grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-form-panel { min-height: 100svh; align-content: center; justify-items: center; padding: 36px; }
    .login-form-wrap, .mobile-login-visual { max-width: 560px; }
    .mobile-login-visual { display: block; }
    .login-panel-index { display: none; }
}

@media (max-width: 960px) {
    body.sidebar-open { overflow: hidden; }
    .main { width: 100%; margin-left: 0; }
    .sidebar { width: min(88vw,310px); }
    .mobile-overlay { border: 0; padding: 0; }
    .topbar { padding-inline: 17px; }
    .topbar-title { flex: 1; }
    .topbar-access, .topbar-divider, .topbar-clock { display: none; }
    .content { padding-inline: 18px; }
}

@media (max-width: 740px) {
    .topbar { height: 76px; }
    .topbar h1 { font-size: 17px; }
    .topbar-meta time small { display: none; }
    .content { padding: 23px 14px 40px; }
    body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading { padding: 5px 3px 21px; }
    body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading h2 { color: var(--ink); font-size: 29px; }
    body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading p { color: var(--muted); font-size: 12px; }
    body.app-shell:not(.dashboard-page):not(.staff-dashboard-page) .page-heading > .btn { width: 100%; }
    .dashboard-command-hero { padding: 27px 23px; border-radius: 22px; }
    .dashboard-command-hero::after { right: 20px; top: 16px; }
    .command-hero-copy h2 { font-size: 34px; }
    .panel, .form-section, .app-shell .panel { padding: 17px; border-radius: 17px; }
    .data-table tr { border-radius: 14px; }
    .data-table td, .app-shell .data-table td { padding: 9px 0; }
    .login-form-panel { padding: 22px 16px 30px; }
    .login-form-wrap { padding: 34px 27px; border-radius: 26px; }
    .mobile-login-visual { height: 155px; border-radius: 20px; }
    .app-dialog { max-height: calc(100svh - 24px); }
    .new-item-metadata { grid-template-columns: 1fr; padding: 12px; }
}

@media (max-width: 500px) {
    .topbar-kicker { display: none; }
    .topbar-meta time strong { font-size: 10px; }
    .dashboard-command-hero { padding: 24px 19px; }
    .command-hero-copy h2 { font-size: 31px; }
    .login-form-panel { align-content: start; }
    .login-form-wrap { padding: 30px 21px; }
    .login-form-wrap h2 { font-size: 30px; }
    .login-form input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-light-beam, .app-noise { animation: none !important; }
}

/* ========================================================================== 
   Responsive Web Design system
   Component-aware tables complement the viewport breakpoints above so the
   interface responds to the real content width, including layouts with a
   visible desktop sidebar.
   ========================================================================== */
img, picture, video, canvas, svg { max-width: 100%; }
.main, .content, .panel, .form-section, .page-heading,
.page-heading > div, .panel-header > div, .section-heading > div,
.field, .toolbar > *, .heading-actions > * { min-width: 0; }
.topbar h1, .page-heading h2, .data-table td, .report-meta-grid strong {
    overflow-wrap: anywhere;
}
.table-wrap {
    width: 100%;
    max-width: 100%;
    container-name: data-region;
    container-type: inline-size;
}

@container data-region (max-width: 820px) {
    .app-shell .table-wrap .data-table thead { display: none; }
    .app-shell .table-wrap .data-table,
    .app-shell .table-wrap .data-table tbody,
    .app-shell .table-wrap .data-table tr,
    .app-shell .table-wrap .data-table td {
        display: block;
        width: 100%;
    }
    .app-shell .table-wrap .data-table tr {
        overflow: hidden;
        margin-bottom: 10px;
        padding: 9px 12px;
        border: 1px solid #d2e0e6;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(10,42,65,.045);
    }
    .app-shell .table-wrap .data-table td {
        display: grid;
        grid-template-columns: minmax(96px, 28%) minmax(0, 1fr);
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px dashed #e1e7e4;
        background: transparent;
        text-align: left !important;
    }
    .app-shell .table-wrap .data-table td:last-child { border-bottom: 0; }
    .app-shell .table-wrap .data-table td::before {
        content: attr(data-label);
        align-self: start;
        padding-top: 2px;
        color: var(--muted);
        font-size: 8px;
        font-weight: 750;
        letter-spacing: .6px;
        text-transform: uppercase;
    }
    .app-shell .table-wrap .data-table td[colspan] { display: block; }
    .app-shell .table-wrap .data-table td[colspan]::before { display: none; }
    .app-shell .table-wrap .row-actions { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 600px) {
    .toolbar { align-items: stretch; }
    .toolbar .field, .toolbar .search-box { width: 100%; min-width: 0; flex-basis: 100%; }
    .toolbar > .btn { flex: 1 1 120px; }
    .heading-actions {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)) !important;
    }
    .heading-actions .btn, .heading-actions form { width: 100%; }
    .panel-header { align-items: flex-start; flex-wrap: wrap; }
    .dialog-actions { display: grid; grid-template-columns: 1fr; }
    .dialog-actions .btn { width: 100%; }
    .pagination { justify-content: center; flex-wrap: wrap; }
    .page-info { width: 100%; order: -1; text-align: center; }
    .report-letterhead { align-items: flex-start; }
}

@media (max-width: 380px) {
    .content { padding-inline: 12px; }
    .panel, .form-section, .app-shell .panel { padding: 15px; }
    .app-shell .table-wrap .data-table td {
        grid-template-columns: minmax(84px, 30%) minmax(0, 1fr);
        gap: 8px;
    }
    .command-actions { grid-template-columns: 1fr; }
    .barcode-input-group .btn { flex-basis: 100%; }
}

/* ==========================================================================
   Logistics data interface & 3D embossed glowing typography system
   Edition 2026 - Executive Command Visual Suite
   ========================================================================== */

/* 1. 3D Embossed Typography & Luminous Glows */
.text-embossed-3d {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 2px 5px rgba(6, 23, 37, 0.18),
        0 0 20px var(--cyan-glow);
    letter-spacing: -0.02em;
}

.sidebar .text-embossed-3d,
.dashboard-command-hero .text-embossed-3d,
.login-visual .text-embossed-3d,
.staff-hero .text-embossed-3d {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(34, 211, 238, 0.55),
        0 0 50px rgba(6, 182, 212, 0.25);
}

.text-embossed-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fde047 30%, #f59e0b 70%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
    font-weight: 800;
}

.text-embossed-cyan {
    background: linear-gradient(135deg, #ecfeff 0%, #67e8f9 35%, #06b6d4 75%, #0e7490 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.45));
    font-weight: 800;
}

.glow-text-cyan {
    color: #22d3ee !important;
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.7), 0 0 32px rgba(6, 182, 212, 0.4);
}

.glow-text-gold {
    color: #fbbf24 !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.7), 0 0 32px rgba(245, 158, 11, 0.4);
}

.glow-text-emerald {
    color: #34d399 !important;
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.7), 0 0 32px rgba(16, 185, 129, 0.4);
}

.glow-text-crimson {
    color: #f87171 !important;
    text-shadow: 0 0 14px rgba(248, 113, 113, 0.7), 0 0 32px rgba(239, 68, 68, 0.4);
}

.shimmer-text {
    background: linear-gradient(90deg, #22d3ee 0%, #ffffff 50%, #22d3ee 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmerSweep 5s linear infinite;
}

@keyframes textShimmerSweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 2. Spotlight Interactive Card System */
.spotlight-card {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(460px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(34, 211, 238, 0.08), transparent 45%),
        #ffffff;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s, border-color 0.28s;
}

.spotlight-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 45px rgba(6, 23, 37, 0.12), 0 0 20px rgba(34, 211, 238, 0.12);
}

.dashboard-command-hero.spotlight-card,
.staff-hero.spotlight-card {
    background:
        radial-gradient(550px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(34, 211, 238, 0.18), transparent 50%),
        radial-gradient(circle at 74% 20%, rgba(28, 166, 188, 0.18), transparent 30%),
        radial-gradient(circle at 5% 120%, rgba(214, 173, 85, 0.15), transparent 36%),
        linear-gradient(118deg, #061725 0%, #08253a 58%, #0a354a 100%);
}

.dashboard-command-hero.spotlight-card:hover,
.staff-hero.spotlight-card:hover {
    box-shadow: 0 30px 75px rgba(5, 27, 43, 0.35), 0 0 30px rgba(34, 211, 238, 0.2);
}

/* 3. Button Shimmer Sweep & Tactile Depth */
.btn-glow-sweep {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-glow-sweep::after {
    content: '';
    position: absolute;
    inset: -50% -20%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
    transform: translateX(-150%) rotate(25deg);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.btn-glow-sweep:hover::after {
    transform: translateX(150%) rotate(25deg);
}

.btn.primary {
    background: linear-gradient(135deg, #0e7d96, #094761);
    box-shadow: 0 10px 25px rgba(14, 125, 150, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #1091af, #0c5675);
    box-shadow: 0 14px 32px rgba(14, 125, 150, 0.45), 0 0 20px rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
}

.command-recap-btn {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(6, 182, 212, 0.08));
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.45);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.command-recap-btn:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(6, 182, 212, 0.15));
    color: #ffffff;
    border-color: #22d3ee;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35), 0 0 20px rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
}

/* 4. System Background & Ambient Nodes */
.app-aurora-three {
    position: absolute;
    width: 600px;
    height: 600px;
    left: 45%;
    top: 20%;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.18;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
    animation: appAuroraThree 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes appAuroraThree {
    0% { transform: translate(-30px, -20px) scale(0.9); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

.app-data-nodes {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        radial-gradient(circle at 20% 35%, rgba(34, 211, 238, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 65% 15%, rgba(245, 158, 11, 0.35) 1.5px, transparent 1.5px),
        radial-gradient(circle at 85% 70%, rgba(34, 211, 238, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 85%, rgba(16, 185, 129, 0.35) 1.5px, transparent 1.5px);
    background-size: 160px 160px;
    pointer-events: none;
}

/* 5. Live Data Indicators & Beacons */
.data-dot-live {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee, 0 0 20px rgba(34, 211, 238, 0.8);
    animation: aiDotPulse 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes aiDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; filter: brightness(1); }
    50% { transform: scale(1.35); opacity: 0.75; filter: brightness(1.4); }
}

.live-dot-pulse {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseRing 1.8s infinite;
}

@keyframes livePulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 6. System Hologram Core in Login */
.system-hologram-core {
    position: absolute;
    z-index: 1;
    width: 220px;
    height: 220px;
    right: 12%;
    top: 24%;
    pointer-events: none;
    display: grid;
    place-items: center;
}

.system-hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(34, 211, 238, 0.35);
}

.system-hologram-ring.ring-1 {
    width: 190px;
    height: 190px;
    border-color: rgba(34, 211, 238, 0.25);
    border-width: 1.5px;
    animation: aiSpinClockwise 24s linear infinite;
}

.system-hologram-ring.ring-2 {
    width: 140px;
    height: 140px;
    border-color: rgba(245, 158, 11, 0.3);
    border-style: dotted;
    animation: aiSpinCounter 16s linear infinite;
}

.system-hologram-ring.ring-3 {
    width: 90px;
    height: 90px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.25);
    animation: aiSpinClockwise 10s linear infinite;
}

.system-core-center {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.5), rgba(6, 182, 212, 0.1) 70%);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.6);
    display: grid;
    place-items: center;
}

.system-orb-pulse {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 15px #22d3ee, 0 0 30px rgba(34, 211, 238, 0.8);
    animation: aiDotPulse 1.6s ease-in-out infinite;
}

@keyframes aiSpinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes aiSpinCounter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.emblem-glow-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
    animation: aiSpinClockwise 20s linear infinite;
}

.system-glow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee !important;
    font-size: 8.5px;
    letter-spacing: 0.8px;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

.ready-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
}
.ready-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

/* 8. Logistics Data Waveform & Stream Ticker */
.command-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.data-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.data-status-pill .ui-icon {
    width: 13px;
    height: 13px;
}
