/* ============================================
   SHADOWS OVER SAN OSCURO - TERMINAL INTERFACE
   Ghost Precinct Secure Terminal
   Art Deco Pulp Noir Edition
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Deep Noir with Blue-Teal undertone (dark, saturated) */
    --bg-void: #060a0e;
    --bg-deep: #0a1014;
    --bg-primary: #0e151a;
    --bg-secondary: #121a21;
    --bg-elevated: #182028;
    --bg-hover: #1e2830;
    --bg-card: #101820;
    
    --border-dark: #1a242c;
    --border-medium: #243038;
    --border-light: #2e3c46;
    --border-deco: #3a4a56;
    
    --text-primary: #e2e0d8;
    --text-secondary: #c5c3bc;
    --text-muted: #8a8884;
    --text-dim: #5a5e60;
    
    /* Gold palette - warm, rich, not glowing */
    --accent-gold: #c9a227;
    --accent-gold-light: #ddb73a;
    --accent-gold-dim: #9a7a1e;
    --accent-gold-dark: #5c4912;
    --accent-gold-muted: #786020;
    --accent-amber: #b8922a;
    --accent-cream: #e8dcc4;
    
    /* Shadow colors - the star of the show */
    --shadow-hard: rgba(0, 0, 0, 0.9);
    --shadow-deep: rgba(0, 0, 0, 0.7);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --shadow-ambient: rgba(0, 0, 0, 0.15);
    
    --status-live: #5cb85c;
    --status-warning: #d4a017;
    --status-danger: #c44;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'Courier Prime', 'Courier New', monospace;
    --font-type: 'Special Elite', 'Courier New', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Layout */
    --header-height: 54px;
    --footer-height: 42px;
    
    /* Deco measurements */
    --deco-line: 2px;
    --deco-thick: 3px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   ATMOSPHERIC OVERLAYS
   ============================================ */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.4;
}

/* Dramatic vignette - strong noir shadows */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: 
        /* Heavy corner shadows */
        radial-gradient(ellipse at 0% 0%, rgba(0,0,0,0.75) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.65) 0%, transparent 45%),
        radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.65) 0%, transparent 45%),
        radial-gradient(ellipse at 100% 100%, rgba(0,0,0,0.75) 0%, transparent 50%),
        /* Strong edge darkening */
        linear-gradient(90deg, rgba(0,0,0,0.45) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.45) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.4) 100%);
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   ART DECO DECORATIVE ELEMENTS
   ============================================ */

/* Horizontal Separator with Diamond */
.deco-hr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-md) 0;
}

.deco-hr::before,
.deco-hr::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium) 30%, var(--border-light) 50%, var(--border-medium) 70%, transparent);
}

.deco-hr .diamond {
    width: 8px;
    height: 8px;
    background: var(--accent-gold-dim);
    transform: rotate(45deg);
    margin: 0 var(--space-md);
    box-shadow: 0 0 0 1px var(--bg-deep);
}

/* Separator with Semicircle */
.deco-hr-arc {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding: var(--space-lg) 0 var(--space-md);
    position: relative;
}

.deco-hr-arc::before,
.deco-hr-arc::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium));
}

.deco-hr-arc::after {
    background: linear-gradient(90deg, var(--border-medium), transparent);
}

.deco-hr-arc .arc {
    width: 32px;
    height: 16px;
    border: 1px solid var(--border-medium);
    border-bottom: none;
    border-radius: 32px 32px 0 0;
    margin: 0 var(--space-sm);
    position: relative;
}

.deco-hr-arc .arc::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-gold-dim);
    border-radius: 50%;
}

/* Separator with Chevrons */
.deco-hr-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-md) 0;
}

.deco-hr-chevron::before,
.deco-hr-chevron::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium));
}

.deco-hr-chevron::after {
    background: linear-gradient(90deg, var(--border-medium), transparent);
}

.deco-hr-chevron .chevrons {
    display: flex;
    gap: 2px;
}

.deco-hr-chevron .chev {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid var(--accent-gold-dark);
}

/* Deco Corners for Frames */
.deco-corners {
    position: relative;
}

.deco-corners::before,
.deco-corners::after,
.deco-corners .corner-bl,
.deco-corners .corner-br {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
}

.deco-corners::before {
    top: -1px;
    left: -1px;
    border-top: var(--deco-line) solid var(--accent-gold-dim);
    border-left: var(--deco-line) solid var(--accent-gold-dim);
}

.deco-corners::after {
    top: -1px;
    right: -1px;
    border-top: var(--deco-line) solid var(--accent-gold-dim);
    border-right: var(--deco-line) solid var(--accent-gold-dim);
}

/* Stepped Art Deco Border */
.deco-stepped-border {
    position: relative;
    border: 1px solid var(--border-medium);
    padding: var(--space-lg);
}

.deco-stepped-border::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid var(--border-dark);
    pointer-events: none;
}

/* ============================================
   TERMINAL CONTAINER
   ============================================ */

.terminal-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
    background: var(--bg-primary);
    box-shadow: 
        -30px 0 60px rgba(0,0,0,0.5),
        30px 0 60px rgba(0,0,0,0.5);
    position: relative;
}

/* Outer frame lines */
.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
    pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 var(--space-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-medium);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}

/* Deco top border accent */
.terminal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: var(--deco-line);
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-gold-dark) 20%,
        var(--accent-gold-dim) 50%,
        var(--accent-gold-dark) 80%,
        transparent
    );
}

/* Shadow beneath header */
.terminal-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-indicator {
    width: 7px;
    height: 7px;
    background: var(--status-live);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

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

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.classification {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-lg);
    border: 1px solid var(--accent-gold-dark);
    background: rgba(0,0,0,0.3);
    position: relative;
}

/* Stepped corner effect */
.classification::before,
.classification::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent-gold-dim);
}

.classification::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    background: var(--bg-secondary);
}

.classification::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    background: var(--bg-secondary);
}

.classify-label {
    color: var(--text-muted);
}

.classify-level {
    color: var(--accent-gold);
    font-weight: 700;
}

.header-right .timestamp {
    color: var(--text-muted);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.terminal-main {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    flex: 1;
    min-height: 0;
}

.panel {
    padding: var(--space-lg);
    position: relative;
}

/* ============================================
   LEFT PANEL - IDENTITY
   ============================================ */

.panel-identity {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    border-right: 1px solid var(--border-dark);
    overflow: hidden;
}

/* Cast shadow from left panel onto main */
.panel-identity::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
    z-index: 5;
}

.logo-container {
    padding: var(--space-md) 0;
}

.logo-frame {
    border: var(--deco-line) solid var(--border-medium);
    position: relative;
    background: var(--bg-deep);
}

/* Corner accents */
.logo-frame::before,
.logo-frame::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
}

.logo-frame::before {
    top: -2px;
    left: -2px;
    border-top: var(--deco-line) solid var(--accent-gold-dim);
    border-left: var(--deco-line) solid var(--accent-gold-dim);
}

.logo-frame::after {
    bottom: -2px;
    right: -2px;
    border-bottom: var(--deco-line) solid var(--accent-gold-dim);
    border-right: var(--deco-line) solid var(--accent-gold-dim);
}

.logo-inner {
    padding: var(--space-lg);
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.35) 0%, transparent 40%),
        linear-gradient(315deg, rgba(0,0,0,0.2) 0%, transparent 30%),
        var(--bg-deep);
    position: relative;
}

/* Dramatic shadow inside logo */
.logo-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(201,162,39,0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-shadows {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.logo-over {
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    color: var(--text-muted);
    margin: var(--space-xs) 0;
}

.logo-san {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Precinct Badge */
.precinct-badge {
    display: flex;
    justify-content: center;
}

.badge-border {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-xl);
    background: var(--bg-card);
    border-top: var(--deco-line) solid var(--accent-gold-dark);
    border-bottom: var(--deco-line) solid var(--accent-gold-dark);
    position: relative;
    box-shadow: 
        inset 0 6px 12px -6px rgba(0,0,0,0.4),
        inset 0 -6px 12px -6px rgba(0,0,0,0.4);
}

.badge-text {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
}

.badge-year {
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: var(--text-dim);
}

/* Login Panel */
.login-panel {
    padding: var(--space-md);
}

.login-frame {
    padding: var(--space-lg);
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.4) 0%, transparent 50%),
        var(--bg-card);
    border: 1px solid var(--border-medium);
    position: relative;
}

/* Corner accents on login frame */
.login-frame::before,
.login-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-gold-dim);
    border-style: solid;
}

.login-frame::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.login-frame::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.login-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: var(--space-lg);
    text-shadow: 
        3px 3px 0 rgba(0,0,0,0.6),
        5px 5px 10px rgba(0,0,0,0.4);
}

.login-title span:nth-child(1) {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.login-title span:nth-child(2) {
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.login-title span:nth-child(3) {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--accent-gold-dim);
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-gold-dark), transparent);
    transition: left 0.4s ease;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--accent-gold);
}

.login-button .btn-icon {
    transition: transform 0.2s ease;
}

.login-button:hover .btn-icon {
    transform: translateX(3px);
}

/* Navigation */
.terminal-nav {
    margin-top: auto;
}

.nav-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-dim);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-dark), transparent);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-sm);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent-gold-dark);
    transition: var(--transition-fast);
}

.nav-item:hover {
    background: var(--bg-hover);
}

.nav-item:hover::before {
    width: 2px;
}

.nav-item.active {
    background: var(--bg-elevated);
}

.nav-item.active::before {
    width: 3px;
    background: var(--accent-gold);
}

.nav-prefix {
    color: var(--accent-gold-dim);
    margin-right: var(--space-sm);
    font-weight: 700;
    transition: var(--transition-fast);
}

.nav-item:hover .nav-prefix,
.nav-item.active .nav-prefix {
    color: var(--accent-gold);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: var(--text-primary);
}

.nav-suffix {
    color: var(--accent-gold);
    animation: blink 1s step-end infinite;
    margin-left: auto;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   CENTER PANEL - MAIN CONTENT
   ============================================ */

.panel-main {
    background: var(--bg-primary);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

/* Alert Bar / Ticker */
.alert-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-dark);
    overflow: hidden;
    position: relative;
}

/* Subtle gradient overlay */
.alert-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-secondary), transparent);
    z-index: 2;
}

.alert-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(270deg, var(--bg-secondary), transparent);
    z-index: 2;
}

.alert-icon {
    color: var(--accent-gold-dim);
    flex-shrink: 0;
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
}

.ticker-text {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
    animation: ticker 35s linear infinite;
}

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

/* Content Blocks */
.content-block {
    padding: var(--space-xl) var(--space-xl);
    border-bottom: 1px solid var(--border-dark);
}

.block-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.block-label {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: var(--accent-gold-dim);
    white-space: nowrap;
}

.block-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-medium), transparent 80%);
}

/* ============================================
   HERO SECTION - DRAMATIC & BOLD
   ============================================ */

.hero-block {
    padding: var(--space-xl);
    background: 
        /* Dramatic diagonal shadow */
        linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 50%),
        /* Subtle spotlight from above */
        radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.03) 0%, transparent 60%),
        var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Decorative corner elements */
.hero-block::before {
    content: '';
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 40px;
    height: 40px;
    border-top: var(--deco-line) solid var(--accent-gold-dark);
    border-left: var(--deco-line) solid var(--accent-gold-dark);
    opacity: 0.6;
}

.hero-block::after {
    content: '';
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-bottom: var(--deco-line) solid var(--accent-gold-dark);
    border-right: var(--deco-line) solid var(--accent-gold-dark);
    opacity: 0.6;
}

/* Two-column hero layout */
.hero-layout {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Decorative element above title */
.hero-deco {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-deco .line {
    width: 40px;
    height: 1px;
    background: var(--accent-gold-dim);
}

.hero-deco .diamond {
    width: 6px;
    height: 6px;
    background: var(--accent-gold-dim);
    transform: rotate(45deg);
}

.hero-title {
    margin-bottom: var(--space-xl);
}

/* The main emphasis - STEP INTO THE SHADOWS */
.title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: var(--text-primary);
    text-transform: uppercase;
    text-shadow: 
        3px 3px 0 rgba(0,0,0,0.8),
        6px 6px 12px rgba(0,0,0,0.5);
    margin-bottom: var(--space-sm);
}

/* Subtitle - show name */
.title-sub {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-type);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.title-sub::before,
.title-sub::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent-gold-dim);
}

.hero-text {
    font-family: var(--font-type);
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: var(--space-md);
}

.hero-text .emphasis {
    color: var(--accent-gold);
    font-weight: 400;
}

/* Bottom deco separator */
.hero-separator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
}

.hero-separator .tri {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--accent-gold-dark);
}

.hero-separator .line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold-dark), transparent);
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.hero-carousel {
    flex-shrink: 0;
    width: 280px;
}

.carousel-frame {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    padding: var(--space-xs);
    box-shadow: 
        inset 3px 3px 6px rgba(0,0,0,0.3),
        8px 8px 20px rgba(0,0,0,0.4);
}

/* Corner decorations on carousel frame */
.carousel-frame::before,
.carousel-frame::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--accent-gold-dark);
    border-style: solid;
    z-index: 2;
}

.carousel-frame::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.carousel-frame::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-void);
}

/* Default placeholder text when images are missing */
.carousel-track::before {
    content: 'DOSSIER\\APENDING';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: pre-line;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    line-height: 1.6;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    opacity: 0;
    transform: translateX(-30px);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
    background: var(--bg-void);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-dark);
    position: relative;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    padding: 0;
    background: var(--border-medium);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    transform: rotate(45deg);
    position: relative;
}

/* Larger click target */
.carousel-indicators .indicator::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
}

.carousel-indicators .indicator:hover {
    background: var(--accent-gold-dim);
}

.carousel-indicators .indicator.active {
    background: var(--accent-gold);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience-block {
    background: var(--bg-primary);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    padding: var(--space-lg);
    position: relative;
    transition: var(--transition-base);
    /* Inner shadow for depth */
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.3),
        inset -2px -2px 4px rgba(255,255,255,0.02);
}

/* Top accent line */
.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--deco-line);
    background: var(--accent-gold-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

/* Corner accent */
.exp-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid var(--border-medium);
    border-right: 1px solid var(--border-medium);
    transition: var(--transition-base);
}

.exp-card:hover {
    background: var(--bg-elevated);
    transform: translateY(-3px);
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.2),
        0 8px 20px rgba(0,0,0,0.4);
}

.exp-card:hover::before {
    transform: scaleX(1);
}

.exp-card:hover::after {
    border-color: var(--accent-gold-dark);
}

.card-number {
    font-size: 0.65rem;
    color: var(--accent-gold-dim);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-block {
    background: var(--bg-secondary);
    border-bottom: none;
    margin-top: auto;
    position: relative;
}

/* Top decorative border */
.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-xl);
    right: var(--space-xl);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-medium) 20%,
        var(--accent-gold-dark) 50%,
        var(--border-medium) 80%,
        transparent
    );
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cta-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--accent-gold-dim);
    margin-bottom: var(--space-xs);
}

.cta-heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: var(--deco-line) solid var(--accent-gold-dim);
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Diagonal fill effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
    transform: translateX(-101%);
    transition: var(--transition-base);
    z-index: 0;
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-button:hover {
    color: var(--bg-deep);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(201,162,39,0.2);
}

.btn-text, .btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    transition: var(--transition-fast);
}

.cta-button:hover .btn-arrow {
    transform: translateX(5px);
}

/* ============================================
   RIGHT PANEL - INTEL FEED
   ============================================ */

.panel-intel {
    background: var(--bg-deep);
    font-size: 0.78rem;
    border-left: 1px solid var(--border-dark);
    position: relative;
    overflow-y: auto;
}

/* Cast shadow from right panel */
.panel-intel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: linear-gradient(270deg, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
    z-index: 5;
}

.intel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-dark);
}

.intel-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-dim);
}

.intel-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--status-live);
}

.intel-status::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--status-live);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.intel-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.intel-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-left: 2px solid var(--border-dark);
    transition: var(--transition-fast);
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
}

.intel-item:hover {
    border-left-color: var(--accent-gold-dim);
    background: var(--bg-elevated);
}

.intel-time {
    color: var(--accent-gold-dim);
    font-size: 0.68rem;
    white-space: nowrap;
}

.intel-msg {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.intel-divider {
    height: 1px;
    background: var(--border-dark);
    margin: var(--space-lg) 0;
    position: relative;
}

.intel-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background: var(--border-medium);
}

.quick-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-dim);
    margin-bottom: var(--space-xs);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-dark);
}

.stat-name {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
}

.stat-warning {
    color: var(--status-warning);
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.team-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-dim);
}

.team-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.team-link {
    color: var(--accent-gold-dim);
    text-decoration: none;
    font-size: 0.72rem;
    transition: var(--transition-fast);
}

.team-link:hover {
    color: var(--accent-gold);
}

/* ============================================
   FOOTER
   ============================================ */

.terminal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--footer-height);
    padding: 0 var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-medium);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    position: relative;
}

/* Shadow above footer */
.terminal-footer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(0deg, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

/* Deco bottom border */
.terminal-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: var(--deco-line);
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-gold-dark) 20%,
        var(--accent-gold-dim) 50%,
        var(--accent-gold-dark) 80%,
        transparent
    );
}

.footer-text {
    color: var(--text-dim);
}

.footer-center .footer-text {
    color: var(--accent-gold-dark);
}

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

@media (max-width: 1400px) {
    .terminal-main {
        grid-template-columns: 260px 1fr 280px;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .hero-carousel {
        width: 240px;
    }
}

@media (max-width: 1100px) {
    .terminal-main {
        grid-template-columns: 1fr;
    }
    
    .panel-identity,
    .panel-intel {
        display: none;
    }
    
    .panel-identity::after,
    .panel-intel::before {
        display: none;
    }
    
    .header-center {
        display: none;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .title-main {
        font-size: 1.8rem;
    }
    
    .hero-block::before,
    .hero-block::after {
        display: none;
    }
    
    .hero-layout {
        flex-direction: column;
    }
    
    .hero-carousel {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
    }
    
    .terminal-header {
        padding: 0 var(--space-md);
    }
    
    .system-text {
        font-size: 0.6rem;
    }
    
    .header-right {
        display: none;
    }
    
    .title-main {
        font-size: 1.5rem;
    }
    
    .title-sub {
        font-size: 0.75rem;
    }
    
    .title-sub::before,
    .title-sub::after {
        display: none;
    }
    
    .hero-text {
        font-size: 0.85rem;
    }
    
    .hero-carousel {
        max-width: 250px;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .terminal-footer {
        flex-direction: column;
        height: auto;
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-xs);
    }
}

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

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

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

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

/* Selection */
::selection {
    background: var(--accent-gold);
    color: var(--bg-deep);
}

/* Focus */
a:focus,
button:focus {
    outline: 2px solid var(--accent-gold-dim);
    outline-offset: 2px;
}

/* ============================================
   MOBILE APP INTERFACE
   Completely separate experience for mobile
   ============================================ */

/* Hide mobile app on desktop/landscape */
.mobile-app {
    display: none;
}

/* Portrait orientation detection - show app interface */
@media (orientation: portrait) {
    .terminal-container {
        display: none !important;
    }
    
    .mobile-app {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: var(--bg-void);
        position: relative;
        z-index: 1;
    }
    
    /* Adjust vignette for mobile */
    .vignette {
        background: 
            radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.6) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.7) 0%, transparent 50%),
            linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.4) 100%);
    }
}

/* Mobile Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-header-badge .badge-icon {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.mobile-header-badge .badge-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.mobile-header-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-header-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--status-live);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

.mobile-header-status .status-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--status-live);
}

/* Mobile Content Area */
.mobile-content {
    flex: 1;
    padding: 1rem;
    padding-bottom: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-spacer {
    height: 80px; /* Space for bottom nav */
    flex-shrink: 0;
}

/* App Cards - Base Style */
.app-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold-dark), transparent 70%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-dark);
}

.card-icon {
    color: var(--accent-gold);
    font-size: 0.7rem;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.card-body {
    padding: 1.25rem;
}

/* Mission Card */
.mission-card {
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 60%),
        var(--bg-secondary);
}

.mission-card .card-deco {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-left: 1px solid var(--border-dark);
    border-top: 1px solid var(--border-dark);
    opacity: 0.3;
}

.mission-card .card-deco::before {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-gold-dark);
    transform: rotate(45deg);
}

.mission-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.mission-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.mission-recruit {
    font-family: var(--font-type);
    font-size: 0.9rem;
    color: var(--accent-gold);
}

/* Login Card */
.login-card {
    background: var(--bg-card);
}

.login-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.login-action:hover,
.login-action:active {
    background: var(--bg-hover);
}

.login-action-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.login-action-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.login-action-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.login-action-arrow {
    font-size: 1.25rem;
    color: var(--accent-gold);
    transition: transform 0.2s ease;
}

.login-action:hover .login-action-arrow,
.login-action:active .login-action-arrow {
    transform: translateX(4px);
}

/* Status Card */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-dark);
    margin: -1px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    background: var(--bg-primary);
}

.status-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-item.status-alert .status-value {
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}

.status-label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
}

/* Actions Card */
.actions-list {
    display: flex;
    flex-direction: column;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-dark);
    transition: background 0.2s ease;
}

.action-item:last-child {
    border-bottom: none;
}

.action-item:hover,
.action-item:active {
    background: var(--bg-hover);
}

.action-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-gold-dim);
    opacity: 0.7;
}

.action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.action-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.action-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.action-arrow {
    font-size: 1.25rem;
    color: var(--text-dim);
    transition: color 0.2s ease, transform 0.2s ease;
}

.action-item:hover .action-arrow,
.action-item:active .action-arrow {
    color: var(--accent-gold);
    transform: translateX(2px);
}

/* CTA Card */
.cta-card {
    background: transparent;
    border: none;
}

.cta-card::before {
    display: none;
}

.cta-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-gold-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.15), transparent);
    transition: left 0.4s ease;
}

.cta-action:hover::before,
.cta-action:active::before {
    left: 100%;
}

.cta-action:hover,
.cta-action:active {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--accent-gold);
}

.cta-action-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
}

.cta-action-arrow {
    color: var(--accent-gold);
    transition: transform 0.2s ease;
}

.cta-action:hover .cta-action-arrow,
.cta-action:active .cta-action-arrow {
    transform: translateX(4px);
}

/* Bottom Navigation */
.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-medium);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.2s ease;
}

.mobile-nav-item.active::before {
    width: 40%;
}

.mobile-nav-item .nav-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.mobile-nav-item .nav-label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.mobile-nav-item:hover .nav-icon,
.mobile-nav-item:hover .nav-label {
    color: var(--text-secondary);
}

.mobile-nav-item.active .nav-icon {
    color: var(--accent-gold);
}

.mobile-nav-item.active .nav-label {
    color: var(--text-primary);
}

/* Mobile-specific utility: touch feedback */
@media (hover: none) {
    .action-item:active,
    .login-action:active,
    .cta-action:active,
    .mobile-nav-item:active {
        transform: scale(0.98);
    }
}

/* Landscape orientation - tighter spacing for shorter viewport */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-content {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .mission-title {
        font-size: 1.4rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .status-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mobile-spacer {
        height: 60px;
    }
    
    .mobile-nav {
        padding: 0.5rem 0;
    }
}
