:root {
    /* === PALETA CYBERPUNK DEEP === */
    --bg-deep: #020204;
    --bg-dark: #0a0a0f;
    --glass-bg: rgba(10, 10, 16, 0.7);
    --glass-border: rgba(100, 200, 255, 0.15);
    
    /* Cores Neon */
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-green: #0aff0a;
    --accent: var(--neon-blue);
    --accent-glow: rgba(0, 243, 255, 0.4);
    
    --text-main: #e0f2fe;
    --text-muted: #64748b;
    --danger: #ff0f5b;
    --success: #0aff0a;
    
    /* Tipos Pokémon (Cores vibrantes) */
    --normal: #A8A77A; --fire: #FF4400; --water: #0099FF;
    --electric: #FFCC00; --grass: #00FF55; --ice: #66FFFF;
    --fighting: #FF0000; --poison: #CC00FF; --ground: #FFAA00;
    --flying: #9999FF; --psychic: #FF0099; --bug: #AAFF00;
    --rock: #C8A048; --ghost: #663399; --dragon: #5500FF;
    --dark: #332211; --steel: #AAAAAA; --fairy: #FF66AA;

    --font-main: 'Exo 2', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
    
    --header-height: 70px;
    --dock-height: 80px;
}

/* === SCROLLBAR ESTILIZADA === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 16px;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* App travado na tela */
    position: fixed;
}

/* === BACKGROUND ANIMADO (Pokédex Digital) === */
.pokedex-bg {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    overflow: hidden;
    perspective: 1000px;
}

/* Grid 3D Movendo */
.grid-plane {
    position: absolute;
    width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform-origin: center;
    transform: rotateX(60deg) translateY(-20%);
    animation: gridMove 20s linear infinite;
    top: -50%; left: -50%;
}

@keyframes gridMove {
    0% { transform: rotateX(60deg) translateY(0); }
    100% { transform: rotateX(60deg) translateY(50px); }
}

/* Linha de Scan Estilo CRT */
.scan-line {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.02) 51%, transparent 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 0;
}

/* Partículas Flutuantes */
.p-blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
    animation: floatBlob 20s infinite ease-in-out alternate;
}
.b1 { width: 400px; height: 400px; background: var(--neon-purple); top: -10%; left: 10%; animation-delay: 0s; }
.b2 { width: 300px; height: 300px; background: var(--neon-blue); bottom: -10%; right: 10%; animation-delay: -5s; }
.b3 { width: 250px; height: 250px; background: var(--neon-green); top: 40%; left: 40%; animation-delay: -10s; opacity: 0.15; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.3; }
    33% { transform: translate(30px, -50px) scale(1.1) rotate(120deg); opacity: 0.5; }
    66% { transform: translate(-20px, 20px) scale(0.9) rotate(240deg); opacity: 0.3; }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); opacity: 0.3; }
}

.vignette {
    position: absolute; inset: 0;
    background: radial-gradient(circle, transparent 40%, #000 120%);
    z-index: 0;
}

/* === HEADER === */
.main-header {
    height: var(--header-height);
    background: rgba(2, 2, 4, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: absolute; top: 0; left: 0; width: 100%;
    z-index: 50; display: flex; align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.header-content {
    width: 100%; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon-wrapper {
    width: 40px; height: 40px; 
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; 
    box-shadow: 0 0 10px var(--accent-glow);
}
.logo-area h1 {
    font-family: var(--font-tech); font-size: 1.8rem; letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    line-height: 1;
}
.logo-area span { color: var(--accent); }
.logo-area small { font-size: 0.6rem; color: var(--text-muted); opacity: 0.7; margin-left: 5px; }

/* Indicador de Página */
.page-indicator {
    font-family: var(--font-tech);
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

/* Botões Globais */
.btn-primary {
    background: var(--accent); color: #000;
    border: none; padding: 10px 20px; border-radius: 4px;
    font-family: var(--font-tech); font-weight: 700; text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.3s;
}
.btn-primary:hover { background: #fff; box-shadow: 0 0 15px var(--accent); }
.glow-effect { animation: pulseGlow 3s infinite; }

@keyframes pulseGlow { 0% { box-shadow: 0 0 5px var(--accent-glow); } 50% { box-shadow: 0 0 20px var(--accent-glow); } 100% { box-shadow: 0 0 5px var(--accent-glow); } }

/* === NAV ARROWS === */
.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    color: var(--accent); width: 40px; height: 60px;
    z-index: 45; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.2rem; transition: all 0.3s;
    backdrop-filter: blur(5px);
}
.nav-arrow:active { background: var(--accent); color: #000; }
.nav-arrow.prev { left: 0; border-radius: 0 10px 10px 0; border-left: none; }
.nav-arrow.next { right: 0; border-radius: 10px 0 0 10px; border-right: none; }

/* Desktop Hover */
@media (min-width: 768px) {
    .nav-arrow { width: 50px; height: 80px; font-size: 1.5rem; background: rgba(0,0,0,0.2); }
    .nav-arrow:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent); }
}

/* === APP CONTAINER (Horizontal Scroll Snap) === */
.app-container {
    position: absolute;
    top: var(--header-height);
    bottom: 0;
    left: 0; width: 100%;
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* === TEAM WRAPPER (CORREÇÃO DE FOCO) === */
.team-wrapper {
    flex: 0 0 100vw;
    height: 100%;
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    padding: 0; margin: 0;
    
    /* Configuração Normal (Sem mouse em cima) */
    opacity: 1; /* Totalmente visível */
    transform: none; /* Tamanho normal */
    filter: grayscale(100%); /* Apenas fica cinza */
    
    transition: filter 0.3s ease; /* Transição suave apenas da cor */
}

/* Quando o mouse passa ou se interage com o time */
.team-wrapper:hover, .team-wrapper:focus-within {
    filter: grayscale(0%); /* Volta a cor original */
}

/* No mobile, removemos o grayscale para facilitar a visualização direta */
@media (max-width: 768px) { 
    .team-wrapper { filter: none; } 
}

.team-header-bar {
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(0,243,255,0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.team-header-bar h3 { 
    font-family: var(--font-tech); font-size: 1.6rem; text-transform: uppercase; color: #fff;
    border-left: 4px solid var(--accent); padding-left: 10px;
}

.icon-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted); width: 32px; height: 32px; border-radius: 4px;
    cursor: pointer; margin-left: 5px; transition: 0.2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-del:hover { border-color: var(--danger); color: var(--danger); }

/* Dashboard Grid */
.dashboard-grid {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 180px; 
    display: flex; flex-direction: column; gap: 20px;
    max-width: 1200px; margin: 0 auto; width: 100%;
}

/* === SLOTS GRID === */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* Card do Pokémon */
.slot-card {
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 0 15px 0 15px; /* Corte futurista */
    min-height: 110px;
    position: relative; overflow: hidden;
    display: flex; align-items: stretch;
    transition: transform 0.2s;
    backdrop-filter: blur(5px);
}
.slot-card::before {
    content: ''; position: absolute; left: 0; bottom: 0; width: 4px; height: 100%;
    background: rgba(255,255,255,0.2);
}

.slot-content-wrapper { width: 100%; display: flex; align-items: center; gap: 15px; padding: 10px 15px; }

/* Estado Vazio */
.slot-card.empty {
    border: 1px dashed rgba(255,255,255,0.2); background: rgba(0,0,0,0.3);
    cursor: pointer;
}
.slot-card.empty:hover { border-color: var(--accent); box-shadow: inset 0 0 20px rgba(0,243,255,0.1); }
.slot-card.empty .slot-content-wrapper { justify-content: center; flex-direction: column; color: var(--text-muted); }
.slot-card.empty i { font-size: 2rem; margin-bottom: 5px; }

.slot-img {
    width: 90px; height: 90px; object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
    z-index: 2; transition: transform 0.3s;
}
.slot-card:hover .slot-img { transform: scale(1.1); }

.slot-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; z-index: 2; }

.slot-nickname {
    font-family: var(--font-tech); font-size: 1.3rem; font-weight: 700; 
    color: #fff; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.species-hint { font-family: var(--font-main); font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 400; text-transform: uppercase; }

.types-row { display: flex; gap: 5px; margin: 4px 0; }
.type-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 2px 8px; border-radius: 2px; color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slot-ability {
    font-size: 0.75rem; color: var(--accent); margin-top: 5px;
    display: flex; align-items: center; gap: 5px; cursor: pointer;
}

.btn-remove-slot {
    position: absolute; right: 0; top: 0; bottom: 0; width: 30px;
    background: rgba(0,0,0,0.5); border: none; color: var(--danger);
    font-size: 1rem; cursor: pointer; opacity: 0; transition: 0.2s;
}
.slot-card:hover .btn-remove-slot { opacity: 1; }

/* === STATS PANEL & COBERTURA DEFENSIVA === */
.stats-panel {
    background: rgba(10, 10, 16, 0.8);
    padding: 20px; border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.stats-panel h4 { 
    font-family: var(--font-tech); color: var(--accent); margin-bottom: 15px; 
    font-size: 1.2rem; text-transform: uppercase; 
    border-bottom: 2px solid rgba(0, 243, 255, 0.1); padding-bottom: 8px;
    display: flex; justify-content: space-between;
}

.defense-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); 
    gap: 8px; 
}

.type-box {
    background: rgba(0,0,0,0.4); 
    border-radius: 4px; overflow: hidden; text-align: center; 
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
}

.type-label { 
    display: block; font-size: 0.6rem; font-weight: 800; color: #fff; 
    padding: 3px 0; background: rgba(255,255,255,0.1); text-transform: uppercase;
}
.type-val { 
    display: block; font-size: 1rem; padding: 5px 0; 
    font-family: var(--font-tech); color: #888; 
    background: rgba(0,0,0,0.2); font-weight: 700;
}
.val-good { color: var(--success); text-shadow: 0 0 8px rgba(10, 255, 10, 0.3); background: rgba(10, 255, 10, 0.05); }
.val-bad { color: var(--danger); text-shadow: 0 0 8px rgba(255, 15, 91, 0.3); background: rgba(255, 15, 91, 0.05); }

/* === MOBILE DOCK === */
.mobile-dock {
    position: fixed; bottom: 20px; left: 0; width: 100%;
    z-index: 90; display: flex; justify-content: center; pointer-events: none;
}
.dock-glass {
    pointer-events: auto;
    background: rgba(10, 10, 16, 0.9); backdrop-filter: blur(20px);
    border: 1px solid var(--accent);
    padding: 10px 25px; border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    display: flex; align-items: center; gap: 20px;
}
.dock-btn {
    background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.dock-icon {
    width: 45px; height: 45px; background: var(--accent); color: #000;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    box-shadow: 0 0 15px var(--accent-glow); transition: 0.2s;
}
.dock-btn:active .dock-icon { transform: scale(0.9); }
.dock-label { color: var(--accent); font-family: var(--font-tech); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }

.dock-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }
.dock-info { color: var(--text-muted); font-size: 0.7rem; font-family: monospace; letter-spacing: 1px; }

/* === MODAIS === */
.modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: 0.3s;
}
.modal:not(.hidden) { opacity: 1; pointer-events: auto; }

.modal-glass {
    width: 100%; max-height: 90vh;
    background: #0d0d12; border-top: 2px solid var(--accent);
    border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.8);
}
.modal:not(.hidden) .modal-glass { transform: translateY(0); }

@media (min-width: 768px) {
    .modal { align-items: center; justify-content: center; }
    .modal-glass { 
        width: 500px; max-height: 85vh; border: 1px solid var(--accent); border-radius: 10px; 
        transform: scale(0.9); opacity: 0;
    }
    .modal:not(.hidden) .modal-glass { transform: scale(1); opacity: 1; }
    .modal-glass.wide { width: 900px; }
    .slots-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
    .desktop-only { display: flex; }

    /* CORREÇÃO DO DOCK NO PC: Desaparece completamente */
    .mobile-dock { display: none !important; }
}

.modal-header {
    padding: 15px 20px; background: rgba(255,255,255,0.02);
    display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-header h3 { font-family: var(--font-tech); color: var(--accent); font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.btn-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }

.modal-body, #search-view, #preview-view { padding: 20px; overflow-y: auto; }
.modal-body.no-padding { padding: 0; }

/* === PREFERÊNCIAS === */
.pref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pref-grid.single-col { grid-template-columns: 1fr; }

.check-box-card {
    position: relative; cursor: pointer;
}
.check-box-card input { display: none; }
.check-box-card .card-content {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    padding: 12px; border-radius: 4px; color: var(--text-muted);
    font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
    transition: 0.2s;
}
.check-box-card input:checked + .card-content {
    background: rgba(0, 243, 255, 0.1); border-color: var(--accent);
    color: var(--accent); box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.divider-text {
    font-family: var(--font-tech); color: #fff; font-size: 0.9rem;
    margin: 20px 0 10px 0; opacity: 0.5; letter-spacing: 1px;
}

/* Switch Custom */
.switch-container {
    display: flex; align-items: center; cursor: pointer; gap: 15px;
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: 6px;
    border: 1px solid var(--glass-border);
}
.switch-container input { display: none; }
.checkmark {
    width: 40px; height: 20px; background: #333; border-radius: 20px; position: relative; transition: 0.3s;
}
.checkmark::after {
    content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px;
    background: #fff; border-radius: 50%; transition: 0.3s;
}
.switch-container input:checked ~ .checkmark { background: var(--accent); }
.switch-container input:checked ~ .checkmark::after { transform: translateX(20px); background: #000; }
.label-title { display: block; color: var(--text-main); font-weight: 700; font-family: var(--font-tech); font-size: 1.1rem; }
.label-desc { display: block; color: var(--text-muted); font-size: 0.8rem; }

/* === LAYOUT DE RESULTADO IA (Corrigido) === */
.ai-result-layout {
    display: flex;
    flex-direction: column;
    /* No mobile, a altura é automática e o scroll é na página toda */
    height: auto; 
    max-height: 70vh;
    overflow-y: auto; 
}

.result-column {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

/* Desktop Split View (Correção Layout) */
@media (min-width: 768px) {
    .ai-result-layout {
        display: grid;
        grid-template-columns: 1.4fr 1fr; /* Lista maior, Stats menor */
        height: 500px; /* Altura fixa */
        overflow: hidden; /* Remove scroll do container pai */
        max-height: none;
    }

    /* Coluna Esquerda: LISTA DE POKÉMON (Com Scroll) */
    .result-column.candidates-col {
        overflow-y: auto; 
        height: 100%;
        border-bottom: none;
        padding-right: 15px;
    }

    /* Coluna Direita: ESTATÍSTICAS (Fixa) */
    .result-column.stats-col {
        overflow-y: hidden;
        height: 100%;
        border-left: 1px solid var(--glass-border);
        border-bottom: none;
        background: rgba(0,0,0,0.2);
    }
}

.result-column h4 { 
    font-family: var(--font-tech); color: var(--accent); margin-bottom: 15px; 
    font-size: 1rem; letter-spacing: 1px;
}

.result-cards-container { display: flex; flex-direction: column; gap: 10px; }
.result-card {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    cursor: pointer; transition: 0.2s;
}
.result-card:hover, .result-card.selected {
    background: rgba(0, 243, 255, 0.1); border-color: var(--accent);
}
.result-card img { width: 50px; height: 50px; }
.result-info div:first-child { color: #fff; font-weight: 700; }
.result-info div:last-child { color: var(--text-muted); font-size: 0.8rem; }
.match-badge { margin-left: auto; color: var(--success); font-family: var(--font-tech); font-weight: 700; }

.modal-footer {
    padding: 15px 20px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; gap: 10px; justify-content: flex-end;
}

/* Inputs e Forms */
input[type="text"], select {
    width: 100%; padding: 12px; background: #000;
    border: 1px solid var(--glass-border); border-radius: 4px;
    color: var(--accent); font-family: monospace; font-size: 1rem;
    outline: none; transition: 0.3s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(0,243,255,0.1); }
::placeholder { color: rgba(255,255,255,0.3); }

/* Holo Card no Modal */
.holo-card-wrapper { text-align: center; margin-bottom: 20px; position: relative; }
.holo-card {
    width: 140px; height: 140px; margin: 0 auto 10px;
    border: 2px solid var(--accent); border-radius: 50%;
    position: relative; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(0,243,255,0.1) 0%, transparent 70%);
}
.card-grid-bg {
    position: absolute; inset: 0; border-radius: 50%;
    background-image: radial-gradient(rgba(0,243,255,0.2) 1px, transparent 1px); background-size: 10px 10px;
}
.scan-bar {
    position: absolute; width: 100%; height: 2px; background: var(--accent);
    top: 0; animation: scanDown 2s infinite linear; opacity: 0.7; box-shadow: 0 0 10px var(--accent);
}
@keyframes scanDown { 0% { top: 0; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

#preview-img { width: 100px; height: 100px; object-fit: contain; z-index: 2; filter: drop-shadow(0 0 5px var(--accent)); }

/* Botões de Ação */
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.btn-confirm {
    background: var(--accent); color: #000; border: none; padding: 14px;
    font-family: var(--font-tech); font-weight: 700; cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.btn-secondary {
    background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted);
    padding: 14px; font-family: var(--font-tech); font-weight: 700; cursor: pointer;
}

/* Loader */
.loader-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95); display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tech-loader {
    width: 80px; height: 80px; position: relative;
    border: 2px solid rgba(255,255,255,0.1); border-radius: 50%;
}
.outer-ring {
    position: absolute; inset: -5px; border: 2px solid transparent; border-top-color: var(--accent); border-radius: 50%;
    animation: spin 1s linear infinite;
}
.scan-laser {
    position: absolute; width: 100%; height: 2px; background: var(--danger); top: 50%;
    animation: scanLaser 1s ease-in-out infinite alternate;
    box-shadow: 0 0 10px var(--danger);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scanLaser { 0% { transform: translateY(-30px); opacity: 0.2; } 100% { transform: translateY(30px); opacity: 1; } }
.loader-text { margin-top: 20px; font-family: var(--font-tech); color: var(--accent); letter-spacing: 2px; animation: pulse 1s infinite; }

/* Utilidades */
.hidden { display: none !important; }
.full-width { width: 100%; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: flex; } }
@media (min-width: 768px) {
    .dashboard-grid {
        /* Reduz de 180px para apenas 20px ou 40px no PC */
        padding-bottom: 20px !important; 
    }
}

/* ==========================================================================
   OTIMIZAÇÃO DE PERFORMANCE MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Desativar Blur (Vidro) */
    .main-header, 
    .dock-glass, 
    .modal-glass, 
    .slot-card, 
    .stats-panel,
    .nav-arrow {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Cores sólidas no mobile */
    .main-header { background: rgba(2, 2, 4, 0.95); }
    .dock-glass { background: #0a0a10; border: 1px solid var(--accent); }
    .slot-card { background: #0f141e; }
    .stats-panel { background: #0a0a10; }

    /* 2. Simplificar Background */
    .grid-plane { display: none; }
    
    .p-blob {
        animation: none !important;
        opacity: 0.15;
        filter: blur(40px);
    }

    /* 3. Otimizar Sombras e Scroll */
    .slot-card, .dock-icon, .btn-primary { box-shadow: none !important; }
    .slot-card.empty:active { box-shadow: 0 0 10px var(--accent) !important; }

    .app-container {
        -webkit-overflow-scrolling: touch;
        will-change: scroll-position;
    }
    
    .team-wrapper {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* === PERFIL DO USUÁRIO NO HEADER === */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

#user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
    box-shadow: 0 0 10px var(--accent-glow);
}

#user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent);
}

/* Menu Dropdown Cyberpunk */
.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 250px;
    background: rgba(10, 10, 16, 0.95);
    border: 1px solid var(--accent);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

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

.dropdown-header {
    padding: 15px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 243, 255, 0.05);
}

#user-name-display {
    font-family: var(--font-tech);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

#user-email-display {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.dropdown-item {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-tech);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 20px;
}

.dropdown-item.danger {
    color: var(--danger);
}
.dropdown-item.danger:hover {
    background: rgba(255, 15, 91, 0.1);
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    #user-avatar { width: 38px; height: 38px; }
    .user-dropdown { width: 220px; right: -10px; }
}

/* ==========================================================================
   CORREÇÃO: SEARCH E DROPDOWN (Busca de Espécime)
   ========================================================================== */

/* Wrapper da busca para garantir posicionamento relativo do dropdown */
.search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Input de busca estilo Cyberpunk */
#poke-search {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Espaço para o ícone da lupa */
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1.1rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

#poke-search:focus {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    background: rgba(0, 0, 0, 0.8);
}

/* Ícone da lupa dentro do input */
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Dropdown de Resultados (Lista flutuante) */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0d0d12;
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Item individual da lista */
.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

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

.search-item:hover {
    background: rgba(0, 243, 255, 0.1);
    padding-left: 20px; /* Efeito de deslize */
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.search-item span {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    color: #fff;
    text-transform: capitalize;
    font-weight: 600;
}

/* Placeholder (Estado vazio antes de buscar) */
.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.6;
}

.search-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent);
    animation: pulse 2s infinite;
}

.search-placeholder p {
    font-family: var(--font-tech);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

/* ==========================================================================
   CORREÇÃO: PREVIEW CARD E TIPOS
   ========================================================================== */

/* Garante que o texto dos tipos seja sempre branco e legível */
.type-badge {
    color: #fff !important; /* Força branco */
    text-shadow: 0 1px 3px rgba(0,0,0,0.9); /* Sombra preta para contraste */
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Centraliza os tipos no preview */
#preview-types {
    justify-content: center;
    margin-top: 10px;
}

/* ==========================================================================
   CORREÇÃO: SELECT (Seta estranha)
   ========================================================================== */

/* Wrapper para posicionar a seta customizada */
.select-wrapper {
    position: relative;
    width: 100%;
}

/* O Select em si */
.select-wrapper select {
    width: 100%;
    appearance: none; /* Remove a seta padrão feia do navegador */
    -webkit-appearance: none;
    background: #050508;
    cursor: pointer;
    padding-right: 40px; /* Espaço para a seta customizada não ficar em cima do texto */
}

/* A seta customizada (ícone) */
.select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    pointer-events: none; /* Permite clicar no select através do ícone */
    font-size: 0.9rem;
}

/* Métricas no Slot (Altura e Peso) */
.slot-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 4px;
    opacity: 0.8;
}

.slot-metrics i {
    color: var(--accent);
    margin-right: 2px;
}

.metrics-divider {
    color: rgba(255, 255, 255, 0.1);
}

/* Ajuste no form grid para caber o gênero */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* No mobile, empilha */
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .control-group[style*="span 2"] { grid-column: span 1 !important; }
}

/* === MODAL DE DETALHES (LAYOUT) === */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.detail-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 20px;
}

.holo-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,243,255,0.1) 0%, transparent 70%);
    border: 1px dashed var(--accent);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    margin-bottom: 15px;
}
.holo-circle img { width: 110px; height: 110px; object-fit: contain; z-index: 2; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }

.detail-metrics {
    margin-top: 10px;
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Setas de Navegação do Modal */
.nav-arrow-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}
.nav-arrow-modal:hover { background: var(--accent); color: #000; }
.nav-arrow-modal.prev { left: -20px; }
.nav-arrow-modal.next { right: -20px; }

/* === TOAST NOTIFICATIONS (Substitui Alert) === */
.toast-container {
    position: fixed; top: 20px; right: 20px;
    z-index: 20000;
    display: flex; flex-direction: column; gap: 10px;
}

.toast {
    background: rgba(10, 10, 16, 0.95);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 15px;
    color: #fff;
    font-family: var(--font-tech);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(5px);
}
.toast.error { border-color: var(--danger); }
.toast.success { border-color: var(--success); }
.toast i { font-size: 1.2rem; }
.toast.error i { color: var(--danger); }
.toast.success i { color: var(--success); }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* === CUSTOM CONFIRM === */
.warning-border { border-color: var(--danger); box-shadow: 0 0 20px rgba(255, 15, 91, 0.2); }
.danger-bg { background: var(--danger); color: #fff; }
.danger-bg:hover { background: #ff4477; box-shadow: 0 0 15px var(--danger); }

/* Responsividade do Modal Detalhes */
@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-visual { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; padding-right: 0; }
    .nav-arrow-modal.prev { left: 10px; }
    .nav-arrow-modal.next { right: 10px; }
}

/* === MELHORIAS VISUAIS DO MODAL === */

/* Ajuste das setas para ficarem na lateral do card, estilo slideshow */
.nav-arrow-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 50px; height: 80px; /* Maior área de clique */
    border-radius: 4px;
    cursor: pointer;
    z-index: 200; /* Garante que fique acima de tudo */
    transition: all 0.2s;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}
.nav-arrow-modal:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-arrow-modal.prev { left: -25px; } /* Sai um pouco para fora do modal */
.nav-arrow-modal.next { right: -25px; }

/* Holo Circle melhorado */
.holo-circle.large {
    width: 180px; height: 180px;
    position: relative;
    margin-bottom: 20px;
}
.holo-circle img {
    width: 140px; height: 140px;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.4));
    animation: floatPokemon 3s ease-in-out infinite;
}

/* Animação de Scan Vertical */
.scan-laser-vertical {
    position: absolute; left: 0; right: 0; height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    opacity: 0.6;
    animation: scanVertical 2s linear infinite;
    z-index: 10;
}
@keyframes scanVertical { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Inputs de Altura e Peso */
.detail-metrics-edit {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    width: 100%;
}
.metric-group { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.metric-group label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.metric-group input {
    background: transparent; border: none; border-bottom: 1px solid var(--glass-border);
    text-align: center; font-size: 1.1rem; color: var(--accent); font-family: var(--font-tech);
    padding: 5px; width: 80px; border-radius: 0;
}
.metric-group input:focus { border-bottom-color: var(--accent); box-shadow: none; }
.metric-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* Animação de Troca de Pokémon (Glitch Effect) */
@keyframes glitchAnim {
    0% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 1; }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 2px); opacity: 0.8; }
    40% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); opacity: 0.6; }
    60% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 0); opacity: 0.8; }
    100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 1; }
}

.animating-change {
    animation: glitchAnim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    filter: brightness(1.2) contrast(1.1);
}

@keyframes floatPokemon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsividade Mobile das Setas */
@media (max-width: 768px) {
    .nav-arrow-modal { width: 40px; height: 60px; background: rgba(0,0,0,0.9); }
    .nav-arrow-modal.prev { left: 0; border-left: none; border-radius: 0 5px 5px 0; }
    .nav-arrow-modal.next { right: 0; border-right: none; border-radius: 5px 0 0 5px; }
}

/* Container dos inputs divididos */
.split-inputs {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

/* Input da parte inteira (maior) */
.input-main {
    width: 50px !important;
    text-align: right !important;
    font-size: 1.2rem !important;
    border-bottom: 1px solid var(--accent) !important;
}

/* Input da parte decimal (menor) */
.input-sub {
    width: 40px !important;
    text-align: left !important;
    font-size: 1rem !important;
    color: var(--text-muted) !important; /* Cor mais apagada para o decimal */
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}

/* Ponto separador piscando levemente */
.dot {
    font-family: var(--font-tech);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 5px;
    animation: blinkDot 2s infinite;
}

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

/* Remove as setas (spinners) dos inputs number para ficar limpo */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    appearance: none;
    -moz-appearance: textfield; /* Firefox */
}

/* Estilos para animação de evolução */
.evolution-animation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.evolution-pokemon {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.evolution-pokemon.original img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,243,255,0.5));
    animation: pulseOriginal 1s infinite;
}

.evolution-pokemon.evolved img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--neon-purple)) brightness(0.5);
    opacity: 0.3;
    transition: all 0.3s;
}

.evolution-arrow {
    font-size: 3rem;
    color: var(--accent);
    animation: pulse 1s infinite;
}

.evolution-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.evolution-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    width: 0%;
    transition: width 0.1s linear;
}

.evolution-pokemon.evolved.active img {
    filter: drop-shadow(0 0 15px var(--neon-purple)) brightness(1);
    opacity: 1;
    animation: evolvePop 0.5s ease-out;
}

@keyframes pulseOriginal {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes evolvePop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes dnaHelix {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* ==========================================================================
   PWA & FULLSCREEN STYLES
   ========================================================================== */

/* Estilo para quando estiver em modo PWA (standalone) */
body.pwa-mode {
  /* Para iOS: evita bounce scroll */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  
  /* Para Android: preenche as áreas seguras */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Estilo para modo tela cheia */
body.fullscreen-mode {
  /* Ajustes para quando estiver em tela cheia */
  overflow: hidden;
}

/* Ajuste do header em modo PWA (iOS) */
@media (display-mode: standalone) {
  .main-header {
    padding-top: env(safe-area-inset-top);
    background: rgba(2, 2, 4, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: calc(var(--header-height) + env(safe-area-inset-top));
  }
  
  .app-container {
    height: calc(100vh - var(--header-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  
  /* Ajustar dock mobile para área segura */
  .mobile-dock {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
  
  /* Ajustar modal para não ficar atrás da notch */
  .modal-glass {
    padding-top: env(safe-area-inset-top);
  }
  
  /* Para iOS com notch: ajustar conteúdo */
  @supports (padding: max(0px)) {
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
  }
}

/* Estilo para offline mode */
body.offline .team-wrapper {
  filter: grayscale(50%) brightness(0.8);
}

body.offline::before {
  content: 'OFFLINE';
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  z-index: 10000;
  animation: pulseOffline 2s infinite;
}

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

/* Estilo para toast de atualização */
.toast.update {
  background: rgba(188, 19, 254, 0.9);
  border-left-color: var(--neon-purple);
}

.btn-update {
  background: white;
  color: var(--neon-purple);
  border: none;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 3px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.2s;
}

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

/* Ajustes para Safari em iOS */
@supports (-webkit-touch-callout: none) {
  body {
    /* Safari specific adjustments */
    min-height: -webkit-fill-available;
  }
  
  .app-container {
    height: -webkit-fill-available;
    height: fill-available;
  }
}

/* Prevenir zoom em inputs em iOS */
input, select, textarea {
  font-size: 16px !important; /* Prevents iOS zoom */
}

/* Ajustar tamanho da fonte para inputs em iOS */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   STATUS BAR COLORS (Android Chrome)
   ========================================================================== */

/* Para Chrome no Android */
@media (display-mode: standalone) {
  /* Theme color para status bar */
  meta[name="theme-color"] {
    content: #00f3ff;
  }
}

/* ==========================================================================
   SPLASH SCREEN (Opcional)
   ========================================================================== */

/* Estilo para splash screen personalizada */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s;
}

.splash-content {
  text-align: center;
  padding: 20px;
}

.splash-loader {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(0, 243, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--neon-blue);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.splash-text {
  font-family: var(--font-tech);
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 20px;
  letter-spacing: 2px;
}

/* ==========================================================================
   INSTALL PROMPT ANIMATIONS
   ========================================================================== */

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}