/* ==========================================================================
   CROMOSWAP - SYSTEM DESIGN & STYLE SYSTEM (MUNDIAL 2026)
   ========================================================================== */

/* Variables de Diseño (Tokens HSL) */
:root {
    --bg-primary: hsl(224, 71%, 4%);
    --bg-secondary: hsl(222, 47%, 9%);
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    /* Tipografía y Textos */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 65%);
    --text-dark: hsl(222, 47%, 11%);
    
    /* Estados de Cromos */
    --owned-color: hsl(170, 100%, 45%);
    --owned-glow: rgba(0, 242, 254, 0.35);
    --owned-bg: rgba(0, 242, 254, 0.1);
    
    --duplicate-color: hsl(35, 100%, 50%);
    --duplicate-glow: rgba(255, 123, 0, 0.4);
    --duplicate-bg: rgba(255, 123, 0, 0.12);
    
    --missing-color: hsl(215, 15%, 25%);
    --missing-bg: rgba(255, 255, 255, 0.03);
    
    /* Categorías Especiales */
    --shield-color: hsl(45, 100%, 55%);
    --shield-glow: rgba(249, 212, 35, 0.5);
    
    --elite-color: hsl(328, 100%, 54%);
    --elite-glow: rgba(255, 0, 128, 0.6);
    
    /* Gradientes */
    --grad-cosmic: linear-gradient(135deg, hsl(224, 71%, 4%) 0%, hsl(260, 50%, 8%) 100%);
    --grad-gold: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    --grad-neon: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    --grad-hologram: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%);

    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    background: var(--grad-cosmic);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Glassmorphism General */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Encabezado Fijo Superior */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-wrap {
    width: 38px;
    height: 38px;
    background: var(--grad-neon);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.logo-icon {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--grad-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-top: -1px;
}

/* Indicador de Progreso Circular en Header */
.global-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.progress-info span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--owned-color);
}

.progress-info .sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: -3px;
}

.circular-progress {
    width: 40px;
    height: 40px;
}

.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--owned-color);
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenedor de Pantallas */
.main-content {
    margin-top: 70px;
    margin-bottom: calc(75px + var(--safe-area-bottom));
    padding: 20px;
    min-height: calc(100vh - 145px - var(--safe-area-bottom));
}

/* Pantallas y Control de Pestañas */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

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

/* Encabezados de Pantalla */
.view-header {
    margin-bottom: 20px;
}

.view-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.view-header .view-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Barra de Filtros y Búsqueda */
.filters-bar {
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    height: 44px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding-left: 44px;
    padding-right: 14px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
}

.search-box input:focus {
    border-color: var(--owned-color);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.filter-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--text-main);
    color: var(--text-dark);
    border-color: var(--text-main);
}

/* Grilla de Estadísticas Rápidas */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
}

.stat-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrap i {
    width: 16px;
    height: 16px;
}

.bg-owned { background: rgba(0, 242, 254, 0.2); color: var(--owned-color); }
.bg-duplicate { background: rgba(255, 123, 0, 0.2); color: var(--duplicate-color); }
.bg-missing { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.owned-glow:hover { box-shadow: 0 0 15px rgba(0, 242, 254, 0.1); border-color: rgba(0, 242, 254, 0.2); }
.duplicate-glow:hover { box-shadow: 0 0 15px rgba(255, 123, 0, 0.1); border-color: rgba(255, 123, 0, 0.2); }
.missing-glow:hover { border-color: var(--border-hover); }

.stat-data h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-data span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Listado de Equipos (Mundial 48 equipos) */
.teams-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-card {
    padding: 16px;
    border-radius: 14px;
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-flag-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.team-name-wrap h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.team-name-wrap span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.team-progress-info {
    text-align: right;
}

.team-progress-info .percent {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--owned-color);
}

.team-progress-info .fraction {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-top: -2px;
}

/* Barra de progreso sutil de equipo */
.team-progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 14px;
    overflow: hidden;
}

.team-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--owned-color);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grilla de Figuritas dentro del equipo */
.cromo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Cromo Individual */
.cromo-item {
    aspect-ratio: 1 / 1.15;
    background: var(--missing-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cromo-item span.cromo-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cromo-item span.cromo-tag {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Hover & Estados en Cromo */
.cromo-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
}

/* Cromo Especial / Escudo (Badge) */
.cromo-item.special-badge {
    border: 1px dashed rgba(249, 212, 35, 0.3);
    background: rgba(249, 212, 35, 0.02);
}
.cromo-item.special-badge span.cromo-number {
    color: var(--shield-color);
}
.cromo-item.special-badge span.cromo-tag {
    color: var(--shield-color);
}

/* Cromo Élite */
.cromo-item.elite-player {
    border: 1px dashed rgba(255, 0, 128, 0.35);
    background: rgba(255, 0, 128, 0.03);
}
.cromo-item.elite-player span.cromo-number {
    color: var(--elite-color);
}
.cromo-item.elite-player span.cromo-tag {
    color: var(--elite-color);
    font-weight: 800;
}

/* Cromo Estado: Obtenido ("Tengo") */
.cromo-item.state-owned {
    background: var(--owned-bg);
    border: 1.5px solid var(--owned-color);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}
.cromo-item.state-owned span.cromo-number,
.cromo-item.state-owned span.cromo-tag {
    color: var(--owned-color);
}

/* Cromo Estado: Repetido */
.cromo-item.state-duplicate {
    background: var(--duplicate-bg);
    border: 1.5px solid var(--duplicate-color);
    box-shadow: 0 0 10px rgba(255, 123, 0, 0.15);
}
.cromo-item.state-duplicate span.cromo-number,
.cromo-item.state-duplicate span.cromo-tag {
    color: var(--duplicate-color);
}

/* Marcador visual en esquina para repetido (soporta múltiples repetidas +1, +2, +3) */
.cromo-item .duplicate-pill {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--duplicate-color);
    color: var(--text-dark);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1.1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    animation: scaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Animaciones e Iluminaciones */
.cromo-item.state-owned.special-badge,
.cromo-item.state-duplicate.special-badge {
    border-color: var(--shield-color);
    box-shadow: 0 0 12px var(--shield-glow);
}
.cromo-item.state-owned.special-badge span.cromo-number,
.cromo-item.state-owned.special-badge span.cromo-tag,
.cromo-item.state-duplicate.special-badge span.cromo-number,
.cromo-item.state-duplicate.special-badge span.cromo-tag {
    color: var(--shield-color);
}

/* Efecto brillo holográfico para escudo brillando */
.cromo-item.special-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: var(--grad-hologram);
    transform: skewX(-20deg);
    animation: holo-sweep 4s infinite linear;
}

@keyframes holo-sweep {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Pulsación Élite */
.cromo-item.elite-player.state-owned,
.cromo-item.elite-player.state-duplicate {
    border-color: var(--elite-color);
    box-shadow: 0 0 14px var(--elite-glow);
    animation: elite-pulse 2s infinite ease-in-out;
}
.cromo-item.elite-player.state-owned span.cromo-number,
.cromo-item.elite-player.state-owned span.cromo-tag,
.cromo-item.elite-player.state-duplicate span.cromo-number,
.cromo-item.elite-player.state-duplicate span.cromo-tag {
    color: var(--elite-color);
}

@keyframes elite-pulse {
    0% { box-shadow: 0 0 10px rgba(255, 0, 128, 0.4); }
    50% { box-shadow: 0 0 18px rgba(255, 0, 128, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 128, 0.4); }
}

/* Pantalla de Importación */
.import-card {
    margin-bottom: 20px;
}

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

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    width: 20px;
    height: 20px;
}

.text-owned { color: var(--owned-color); }
.text-duplicate { color: var(--duplicate-color); }

.card-title h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.badge-owned { background: rgba(0, 242, 254, 0.15); color: var(--owned-color); }
.badge-duplicate { background: rgba(255, 123, 0, 0.15); color: var(--duplicate-color); }

.desc-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.textarea-wrap {
    width: 100%;
    margin-bottom: 16px;
}

.textarea-wrap textarea {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.8rem;
    outline: none;
    resize: none;
    transition: border-color 0.25s ease;
}

.textarea-wrap textarea:focus {
    border-color: var(--border-hover);
}

/* Botones Premium */
.btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--owned-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--duplicate-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.25);
}
.btn-accent:hover {
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-glass);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.button-group-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.button-group-row .btn {
    flex: 1;
}

/* Matchmaker (Cruces) */
.empty-state {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.empty-icon {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

.match-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px;
    margin-bottom: 20px;
}

.summary-team {
    text-align: center;
}

.summary-team .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.summary-team .count {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 4px 0;
}

.summary-team .sub-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.summary-divider {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-divider i {
    width: 20px;
    height: 20px;
}

.match-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 12px 0;
}

.match-section-title i {
    width: 18px;
    height: 18px;
    color: var(--owned-color);
}

.match-section-title h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

.cromo-grid-sm {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.cromo-badge {
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.cromo-badge strong {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
}

.cromo-badge.badge-premium-shield {
    border-color: var(--shield-color);
    background: rgba(249, 212, 35, 0.05);
}
.cromo-badge.badge-premium-shield strong,
.cromo-badge.badge-premium-shield span {
    color: var(--shield-color);
}

.cromo-badge.badge-premium-elite {
    border-color: var(--elite-color);
    background: rgba(255, 0, 128, 0.05);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.2);
}
.cromo-badge.badge-premium-elite strong,
.cromo-badge.badge-premium-elite span {
    color: var(--elite-color);
}

/* ALERTAS DE COMERCIO DESBALANCEADO (WARNINGS) */
.warnings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.warning-banner {
    display: flex;
    gap: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.05);
    animation: slideIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.warning-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.warning-icon-wrap i {
    width: 18px;
    height: 18px;
}

.warning-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.warning-content h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ef4444;
}

.warning-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.warning-content .advise {
    font-size: 0.7rem;
    color: var(--shield-color);
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Grilla de propuestas de intercambio */
.trades-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.trade-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
}

.trade-cromo-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.trade-direction-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trade-direction-icon i {
    width: 14px;
    height: 14px;
}

.text-success { color: var(--owned-color); }
.text-danger { color: var(--duplicate-color); }

.trade-cromo-details {
    display: flex;
    flex-direction: column;
}

.trade-cromo-details .cromo-code {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
}

.trade-cromo-details .cromo-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trade-exchange-icon {
    padding: 0 10px;
    color: var(--text-muted);
}

/* Share & QR View */
.share-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-container-wrap {
    width: 220px;
    height: 220px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.qr-box img, canvas.qr-box {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.share-actions {
    width: 100%;
    text-align: center;
}

.share-actions .info-txt {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
}

.token-output-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
}

.token-output-box .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.token-output-box .token-value {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--duplicate-color);
    word-break: break-all;
    max-height: 70px;
    overflow-y: auto;
    line-height: 1.3;
}

.button-group-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Barra de Navegación Inferior (Sticky en teléfonos) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(64px + var(--safe-area-bottom));
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-area-bottom);
    z-index: 100;
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    height: 100%;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item i {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: var(--owned-color);
}

.nav-item.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

/* Toast Notificaciones */
.toast {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--owned-color);
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.2);
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-muted);
}

.loading-spinner i {
    width: 32px;
    height: 32px;
}

.loading-spinner span {
    font-size: 0.85rem;
}

/* Rotación Lenta de Logo */
.animate-spin-slow {
    animation: spin 8s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVIDAD Y OPTIMIZACIONES
   ========================================================================== */

/* Pantallas Medianas (Tablets) */
@media (min-width: 600px) {
    .main-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .main-header {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 1px solid var(--border-glass);
        border-right: 1px solid var(--border-glass);
        border-radius: 0 0 16px 16px;
    }
    
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 1px solid var(--border-glass);
        border-right: 1px solid var(--border-glass);
        border-radius: 16px 16px 0 0;
    }
}

/* Pantallas Grandes (Escritorio) */
@media (min-width: 900px) {
    .main-content {
        max-width: 800px;
    }
    
    .main-header {
        max-width: 800px;
    }
    
    .bottom-nav {
        max-width: 800px;
    }
    
    .cromo-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .cromo-grid-sm {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* ==========================================================================
   MODAL PARA DUPLICADOS INFINITOS (GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay .modal-content {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.05);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.modal-flag {
    font-size: 2.2rem;
    line-height: 1;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.modal-section-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.modal-badge-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.large-preview {
    width: 90px !important;
    height: 105px !important;
    border-radius: 12px !important;
    padding: 10px 8px !important;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Deshabilitar clics en la previsualización */
}

.large-preview span.cromo-number {
    font-size: 1.3rem !important;
}

.large-preview span.cromo-tag {
    font-size: 0.65rem !important;
}

.large-preview .duplicate-pill {
    font-size: 0.85rem !important;
    padding: 2px 6px !important;
    top: 6px !important;
    right: 8px !important;
}

.modal-counter-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 16px;
    border-radius: 12px;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-hover);
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--duplicate-color);
    min-width: 40px;
    text-align: center;
}

.modal-quick-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.modal-quick-actions .btn {
    font-size: 0.8rem;
    height: 40px;
}

.modal-footer {
    width: 100%;
}

/* ==========================================================================
   QR SCANNER PREMIUM STYLES
   ========================================================================== */
.scanner-modal-content {
    max-width: 460px !important;
}

.scanner-tabs {
    display: flex;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 12px;
}

.scanner-tab-btn {
    flex: 1;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.scanner-tab-btn i {
    width: 16px;
    height: 16px;
}

.scanner-tab-btn.active {
    background: var(--owned-color);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
}

.scanner-tab-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}

.scanner-tab-content.active {
    display: block;
}

/* Visor de Cámara y Láser */
.camera-viewfinder-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.camera-viewfinder {
    width: 100% !important;
    height: 100% !important;
}

/* Eliminar barra de control de html5-qrcode para una UI limpia */
.camera-viewfinder video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.scanner-laser {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    box-shadow: 0 0 8px #ef4444;
    animation: laser-sweep 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes laser-sweep {
    0% { top: 5%; }
    50% { top: 95%; }
    100% { top: 5%; }
}

/* Zona de Carga de Imagen / Captura */
.file-drop-zone {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.file-drop-zone:hover {
    border-color: var(--owned-color);
    background: rgba(0, 242, 254, 0.04);
}

.file-drop-zone.dragover {
    border-color: var(--duplicate-color);
    background: rgba(255, 123, 0, 0.06);
    transform: scale(1.02);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.file-drop-zone:hover .upload-icon {
    color: var(--owned-color);
    transform: translateY(-4px);
}

.file-drop-zone h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* ==========================================================================
   ESTILOS COMPONENTES: CAMBIAR (INTERCAMBIO)
   ========================================================================== */
.exchange-container-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.exchange-qr-card, .exchange-scan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 380px;
}

.exchange-box-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.exchange-qr-wrap {
    margin: 15px auto !important;
    max-width: 180px !important;
    aspect-ratio: 1/1 !important;
}

.exchange-qr-wrap canvas {
    border-radius: 12px;
}

.compact-qr-actions {
    max-width: 260px;
    width: 100%;
}

.big-scan-action-zone {
    width: 100%;
    max-width: 320px;
    margin: 15px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-large-scan {
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.2);
}

.scanner-friend-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive para Intercambios */
@media (max-width: 768px) {
    .exchange-container-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .exchange-qr-card, .exchange-scan-card {
        min-height: auto;
        padding: 20px 16px;
    }
}

/* ==========================================================================
   ESTILOS COMPONENTES: TABLERO DE ESTADÍSTICAS
   ========================================================================== */
.stats-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 20px;
    align-items: stretch;
}

.stat-big-chart-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.progress-radial-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.circular-chart-large {
    width: 100%;
    height: 100%;
}

.circular-chart-large .circle-bg {
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 2.8;
}

.circular-chart-large .circle {
    stroke-width: 2.8;
    transition: stroke-dasharray 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-radial-labels {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-radial-labels .percent-val {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--owned-color);
    line-height: 1;
}

.progress-radial-labels .percent-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stats-counters-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-metric-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
}

.stat-metric-box .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-metric-box .value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-metric-box .sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

/* Desglose de especiales/brillantes */
.special-stickers-wrap {
    padding: 20px;
}

.special-metric-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.special-metric-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.special-metric-cell .title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.bg-shield {
    background: var(--shield-color);
    box-shadow: 0 0 8px rgba(249, 212, 35, 0.3);
}

.special-metric-cell .fraction {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
}

/* Selecciones Completadas */
.completed-teams-wrap {
    padding: 16px;
}

.completed-teams-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.completed-team-badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--owned-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.05);
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Responsive para Stats */
@media (max-width: 768px) {
    .stats-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .progress-radial-wrap {
        width: 140px;
        height: 140px;
    }
    .progress-radial-labels .percent-val {
        font-size: 1.8rem;
    }
    .stats-counters-subgrid {
        gap: 10px;
    }
    .special-metric-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   ESTILOS COMPONENTES: CONFIGURACIONES
   ========================================================================== */
.glass-collapsible-detail {
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed var(--border-glass);
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.glass-collapsible-detail[open] {
    border-style: solid;
    border-color: var(--owned-color);
}

/* Estilos para selección interactiva en intercambio */
.cromo-badge {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.cromo-badge.selected-receive {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px);
}

.cromo-badge.selected-give {
    background: rgba(244, 63, 94, 0.18) !important;
    border-color: #f43f5e !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4) !important;
    transform: translateY(-2px);
}

/* Estilos del Candado de Seguridad */
.btn-locked {
    border-color: rgba(239, 68, 68, 0.45) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

.btn-locked:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
}

.btn-unlocked {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
}

.btn-unlocked:hover {
    border-color: rgba(0, 242, 254, 0.25) !important;
    background: rgba(0, 242, 254, 0.04) !important;
    color: var(--owned-color) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15) !important;
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */

.pwa-install-banner {
    position: fixed;
    bottom: calc(var(--nav-height, 68px) + 12px);
    left: 12px;
    right: 12px;
    z-index: 9999;
    background: linear-gradient(135deg, hsl(222, 60%, 10%) 0%, hsl(224, 71%, 7%) 100%);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0,242,254,0.08), 0 0 20px rgba(0, 242, 254, 0.08);
    animation: bannerSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.pwa-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.pwa-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-banner-text strong {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: linear-gradient(135deg, #00f2fe 0%, #00b4d8 100%);
    color: #070b19;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.pwa-btn-install:active {
    transform: scale(0.96);
}

.pwa-btn-dismiss {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.pwa-btn-dismiss:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
}

@media (max-width: 360px) {
    .pwa-banner-text span { display: none; }
    .pwa-btn-install { padding: 8px 10px; font-size: 0.78rem; }
}
