/* ==============================================================================
   ROG USER CONTROL PANEL (UCP) // TACTICAL DOSSIER & MEMBER PORTAL
   Design System: White Phosphor (P45 NVG Mil-Spec), Tactical PMC, Pure White
   Matching ROG MilSim HQ & ACP Doctrine (#ffffff / #bce2f5 / #e4f4fd)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Rajdhani:wght@500;600;700;800&display=swap');

:root {
    --bg-void: #06090d;
    --bg-base: #0a0d12;
    --bg-surface: #10141a;
    --bg-surface-elevated: #161b24;
    --bg-card: rgba(16, 21, 29, 0.90);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-tactical: rgba(255, 255, 255, 0.20);
    --border-tactical-glow: rgba(255, 255, 255, 0.38);

    /* White Phosphor / Pure Tactical White */
    --rog-white: #ffffff;
    --rog-white-ice: #e4f4fd;
    --rog-white-phosphor: #bce2f5;
    --rog-white-dim: rgba(255, 255, 255, 0.08);
    --rog-white-glow: 0 0 16px rgba(255, 255, 255, 0.35);

    --amber-warn: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.12);
    --amber-glow: 0 0 14px rgba(245, 158, 11, 0.3);

    --cyan-tactical: #38bdf8;
    --cyan-dim: rgba(56, 189, 248, 0.12);

    --red-breach: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --red-glow: 0 0 16px rgba(239, 68, 68, 0.4);

    --green-tactical: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.14);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-mono: #e4f4fd;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-void);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(188, 226, 245, 0.05) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--rog-white);
}

/* ==============================================================================
   CLASSIFIED RESTRICTED LOGIN SCREEN
   ============================================================================== */
.login-viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(188, 226, 245, 0.06) 0%, transparent 60%);
}

.radar-scanline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    box-shadow: 0 0 14px #ffffff;
    animation: radarSweep 6s linear infinite;
    pointer-events: none;
    z-index: 99;
}

@keyframes radarSweep {
    0% { top: 0; opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { top: 100%; opacity: 0.2; }
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 255, 255, 0.1);
    max-width: 480px;
    width: 100%;
    padding: 40px 32px;
    backdrop-filter: blur(16px);
    position: relative;
    text-align: center;
}

.login-card::before {
    content: "ROG // USER CONTROL PANEL v2.5";
    position: absolute;
    top: -11px;
    left: 24px;
    background: var(--bg-void);
    border: 1px solid var(--border-tactical);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 10px;
    border-radius: 3px;
    color: var(--rog-white-ice);
}

.login-header {
    margin-bottom: 24px;
}

/* Interactive 3D Tactical Badge in Login Screen */
.login-3d-box {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-3d-canvas {
    width: 150px;
    height: 150px;
    display: block;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.35));
    cursor: grab;
}

.login-3d-canvas:active {
    cursor: grabbing;
}

.login-emblem-fallback {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.4));
    margin: 0 auto;
}

.login-emblem-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-emblem-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.4));
}

.login-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.login-subtitle {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.btn-tactical-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.95), rgba(64, 76, 196, 0.95));
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-tactical-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.65);
    background: linear-gradient(135deg, rgba(98, 111, 252, 1), rgba(74, 86, 206, 1));
}

.btn-login-back-rog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-md);
    color: var(--rog-white-ice);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.btn-login-back-rog:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.login-footer-meta {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* ==============================================================================
   UCP AUTHENTICATED COMMAND POST DASHBOARD
   ============================================================================== */
.ucp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 90px;
}

/* TOPBAR */
.ucp-topbar {
    background: var(--bg-surface);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.topbar-3d-box {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topbar-3d-canvas {
    width: 48px;
    height: 48px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    cursor: grab;
}

.topbar-3d-canvas:active {
    cursor: grabbing;
}

.topbar-logo-fallback {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.topbar-emblem {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-badge {
    background: var(--rog-white-dim);
    color: var(--rog-white-ice);
    border: 1px solid var(--border-tactical);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.08em;
}

.brand-text span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-topbar-rog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    color: var(--rog-white-ice);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
}

.btn-topbar-rog:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.btn-topbar-acp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-sm);
    color: #7dd3fc;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-topbar-acp:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-void);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
}

.user-pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--rog-white);
    object-fit: cover;
}

.user-pill-info {
    line-height: 1.2;
}

.user-pill-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-pill-rank {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--rog-white-ice);
}

.btn-logout {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-logout:hover {
    color: var(--red-breach);
    border-color: var(--red-breach);
}

/* METRICS HUD GRID */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.metric-card.white::before { background: var(--rog-white); box-shadow: 0 0 12px #ffffff; }
.metric-card.cyan::before { background: var(--cyan-tactical); box-shadow: 0 0 12px var(--cyan-tactical); }
.metric-card.amber::before { background: var(--amber-warn); box-shadow: 0 0 12px var(--amber-warn); }
.metric-card.green::before { background: var(--green-tactical); box-shadow: 0 0 12px var(--green-tactical); }

.metric-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.metric-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
}

/* ==============================================================================
   DOSSIER PANELS & SECTIONS
   ============================================================================== */
.dossier-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

/* Left Sidebar Profile Card */
.profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    height: fit-content;
}

.profile-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--rog-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.profile-status-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-tactical);
    border: 3px solid var(--bg-surface);
    box-shadow: 0 0 10px var(--green-tactical);
}

.profile-status-dot.loa {
    background: var(--cyan-tactical);
    box-shadow: 0 0 10px var(--cyan-tactical);
}

.profile-status-dot.probation {
    background: var(--amber-warn);
    box-shadow: 0 0 10px var(--amber-warn);
}

.profile-callsign {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.profile-rank {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--rog-white-phosphor);
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
    margin-top: 8px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.meta-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.meta-val {
    color: var(--text-primary);
    font-weight: 600;
}

/* Status Badges */
.badge-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status.active {
    background: var(--green-dim);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.badge-status.loa {
    background: var(--cyan-dim);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.4);
}

.badge-status.probation {
    background: var(--amber-dim);
    color: #fcd34d;
    border: 1px solid rgba(252, 211, 77, 0.4);
}

/* Main Dossier Content */
.dossier-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

/* Specialization Selector Area */
.spec-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-md);
    padding: 20px;
}

.spec-selector-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.form-select {
    flex: 1;
    min-width: 260px;
    padding: 12px 14px;
    background: var(--bg-void);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
}

.form-select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
}

.btn-tactical-save {
    padding: 12px 22px;
    background: #ffffff;
    color: #06090d;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.btn-tactical-save:hover {
    background: var(--rog-white-ice);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Active LOA Notice Banner */
.loa-banner {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.loa-banner-text h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #7dd3fc;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.loa-banner-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-cancel-loa {
    padding: 9px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #86efac;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cancel-loa:hover {
    background: rgba(34, 197, 94, 0.28);
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
}

/* Profile Card Quick LOA Button */
.btn-profile-loa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 7px 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-sm);
    color: #7dd3fc;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-profile-loa:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.btn-profile-loa.cancel {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.btn-profile-loa.cancel:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* LOA Modal Presets & Chips */
.loa-presets-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
}

.loa-presets-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.loa-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loa-preset-btn,
.loa-chip-btn {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.loa-preset-btn:hover,
.loa-chip-btn:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.loa-sync-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 12px;
    color: #bae6fd;
    line-height: 1.45;
}

.loa-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    margin-top: 4px;
    flex-shrink: 0;
    animation: liveSyncFlash 0.7s infinite alternate;
}

/* Event Slottings Grid */
.events-slotted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.event-slotted-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s;
}

.event-slotted-card:hover {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.event-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.event-time-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--rog-white-ice);
    white-space: nowrap;
}

.event-slot-info {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #7dd3fc;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-excuse-event {
    padding: 9px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.btn-excuse-event:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: var(--red-breach);
    color: #ffffff;
    box-shadow: var(--red-glow);
}

/* Sanctions Table / Cards */
.sanctions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sanction-item {
    background: var(--bg-surface-elevated);
    border-left: 4px solid var(--red-breach);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.sanction-item.warn {
    border-left-color: var(--amber-warn);
}

.sanction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sanction-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.sanction-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.sanction-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Licenses Grid */
.licenses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.license-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm, 6px);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--rog-white-ice);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.license-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.license-pill .lic-icon {
    font-size: 14px;
    line-height: 1;
}

.license-pill .lic-name {
    font-size: 11.5px;
    letter-spacing: 0.02em;
}

.license-pill .lic-code-tag {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Chronology Feed */
.chronology-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
}

.chronology-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    font-size: 12.5px;
}

.chronology-time {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.chronology-text {
    color: var(--text-secondary);
}

/* ==============================================================================
   MODALS (LOA & EXCUSE MODAL)
   ============================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.12);
    max-width: 520px;
    width: 100%;
    padding: 28px 24px;
    position: relative;
    animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-void);
    border: 1px solid var(--border-tactical);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-secondary {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-tactical);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-danger-confirm {
    padding: 10px 20px;
    background: var(--red-breach);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--red-glow);
    transition: all 0.2s;
}

.btn-danger-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ==============================================================================
   NATIVE MOBILE DOCK BAR
   ============================================================================== */
.ucp-mobile-dock {
    display: none;
}

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

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ucp-container {
        padding: 14px 12px 85px;
    }

    .ucp-topbar {
        padding: 12px 14px;
    }

    .brand-text span {
        display: none;
    }

    .brand-text h1 {
        font-size: 16px;
    }

    .topbar-actions .btn-topbar-acp {
        display: none;
    }

    .topbar-actions .btn-logout {
        display: none;
    }

    .ucp-mobile-dock {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        background: rgba(7, 11, 14, 0.95) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.85) !important;
        z-index: 99990 !important;
        align-items: center !important;
        justify-content: space-around !important;
    }

    .ucp-mobile-dock .dock-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        flex: 1 !important;
        height: 100% !important;
        text-decoration: none !important;
        color: var(--text-muted) !important;
        font-family: var(--font-heading) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer !important;
        transition: color 0.2s ease !important;
    }

    .ucp-mobile-dock .dock-item:hover,
    .ucp-mobile-dock .dock-item.active {
        color: #ffffff !important;
    }
}

/* ==============================================================================
   REALTIME LIVE-SYNC STATUS BADGE
   ============================================================================== */
.live-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm, 4px);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: 0.08em;
    color: #4ade80;
    user-select: none;
    transition: all 0.3s ease;
    cursor: default;
}

.live-sync-badge:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.live-sync-badge .live-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e, 0 0 14px rgba(34, 197, 94, 0.6);
    animation: liveSyncPulse 2s infinite ease-in-out;
}

.live-sync-badge.syncing {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.live-sync-badge.syncing .live-sync-dot {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.8);
    animation: liveSyncFlash 0.6s infinite alternate;
}

@keyframes liveSyncPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

@keyframes liveSyncFlash {
    from {
        opacity: 0.4;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .login-3d-box,
    .login-3d-canvas {
        width: 120px;
        height: 120px;
    }
    .topbar-3d-box,
    .topbar-3d-canvas {
        width: 40px;
        height: 40px;
    }
}

