/* 
   ==========================================================================
   RONIN ARMOR - UNIFIED MASTER STYLESHEET
   Version: 5.0 (Flat & Solid Design System - No Glassmorphism)
   Covers: Public Landing Pages, Client Dashboard, and Admin Console
   ==========================================================================
*/

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

/* ==========================================================================
   2. GLOBAL CSS VARIABLES (THEMING)
   ========================================================================== */
:root {
    /* Base Typography */
    --font-main: 'Roboto', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --font-alt: 'Inter', sans-serif;
    --font-head: 'Rajdhani', sans-serif;

    /* Light Mode Palette (Pastel & Flat Solid) */
    --bg-universe: #F8FAFC;          /* Slate 50 - Very Light Gray Background */
    --bg-card: #FFFFFF;              /* Pure White for Cards */
    --bg-sidebar: #FFFFFF;           /* White Sidebar */
    --bg-topbar: #1E40AF;            /* Solid Blue 800 */
    --bg-footer: #020617;            /* Solid Deep Blue/Slate 950 */
    
    --text-main: #1E293B;            /* Slate 800 */
    --text-sub: #64748B;             /* Slate 500 */
    --text-muted: #94A3B8;           /* Slate 400 */
    
    --border-color: #E2E8F0;         /* Slate 200 */
    
    /* Solid Brand Accents */
    --brand-primary: #2563EB;        /* Blue 600 */
    --brand-primary-hover: #1D4ED8;  /* Blue 700 */
    --brand-accent: #06B6D4;         /* Cyan 500 */
    --brand-success: #10B981;        /* Emerald 500 */
    --brand-warning: #F59E0B;        /* Amber 500 */
    --brand-danger: #F43F5E;         /* Rose 500 */
    --brand-purple: #8B5CF6;         /* Violet 500 */

    /* Flat Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark {
    /* Dark Mode Palette (Solid Dark, No Blur) */
    --bg-universe: #0F172A;          /* Slate 900 - Dark Background */
    --bg-card: #1E293B;              /* Slate 800 - Dark Cards */
    --bg-sidebar: #0B0F19;           /* Deep Dark Sidebar */
    --bg-topbar: #0F172A;            /* Slate 900 Topbar */
    --bg-footer: #080B12;            /* Very Deep Dark Footer */
    
    --text-main: #F8FAFC;            /* Slate 50 */
    --text-sub: #94A3B8;             /* Slate 400 */
    --text-muted: #64748B;           /* Slate 500 */
    
    --border-color: #334155;         /* Slate 700 */

    /* Dark Mode Brand Adaptations */
    --brand-primary: #3B82F6;        /* Blue 500 (Brighter for dark mode) */
    --brand-primary-hover: #2563EB;  /* Blue 600 */
    --brand-accent: #22D3EE;         /* Cyan 400 */
    
    /* Dark Mode Shadows (Softer, tinted) */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   3. BASE RESET & TYPOGRAPHY
   ========================================================================== */
* {
    box-sizing: border-box;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-universe);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
    margin-top: 0;
    color: inherit;
    font-family: var(--font-main);
}

a {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Custom Scrollbar (Flat) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-universe); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* ==========================================================================
   4. GLOBAL ANIMATIONS & UTILITIES
   ========================================================================== */

/* Reveal On Scroll Utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }

/* Simple Fade In */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }

/* Slide In Right (For Toasts) */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.animate-toast { animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

/* Shine Effect (For Buttons) */
@keyframes shine {
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   5. UNIFIED COMPONENTS (CARDS, BUTTONS, FORMS, BADGES)
   ========================================================================== */

/* --- Flat Cards --- */
.flat-card, .ra-card, .form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem; /* 16px */
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flat-card:hover, .ra-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--brand-primary);
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Unified Buttons --- */
.btn-solid, .btn-primary, .btn-indigo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem; /* 14px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-solid:hover, .btn-primary:hover, .btn-indigo:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background-color: rgba(37, 99, 235, 0.05);
}

/* --- Unified Forms & Inputs --- */
.input-group, .flat-input-group {
    position: relative;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
}

.input-label, .flat-label, .form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    margin-bottom: 0.5rem;
}

.input-field, .flat-input, .cyber-input, .ra-input {
    width: 100%;
    background-color: var(--bg-universe);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-field:focus, .flat-input:focus, .cyber-input:focus, .ra-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: var(--bg-card);
}

/* --- Badges / Status Pills (Flat Pastel) --- */
.badge, .flat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success, .bg-success { background-color: #D1FAE5; color: #065F46; border: 1px solid #10B981; }
.dark .badge-success, .dark .bg-success { background-color: #064E3B; color: #34D399; border-color: #059669; }

.badge-warning, .bg-warning { background-color: #FEF3C7; color: #92400E; border: 1px solid #F59E0B; }
.dark .badge-warning, .dark .bg-warning { background-color: #78350F; color: #FBBF24; border-color: #D97706; }

.badge-danger, .bg-danger { background-color: #FEE2E2; color: #991B1B; border: 1px solid #F43F5E; }
.dark .badge-danger, .dark .bg-danger { background-color: #7F1D1D; color: #F87171; border-color: #E11D48; }

.badge-info, .bg-info { background-color: #DBEAFE; color: #1E40AF; border: 1px solid #2563EB; }
.dark .badge-info, .dark .bg-info { background-color: #1E3A8A; color: #60A5FA; border-color: #2563EB; }

/* --- Unified Tables (Responsive & Solid) --- */
.table-responsive, .flat-table-wrapper, .ra-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    -webkit-overflow-scrolling: touch;
}

.ra-table, .flat-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.ra-table th, .flat-table th {
    background-color: var(--bg-universe);
    color: var(--text-sub);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.ra-table td, .flat-table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.ra-table tr:last-child td, .flat-table tr:last-child td {
    border-bottom: none;
}

.ra-table tr:hover td, .flat-table tr:hover td {
    background-color: rgba(37, 99, 235, 0.04);
}
.dark .ra-table tr:hover td, .dark .flat-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   6. CONSOLE LAYOUT (ADMIN & CLIENT)
   ========================================================================== */

/* Sidebar */
.ra-sidebar, .client-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ra-brand {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-universe);
}

.ra-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.menu-label {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.menu-link, .sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-link:hover, .menu-link.active, .sidebar-link:hover, .sidebar-link.active {
    background-color: var(--brand-primary);
    color: #ffffff !important;
}

.menu-link i, .sidebar-link i {
    width: 24px;
    font-size: 1rem;
    margin-right: 12px;
    text-align: center;
}

/* Topbar */
.ra-topbar, .client-topbar {
    height: 80px;
    margin-left: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 900;
    position: sticky;
    top: 0;
    transition: margin-left 0.3s;
}

/* Content Area */
.ra-content-wrapper, .client-content-wrapper {
    margin-left: 280px;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s;
}

/* Mobile Console Responsive */
@media (max-width: 1024px) {
    .ra-sidebar, .client-sidebar {
        transform: translateX(-100%);
    }
    .ra-sidebar.open, .client-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }
    .ra-topbar, .client-topbar, .ra-content-wrapper, .client-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    .ra-topbar, .client-topbar {
        padding: 0 1rem;
    }
    .ra-content-wrapper, .client-content-wrapper {
        padding: 1rem;
    }
}


/* ==========================================================================
   7. SPECIFIC PUBLIC PAGE ANIMATIONS & COMPONENTS
   (Extracted from HTML templates for maximum cleanliness & reusability)
   ========================================================================== */

/* --- 7.1 HEXAGON CORE (index.html) --- */
.hex-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hex-core {
    position: relative;
    width: 220px;
    height: 250px;
    background-color: var(--bg-card);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border: 2px solid var(--border-color);
}
.hex-border-spin {
    position: absolute;
    inset: -8px;
    background: conic-gradient(from 0deg, var(--border-color), var(--brand-primary), var(--border-color));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotateHex 6s linear infinite;
    z-index: 1;
}
.dark .hex-border-spin {
    background: conic-gradient(from 0deg, var(--border-color), var(--brand-accent), var(--border-color));
}
@keyframes rotateHex {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- 7.2 PRICING TOGGLE SWITCH (pricing.html & index.html) --- */
.toggle-wrapper {
    display: inline-flex;
    background-color: var(--border-color);
    border-radius: 9999px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}
.toggle-bg {
    position: absolute;
    top: 5px; left: 5px;
    width: 50%; height: calc(100% - 10px);
    background-color: var(--brand-primary);
    border-radius: 9999px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.toggle-option {
    position: relative;
    z-index: 10;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-sub);
    transition: color 0.3s;
}
.toggle-option.active { color: #ffffff !important; }
.price-hidden { display: none !important; }
.price-visible { display: block !important; animation: fadeInPrice 0.4s ease-out; }
@keyframes fadeInPrice {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 7.3 NEWS RADAR HUD (news.html) --- */
.radar-scope {
    position: relative; 
    width: 380px; 
    height: 380px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-card);
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.radar-grid-lines {
    position: absolute; 
    inset: 0;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 38px 38px;
    background-position: center;
    border-radius: 50%;
    opacity: 0.5;
}
.radar-ring {
    position: absolute; 
    border-radius: 50%;
    border: 1px dashed var(--brand-accent);
}
.r-1 { width: 32%; height: 32%; animation: pulseRadarRing 3s infinite; }
.r-2 { width: 64%; height: 64%; animation: pulseRadarRing 3s infinite 1s; }
.r-3 { width: 92%; height: 92%; animation: pulseRadarRing 3s infinite 2s; }
.radar-beam {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(6, 182, 212, 0.1) 60deg, var(--brand-accent) 90deg, transparent 91deg);
    border-radius: 50%;
    animation: scanRadarBeam 4s linear infinite;
}
.radar-blip {
    position: absolute; 
    width: 8px; height: 8px; 
    background: var(--brand-accent);
    border-radius: 50%; 
    opacity: 0; 
    animation: blipSensorFlash 4s infinite;
}
.b-1 { top: 28%; left: 62%; animation-delay: 1.1s; }
.b-2 { top: 68%; left: 38%; animation-delay: 2.4s; }
.b-3 { top: 42%; left: 22%; animation-delay: 3.3s; }

@keyframes scanRadarBeam { 100% { transform: rotate(360deg); } }
@keyframes pulseRadarRing { 
    0%, 100% { opacity: 0.2; transform: scale(0.96); } 
    50% { opacity: 0.8; transform: scale(1.04); } 
}
@keyframes blipSensorFlash { 
    0%, 100% { opacity: 0; } 
    20% { opacity: 1; transform: scale(1.5); } 
    45% { opacity: 0; } 
}

/* --- 7.4 TITAN DEFENSE SHIELD (pricing.html) --- */
.defense-system {
    position: relative; 
    width: 450px; 
    height: 450px;
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.shield-core {
    font-size: 11rem;
    color: var(--brand-primary);
    z-index: 10;
    animation: float 4.5s ease-in-out infinite;
}
.blade-orbit {
    position: absolute; 
    width: 390px; 
    height: 390px;
    border-radius: 50%;
    animation: spinBlades 11s linear infinite;
}
.energy-blade {
    position: absolute; 
    top: 0; left: 50%; 
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--brand-accent), transparent);
    transform: translateX(-50%);
}
.energy-blade::before {
    content: ''; position: absolute; top: 50%; left: -195px; width: 390px; height: 4px;
    background: linear-gradient(to right, transparent, var(--brand-purple), transparent);
    transform: translateY(-50%);
}
.force-field {
    position: absolute; 
    width: 290px; height: 290px;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    opacity: 0.2;
    animation: pulseField 3.2s ease-in-out infinite alternate;
}
@keyframes spinBlades { 100% { transform: rotate(360deg); } }
@keyframes pulseField { 100% { transform: scale(1.1); opacity: 0.5; } }

/* --- 7.5 HOLOGRAPHIC GLOBES (about.html & server_status.html) --- */
.holo-globe {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    animation: pulseHoloGlobe 4.5s ease-in-out infinite alternate;
}
@keyframes pulseHoloGlobe {
    0% { transform: scale(0.98); }
    100% { transform: scale(1.02); border-color: var(--brand-primary); }
}

.globe-wireframe {
    position: absolute; 
    width: 270px; height: 270px;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    animation: pulseHoloGlobe 4.5s ease-in-out infinite alternate;
}
.globe-ring {
    position: absolute; 
    border-radius: 50%;
    border: 2px dashed var(--brand-primary);
    width: 100%; height: 100%;
}
.r1 { transform: rotateX(70deg); width: 310px; height: 310px; animation: spinStatusRing 20s linear infinite; }
.r2 { transform: rotateY(70deg); width: 290px; height: 290px; animation: spinStatusRing 15s linear infinite reverse; }
@keyframes spinStatusRing { 100% { transform: rotateX(70deg) rotateZ(360deg); } }

/* --- 7.6 TERMINAL CODE BLOCKS (features.html & status.html) --- */
.code-terminal {
    background-color: var(--bg-footer); /* Solid very dark */
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    font-family: var(--font-code);
    color: #cbd5e1;
    overflow: hidden;
}

/* --- 7.7 NEWS TICKER BAR (index.html & news.html) --- */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
}
.ticker-track {
    display: inline-flex;
    gap: 4rem;
    animation: scrollTicker 25s linear infinite;
}
@keyframes scrollTicker { 100% { transform: translateX(-50%); } }

/* --- 7.8 SCANNER INPUT (verify.html) --- */
.scan-container {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.scan-container:focus-within {
    border-color: var(--brand-primary);
}
.scan-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), var(--brand-accent), var(--brand-primary), transparent);
    animation: scanDownAnimation 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes scanDownAnimation {
    0% { top: 0; opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.status-orb {
    width: 110px; height: 110px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.75rem; border: 3px solid;
    animation: float 4s ease-in-out infinite;
}
.orb-valid { border-color: var(--brand-success); color: var(--brand-success); background-color: var(--bg-card); }
.orb-invalid { border-color: var(--brand-danger); color: var(--brand-danger); background-color: var(--bg-card); }
.orb-idle { border-color: var(--text-sub); color: var(--text-sub); background-color: var(--bg-card); }

/* --- 7.9 PAPER INVOICE (invoice_detail.html) --- */
.invoice-paper {
    width: 100%;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background-color: #FFFFFF; /* Force white for paper */
    color: #1E293B; /* Force dark text */
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}
.invoice-stamp {
    position: absolute; 
    top: 150px; right: 40px;        
    font-size: 3rem; font-weight: 900; 
    text-transform: uppercase;
    border: 6px solid; padding: 10px 30px;
    opacity: 0.3; pointer-events: none; z-index: 20;        
    font-family: var(--font-code);
    letter-spacing: 5px; white-space: nowrap;
    transform: rotate(-15deg);
}

@media print {
    .invoice-paper { box-shadow: none !important; transform: scale(0.98); transform-origin: top center; }
    body { background-color: #FFFFFF !important; }
}
