/* ============================================
   HACKIDIA - Tactical Academy Design System
   Terminal / Cybersecurity Aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Core palette */
    --bg-primary: #020617; /* Deep Space */
    --bg-secondary: #0f172a; /* Slate 900 */
    --bg-tertiary: #1e293b; /* Slate 800 */
    --bg-card: #1e293b;
    --bg-panel: #0f172a;
    --bg-void: #000000;

    /* Borders */
    --border-color: #2a3a52;
    --border-hover: #3a4f6f;
    --border-dim: #1e2d42;

    /* Accent colors */
    --accent-green: #00ff41;
    --accent-green-dim: #00cc33;
    --accent-orange: #ff6b35;
    --accent-amber: #ffb800;
    --accent-red: #ff4444;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;

    /* Tactical aliases */
    --terminal-glow: #00ff41;
    --tactical-amber: #ffb800;
    --tactical-red: #ff4444;
    --intel-blue: #3b82f6;

    /* Text */
    --text-primary: #f8fafc; /* Ice White */
    --text-secondary: #94a3b8; /* Slate 400 */
    --text-muted: #64748b; /* Slate 500 */
    --text-bright: #ffffff;
    --text-dim: #475569;

    /* Font */
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    z-index: 10001;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-green);
    color: var(--text-primary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
}

.mono {
    font-family: var(--font-mono);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
    text-shadow: none;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

.btn-danger {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: #000;
}

.btn-amber {
    background: var(--accent-amber);
    color: #000;
    border-color: var(--accent-amber);
}

.btn-amber:hover {
    background: transparent;
    color: var(--accent-amber);
}

/* Tactical button variants (dashboard) */
.btn-tactical {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent-green);
    color: #000;
    border: 1px solid var(--accent-green);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-tactical:hover {
    background: transparent;
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.25);
}

.btn-tactical-amber {
    background: var(--accent-amber);
    color: #000;
    border-color: var(--accent-amber);
}

.btn-tactical-amber:hover {
    background: transparent;
    color: var(--accent-amber);
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.25);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: var(--border-color);
}

.card-glow:hover {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
}

/* --- Tags --- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tag-green {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.tag-amber {
    background: rgba(255, 184, 0, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tag-red {
    background: rgba(255, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* --- Section Label --- */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

/* --- Status Dot --- */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-ring 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

/* --- Form Inputs --- */
input, textarea, select {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

/* --- Form Group --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* --- Auth Container --- */
.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card .logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .logo-section .diamond {
    color: var(--accent-green);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.auth-card .logo-section h1 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.auth-card .logo-section p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* --- Lang Toggle --- */
.lang-toggle {
    display: flex;
    border: 1px solid var(--border-dim);
    overflow: hidden;
}

.lang-toggle a {
    padding: 0.3rem 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-decoration: none;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.lang-toggle a:hover {
    color: var(--text-primary);
}

.lang-toggle a.active {
    background: var(--bg-tertiary);
    color: var(--accent-green);
}

/* --- Nav Link (pill style) --- */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-green);
    border-color: rgba(0, 255, 65, 0.3);
}

/* --- Flash Messages --- */
.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    border: 1px solid;
}

.flash-error {
    background: rgba(255, 68, 68, 0.08);
    color: var(--accent-red);
    border-color: rgba(255, 68, 68, 0.2);
}

.flash-success {
    background: rgba(0, 255, 65, 0.08);
    color: var(--accent-green);
    border-color: rgba(0, 255, 65, 0.2);
}

.flash-info {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.2);
}

/* --- Progress Bar --- */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-dim);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-green);
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

/* --- Classification Footer --- */
.classification-footer {
    background: rgba(255, 107, 53, 0.1);
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.75rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.classification-footer span {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--accent-orange);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.public-footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.public-footer-links a {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-footer-links a:hover {
    color: var(--accent-orange);
}

/* --- Animations --- */
@keyframes pulse-ring {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0, 255, 65, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 12px rgba(0, 255, 65, 0.3); }
}

@keyframes marker-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 65, 0.4); }
    50% { box-shadow: 0 0 16px rgba(0, 255, 65, 0.7); }
}

@keyframes broadcastFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed, .reveal-left.revealed {
    opacity: 1;
    transform: none;
}
/* Stagger children in grids */
.reveal-stagger > .reveal { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.25s; }

/* Page fade-in */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
main { animation: page-in 0.4s ease; }

/* --- Theatre of Operations (Dashboard) --- */
.theatre-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.theatre-stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    padding: 1.5rem;
    position: relative;
}

.theatre-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.theatre-stat-label {
    font-size: 0.6875rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.theatre-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.theatre-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s;
}

.theatre-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
}

.theatre-header {
    display: flex;
    flex-direction: column;
}

.theatre-viz {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-void);
}

.theatre-viz canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.theatre-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.theatre-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.theatre-overlay .chk-status {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.625rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.theatre-overlay .scan-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(to right, rgba(231, 76, 60, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(231, 76, 60, 0.18) 1px, transparent 1px);
    background-size: 16px 16px;
}

.theatre-progress {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.theatre-progress-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.theatre-progress-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
}

.theatre-progress-label {
    font-size: 0.5625rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.theatre-access-btn {
    text-align: center;
    font-size: 0.6875rem;
    padding: 0.5rem;
}

/* Theatre canvas animations are handled by theatre.js */

/* Theatre responsive */
@media (max-width: 1024px) {
    .theatre-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .theatre-stats-grid {
        grid-template-columns: 1fr;
    }
    .theatre-cards-grid {
        grid-template-columns: 1fr;
    }
    .theatre-progress {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* --- Navigation (Public) --- */
.nav-public {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-dim);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-public .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-public .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-public .logo .diamond {
    color: var(--accent-green);
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.nav-public .logo .brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-public .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-public .nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-public .public-hamburger {
    display: none;
}

.public-mobile-menu {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-dim);
}

.public-mobile-menu[hidden] {
    display: none !important;
}

.public-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}

.public-mobile-menu .nav-link,
.public-mobile-menu .btn {
    width: 100%;
}

.mobile-lang-toggle {
    width: fit-content;
    margin-top: 0.25rem;
}

/* --- Sidebar (App) --- */
.sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar .sidebar-logo {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-dim);
}

.sidebar .sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.sidebar .sidebar-logo .diamond {
    color: var(--accent-green);
    font-size: 0.875rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.sidebar .sidebar-logo .brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar nav {
    flex: 1;
    padding: 1rem;
}

.sidebar .nav-section-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    padding: 0 0.75rem;
}

.sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.sidebar .sidebar-link:hover {
    color: var(--accent-green);
    border-color: rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.04);
}

.sidebar .user-section {
    padding: 1rem;
    border-top: 1px solid var(--border-dim);
}

.sidebar .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sidebar .user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #000;
    font-size: 0.75rem;
}

.sidebar .user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .user-org {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.sidebar .logout-btn {
    display: block;
    padding: 0.4rem;
    text-align: center;
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s;
}

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

/* --- App Header --- */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-dim);
    padding: 0 1.5rem;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.app-header h1 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Hero --- */
.hero-section {
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
/* Grid background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,65,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,65,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
/* Scanline sweep */
@keyframes scanline {
    0% { top: -2px; }
    100% { top: 100%; }
}
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.15), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}
/* Green text glow pulse on accent */
@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0,255,65,0.3); }
    50% { text-shadow: 0 0 20px rgba(0,255,65,0.5), 0 0 40px rgba(0,255,65,0.2); }
}
.hero-section .accent { animation: text-glow 4s ease-in-out infinite; }

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-section h1 .accent {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.hero-section .hero-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-section .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Stats Bar --- */
.stats-bar {
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    background: var(--bg-secondary);
}

.stats-bar .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
}

.stats-bar .stat-item {
    text-align: center;
}

.stats-bar .stat-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-green);
}

.stats-bar .stat-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* --- Operation Cards --- */
.op-card {
    text-decoration: none;
    display: block;
}

.op-card .card {
    height: 100%;
    transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}
.op-card:hover .card {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,255,65,0.06);
}
.op-card .op-icon {
    transition: transform 0.3s;
}
.op-card:hover .op-icon {
    transform: scale(1.08);
}

.op-card .card-top-bar {
    height: 3px;
}

.op-card .card-body {
    padding: 1.5rem;
}

.op-card .division-code {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.op-card .op-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.op-card .op-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8125rem;
}

.op-card .op-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.op-card .card-footer-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dim);
}

.op-card .stat-inline {
    display: flex;
    gap: 1.25rem;
}

.op-card .stat-inline .val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

.op-card .stat-inline .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.hero-content {
    max-width: 720px;
}

.status-dot-small {
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
}

.home-section {
    padding: 3rem 0 5rem;
}

.home-section-why {
    padding: 5rem 0 2rem;
}

.home-section-outcomes {
    border-top: 1px solid var(--border-dim);
}

.home-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.home-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.home-section-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.home-section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link-accent {
    color: var(--accent-green);
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home-card {
    padding: 1.5rem;
}

.home-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.home-card-icon-green {
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.2);
}

.home-card-icon-amber {
    background: rgba(255, 184, 0, 0.08);
    border-color: rgba(255, 184, 0, 0.2);
}

.home-card-icon-blue {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.home-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-card-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.home-ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.home-op-card {
    height: 100%;
}

.home-op-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.home-op-theatre {
    height: 140px;
    margin: 0.75rem -1.25rem 0.75rem;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    background: var(--bg-void);
    overflow: hidden;
}

.theatre-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.home-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.home-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.home-outcome-card {
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.home-outcome-index {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.home-outcome-index-green {
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.15);
    color: var(--accent-green);
}

.home-outcome-index-blue {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.home-outcome-index-amber {
    background: rgba(255, 184, 0, 0.08);
    border-color: rgba(255, 184, 0, 0.15);
    color: var(--accent-amber);
}

.home-outcome-index-purple {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.home-outcome-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.home-outcome-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.operation-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.about-domains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.contact-section {
    padding: 3rem 0 5rem;
}

.contact-container {
    max-width: 760px;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-email-card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-email-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--accent-green);
    font-size: 1.0625rem;
    font-weight: 600;
}

.contact-email-link:hover {
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.contact-email-copy {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.contact-form-card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.contact-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-checklist {
    padding: 1.5rem;
}

.contact-checklist-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-checklist-item:not(:last-child) {
    margin-bottom: 0.75rem;
}

.contact-checklist-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-green);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.contact-checklist-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Features --- */
.features-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    padding: 1.5rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid;
}

.feature-icon-blue {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

.feature-icon-amber {
    border-color: rgba(255, 184, 0, 0.3);
    color: var(--accent-amber);
}

.feature-icon-green {
    border-color: rgba(0, 255, 65, 0.3);
    color: var(--accent-green);
}

.feature-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
    padding: 5rem 0;
}

.cta-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dim);
    padding: 3rem;
    text-align: center;
    position: relative;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.cta-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.cta-box p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
}

/* --- Approach Cards (About) --- */
.approach-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.approach-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid;
}

.approach-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.approach-card p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* --- Operation Detail --- */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-green);
}

.breadcrumb .separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Card header bar */
.card-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-dim);
}

.card-header .section-label {
    margin: 0;
}

/* ============================================
   FOCUS-VISIBLE STATES
   Keyboard-only focus rings for accessibility
   ============================================ */

:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-amber,
.btn-tactical, .btn-tactical-amber {
    position: relative;
}

.btn:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible,
.btn-danger:focus-visible, .btn-amber:focus-visible,
.btn-tactical:focus-visible, .btn-tactical-amber:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}

.sidebar-link:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: -2px;
    background: rgba(0, 255, 65, 0.04);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

/* ============================================
   SIDEBAR ACTIVE STATE
   Current page indicator
   ============================================ */

.sidebar .sidebar-link.active {
    color: var(--accent-green);
    background: rgba(0, 255, 65, 0.06);
    border-color: rgba(0, 255, 65, 0.25);
    border-left: 2px solid var(--accent-green);
}

.sidebar .sidebar-link.active svg {
    color: var(--accent-green);
}

/* ============================================
   TOAST NOTIFICATIONS
   Slide-in notifications replacing flash alerts
   ============================================ */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 2rem);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-dim);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-primary);
    pointer-events: auto;
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(110%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.toast-body {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-success {
    border-left: 3px solid var(--accent-green);
}

.toast-success .toast-icon {
    color: var(--accent-green);
}

.toast-error {
    border-left: 3px solid var(--accent-red);
}

.toast-error .toast-icon {
    color: var(--accent-red);
}

.toast-warning {
    border-left: 3px solid var(--accent-amber);
}

.toast-warning .toast-icon {
    color: var(--accent-amber);
}

.toast-info {
    border-left: 3px solid var(--intel-blue);
}

.toast-info .toast-icon {
    color: var(--intel-blue);
}

/* ============================================
   CONFIRMATION MODAL
   Replaces browser confirm() dialogs
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dim);
    width: 90%;
    max-width: 440px;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
}

.modal-overlay.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-dim);
}

.modal-header-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-header-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 0.03em;
}

.modal-body {
    padding: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-dim);
}

.modal-btn-cancel {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-bright);
}

.modal-btn-confirm {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-confirm:hover {
    background: var(--accent-red);
    color: #000;
}

.modal-btn-confirm.confirm-green {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.modal-btn-confirm.confirm-green:hover {
    background: var(--accent-green);
    color: #000;
}

.modal-btn-confirm.confirm-amber {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.modal-btn-confirm.confirm-amber:hover {
    background: var(--accent-amber);
    color: #000;
}

/* ============================================
   THEATRE MAXIMIZE MODAL
   ============================================ */

.theatre-canvas-wrap {
    position: relative;
}

.theatre-maximize-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 18, 0.7);
    border: 1px solid var(--border-dim);
    border-radius: 3px;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.theatre-canvas-wrap:hover .theatre-maximize-btn,
.theatre-maximize-btn:focus {
    opacity: 1;
}

.theatre-maximize-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.theatre-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 8, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.theatre-modal-overlay.show {
    opacity: 1;
}

.theatre-modal-container {
    width: 92vw;
    height: 82vh;
    max-width: 1400px;
    background: rgba(6, 10, 18, 0.95);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.theatre-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-dim);
    flex-shrink: 0;
}

.theatre-modal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-green);
}

.theatre-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-dim);
    border-radius: 3px;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1;
}

.theatre-modal-close:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.theatre-modal-canvas {
    width: 100%;
    height: calc(100% - 40px);
    display: block;
}

@media (max-width: 768px) {
    .theatre-modal-container {
        width: 98vw;
        height: 90vh;
        max-width: none;
    }
}

/* ============================================
   LOADING SPINNER & OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, 0.75);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-dim);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.loading-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SKELETON LOADING PLACEHOLDERS
   ============================================ */

.skeleton {
    background: var(--bg-tertiary);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

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

.skeleton-line {
    height: 0.8125rem;
    margin-bottom: 0.5rem;
}

.skeleton-line-short {
    width: 60%;
}

.skeleton-line-xs {
    width: 30%;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
}

.skeleton-card {
    height: 120px;
    margin-bottom: 1rem;
}

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

/* ============================================
   LICENSE WARNING BANNER
   ============================================ */

.license-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.license-banner-expired {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--accent-red);
}

.license-banner-inactive {
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: var(--accent-amber);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: none;
    border: 1px solid var(--border-dim);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.pagination-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
    font-weight: 600;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.pagination-info {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-left: 0.75rem;
}

/* ============================================
   COMMON INLINE PATTERN EXTRACTIONS
   Reusable classes for repeated dashboard patterns
   ============================================ */

/* Panel container (replaces inline bg-panel + border) */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
}

.panel-header {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--border-dim);
}

.panel-header-label {
    font-size: 0.6875rem;
    color: var(--terminal-glow);
    letter-spacing: 0.15em;
}

.panel-body {
    padding: 1.25rem 1.5rem;
}

/* Page header pattern */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header-label {
    font-size: 0.625rem;
    color: var(--terminal-glow);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-dim);
    font-size: 0.8125rem;
}

/* Stat card */
.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    padding: 1.25rem;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.625rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    border-bottom: 1px solid var(--border-dim);
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.625rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
}

.data-table th:first-child {
    padding-left: 1.5rem;
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
}

.data-table td:first-child {
    padding-left: 1.5rem;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-dim);
    transition: background 0.15s;
}

.data-table tbody tr:hover {
    background: var(--bg-void);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

/* Empty state */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-dim);
    font-size: 0.8125rem;
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* Mobile hamburger toggle */
.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

.hamburger-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.hamburger-btn svg {
    display: block;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, 0.7);
    z-index: 99;
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

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

    .toast {
        transition: none;
    }

    .modal-overlay,
    .modal-dialog,
    .loading-overlay {
        transition: none;
    }

    .skeleton::after {
        animation: none;
    }

    .reveal, .reveal-left {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    main {
        animation: none !important;
    }

    .hero-section .accent {
        animation: none !important;
    }

    .hero-section::after {
        animation: none !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .stats-bar .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-public .nav-links,
    .nav-public .nav-right .lang-toggle,
    .nav-public .nav-right > .nav-link,
    .nav-public .nav-right > .btn {
        display: none;
    }

    .nav-public .public-hamburger {
        display: block;
    }

    .hamburger-btn {
        display: block;
    }

    .home-ops-grid,
    .home-why-grid,
    .home-outcomes-grid,
    .about-domains-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .operation-detail-grid {
        grid-template-columns: 1fr;
    }

    .op-row {
        grid-template-columns: 1fr !important;
    }

    .op-row > div:first-child {
        width: 100% !important;
        height: 3px !important;
    }

    .op-row > div:last-child {
        display: none !important;
    }

    .op-stats-row,
    .op-scenario {
        display: none !important;
    }

    .op-theatre-row {
        grid-template-columns: 1fr !important;
    }

    .home-section-head {
        margin-bottom: 2rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .app-content {
        margin-left: 0;
    }

    .modal-dialog {
        width: 95%;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .stats-bar .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .contact-title,
    .home-section-title {
        font-size: 1.25rem;
    }

    .classification-footer span {
        letter-spacing: 0.12em;
    }
}
