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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(circle at 20% 30%, #07090e 0%, #030408 100%);
    color: #e8e8e8;
    padding: 20px;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, rgba(15,20,35,0.95), rgba(10,12,20,0.95));
    border-radius: 28px;
    padding: 18px 26px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid rgba(255,215,0,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo h1 span { color: #FFD700; background: none; -webkit-background-clip: unset; }
.logo p { font-size: 10px; color: #8B9DC0; margin-top: 3px; letter-spacing: 1px; }

.stat-chip {
    background: rgba(255,215,0,0.08);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    border: 1px solid rgba(255,215,0,0.2);
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== TABS ========== */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(8,10,16,0.6);
    padding: 5px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aaa;
    font-size: 13px;
}

.tab-btn i { font-size: 14px; }
.tab-btn.active {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    box-shadow: 0 6px 15px rgba(255,215,0,0.3);
}

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== CARDS ========== */
.card {
    background: linear-gradient(145deg, rgba(28, 38, 55, 0.98), rgba(18, 25, 42, 0.98));
    backdrop-filter: blur(10px);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.35);
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,105,180,0.05));
    border-bottom: 1px solid rgba(255,215,0,0.25);
    font-weight: 700;
    color: #FFD700;
    font-size: 13px;
    letter-spacing: -0.2px;
}

.card-header i { font-size: 16px; }
.card-body { padding: 18px; }

/* ========== GRIDS ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
@media (max-width: 1000px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ========== INPUTS ========== */
.input-field { margin-bottom: 14px; }
.input-field label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #B8C5D6;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}
input, select, textarea {
    width: 100%;
    padding: 9px 12px;
    background: rgba(5, 8, 12, 0.9);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    transition: all 0.3s;
    font-family: 'JetBrains Mono', monospace;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255,215,0,0.15);
    background: rgba(8, 12, 18, 0.95);
}
.input-field small, .card-body small {
    font-size: 8px;
    color: #8B9DC0;
    display: block;
    margin-top: 3px;
}
.input-group-btn { display: flex; gap: 8px; align-items: center; }
.input-group-btn input { flex: 1; margin: 0; }

/* ========== BOTONES ========== */
button {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
}
button:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(255,215,0,0.3); }
.btn-outline {
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
}
.btn-outline:hover { background: rgba(255,215,0,0.1); transform: translateY(-1px); }
.btn-stop {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
}
.btn-icon {
    background: transparent;
    border: none;
    color: #FFD700;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
}
.btn-icon:hover { background: rgba(255,215,0,0.1); border-radius: 8px; }

/* ========== PROGRESS ========== */
.progress-container {
    background: rgba(5, 8, 12, 0.7);
    border-radius: 18px;
    padding: 12px;
    border: 1px solid rgba(255,215,0,0.2);
    transition: all 0.3s;
}
.progress-container:hover { border-color: rgba(255,215,0,0.5); }
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #FFD700;
    font-weight: 600;
    font-size: 11px;
}
.hits-badge {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 3px;
}
.progress-bar-bg {
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    height: 4px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-bar-fill {
    background: linear-gradient(90deg, #FFD700, #FF69B4);
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}
.progress-text { font-size: 9px; color: #aaa; margin: 5px 0; font-family: monospace; }
.current-combo { font-size: 8px; color: #FF69B4; margin-top: 3px; font-family: monospace; }
.speed-info { font-size: 8px; color: #aaa; margin-top: 4px; display: flex; align-items: center; gap: 3px; }

/* ========== HITS ========== */
.hits-container { max-height: 400px; overflow-y: auto; }
.hit-block {
    background: rgba(5, 8, 12, 0.8);
    border-left: 3px solid #FFD700;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.hit-block:hover { transform: translateX(4px); background: rgba(18,25,45,0.9); }
.hit-header { font-weight: 700; margin-bottom: 5px; color: #FFD700; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.hit-content { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #bbb; white-space: pre-wrap; line-height: 1.4; }
.m3u-link { margin-top: 8px; padding: 5px 8px; background: rgba(0,0,0,0.5); border-radius: 10px; font-family: monospace; font-size: 8px; color: #FFD700; word-break: break-all; }

/* ========== CONSOLA ========== */
.console {
    background: #05080c;
    border-radius: 14px;
    padding: 12px;
    height: 160px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    border: 1px solid rgba(255,215,0,0.2);
}
.log-success { color: #06d6a0; border-left: 2px solid #06d6a0; padding-left: 8px; margin: 4px 0; }
.log-error { color: #ef476f; border-left: 2px solid #ef476f; padding-left: 8px; margin: 4px 0; }
.log-info { color: #aaa; border-left: 2px solid #aaa; padding-left: 8px; margin: 4px 0; }

/* ========== CHECKER IPTV ========== */
.stats-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card { text-align: center; padding: 12px; background: rgba(0,0,0,0.3); border-radius: 20px; border: 1px solid rgba(255,215,0,0.2); transition: all 0.2s; }
.stat-card:hover { border-color: #FFD700; transform: translateY(-2px); }
.stat-value { font-size: 22px; font-weight: 800; color: #FFD700; font-family: 'JetBrains Mono', monospace; }
.stat-label { font-size: 9px; color: #aaa; margin-top: 3px; }

.sub-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,215,0,0.2); padding-bottom: 6px; flex-wrap: wrap; }
.sub-tab { padding: 6px 14px; background: transparent; border: none; color: #aaa; cursor: pointer; font-weight: 600; border-radius: 30px; transition: all 0.2s; font-size: 11px; }
.sub-tab.active { color: #FFD700; background: rgba(255,215,0,0.1); }
.subtab-content { display: none; }
.subtab-content.active { display: block; }

.channels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.channel-card {
    background: rgba(0,0,0,0.3);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,215,0,0.2);
    transition: all 0.2s;
}
.channel-card:hover { border-color: #FFD700; transform: translateX(4px); }
.channel-name { font-size: 11px; display: flex; align-items: center; gap: 6px; }
.channel-name i { color: #FFD700; font-size: 12px; }
.play-btn { background: linear-gradient(135deg, #FFD700, #FF69B4); border: none; padding: 4px 10px; border-radius: 30px; font-weight: 600; cursor: pointer; font-size: 9px; transition: all 0.2s; }
.play-btn:hover { transform: scale(1.05); }
.fav-btn { background: transparent; border: none; color: #FFD700; cursor: pointer; font-size: 14px; margin-left: 6px; transition: transform 0.2s; }
.fav-btn:hover { transform: scale(1.1); }

/* ========== REPRODUCTOR FLOTANTE ========== */
.floating-player {
    position: fixed; bottom: 20px; right: 20px; width: 350px; background: rgba(18,25,45,0.98); backdrop-filter: blur(20px); border: 2px solid #FFD700; border-radius: 20px; padding: 10px; z-index: 10000; display: none; cursor: move; box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.floating-player video { width: 100%; border-radius: 14px; background: #000; }
.float-controls { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.float-btn { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,215,0,0.3); padding: 4px 10px; border-radius: 30px; cursor: pointer; font-size: 9px; transition: all 0.2s; }
.float-btn:hover { background: #FFD700; color: #1a1a1a; }

/* ========== MODAL ========== */
.player-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.98); backdrop-filter: blur(25px); z-index: 20000; display: none; justify-content: center; align-items: center;
}
.player-container { background: rgba(18,25,45,0.98); border-radius: 28px; padding: 20px; border: 2px solid #FFD700; max-width: 90%; max-height: 90%; position: relative; }
.player-container video { width: 100%; max-height: 70vh; border-radius: 18px; background: #000; }
.close-player, .minimize-player {
    position: absolute; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 14px;
}
.close-player { top: -12px; right: -12px; background: #dc2626; color: white; border: none; }
.minimize-player { top: -12px; left: -12px; background: #FFD700; color: #1a1a1a; border: none; }
.close-player:hover, .minimize-player:hover { transform: scale(1.1); }

/* ========== OTROS ========== */
.toast-message {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(18,25,45,0.98); border: 2px solid #FFD700; padding: 10px 20px; border-radius: 40px; z-index: 30000; display: none; font-weight: 500; font-size: 11px;
}
.telegram-status { margin-top: 10px; padding: 6px 10px; border-radius: 40px; font-size: 10px; text-align: center; background: rgba(0,0,0,0.3); }
.search-results { margin-top: 10px; padding: 10px; background: rgba(0,0,0,0.3); border-radius: 14px; border-left: 3px solid #FFD700; font-size: 11px; }
.preview-box {
    background: rgba(0,0,0,0.6);
    border-radius: 14px;
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: #FFD700;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.5;
    border: 1px solid rgba(255,215,0,0.2);
}
.proxies-container { max-height: 130px; overflow-y: auto; background: rgba(0,0,0,0.3); border-radius: 14px; padding: 8px; margin: 10px 0; }
.proxy-item { padding: 4px 6px; border-bottom: 1px solid rgba(255,215,0,0.1); display: flex; justify-content: space-between; font-family: monospace; font-size: 9px; color: #FFD700; }
.progress-bar { background: rgba(0,0,0,0.4); border-radius: 20px; height: 3px; overflow: hidden; margin: 6px 0; }
.progress-fill { background: linear-gradient(90deg, #FFD700, #FF69B4); height: 100%; width: 0%; transition: width 0.3s; }
.badge { background: linear-gradient(135deg, #FFD700, #FF69B4); color: #1a1a1a; padding: 2px 8px; border-radius: 30px; font-size: 9px; font-weight: 700; }
.empty-state { text-align: center; padding: 40px; color: #aaa; }
.empty-state i { font-size: 36px; margin-bottom: 10px; opacity: 0.5; }
.opt-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.opt-row label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #aaa; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #1a1a2a; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #FF69B4; }

/* ========== OPCIONES DE RENDIMIENTO ========== */
.opt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
}

.opt-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.08);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 215, 0, 0.2);
    white-space: nowrap;
}

.opt-row label:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
}

.opt-row label i {
    color: #FFD700;
    font-size: 12px;
}

.opt-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #FFD700;
    cursor: pointer;
}

/* Ajustes para la tarjeta de rendimiento */
.card .opt-row {
    margin-top: 8px;
}

.card-body .opt-row {
    margin-bottom: 5px;
}

/* ========== ESTILOS MEJORADOS PARA CHECKER IPTV ========== */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.country-card {
    background: linear-gradient(135deg, rgba(18,25,45,0.95), rgba(10,12,20,0.95));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.country-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,215,0,0.7);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}

.country-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-count {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
}

.channels-list {
    display: none;
    margin-top: 12px;
    max-height: 350px;
    overflow-y: auto;
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.channel-item:hover {
    background: rgba(255,215,0,0.1);
    border-color: rgba(255,215,0,0.3);
    transform: translateX(5px);
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-server {
    font-size: 10px;
    color: #8B9DC0;
    margin-top: 3px;
    font-family: monospace;
}

.channel-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.play-btn {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 11px;
    color: #1a1a1a;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255,215,0,0.4);
}

.fav-btn {
    background: transparent;
    border: none;
    color: #FFD700;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    transition: all 0.2s;
}

.fav-btn:hover {
    transform: scale(1.1);
}

.fav-btn.active {
    color: #FFD700;
    text-shadow: 0 0 8px #FFD700;
}

/* ========== MENSAJE VPN ========== */
.vpn-warning {
    background: linear-gradient(135deg, rgba(255,105,180,0.15), rgba(255,215,0,0.1));
    border: 2px solid #FF69B4;
    border-radius: 16px;
    padding: 14px 20px;
    margin: 15px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #FF69B4;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.vpn-warning i {
    font-size: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(255,105,180,0.3); }
}

/* ========== GRID DE 3 COLUMNAS PARA PAÍSES ========== */
.countries-grid-three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Tarjetas de países */
.country-card-three {
    background: linear-gradient(135deg, rgba(18,25,45,0.95), rgba(10,12,20,0.95));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.country-card-three:hover {
    transform: translateY(-3px);
    border-color: rgba(255,215,0,0.7);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.country-header-three {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}

.country-title-three {
    font-size: 14px;
    font-weight: 700;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-title-three i {
    font-size: 14px;
}

.country-count-three {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
}

/* Lista de canales dentro de cada país */
.channels-list-three {
    display: none;
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

/* Scroll personalizado */
.channels-list-three::-webkit-scrollbar {
    width: 5px;
}

.channels-list-three::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.channels-list-three::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

/* Items de canales */
.channel-item-three {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.channel-item-three:hover {
    background: rgba(255,215,0,0.1);
    border-color: rgba(255,215,0,0.3);
    transform: translateX(3px);
}

.channel-info-three {
    flex: 1;
    min-width: 0;
}

.channel-name-three {
    font-weight: 500;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.play-btn-three {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 10px;
    color: #1a1a1a;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-btn-three:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255,215,0,0.4);
}

.fav-btn-three {
    background: transparent;
    border: none;
    color: #FFD700;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 5px;
    transition: all 0.2s;
}

.fav-btn-three:hover {
    transform: scale(1.1);
}

.fav-btn-three.active {
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700;
}

/* Mensaje de más canales */
.more-channels {
    font-size: 10px;
    color: #8B9DC0;
    text-align: center;
    padding: 8px;
    font-style: italic;
    border-top: 1px dashed rgba(255,215,0,0.2);
    margin-top: 6px;
}

/* Responsive: 2 columnas en tablets, 1 columna en móviles */
@media (max-width: 1000px) {
    .countries-grid-three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .countries-grid-three-cols {
        grid-template-columns: 1fr;
    }
}

/* ========== REPRODUCTOR FLOTANTE PREMIUM ========== */
.floating-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 400px;
    background: linear-gradient(145deg, rgba(15, 20, 35, 0.98), rgba(10, 12, 20, 0.98));
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 12px;
    z-index: 10000;
    display: none;
    cursor: move;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

.floating-player:hover {
    border-color: #FF69B4;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 105, 180, 0.3);
}

.floating-player video {
    width: 100%;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-player .float-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--primary);
    margin: 10px 0 8px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.floating-player .float-title i {
    font-size: 14px;
    color: #FF69B4;
}

.floating-player .float-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.floating-player .float-btn {
    background: rgba(20, 25, 45, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #FFD700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-player .float-btn i {
    font-size: 13px;
}

.floating-player .float-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, #FFD700 50%);
    border-bottom-right-radius: 22px;
}

/* ========== MODAL REPRODUCTOR PREMIUM ========== */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(25px);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
}

.player-container {
    background: linear-gradient(145deg, rgba(18, 25, 45, 0.98), rgba(10, 12, 20, 0.98));
    border-radius: 32px;
    padding: 25px;
    border: 2px solid #FFD700;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.2);
}

.player-container video {
    width: 100%;
    max-height: 70vh;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
}

/* Galleta 🦁TV en el reproductor */
.video-watermark {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #FFD700;
    padding: 8px 16px;
    border-radius: 40px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: bold;
    z-index: 2600;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.video-watermark i {
    font-size: 16px;
    color: #FF69B4;
}

.close-player {
    position: absolute;
    top: -18px;
    right: -18px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close-player:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.minimize-player {
    position: absolute;
    top: -18px;
    left: -18px;
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.minimize-player:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.player-status {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #aaa;
    font-size: 12px;
    text-align: center;
}

/* ========== REPRODUCTOR FLOTANTE MEJORADO ========== */
.floating-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 380px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    backdrop-filter: blur(20px);
    border: 2px solid #FFD700;
    border-radius: 24px;
    padding: 12px;
    z-index: 10000;
    display: none;
    cursor: move;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.3);
    transition: all 0.3s;
}

.floating-player:hover {
    border-color: #FF69B4;
    transform: scale(1.01);
}

.floating-player video {
    width: 100%;
    border-radius: 16px;
    background: #000;
    min-height: 200px;
    max-height: 220px;
    object-fit: contain;
}

.float-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #FFD700;
    margin: 10px 0 8px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.float-title i {
    font-size: 12px;
}

.float-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.float-btn {
    background: rgba(30, 35, 55, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #FFD700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.float-btn i {
    font-size: 12px;
}

.float-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, #FFD700 50%);
    border-bottom-right-radius: 20px;
}

@media (max-width: 600px) {
    .floating-player {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 15px;
        left: 15px;
    }
}

/* ========== MODAL REPRODUCTOR ========== */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
}

.player-container {
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 28px;
    padding: 20px;
    border: 2px solid #FFD700;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.player-container video {
    width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    background: #000;
    object-fit: contain;
}

.video-container {
    position: relative;
}

.video-watermark {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #FFD700;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: bold;
    z-index: 2600;
    pointer-events: none;
    border: 1px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-watermark i {
    font-size: 14px;
    color: #FF69B4;
}

.close-player {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 2700;
}

.close-player:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.minimize-player {
    position: absolute;
    top: -15px;
    left: -15px;
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    z-index: 2700;
}

.minimize-player:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.player-status {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #aaa;
    font-size: 11px;
    text-align: center;
}

/* ========== REPRODUCTOR FLOTANTE - ESQUINA INFERIOR DERECHA ========== */
.floating-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    backdrop-filter: blur(20px);
    border: 2px solid #FFD700;
    border-radius: 20px;
    padding: 12px;
    z-index: 10000;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.floating-player:hover {
    border-color: #FF69B4;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.floating-player video {
    width: 100%;
    border-radius: 14px;
    background: #000;
    min-height: 180px;
    max-height: 200px;
    object-fit: contain;
}

.float-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #FFD700;
    margin: 10px 0 8px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
}

.float-title i {
    font-size: 12px;
}

.float-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.float-btn {
    background: rgba(30, 35, 55, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #FFD700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.float-btn i {
    font-size: 12px;
}

.float-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, #FFD700 50%);
    border-bottom-right-radius: 18px;
}

/* Responsive móvil */
@media (max-width: 600px) {
    .floating-player {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 15px;
        left: auto;
    }
}

/* ========== REPRODUCTOR HLS MEJORADO ========== */
.floating-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    backdrop-filter: blur(20px);
    border: 2px solid #FFD700;
    border-radius: 20px;
    padding: 12px;
    z-index: 10000;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

.floating-player:hover {
    border-color: #FF69B4;
    transform: scale(1.01);
}

.floating-player video {
    width: 100%;
    border-radius: 14px;
    background: #000;
    min-height: 200px;
    max-height: 240px;
    object-fit: contain;
    cursor: pointer;
}

.float-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #FFD700;
    margin: 10px 0 8px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
}

.float-title i {
    font-size: 12px;
}

.float-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.float-btn {
    background: rgba(30, 35, 55, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #FFD700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.float-btn i {
    font-size: 12px;
}

.float-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, #FFD700 50%);
    border-bottom-right-radius: 18px;
}

/* Controles de video nativos mejorados */
video::-webkit-media-controls-panel {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
}

video::-webkit-media-controls-play-button {
    background-color: #FFD700;
    border-radius: 50%;
}

video::-webkit-media-controls-volume-slider {
    background-color: #FFD700;
}

/* Responsive */
@media (max-width: 600px) {
    .floating-player {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 15px;
        left: auto;
    }
    
    .float-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* ========== ESTILOS DE PROXIES MEJORADOS ========== */
.proxies-container {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
}

.proxy-section {
    color: #FFD700;
    font-size: 12px;
    font-weight: 700;
    margin: 12px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.proxy-section:first-child {
    margin-top: 0;
}

.proxy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 6px;
    font-family: monospace;
    font-size: 11px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.proxy-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.proxy-item.active {
    background: rgba(6, 214, 160, 0.1);
    border-left: 3px solid #06d6a0;
}

.proxy-speed {
    color: #06d6a0;
    font-size: 10px;
}

.btn-use-proxy, .btn-test-proxy {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 10px;
    color: #1a1a1a;
    transition: all 0.2s;
}

.btn-use-proxy:hover, .btn-test-proxy:hover {
    transform: scale(1.05);
}

.proxy-more {
    font-size: 10px;
    color: #8B9DC0;
    text-align: center;
    padding: 8px;
    font-style: italic;
}

/* ========== PROXY TYPE SECTIONS ========== */
.proxy-type-section {
    color: #FFD700;
    font-size: 12px;
    font-weight: 700;
    margin: 15px 0 8px 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.proxy-type-badge {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.proxy-item.http { border-left: 3px solid #3b82f6; }
.proxy-item.https { border-left: 3px solid #10b981; }
.proxy-item.socks { border-left: 3px solid #f59e0b; }

.proxy-buttons-group {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.btn-small-http, .btn-small-https, .btn-small-socks {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small-http { border-color: #3b82f6; color: #3b82f6; }
.btn-small-https { border-color: #10b981; color: #10b981; }
.btn-small-socks { border-color: #f59e0b; color: #f59e0b; }

.btn-small-http:hover, .btn-small-https:hover, .btn-small-socks:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

/* ========== PREVISUALIZACIÓN DE PROXIES ========== */
.proxy-preview {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    border-left: 3px solid #FFD700;
}

.proxy-preview-content {
    font-size: 11px;
    color: #aaa;
}

.proxy-preview-content i {
    color: #06d6a0;
    margin-right: 6px;
}

.proxy-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.proxy-preview-item {
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 10px;
    color: #FFD700;
}

.proxy-preview-more {
    background: rgba(255, 215, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    color: #8B9DC0;
}

/* ========== INDICADOR DE CARPETA SELECCIONADA ========== */
.input-group-btn input[readonly] {
    background: rgba(6, 214, 160, 0.1);
    border-color: rgba(6, 214, 160, 0.3);
    color: #06d6a0;
    font-family: monospace;
}

.input-group-btn input[readonly]:not([value=""]) {
    background: rgba(6, 214, 160, 0.15);
    border-color: #06d6a0;
}

.input-group-btn input[readonly][value=""] {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.2);
    color: #aaa;
}

/* Tooltip para rutas */
.input-field small i {
    margin-right: 4px;
}

/* ========== BOTONES DE GUARDADO ========== */
.btn-small-save {
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid #06d6a0;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #06d6a0;
}

.btn-small-save:hover {
    background: #06d6a0;
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* Estadísticas de proxies */
.proxy-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.proxy-stats i {
    font-size: 14px;
}

/* ========== BOTÓN PROBAR INACTIVOS ========== */
.btn-test-inactive {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-test-inactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Mejora para el área de proxies */
.proxy-buttons-group {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
    align-items: center;
}

/* ========== PROXY ROW - UNA SOLA LÍNEA ========== */
.proxy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.proxy-type-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 30px;
}

.proxy-type-group .btn-small-http,
.proxy-type-group .btn-small-https,
.proxy-type-group .btn-small-socks {
    margin: 0;
    padding: 5px 12px;
}

.proxy-type-group .btn-small-save {
    padding: 5px 8px;
    margin: 0;
}

/* Ajustes responsive */
@media (max-width: 700px) {
    .proxy-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .proxy-type-group {
        justify-content: space-between;
    }
}

/* ========== UTILIDADES ========== */
.utilities-search {
    margin-bottom: 20px;
}

.utilities-search input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #fff;
    font-family: monospace;
}

.utilities-list {
    max-height: 500px;
    overflow-y: auto;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.utility-item:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(5px);
}

.utility-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
}

.utility-info {
    flex: 1;
}

.utility-title {
    font-weight: 700;
    color: #FFD700;
    font-size: 15px;
    margin-bottom: 4px;
}

.utility-desc {
    font-size: 11px;
    color: #aaa;
}

.btn-download {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    color: #1a1a1a;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.upload-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
}

.upload-status.success {
    background: rgba(6, 214, 160, 0.2);
    color: #06d6a0;
    border: 1px solid #06d6a0;
}

.upload-status.error {
    background: rgba(239, 71, 111, 0.2);
    color: #ef476f;
    border: 1px solid #ef476f;
}

/* Stats mini */
.stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-mini {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.stat-mini span {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 5px;
}

.stat-mini label {
    font-size: 11px;
    color: #aaa;
}

/* ========== DASHBOARD DE UTILIDADES ========== */
.utilities-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: linear-gradient(145deg, rgba(18,25,45,0.95), rgba(10,12,20,0.95));
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,215,0,0.3);
    transition: all 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,215,0,0.6);
}

.dashboard-card i {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 10px;
}

.dashboard-number {
    font-size: 28px;
    font-weight: 800;
    color: #FF69B4;
}

.dashboard-label {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categorías */
.utilities-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.3);
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    transition: all 0.3s;
}

.category-btn i {
    margin-right: 8px;
}

.category-btn.active {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: #1a1a1a;
    border-color: transparent;
}

.category-btn:hover:not(.active) {
    background: rgba(255,215,0,0.15);
    transform: translateY(-1px);
}

/* Controles de búsqueda y ordenamiento */
.utilities-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 2;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 40px;
    color: #fff;
    font-family: monospace;
}

.sort-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 40px;
}

.sort-box label {
    font-size: 12px;
    color: #FFD700;
}

.sort-box select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* Lista de utilidades */
.utilities-list {
    max-height: 500px;
    overflow-y: auto;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 1px solid rgba(255,215,0,0.15);
}

.utility-item:hover {
    background: rgba(255,215,0,0.08);
    border-color: rgba(255,215,0,0.4);
    transform: translateX(5px);
}

.utility-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(255,215,0,0.2);
}

.utility-icon i {
    color: #FFD700;
}

.utility-info {
    flex: 1;
}

.utility-title {
    font-weight: 700;
    color: #FFD700;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.utility-date {
    font-size: 10px;
    color: #8B9DC0;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 20px;
}

.utility-size {
    font-size: 10px;
    color: #FF69B4;
}

.utility-desc {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.btn-download {
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    color: #1a1a1a;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download.locked {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

/* Modal de contraseña */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 30000;
    display: none;
    justify-content: center;
    align-items: center;
}

.password-modal-content {
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 24px;
    border: 2px solid #FFD700;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
}

.password-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), transparent);
    border-bottom: 1px solid rgba(255,215,0,0.3);
    font-weight: 700;
    color: #FFD700;
}

.password-modal-header i {
    font-size: 20px;
    margin-right: 8px;
}

.close-modal {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.close-modal:hover {
    color: #ef476f;
}

.password-modal-body {
    padding: 24px;
}

.password-modal-body p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
}

.password-modal-body input {
    width: 100%;
    padding: 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 12px;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
}

.password-error {
    color: #ef476f;
    font-size: 12px;
    margin-top: 10px;
}

.password-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,215,0,0.1);
}

.password-modal-footer button {
    flex: 1;
    margin: 0;
}

@media (max-width: 700px) {
    .utilities-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .utilities-controls {
        flex-direction: column;
    }
    
    .search-box, .sort-box {
        width: 100%;
    }
}
