/* ============================================
   GProA Technology - Cliente Access Page
   Gyproc - Saint-Gobain NDA Dossier
   Enterprise HUD Sci-Fi / Videojuego
   ============================================ */

:root {
    --bg: #0a0f1c;
    --dark: #0d1321;
    --darker: #070b14;
    --primary: #00e0ff;
    --secondary: #8a2be2;
    --accent-red: #e30613;
    --accent-green: #00ff88;
    --text: #e8ecf1;
    --muted: #b8c5d6;
    --error: #ff4d4d;
    --success: #00e0ff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 51, 102, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(107, 47, 160, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   BOOT OVERLAY
   ============================================ */

.boot-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: bootFadeIn 0.8s ease;
}

.boot-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boot-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.4);
}

.boot-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.boot-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    max-width: 420px;
    width: 100%;
    padding: 0 20px;
}

.boot-line {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0;
    transform: translateY(8px);
    animation: bootLineFade 0.5s ease forwards;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.3);
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.6s; }
.boot-line:nth-child(3) { animation-delay: 1.0s; }
.boot-line:nth-child(4) { animation-delay: 1.4s; }

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

@keyframes bootLineFade {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ENTITY / AVATAR
   ============================================ */

.entity-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.25), rgba(138, 43, 226, 0.25));
    border: 1px solid rgba(0, 224, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    overflow: hidden;
}

.entity-avatar.sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.entity-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 224, 255, 0.25) 50%, transparent 100%);
    transform: translateY(-100%);
    animation: scan 2.4s infinite linear;
    pointer-events: none;
}

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

/* ============================================
   HUD TOP BAR
   ============================================ */

.hud-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 224, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hud-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hud-topbar-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.25);
    background: rgba(0, 255, 136, 0.08);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    letter-spacing: 0.1em;
}

.hud-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 224, 255, 0.15);
}

.hud-clock {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.08em;
}

.hud-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   HUD NAV
   ============================================ */

.hud-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(10, 15, 28, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 224, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    z-index: 999;
    overflow-x: auto;
    scrollbar-width: none;
}

.hud-nav::-webkit-scrollbar {
    display: none;
}

.hud-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.hud-nav-item i {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.hud-nav-item:hover {
    color: var(--text);
    background: rgba(0, 224, 255, 0.06);
    border-color: rgba(0, 224, 255, 0.15);
}

.hud-nav-item.active {
    color: var(--primary);
    background: rgba(0, 224, 255, 0.1);
    border-color: rgba(0, 224, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.1);
}

.hud-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    border-radius: 2px;
}

/* ============================================
   APP LAYOUT
   ============================================ */

.app-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 108px;
}

.app-video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.app-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
}

.app-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 15, 28, 0.85) 100%);
    pointer-events: none;
}

.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    padding: 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block;
}

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

@keyframes scanFlash {
    0% { box-shadow: inset 0 0 0 rgba(0, 224, 255, 0); }
    50% { box-shadow: inset 0 0 60px rgba(0, 224, 255, 0.15); }
    100% { box-shadow: inset 0 0 0 rgba(0, 224, 255, 0); }
}

.scan-flash {
    animation: scanFlash 0.6s ease;
}

/* ============================================
   ACCESS / LOGIN
   ============================================ */

.access-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
}

.access-card {
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: 20px;
    padding: 48px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 224, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.access-header {
    text-align: center;
    margin-bottom: 40px;
}

.access-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.2rem;
    color: var(--darker);
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.25);
}

.access-header h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.access-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.access-tagline {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.access-form {
    max-width: 420px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 15, 28, 0.8);
    border: 2px solid rgba(0, 224, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-error {
    display: block;
    margin-top: 8px;
    color: var(--error);
    font-size: 0.85rem;
    min-height: 20px;
}

.access-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-access {
    flex: 1;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.access-hint {
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.85rem;
    opacity: 0.9;
}

.access-hint i {
    margin-right: 6px;
    color: var(--primary);
}

/* ============================================
   DASHBOARD - MISSION CONTROL
   ============================================ */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.8;
}

.dashboard-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0, 224, 255, 0.5));
}

.dashboard-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 224, 255, 0.25);
    background: rgba(0, 224, 255, 0.08);
}

.rank-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.rank-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 224, 255, 0.4);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 224, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 224, 255, 0.08);
}

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

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(0, 224, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 224, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 224, 255, 0.08);
}

.kpi-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
    letter-spacing: 0.04em;
}

.kpi-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.kpi-footer {
    margin-top: 14px;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.kpi-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.kpi-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.kpi-target {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 8px;
    text-align: right;
    letter-spacing: 0.06em;
}

.kpi-card.status-ok {
    border-color: rgba(0, 255, 136, 0.25);
}

.kpi-card.status-ok .kpi-icon {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green);
    border-color: rgba(0, 255, 136, 0.3);
}

.kpi-card.status-ok .kpi-bar {
    background: linear-gradient(90deg, #00ff88, #00e0ff);
}

.kpi-card.status-warn {
    border-color: rgba(255, 187, 0, 0.25);
}

.kpi-card.status-warn .kpi-icon {
    background: rgba(255, 187, 0, 0.12);
    color: #ffbb00;
    border-color: rgba(255, 187, 0, 0.3);
}

.kpi-card.status-warn .kpi-bar {
    background: linear-gradient(90deg, #ffbb00, #ff4d4d);
}

.kpi-card.status-crit {
    border-color: rgba(255, 77, 77, 0.25);
}

.kpi-card.status-crit .kpi-icon {
    background: rgba(255, 77, 77, 0.12);
    color: var(--error);
    border-color: rgba(255, 77, 77, 0.3);
}

.kpi-card.status-crit .kpi-bar {
    background: linear-gradient(90deg, #ff4d4d, #ff00ff);
}

.kpi-unit {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    margin-left: 4px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
    margin-top: 24px;
}

.bento-item {
    min-height: 180px;
}

.bento-kpis {
    grid-column: 1 / -1;
}

.bento-wide {
    grid-column: span 2;
}

.bento-timeline {
    grid-column: span 2;
}

.bento-alerts {
    grid-column: span 2;
}

.dashboard-sections {
    margin-top: 24px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0.4;
}

.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 224, 255, 0.1);
    border: 2px solid rgba(0, 224, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 12px rgba(0, 224, 255, 0.15);
}

.timeline-item.completed .timeline-dot {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.5);
    color: var(--accent-green);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
}

.timeline-item.en-progreso .timeline-dot {
    background: rgba(255, 187, 0, 0.15);
    border-color: rgba(255, 187, 0, 0.5);
    color: #ffbb00;
    box-shadow: 0 0 12px rgba(255, 187, 0, 0.25);
}

.timeline-item.pendiente .timeline-dot {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--muted);
    box-shadow: none;
}

.timeline-content {
    flex: 1;
    padding-bottom: 4px;
}

.timeline-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.timeline-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.timeline-item.completed .timeline-status {
    border: 1px solid rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
}

.timeline-item.en-progreso .timeline-status {
    border: 1px solid rgba(255, 187, 0, 0.4);
    background: rgba(255, 187, 0, 0.1);
    color: #ffbb00;
}

.timeline-item.pendiente .timeline-status {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

/* Metrics table */
.metrics-table-wrapper {
    overflow-x: auto;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.metrics-table th,
.metrics-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 224, 255, 0.08);
}

.metrics-table th {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metrics-table td {
    color: var(--muted);
}

.metrics-table tr:hover td {
    background: rgba(0, 224, 255, 0.04);
    color: var(--text);
}

.metrics-table .progress-cell {
    min-width: 140px;
}

/* Alerts */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 224, 255, 0.1);
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-item.warning {
    border-color: rgba(255, 187, 0, 0.35);
}

.alert-item.info {
    border-color: rgba(0, 224, 255, 0.35);
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.alert-item.warning .alert-icon {
    background: rgba(255, 187, 0, 0.12);
    color: #ffbb00;
    border: 1px solid rgba(255, 187, 0, 0.3);
}

.alert-item.info .alert-icon {
    background: rgba(0, 224, 255, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 224, 255, 0.3);
}

.alert-body {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.alert-msg {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ============================================
   HUD PANEL
   ============================================ */

.hud-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 224, 255, 0.04);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hud-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.8;
}

.hud-panel:hover {
    border-color: rgba(0, 224, 255, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 224, 255, 0.08);
}

.hud-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 224, 255, 0.08);
}

.hud-panel-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-panel-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.hud-panel-body {
    padding: 20px;
}

/* ============================================
   DOSSIER - INTEL FILES
   ============================================ */

.dossier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.dossier-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.8;
}

.dossier-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dossier-classified-stamp {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 77, 77, 0.4);
    background: rgba(255, 77, 77, 0.1);
    color: var(--error);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.15);
}

.dossier-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dossier-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(0, 224, 255, 0.5));
}

.dossier-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dossier-header-right {
    display: flex;
    align-items: center;
}

.dossier-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.dossier-id .mono {
    color: var(--primary);
}

.dossier-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    background: rgba(0, 224, 255, 0.05);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tab-btn:hover {
    border-color: rgba(0, 224, 255, 0.5);
    color: var(--text);
    box-shadow: 0 0 12px rgba(0, 224, 255, 0.08);
}

.tab-btn.active {
    background: rgba(0, 224, 255, 0.14);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 224, 255, 0.12);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dossier-section {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dossier-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.dossier-section:hover {
    border-color: rgba(0, 224, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 224, 255, 0.08);
}

.dossier-section h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dossier-section h3 i {
    font-size: 0.9rem;
    color: var(--secondary);
}

.dossier-section p,
.dossier-section li {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 10px;
}

.dossier-list {
    list-style: none;
    padding: 0;
}

.dossier-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 224, 255, 0.06);
}

.dossier-list li:last-child {
    border-bottom: none;
}

.dossier-list li i {
    color: var(--primary);
    margin-top: 4px;
    filter: drop-shadow(0 0 6px rgba(0, 224, 255, 0.5));
}

.dossier-products li i {
    color: var(--accent-red);
    filter: drop-shadow(0 0 6px rgba(255, 77, 77, 0.5));
}

.dossier-meta {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(255, 0, 255, 0.06);
    border-left: 3px solid var(--secondary);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.06);
}

.dossier-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ============================================
   LEGAL - PROTOCOL
   ============================================ */

.protocol-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.protocol-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.8;
}

.protocol-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.protocol-classification {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 77, 77, 0.4);
    background: rgba(255, 77, 77, 0.1);
    color: var(--error);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.15);
}

.protocol-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.protocol-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(0, 224, 255, 0.5));
}

.protocol-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.protocol-header-right {
    display: flex;
    align-items: center;
}

.protocol-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.protocol-code .mono {
    color: var(--primary);
}

.protocol-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    padding: 24px;
}

.protocol-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.protocol-body {
    color: var(--muted);
    line-height: 1.7;
}

.protocol-body p {
    margin-bottom: 12px;
}

.protocol-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 224, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.protocol-stamp {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 224, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.08);
}

.legal-es {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.7;
    font-family: var(--font-body);
}

.legal-en {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   DOCUMENTS - ARMORY
   ============================================ */

.armory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.armory-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.8;
}

.armory-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.armory-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.armory-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.armory-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(0, 224, 255, 0.5));
}

.armory-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.armory-header-right {
    display: flex;
    align-items: center;
}

.armory-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.armory-count .mono {
    color: var(--primary);
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(0, 224, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    transition: all 0.2s ease;
    overflow: hidden;
}

.doc-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.doc-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 224, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 224, 255, 0.1);
}

.doc-item.equipped {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.1);
}

.doc-item.equipped::after {
    content: 'EQUIPPED';
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--accent-green);
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 224, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 224, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.08);
    transition: all 0.2s ease;
}

.doc-item:hover .doc-icon {
    background: rgba(0, 224, 255, 0.2);
    border-color: rgba(0, 224, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
    transform: scale(1.05);
}

.doc-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}

.doc-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.doc-action {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 224, 255, 0.35);
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0, 224, 255, 0.05);
}

.doc-action:hover {
    background: rgba(0, 224, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
    transform: translateY(-1px);
}

.doc-action:active {
    transform: scale(0.97);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--darker);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 224, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 224, 255, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: rgba(0, 224, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(0, 224, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ============================================
   GLITCH
   ============================================ */

.glitch {
    position: relative;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
}

.glitch::before {
    color: var(--primary);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    color: var(--secondary);
    animation: glitch-anim-2 2.8s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -2px); }
    80% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 1px); }
    100% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, -1px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(70% 0 10% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(1px, 2px); }
    60% { clip-path: inset(20% 0 70% 0); transform: translate(-1px, -2px); }
    80% { clip-path: inset(60% 0 20% 0); transform: translate(2px, 1px); }
    100% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 2px); }
}

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

@media (max-width: 1024px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dossier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .armory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .protocol-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .bento-wide {
        grid-column: span 2;
    }

    .bento-timeline {
        grid-column: span 2;
    }

    .bento-alerts {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hud-nav {
        padding: 0 12px;
        gap: 6px;
    }

    .hud-nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .hud-nav-item i {
        font-size: 0.85rem;
    }

    .content-area {
        padding: 16px;
    }

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

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

    .dossier-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .hud-topbar-center {
        display: none;
    }

    .dashboard-rank {
        align-self: flex-start;
    }

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

    .bento-wide,
    .bento-timeline,
    .bento-alerts {
        grid-column: span 1;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-dot {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .access-card {
        padding: 32px 24px;
    }

    .access-header h1 {
        font-size: 1.4rem;
    }

    .access-actions {
        flex-direction: column;
    }

    .btn-access {
        width: 100%;
    }

    .hud-topbar {
        padding: 0 12px;
    }

    .brand-sub {
        display: none;
    }

    .hud-nav-item span {
        display: none;
    }

    .hud-nav-item {
        padding: 10px 14px;
    }

    .hud-nav-item i {
        font-size: 1rem;
    }

    .content-area {
        padding: 12px;
    }

    .kpi-value {
        font-size: 1.5rem;
    }

    .kpi-label {
        font-size: 0.75rem;
    }

    .dashboard-title {
        font-size: 1.05rem;
    }

    .dashboard-subtitle {
        font-size: 0.7rem;
    }

    .dossier-title {
        font-size: 1rem;
    }

    .dossier-subtitle {
        font-size: 0.7rem;
    }

    .armory-title {
        font-size: 1rem;
    }

    .armory-subtitle {
        font-size: 0.7rem;
    }

    .protocol-title {
        font-size: 1rem;
    }

    .protocol-subtitle {
        font-size: 0.7rem;
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .doc-action {
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 224, 255, 0.15);
}

.nav-item:focus-visible,
.bottom-nav-item:focus-visible,
.xbox-tile:focus-visible,
.hud-nav-item:focus-visible,
.tab-btn:focus-visible,
.doc-action:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 224, 255, 0.15);
}

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

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

/* ============================================
   MAGIC CARD OVERLAY
   ============================================ */

.magic-card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.magic-card-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.magic-card {
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 224, 255, 0.2);
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.magic-card-overlay.visible .magic-card {
    transform: scale(1);
}

.magic-card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e8ecf1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.magic-card-close:hover {
    background: rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.5);
    transform: rotate(90deg);
}

.magic-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.magic-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 224, 255, 0.15);
    border: 1px solid rgba(0, 224, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00e0ff;
}

.magic-card-title {
    color: #e8ecf1;
    font-size: 1.25rem;
    margin: 0;
}

.magic-card-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: #8a2be2;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.magic-card-body {
    color: #b8c5d6;
    line-height: 1.6;
}

.magic-card-body p {
    margin: 0 0 12px;
}

.magic-card-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.magic-card-body li {
    margin-bottom: 8px;
}

.magic-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7b8f;
    font-size: 0.85rem;
}

/* Bento item hover effect for clickability */
.bento-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 224, 255, 0.15);
}

.bento-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(0, 224, 255, 0.5);
}

.bento-item:hover::after {
    opacity: 1;
}

.bento-item {
    position: relative;
}


@media (prefers-color-scheme: light) {
    /* Mantener tema oscuro HUD por defecto; forzado para coherencia */
}
