/* ===============================================================
   EMBERHOLM PORTAL - HACKNET CLEAN + CRT DESIGN
   Cyan terminal aesthetic with gold accents
   =============================================================== */

/* ===============================================================
   FUENTES
   =============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/alagard');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/classic-console-neue');
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&display=swap');

/* ===============================================================
   VARIABLES CSS
   =============================================================== */
:root {
    /* Retro Terminal Orange Scheme - MÁS BRILLANTE */
    --primary-green: #ff9900;              /* Naranja retro principal */
    --bright-green: #ffbb00;               /* Naranja brillante */
    --dim-green: #dd7700;                  /* Naranja apagado */
    --dark-green: #994400;                 /* Naranja oscuro */

    /* Extended Orange/Yellow Palette - MÁS VIBRANTE */
    --orange-dark: #aa5500;                /* Naranja muy oscuro */
    --orange-medium: #dd7700;              /* Naranja medio */
    --orange-light: #ff9900;               /* Naranja claro */
    --yellow-dark: #ddaa00;                /* Amarillo oscuro */
    --yellow-medium: #ffdd00;              /* Amarillo medio */
    --yellow-light: #ffee44;               /* Amarillo claro */

    /* Emberholm Accents - MÁS SATURADOS */
    --gold: #ffcc00;                    /* Amarillo dorado */
    --gold-bright: #ffdd44;             /* Dorado brillante */
    --gold-dim: #ddaa00;                /* Dorado apagado */

    /* System States - MÁS VIBRANTES */
    --error-red: #ff3344;               /* Rojo error */
    --warning-orange: #ff8800;          /* Naranja warning */
    --success-green: #44ff88;           /* Verde éxito */
    --info-cyan: #00ffff;               /* Cyan información */

    /* Backgrounds */
    --bg-primary: #000;                 /* Negro principal */
    --bg-secondary: #0a0a0f;            /* Negro secundario */
    --bg-panel: #0f0f14;                /* Paneles */
    --bg-elevated: #14141a;             /* Elementos elevados */

    /* Borders - MÁS BRILLANTES */
    --border-primary: rgba(255, 153, 0, 0.4);
    --border-bright: rgba(255, 187, 0, 0.7);
    --border-gold: rgba(255, 204, 0, 0.5);
}

/* ===============================================================
   RESET Y BODY BASE
   =============================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 136, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 204, 0, 0.02) 0%, transparent 50%);
    color: var(--primary-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 13px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.5px;
    font-weight: normal;
    /* GLOW EFFECT REDUCIDO - ESTILO CRT RETRO */
    text-shadow:
        0 0 3px currentColor,
        0 0 6px currentColor;
}

/* ===============================================================
   EFECTOS CRT
   =============================================================== */

/* 1. SCAN BEAM - La línea que baja */
.scan-beam {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 136, 0, 0.1),
        transparent
    );
    animation: scan-beam 8s linear infinite;
    pointer-events: none;
    z-index: 9996;
}

@keyframes scan-beam {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* 2. NOISE OVERLAY INTENSO */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iLjA1Ii8+PC9zdmc+');
    opacity: 0.08;
    pointer-events: none;
    z-index: 9995;
    animation: noiseFlicker 0.2s infinite;
}

@keyframes noiseFlicker {
    0% { opacity: 0.08; }
    50% { opacity: 0.06; }
    100% { opacity: 0.08; }
}

/* 3. CRT CURVE (Vignette SUAVE en bordes) */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.15) 80%,
        rgba(0, 0, 0, 0.35) 92%,
        rgba(0, 0, 0, 0.55) 100%
    );
    border-radius: 15px;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 9997;
}

/* 4. SCANLINES INTENSAS - ESTILO CRT RETRO */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(255, 136, 0, 0.05) 1px,
        rgba(0, 0, 0, 0.15) 2px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9998;
}

/* ===============================================================
   ANIMACIONES
   =============================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* BLINK - Parpadeo ON/OFF para warnings críticos */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.blink {
    animation: blink 1s infinite;
}

/* PULSE - Pulsación suave para elementos destacados */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* CURSOR - Terminal cursor parpadeante */
.cursor::after {
    content: '█';
    animation: blink 1s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-green), 0 0 10px var(--primary-green);
    }
    50% {
        box-shadow: 0 0 10px var(--primary-green), 0 0 20px var(--primary-green), 0 0 30px var(--primary-green);
    }
}

/* ===============================================================
   TEXT EFFECTS - CRT GLOW
   =============================================================== */

/* Verde Terminal - Fosforescente CRT MODERADO */
.glow-green {
    color: #33ff33;
    text-shadow:
        0 0 3px #33ff33,
        0 0 8px #33ff33,
        0 0 15px #33ff33;
}

/* Cyan - Highlights importantes MODERADO */
.glow-cyan {
    color: #00ffff;
    text-shadow:
        0 0 3px #00ffff,
        0 0 8px #00ffff,
        0 0 15px #00ffff;
}

/* Amarillo - Stats, XP, Rewards MODERADO */
.glow-yellow {
    color: #ffff00;
    text-shadow:
        0 0 3px #ffff00,
        0 0 8px #ffff00,
        0 0 15px #ffff00;
}

/* Rojo - Warnings, Danger MODERADO */
.glow-red {
    color: #ff0000;
    text-shadow:
        0 0 3px #ff0000,
        0 0 8px #ff0000,
        0 0 15px #ff0000;
}

/* Magenta - Special Features MODERADO */
.glow-magenta {
    color: #ff00ff;
    text-shadow:
        0 0 3px #ff00ff,
        0 0 8px #ff00ff,
        0 0 15px #ff00ff;
}

/* Naranja - Tema principal MODERADO */
.glow-orange {
    text-shadow:
        0 0 3px var(--primary-green),
        0 0 8px var(--primary-green),
        0 0 15px var(--primary-green);
}

/* Letter Spacing Presets */
.ls-tight {
    letter-spacing: 0.5px;    /* Body text */
}

.ls-normal {
    letter-spacing: 1px;      /* Buttons */
}

.ls-wide {
    letter-spacing: 2px;      /* Headers */
}

.ls-ultra {
    letter-spacing: 3px;      /* Subtítulos pequeños */
}

/* ===============================================================
   CONTAINER PRINCIPAL
   =============================================================== */
.app-container,
.wrapper {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ===============================================================
   TOP MENU BAR (Console Header adaptado)
   =============================================================== */
.console-header,
.menu-bar {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-panel) 100%);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 45px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 100;
}

.console-title {
    font-family: 'Alagard', serif;
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-right: 30px;
}

.console-subtitle {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 11px;
    color: var(--dim-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audio-controls {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.console-track-now {
    font-size: 11px;
    color: var(--primary-green);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-button,
.audio-btn {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    padding: 5px 12px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.terminal-button:hover,
.audio-btn:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--bright-green);
    color: var(--bright-green);
}

.volume-bar {
    font-size: 12px;
    color: var(--primary-green);
    letter-spacing: 0;
}

/* ===============================================================
   TITLE BAR (dentro del wrapper)
   =============================================================== */
.title-bar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-primary);
    padding: 12px 20px;
}

.window-title,
h1 {
    font-family: 'Alagard', serif;
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
}

.status-line {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    color: var(--dim-green);
}

.status-segment {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-segment::before {
    content: '●';
    color: var(--primary-green);
    animation: pulse 2s infinite;
}

.critical-status {
    color: var(--error-red);
    font-weight: 600;
}

.status-value {
    color: var(--primary-green);
    font-weight: 600;
}

/* ===============================================================
   COMMAND MENU - NAVIGATION
   =============================================================== */
.command-menu {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 10px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.cmd,
.nav-button {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    padding: 10px 15px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    text-align: center;
}

.cmd:hover,
.nav-button:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--bright-green);
    color: var(--bright-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 136, 0, 0.3);
}

.cmd.active,
.nav-button.active,
.cmd.is-active,
.nav-button.is-active {
    background: rgba(255, 204, 0, 0.1);
    border-color: var(--border-gold);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

/* ===============================================================
   SYSTEM MESSAGE
   =============================================================== */
.sys-msg,
.command-hint {
    background: rgba(255, 136, 0, 0.05);
    border-top: none;
    border-bottom: none;
    padding: 2px 15px;
    text-align: center;
    font-size: 11px;
    color: var(--dim-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.sys-msg::before {
    content: '>> ';
    color: var(--primary-green);
}

.sys-msg::after {
    content: ' <<';
    color: var(--primary-green);
}

/* ===============================================================
   DIVIDER
   =============================================================== */
.divider,
.double-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 4px 0;
}

.divider.double {
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--border-primary) 0px,
        var(--border-primary) 4px,
        transparent 4px,
        transparent 8px
    );
}

/* Console to Header Divider */
.console-header-divider {
    height: 6px;
    background: transparent;
}

/* ===============================================================
   CONTENT SECTIONS
   =============================================================== */
.screen {
    display: none;
    padding: 20px;
}

.screen.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* ===============================================================
   TERMINAL BLOCKS
   =============================================================== */
.terminal-block,
.data-panel,
.campaign-box,
.section-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--primary-green);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.4s ease-out;
}

.terminal-block.gold-accent,
.data-panel,
.campaign-box {
    border-left-color: var(--gold);
}

.terminal-block.critical,
.alert-box,
.warning-box {
    border-left-color: var(--error-red);
    border-color: var(--error-red);
    background: linear-gradient(135deg, rgba(255, 34, 68, 0.05) 0%, var(--bg-panel) 100%);
}

/* ===============================================================
   BLOCK TITLES
   =============================================================== */
.block-title,
.panel-header,
.campaign-title,
.section-title {
    font-family: 'Alagard', serif;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    /* GLOW MODERADO PARA TÍTULOS */
    text-shadow:
        0 0 3px var(--gold),
        0 0 8px var(--gold),
        0 0 15px var(--gold);
}

.block-title::before,
.section-title::before {
    content: '▮';
    color: var(--primary-green);
    font-size: 14px;
}

/* ===============================================================
   ALERT BANNER
   =============================================================== */
.alert-box,
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
}

.alert-box::before,
.warning-box::before {
    content: '⚠';
    font-size: 24px;
    color: var(--error-red);
    animation: pulse 1s infinite;
}

.alert-title,
.warning-title {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--error-red);
    margin-bottom: 8px;
}

/* ===============================================================
   TEXT CONTENT
   =============================================================== */
.terminal-text,
.campaign-text,
.block-content,
p {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 13px;
    color: var(--primary-green);
    line-height: 1.8;
    margin: 12px 0;
}

.terminal-text strong,
strong {
    color: var(--gold);
    font-weight: 600;
}

/* ===============================================================
   STATUS MONITOR
   =============================================================== */
.status-monitor,
.status-panel,
.realm-status {
    background: var(--bg-panel);
    border: 1px solid var(--error-red);
    border-left: 3px solid var(--error-red);
    padding: 18px;
    margin: 20px 0;
}

.monitor-title,
.status-panel-title {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--error-red);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--error-red);
}

.monitor-line,
.status-line-item {
    font-size: 12px;
    color: var(--primary-green);
    margin: 8px 0;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.monitor-line .critical,
.critical {
    color: var(--error-red);
    font-weight: 600;
}

/* ===============================================================
   LIVE FEED
   =============================================================== */
.activity-log,
.live-feed,
.dispatch-feed {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--primary-green);
    padding: 18px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.log-header,
.feed-title {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-header::before,
.feed-title::before {
    content: '▶';
    color: var(--gold);
}

.log-entry,
.feed-entry,
.feed-item {
    font-size: 12px;
    color: var(--primary-green);
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 2px solid rgba(255, 136, 0, 0.2);
    transition: all 0.2s;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.log-entry:hover,
.feed-entry:hover,
.feed-item:hover {
    background: rgba(255, 136, 0, 0.05);
    border-left-color: var(--gold);
}

/* ===============================================================
   NOTICES
   =============================================================== */
.access-notice,
.disclaimer {
    background: rgba(255, 136, 0, 0.05);
    border: 1px solid var(--border-primary);
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--dim-green);
    margin-top: 15px;
    font-style: italic;
}

/* ===============================================================
   LOGO WRAPPER
   =============================================================== */
.logo-wrapper {
    text-align: center;
    margin: 20px 0;
}

.project-logo-img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 136, 0, 0.5));
}

/* REALM MAP */
.realm-map-container {
    margin-top: 15px;
    padding: 10px 15px;
}

.realm-map-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border: 2px solid var(--border-primary);
    box-shadow: 0 0 20px rgba(255, 136, 0, 0.2);
}

/* ===============================================================
   PIXEL CORNERS (decorativos)
   =============================================================== */
.pixel-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.pixel-corner.tl { top: 8px; left: 8px; }
.pixel-corner.tr { top: 8px; right: 8px; }
.pixel-corner.bl { bottom: 8px; left: 8px; }
.pixel-corner.br { bottom: 8px; right: 8px; }

/* ===============================================================
   CORNER MARKERS
   =============================================================== */
.corner-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    z-index: 2;
}

.corner-marker.corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.corner-marker.corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.corner-marker.corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.corner-marker.corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* ===============================================================
   SCROLLBAR PERSONALIZADO
   =============================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 136, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 136, 0, 0.5);
}

/* ===============================================================
   RESPONSIVE
   =============================================================== */
@media (max-width: 768px) {
    .console-header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .audio-controls {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

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

    .window-title,
    h1 {
        font-size: 18px;
    }

    .status-line {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===============================================================
   EXTENDED COMPONENTS - HACKNET CLEAN STYLE
   =============================================================== */

/* TOP HEADER */
.top-header {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-panel) 100%);
    border-bottom: 1px solid var(--border-primary);
    padding: 6px 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 13px;
    color: var(--primary-green);
    flex-wrap: wrap;
}

.top-command-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    padding: 2px 10px;
    border-top: none;
    overflow-x: auto;
}

/* COMMAND LINKS - RETRO TERMINAL STYLE CON GLOW */
.cmd-link {
    /* Fondo naranja con texto negro - ESTILO IMAGEN */
    background: var(--orange-light);        /* Fondo naranja */
    border: none;                           /* Sin borde */
    color: #000;                            /* Texto NEGRO */
    padding: 6px 10px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    /* GLOW + BLUR EN BOTONES */
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
    filter: blur(0.2px);                    /* Blur sutil para efecto CRT */
}

.cmd-link:hover {
    /* Más brillante al hover */
    background: var(--bright-green);
    color: #000;
    transform: translateY(-1px);
    /* GLOW MÁS INTENSO AL HOVER */
    box-shadow: 0 0 20px rgba(255, 187, 0, 0.7);
    filter: blur(0.3px);
}

.cmd-link.is-active,
.cmd-link.active {
    /* Amarillo más brillante para estado activo */
    background: var(--yellow-light);
    color: #000;
    font-weight: normal;
    /* GLOW INTENSO PARA ACTIVO */
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.7);
    filter: blur(0.3px);
}

/* MINT BUTTON - Destacado en rojo BRILLANTE con estilo retro */
.cmd-link-mint {
    /* Fondo rojo con texto negro */
    background: var(--error-red);
    color: #000;
    font-weight: 900;                     /* Extra bold */
    /* GLOW ROJO INTENSO + BLUR */
    box-shadow: 0 0 15px rgba(255, 51, 68, 0.7);
    filter: blur(0.3px);
}

.cmd-link-mint:hover {
    /* Rojo más brillante al hover */
    background: #ff5555;
    color: #000;
    /* GLOW MÁS INTENSO */
    box-shadow: 0 0 25px rgba(255, 51, 68, 0.9);
    filter: blur(0.3px);
}

/* COMING SOON BUTTONS - Muted grayish-orange, clickable to preview features */
.cmd-link-disabled {
    /* Muted gray-orange - clearly different from active yellow */
    background: #b8a090;              /* Muted taupe/gray-brown */
    color: #2a2a2a;                   /* Dark text */
    font-weight: 700;
    cursor: pointer;                  /* Clickable */
    /* Subtle muted glow */
    box-shadow: 0 0 5px rgba(184, 160, 144, 0.4);
    filter: blur(0.3px);
}

.cmd-link-disabled:hover {
    /* Slightly brighter on hover */
    background: #c9b0a0;              /* Lighter taupe on hover */
    color: #1a1a1a;
    transform: translateY(-1px);      /* Normal lift effect */
    box-shadow: 0 0 10px rgba(201, 176, 160, 0.5);
    filter: blur(0.3px);
}

/* Ensure disabled buttons don't get yellow active state */
.cmd-link-disabled.is-active,
.cmd-link-disabled.active {
    background: #c9b0a0;              /* Keep muted color even when active */
    color: #1a1a1a;
    box-shadow: 0 0 10px rgba(201, 176, 160, 0.6);
}

/* NAV PROGRESS BAR - ESTILO RETRO BLOCKY */
.nav-progress-bar {
    width: calc(100% - 30px);
    margin: 3px auto 0;
    height: 6px;
    background: #222;
    border: 2px solid var(--orange-medium);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-progress-fill {
    height: 100%;
    /* Patrón blocky pixelado MÁS VIBRANTE */
    background: repeating-linear-gradient(
        90deg,
        var(--orange-light) 0px,
        var(--orange-light) 6px,
        var(--yellow-medium) 6px,
        var(--yellow-medium) 12px
    );
    width: 0%;
    animation: loadingBarRetro 2.5s steps(20) infinite;  /* Stepped = pixelado */
    /* GLOW INTENSO EN BARRA */
    box-shadow:
        0 0 10px var(--orange-light),
        0 0 20px var(--orange-light),
        0 0 30px rgba(255, 153, 0, 0.5);
}

@keyframes loadingBarRetro {
    0% {
        width: 0%;
        opacity: 0.8;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

/* TERMINAL BUTTONS */
.terminal-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    padding: 8px 16px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.terminal-btn:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--bright-green);
    color: var(--bright-green);
    box-shadow: 0 4px 10px rgba(255, 136, 0, 0.3);
}

.terminal-btn.small-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
}

/* CONTENT BLOCKS */
.mono-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--primary-green);
    padding: 15px;
    margin-bottom: 15px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 13px;
    color: var(--primary-green);
}

.mono-small-note {
    font-size: 11px;
    color: var(--dim-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.center-text-line {
    text-align: center;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 13px;
    color: var(--primary-green);
    margin: 8px 0;
}

.subheading {
    font-family: 'Alagard', serif;
    font-size: 16px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-gold);
    letter-spacing: 2px;
    font-weight: bold;
    /* GLOW MODERADO */
    text-shadow:
        0 0 3px var(--gold),
        0 0 8px var(--gold),
        0 0 15px var(--gold);
}

/* STATUS BLOCKS */
.warning-block {
    background: rgba(255, 34, 68, 0.05);
    border: 1px solid var(--error-red);
    border-left: 3px solid var(--error-red);
    padding: 15px;
    margin-bottom: 15px;
    color: var(--error-red);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.status-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--primary-green);
    padding: 15px;
    margin-top: 15px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    color: var(--primary-green);
}

/* GUILDS */
.guild-entry {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--gold);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.2s;
}

.guild-entry:hover {
    background: rgba(255, 136, 0, 0.05);
    border-left-color: var(--bright-green);
    transform: translateX(3px);
}

.guild-badge {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border: 2px solid var(--border-primary);
    background: var(--bg-primary);
    image-rendering: pixelated;
    object-fit: contain;
}

/* STATS */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    color: var(--primary-green);
}

.stats-col {
    flex: 1;
    min-width: 200px;
}

.stats-col strong {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 700px) {
    .stats-col {
        width: 100%;
        min-width: 100%;
    }
}

/* PROFILE */
.player-profile-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-col-left {
    flex: 1 1 300px;
    min-width: 260px;
}

/* TOP EMISSARY - 2 COLUMNAS CON TONO AMARILLO */
.profile-col-right {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 100%;
    background: rgba(255, 204, 0, 0.08);  /* Tono amarillo suave */
    border: 1px solid var(--border-gold);
    border-left: 3px solid var(--gold);
    padding: 15px;
    text-align: center;
}

.profile-col-right .subheading {
    color: var(--gold);
    text-shadow:
        0 0 5px var(--gold),
        0 0 10px var(--gold);
}

/* Grid 2 columnas para TOP EMISSARY */
.top-emissary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

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

.profile-emissary-img {
    width: 128px;
    height: 128px;
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    image-rendering: pixelated;
    object-fit: contain;
    margin: 0 auto 15px auto;
    display: block;
    color: var(--dim-green);
    font-size: 12px;
    text-align: center;
    line-height: 128px;
}

/* TABLES */
.roster-table,
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    margin: 15px 0;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

/* Roster table uses fixed layout for consistent column widths */
.roster-table {
    table-layout: fixed;
    width: 100%;
}

.roster-table th,
.roster-table td,
table th,
table td {
    border: 1px solid var(--border-primary);
    padding: 8px;
    text-align: left;
    color: var(--primary-green);
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-table th,
table th {
    background: var(--bg-elevated);
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Roster Table Column Widths - Optimized */
.roster-table th:nth-child(1),
.roster-table td:nth-child(1) { width: 280px; } /* NAME - más ancho */
.roster-table th:nth-child(2),
.roster-table td:nth-child(2) { width: 110px; } /* CLASS */
.roster-table th:nth-child(3),
.roster-table td:nth-child(3) { width: 45px; text-align: center; } /* XP */
.roster-table th:nth-child(4),
.roster-table td:nth-child(4) { width: 45px; text-align: center; } /* AURA */
.roster-table th:nth-child(5),
.roster-table td:nth-child(5) { width: 65px; text-align: center; } /* ENERGY */
.roster-table th:nth-child(6),
.roster-table td:nth-child(6) { width: 75px; } /* GUILD */
.roster-table th:nth-child(7),
.roster-table td:nth-child(7) { width: 160px; } /* STATE */
.roster-table th:nth-child(8),
.roster-table td:nth-child(8) { width: 170px; } /* ACTIONS - fixed width */

/* MODALS */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.terminal-modal {
    background: var(--bg-panel);
    border: 2px solid var(--border-primary);
    box-shadow: 0 0 40px rgba(255, 136, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-modal-header {
    background: var(--bg-elevated);
    color: var(--gold);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Alagard', serif;
    letter-spacing: 2px;
}

.terminal-modal-close {
    background: transparent;
    border: none;
    color: var(--primary-green);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.terminal-modal-close:hover {
    color: var(--error-red);
}

.terminal-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: var(--bg-panel);
}

.modal-list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--primary-green);
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary-green);
}

.modal-list-item:hover {
    background: rgba(255, 136, 0, 0.1);
    border-left-color: var(--gold);
    transform: translateX(3px);
}

.modal-list-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-left-color: var(--dim-green);
}

.modal-list-item.disabled:hover {
    background: var(--bg-secondary);
    transform: none;
}

.modal-hero-img {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-primary);
    object-fit: cover;
    margin-right: 10px;
    image-rendering: pixelated;
}

.modal-item-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gold);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.modal-item-details {
    font-size: 13px;
    color: var(--dim-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.modal-no-items {
    text-align: center;
    padding: 40px 20px;
    color: var(--dim-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.modal-message {
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 20px;
    color: var(--primary-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.modal-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    padding: 10px 24px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    text-transform: uppercase;
}

.modal-btn:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--bright-green);
    color: var(--bright-green);
    box-shadow: 0 4px 10px rgba(255, 136, 0, 0.3);
}

.modal-btn.danger {
    border-color: var(--error-red);
    color: var(--error-red);
}

.modal-btn.danger:hover {
    background: rgba(255, 34, 68, 0.1);
    box-shadow: 0 4px 10px rgba(255, 34, 68, 0.3);
}

/* FORMS */
input[type="text"],
input[type="number"],
input[type="email"],
textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    padding: 10px 12px;
    font-size: 13px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--bright-green);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}

/* LINKS */
a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--gold);
}

a.social-link {
    color: var(--primary-green);
    text-decoration: underline;
}

a.social-link:hover {
    color: var(--gold);
    background: rgba(255, 204, 0, 0.1);
    text-decoration: none;
}

/* EMBER CONSOLE BAR (Top floating bar) - 3 SECTIONS: Music | Calendar | Phase+Weather */
.ember-console-bar {
    position: fixed;
    top: 6px;
    left: 6px;
    right: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
}

/* Console Sections */
.console-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SECTION 1: MUSIC */
.console-music {
    justify-content: flex-start;
}

.console-block-label {
    font-weight: 600;
    text-transform: uppercase;
    border-right: 1px solid var(--border-primary);
    padding-right: 10px;
    white-space: nowrap;
    font-size: 11px;
    color: var(--gold);
    font-family: 'Alagard', serif;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.console-track-now {
    font-size: 11px;
    color: var(--primary-green);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-music-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.console-btn:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--bright-green);
    color: var(--bright-green);
}

.console-vol-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-vol-label {
    text-transform: uppercase;
    font-size: 10px;
    color: var(--primary-green);
    font-weight: 600;
}

/* SECTION 2: CALENDAR */
.console-calendar {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    border-left: 1px solid var(--border-primary);
    border-right: 1px solid var(--border-primary);
    padding: 0 20px;
}

.calendar-era {
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-year {
    font-size: 12px;
    color: var(--gold);
    font-weight: bold;
    font-family: 'Alagard', serif;
}

.calendar-day {
    font-size: 9px;
    color: #888;
}

/* SECTION 3: PHASE + WEATHER */
.console-time {
    justify-content: flex-end;
    gap: 15px;
}

.weather-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
    border-right: 1px solid var(--border-primary);
}

.weather-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 3px currentColor);
}

.weather-name {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}

.phase-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phase-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px currentColor);
}

.phase-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.phase-name {
    font-size: 10px;
    font-weight: bold;
}

.phase-timer {
    font-size: 8px;
    color: #666;
}

.phase-bar {
    width: 60px;
    height: 6px;
    background: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
}

.phase-progress {
    height: 100%;
    transition: width 1s linear;
}

.phase-progress.phase-dawn   { background: linear-gradient(90deg, #FF9966, #FFCC99); }
.phase-progress.phase-zenith { background: linear-gradient(90deg, #FFD700, #FFA500); }
.phase-progress.phase-dusk   { background: linear-gradient(90deg, #FF6B35, #8B0000); }
.phase-progress.phase-void   { background: linear-gradient(90deg, #6B5B95, #2D1B4E); }

.console-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    max-width: 120px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    height: 6px;
    cursor: pointer;
}

.console-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 16px;
    background: var(--primary-green);
    border: 1px solid var(--bright-green);
    cursor: pointer;
}

.console-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 16px;
    background: var(--primary-green);
    border: 1px solid var(--bright-green);
    cursor: pointer;
}

/* Push body content down for console bar */
body {
    padding-top: 65px;
}

/* Responsive console bar */
@media (max-width: 900px) {
    .ember-console-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 10px;
    }

    .console-section {
        justify-content: center;
    }

    .console-calendar {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-primary);
        border-bottom: 1px solid var(--border-primary);
        padding: 6px 0;
    }

    .console-time {
        justify-content: center;
    }

    body {
        padding-top: 140px;
    }
}

@media (max-width: 600px) {
    .console-music {
        flex-wrap: wrap;
        justify-content: center;
    }

    .console-block-label {
        border-right: none;
        text-align: center;
        width: 100%;
    }

    .weather-display {
        border-right: none;
        padding-right: 0;
    }

    body {
        padding-top: 180px;
    }
}

/* TUTORIAL / TOC LINKS */
.mono-block a[href^="#"] {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    text-decoration: none;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 12px;
    transition: all 0.2s;
}

.mono-block a[href^="#"]:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--bright-green);
    color: var(--gold);
    transform: translateY(-1px);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.toc-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-section-title {
    color: var(--gold);
    font-weight: bold;
    font-family: 'Alagard', serif;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* GLOW MODERADO */
    text-shadow:
        0 0 3px var(--gold),
        0 0 8px var(--gold),
        0 0 15px var(--gold);
}

/* BACK TO TOP BUTTON - TUTORIAL SECTIONS */
.back-to-top-btn {
    display: inline-block;
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    color: var(--primary-green);
    padding: 8px 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.back-to-top-btn:hover {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--bright-green);
    color: var(--gold);
    transform: translateY(-2px);
}

.back-to-top-btn::before {
    content: '↑ ';
    color: var(--gold);
}

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

    /* Mapa responsive - una columna en móvil */
    .realm-map-container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===============================================================
   INVENTORY & VAULT SYSTEM
   =============================================================== */

/* Equipment Indicators (debajo del nombre del emissary) */
.equipment-indicators {
    font-size: 11px;
    margin-top: 5px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    letter-spacing: 0.5px;
}

.equipment-indicators .eq-icon {
    color: var(--primary-green);
    font-weight: 700;
}

.equipment-indicators .eq-count {
    color: #888;
}

.equipment-indicators .eq-empty {
    color: #444;
}

/* Item Cards en Vault */
.item-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-primary);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    position: relative;
}

.item-card.equipped {
    background: rgba(255, 149, 0, 0.1);
    border-left: 3px solid var(--primary-green);
}

.item-card.rarity-common {
    border-left: 3px solid #9ca3af;
}

.item-card.rarity-rare {
    border-left: 3px solid #3b82f6;
}

.item-card.rarity-epic {
    border-left: 3px solid #a855f7;
}

.item-card.rarity-legendary {
    border-left: 3px solid #ff6b00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.item-card:hover {
    background: rgba(255, 136, 0, 0.05);
    transform: translateX(3px);
}

/* Rarity Colors */
.rarity-common { color: #9ca3af; }
.rarity-rare { color: #3b82f6; }
.rarity-epic { color: #a855f7; }
.rarity-legendary { color: #ff6b00; }

/* Item Stats */
.item-stats {
    font-size: 12px;
    margin-top: 8px;
}

.stat-positive {
    color: #4ade80;
}

.stat-negative {
    color: #3b82f6;
}

/* Action Buttons (Contextuales según estado) */
.btn-inventory {
    border-color: #ff9500;
    color: #ff9500;
    background: transparent;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-inventory:hover {
    background: rgba(255, 149, 0, 0.1);
    border-color: var(--bright-green);
}

.btn-push {
    border-color: #f59e0b;
    color: #f59e0b;
    background: transparent;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-push:hover {
    background: rgba(245, 158, 11, 0.1);
}

.btn-claim {
    border-color: #3b82f6;
    color: #3b82f6;
    background: transparent;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-claim:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-recover {
    border-color: #22c55e;
    color: #22c55e;
    background: transparent;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-recover:hover {
    background: rgba(34, 197, 94, 0.1);
}

.btn-revive {
    border-color: #ef4444;
    color: #ef4444;
    background: transparent;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-revive:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-gambit {
    border-color: #a855f7;
    color: #a855f7;
    background: transparent;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gambit:hover {
    background: rgba(168, 85, 247, 0.1);
}

/* D20 Dice Display */
.dice-display {
    font-size: 80px;
    font-family: 'Alagard', serif;
    color: var(--gold);
    text-shadow:
        0 0 10px var(--gold),
        0 0 20px var(--gold),
        0 0 30px var(--gold);
    animation: diceGlow 1s infinite alternate;
    text-align: center;
    margin: 30px 0;
}

@keyframes diceGlow {
    0% {
        text-shadow:
            0 0 10px var(--gold),
            0 0 20px var(--gold);
    }
    100% {
        text-shadow:
            0 0 20px var(--gold),
            0 0 40px var(--gold),
            0 0 60px var(--gold);
    }
}

/* Equipment Slots en Modal Inventory */
.equipment-slot {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    padding: 12px;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.equipment-slot.empty {
    border-style: dashed;
    opacity: 0.6;
}

.equipment-slot img {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px auto;
    border: 1px solid var(--border-primary);
    image-rendering: pixelated;
}

.equipment-slot .slot-name {
    font-size: 10px;
    color: var(--dim-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.equipment-slot .item-name {
    font-size: 12px;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Balance Header */
.balance-display {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 12px;
    font-weight: 600;
}

.balance-ember {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-ash {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-icon {
    font-size: 14px;
}

/* Vault Grid */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

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

/* Equipment Grid en Inventory Modal */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Rune Slots */
.rune-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.rune-slot {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    padding: 15px;
}

.rune-slot.empty {
    border-style: dashed;
    opacity: 0.6;
}

/* Land Slot */
.land-slot {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--gold);
    padding: 15px;
    margin-bottom: 20px;
}

.land-slot.empty {
    border-style: dashed;
    opacity: 0.6;
}

/* Total Boosts Display */
.total-boosts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.boost-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    padding: 10px;
    text-align: center;
}

.boost-item .boost-label {
    font-size: 10px;
    color: var(--dim-green);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.boost-item .boost-value {
    font-size: 16px;
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 768px) {
    .total-boosts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Disabled button state */
.btn-disabled,
button:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Vault Filter Tabs */
.vault-filter {
    padding: 8px 15px;
    margin: 5px;
}

.vault-filter.active {
    background: rgba(255, 204, 0, 0.1);
    border-color: var(--border-gold);
    color: var(--gold);
}

/* Modal Size Variants */
.terminal-modal.large {
    max-width: 1000px;
    width: 95%;
}

.terminal-modal.xlarge {
    max-width: 1200px;
    width: 95%;
}

/* ===============================================================
   EQUIPMENT SLOTS - INVENTORY MODAL
   =============================================================== */

.equipment-slot {
    padding: 12px;
    border: 1px solid var(--border-primary);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.equipment-slot.equipped {
    border-color: var(--gold);
    background: rgba(255, 204, 0, 0.05);
}

.equipment-slot.empty {
    border-color: var(--border-dim);
    border-style: dashed;
}

.equipment-slot:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-green);
}

.equipment-slot .slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1px;
}

.equipment-slot .slot-item {
    margin: 10px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 2px solid var(--primary-green);
    font-size: 12px;
    line-height: 1.6;
}

.equipment-slot .slot-item strong {
    color: var(--primary-green);
    text-shadow: 0 0 5px rgba(68, 170, 255, 0.3);
}

.equipment-slot.rune-slot {
    border-color: #a855f7;
}

.equipment-slot.rune-slot.equipped {
    background: rgba(168, 85, 247, 0.05);
}

.equipment-slot.rune-slot .slot-item {
    border-left-color: #a855f7;
}

/* Stat badges */
.stat-positive {
    color: #4ade80;
    font-size: 11px;
}

.stat-negative {
    color: #f87171;
    font-size: 11px;
}

/* ===============================================================
   ACTIONS CELL - ROSTER TABLE GRID
   =============================================================== */

.actions-cell {
    display: grid;
    grid-template-columns: repeat(2, 80px);
    gap: 3px;
    justify-content: start;
}

.action-btn {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 9px;
    font-weight: 600;
    padding: 5px 4px;
    width: 80px;
    text-align: center;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0px;
}

.action-btn:hover:not(.disabled) {
    box-shadow: 0 0 10px currentColor;
}

.action-btn.disabled {
    opacity: 0.15;
    cursor: default;
    border-color: #333;
    color: #333;
    pointer-events: none;
}

/* Action Button Colors by Type */

/* INVENTORY - Orange */
.action-btn.inventory {
    border-color: #ff9500;
    color: #ff9500;
}
.action-btn.inventory:hover {
    background: #ff9500;
    color: #0a0a0a;
    text-shadow: none;
}

/* EMBER ROLL - Purple */
.action-btn.ember-roll {
    border-color: #a855f7;
    color: #a855f7;
}
.action-btn.ember-roll:hover {
    background: #a855f7;
    color: #0a0a0a;
    text-shadow: none;
}

/* SEND - Red (action) */
.action-btn.send {
    border-color: #ef4444;
    color: #ef4444;
}
.action-btn.send:hover {
    background: #ef4444;
    color: #0a0a0a;
    text-shadow: none;
}

/* PUSH - Grey (disabled) */
.action-btn.push {
    border-color: #666;
    color: #888;
}
.action-btn.push:hover {
    border-color: #888;
    color: #aaa;
    background: transparent;
}

/* CLAIM - Blue */
.action-btn.claim {
    border-color: #3b82f6;
    color: #3b82f6;
}
.action-btn.claim:hover {
    background: #3b82f6;
    color: #0a0a0a;
    text-shadow: none;
}

/* RECOVER - Green */
.action-btn.recover {
    border-color: #22c55e;
    color: #22c55e;
}
.action-btn.recover:hover {
    background: #22c55e;
    color: #0a0a0a;
    text-shadow: none;
}

/* REVIVE - Red */
.action-btn.revive {
    border-color: #ef4444;
    color: #ef4444;
}
.action-btn.revive:hover {
    background: #ef4444;
    color: #0a0a0a;
    text-shadow: none;
}

/* ===============================================================
   CRT GLITCH LOADING OVERLAY
   =============================================================== */

.crt-glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: all;
    background: rgba(0, 0, 0, 0.85);
    display: none;
}

.crt-glitch-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Scanlines effect */
.crt-glitch-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

/* Flicker effect */
.crt-glitch-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 16, 0);
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

/* Loading text container */
.crt-loading-text {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    z-index: 10;
    text-shadow:
        0 0 10px var(--primary-green),
        0 0 20px var(--primary-green),
        0 0 40px var(--primary-green);
    animation: textGlitch 0.3s infinite;
}

/* RGB shift on text */
.crt-loading-text::before,
.crt-loading-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.crt-loading-text::before {
    color: #ff0000;
    animation: rgbShiftLeft 0.05s infinite;
    opacity: 0.8;
    z-index: -1;
}

.crt-loading-text::after {
    color: #00ffff;
    animation: rgbShiftRight 0.05s infinite;
    opacity: 0.8;
    z-index: -1;
}

/* Subtext */
.crt-loading-subtext {
    font-family: 'Pixelify Sans', 'Classic Console Neue', monospace;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

/* Progress bar */
.crt-progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-primary);
    margin-top: 30px;
    overflow: hidden;
}

.crt-progress-bar {
    height: 100%;
    background: var(--primary-green);
    box-shadow: 0 0 10px var(--primary-green);
    animation: progressPulse 2s ease-in-out infinite;
    width: 0%;
    transition: width 0.3s ease;
}

/* Animations */
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

@keyframes textGlitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes rgbShiftLeft {
    0%, 100% { transform: translate(-2px, 0); }
    50% { transform: translate(-3px, 1px); }
}

@keyframes rgbShiftRight {
    0%, 100% { transform: translate(2px, 0); }
    50% { transform: translate(3px, -1px); }
}

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

@keyframes progressPulse {
    0%, 100% { box-shadow: 0 0 5px var(--primary-green); }
    50% { box-shadow: 0 0 20px var(--primary-green), 0 0 30px var(--primary-green); }
}

/* ===============================================================
   CHARACTER SHEET - D&D STYLE (TOP EMISSARY)
   =============================================================== */

.emissary-character-sheet {
    border: 2px solid var(--border-primary);
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    position: relative;
}

.emissary-character-sheet::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 153, 0, 0.1);
    pointer-events: none;
}

.character-sheet-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 14px;
}

/* Header Section - Portrait + Identity */
.cs-header {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-primary);
}

.cs-portrait {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-green);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cs-portrait img {
    max-width: 96px;
    max-height: 96px;
    image-rendering: pixelated;
    object-fit: contain;
}

.cs-no-img {
    color: #666;
    font-size: 12px;
    text-align: center;
}

.cs-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cs-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 0 10px var(--primary-green);
}

.cs-subtitle {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

.cs-guild {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
}

/* Attributes Row - Race, Class, Status */
.cs-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.cs-attr-box {
    border: 1px solid var(--border-primary);
    padding: 8px 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.cs-attr-label {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.cs-attr-value {
    font-size: 12px;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
}

.cs-status {
    border-width: 2px;
}

/* Stats Grid - XP, Aura, Energy, Deaths */
.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.cs-stat {
    border: 1px solid var(--border-primary);
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cs-stat-icon {
    font-size: 16px;
}

.cs-stat-info {
    text-align: center;
}

.cs-stat-label {
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs-stat-value {
    font-size: 14px;
    color: var(--primary-green);
    font-weight: 700;
}

/* Energy Bar */
.cs-energy-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.cs-energy-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}

/* Equipment Summary */
.cs-equipment {
    border: 1px solid var(--border-primary);
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.cs-equip-label {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.cs-equip-slots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cs-slot {
    width: 28px;
    height: 28px;
    border: 1px solid #444;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.cs-slot.equipped {
    opacity: 1;
    border-color: var(--gold);
    background: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

.cs-slot-divider {
    color: #333;
    font-size: 16px;
}

.cs-equip-count {
    font-size: 10px;
    color: #888;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cs-header {
        grid-template-columns: 80px 1fr;
    }

    .cs-portrait {
        width: 80px;
        height: 80px;
    }

    .cs-portrait img {
        max-width: 76px;
        max-height: 76px;
    }

    .cs-name {
        font-size: 15px;
    }

    .cs-attributes {
        grid-template-columns: 1fr 1fr;
    }

    .cs-attributes .cs-status {
        grid-column: span 2;
    }

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

    .cs-equip-slots {
        flex-wrap: wrap;
    }
}

/* ===============================================================
   TERMINAL LOADING ANIMATIONS
   =============================================================== */

.terminal-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 200px;
}

/* Spinner Ring */
.terminal-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 153, 0, 0.2);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spinnerRotate 1s linear infinite;
}

.spinner-ring::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid rgba(255, 204, 0, 0.1);
    border-bottom-color: var(--gold);
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite reverse;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    filter: grayscale(100%) brightness(1.5) sepia(100%) hue-rotate(-10deg) saturate(5);
    animation: iconGlitch 2s ease-in-out infinite;
}

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

@keyframes iconGlitch {
    0%, 100% {
        opacity: 0.8;
        text-shadow: 0 0 8px #ff9500, 0 0 15px #ff6600;
        transform: translate(-50%, -50%);
    }
    25% {
        opacity: 1;
        text-shadow: 0 0 20px #ffaa00, 0 0 35px #ff6600, 0 0 50px #ff4400;
    }
    50% {
        opacity: 0.9;
        text-shadow: 0 0 12px #ff9500, 0 0 25px #ff6600;
        transform: translate(-51%, -50%);
    }
    75% {
        opacity: 1;
        text-shadow: 0 0 25px #ffaa00, 0 0 40px #ff6600;
        transform: translate(-49%, -50%);
    }
}

/* Loading Text */
.terminal-loading-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-green);
    animation: textFlicker 2s ease-in-out infinite;
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    52% { opacity: 1; }
    54% { opacity: 0.9; }
}

/* Animated Dots */
.terminal-loading-dots {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.terminal-loading-dots span {
    font-size: 20px;
    color: var(--gold);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.terminal-loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.terminal-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.terminal-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Subtext */
.terminal-loading-subtext {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: subtextPulse 2s ease-in-out infinite;
}

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

/* Processing Modal specific styles */
#processing-modal .terminal-modal-header {
    border-bottom: 1px solid var(--border-primary);
}

#processing-modal .terminal-modal-body {
    padding: 0;
}
