:root {
    --bg-color: #0f0c29;
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
}

/* --- BASE --- */
body {
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, #24243e, #0f0c29);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0;
    padding-bottom: 90px; /* Espacio para el menú de abajo */
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; color: white; }
h1, h2, h3, h4 { margin-top: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- COMPONENTES GLASSMORPHISM --- */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

/* --- BOTONES Y INPUTS --- */
.btn-neon {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none; color: white; padding: 14px;
    border-radius: 50px; width: 100%; font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    cursor: pointer; display: block; text-align: center;
    font-size: 1rem; margin-top: 10px;
}
.btn-sm {
    padding: 8px 15px; border-radius: 20px; 
    font-size: 0.85rem; font-weight: bold; 
    display: inline-block; cursor: pointer; border: none;
}
input, select {
    width: 100%; padding: 14px; margin: 8px 0 15px 0;
    background: rgba(0,0,0,0.3); border: 1px solid #444; 
    color: white; border-radius: 10px; box-sizing: border-box;
    font-size: 1rem;
}
input:focus { border-color: var(--primary); outline: none; }

/* --- HEADER Y BALANCE --- */
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; background: rgba(0,0,0,0.2); backdrop-filter: blur(5px);
}
.vip-tag {
    background: linear-gradient(45deg, #FFD700, #FFA500); 
    color: black; padding: 5px 12px; border-radius: 20px; 
    font-weight: bold; font-size: 0.75rem; box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.balance-card {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 25px; border-radius: 25px; text-align: center; 
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- MENÚ INFERIOR (NAVBAR) --- */
.navbar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
    background: #141414; border-top: 1px solid #333;
    display: flex; justify-content: space-around; align-items: center;
    z-index: 9999; padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn { 
    color: #666; font-size: 0.7rem; text-align: center; 
    display: flex; flex-direction: column; align-items: center;
    flex: 1;
}
.nav-btn i { font-size: 1.5rem; margin-bottom: 5px; }
.nav-btn.active { color: var(--primary); }
.nav-btn.active i { transform: translateY(-3px); transition: 0.3s; text-shadow: 0 0 10px var(--primary); }

/* --- ESTILOS DE PERFIL (LO QUE TE FALTA) --- */
.stats-row { 
    display: flex; gap: 10px; margin-bottom: 25px; 
}
.stat-box {
    background: rgba(255,255,255,0.05); padding: 15px 5px; 
    border-radius: 15px; flex: 1; text-align: center; 
    border: 1px solid var(--border);
}

/* MENÚ LISTA (PERFIL) */
.menu-list { display: flex; flex-direction: column; gap: 12px; }
.menu-item {
    background: rgba(255,255,255,0.03); padding: 16px;
    border-radius: 12px; display: flex; justify-content: space-between;
    align-items: center; border: 1px solid var(--border);
    transition: background 0.2s;
}
.menu-item:active { background: rgba(255,255,255,0.1); }
.menu-item i { width: 30px; text-align: center; margin-right: 10px; color: var(--primary); font-size: 1.2rem; }

/* --- HOME: BANNERS Y NOTICIAS --- */
.banner-container {
    display: flex; overflow-x: auto; gap: 15px; padding-bottom: 5px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.banner-item {
    min-width: 100%; height: 160px; border-radius: 15px;
    scroll-snap-align: center; overflow: hidden; position: relative;
    background: #333;
}
.live-payouts {
    background: rgba(0,0,0,0.3); border-radius: 50px; padding: 8px 15px;
    margin: 15px 0; display: flex; align-items: center; border: 1px solid var(--border);
}
.payout-item { font-size: 0.85rem; color: #00ffaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- HOME: GRID DE ICONOS --- */
.grid-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.grid-item { text-align: center; font-size: 0.75rem; color: #ccc; }
.icon-box {
    width: 55px; height: 55px; margin: 0 auto 8px auto; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.c1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.c2 { background: linear-gradient(135deg, #00d2ff, #3a7bd5); }
.c3 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.c4 { background: #25D366; }

/* --- TAREAS --- */
.task-list { display: flex; flex-direction: column; gap: 15px; }
.alert { padding: 15px; background: rgba(0,255,0,0.1); border: 1px solid lime; border-radius: 10px; color: lime; margin-bottom: 15px; text-align: center;}
.text-neon { color: var(--primary); text-shadow: 0 0 15px rgba(0,210,255,0.5); text-align: center; margin-bottom: 20px; letter-spacing: 1px; }
/* Estilo del cintillo de noticias */
.news-ticker-container {
    width: 100%;
    background: rgba(255, 215, 0, 0.1); /* Fondo dorado transparente */
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.news-icon {
    background: #ffd700;
    color: black;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-left: 10px;
    z-index: 2; /* Para que quede encima del texto */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.news-scroller {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
    color: #ffd700; /* Texto dorado */
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* Estilos para el Selector de Países Personalizado */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 35%;
}
.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}
.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    height: 100%; /* Igualar altura del input */
}
.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #444;
    border-top: 0;
    background: #1a1a1a;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    max-height: 250px; /* Altura máxima del menú */
    overflow-y: auto;  /* Scroll vertical */
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.option-search {
    padding: 8px;
    background: #111;
    position: sticky;
    top: 0;
    z-index: 10;
}
.option-search input {
    width: 100%;
    padding: 6px;
    background: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 4px;
    outline: none;
    font-size: 0.8rem;
}
.option {
    position: relative;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: #ccc;
}
.option:hover {
    background: #333;
    color: white;
}
.option.selected {
    color: cyan;
    background: #252525;
}
/* Scrollbar bonita */
.custom-options::-webkit-scrollbar { width: 5px; }
.custom-options::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }