/* ============================================================
   ImperialeChk - Estilos Principales
   ============================================================ */

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

:root {
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --bg-dark: #08001a;
    --bg-card: rgba(20, 5, 50, 0.7);
    --bg-sidebar: rgba(15, 3, 40, 0.95);
    --accent: #9333ea;
    --accent-hover: #7c3aed;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(140, 60, 255, 0.3);
    --border-glow: rgba(160, 80, 255, 0.6);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition: 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse at 50% 30%, #1a0d3a 0%, #0a0015 55%, #000005 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Canvas fondo app (estrellas) */
#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

/* Canvas de estrellas: cubre todo el fondo */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, #1a0d3a 0%, #0a0015 60%, #000005 100%);
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: transparent;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Marco morado brillante con glow */
.login-card {
    background: rgba(15, 5, 35, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 40px 36px;
    border: 1.5px solid rgba(160, 80, 255, 0.75);
    box-shadow:
        0 0 0 1px rgba(180, 100, 255, 0.25),
        0 0 30px rgba(140, 60, 255, 0.45),
        0 0 70px rgba(120, 40, 220, 0.25),
        0 30px 60px rgba(0, 0, 0, 0.6);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(180, 100, 255, 0.25),
            0 0 30px rgba(140, 60, 255, 0.45),
            0 0 70px rgba(120, 40, 220, 0.25),
            0 30px 60px rgba(0,0,0,0.6);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(200, 120, 255, 0.45),
            0 0 50px rgba(160, 80, 255, 0.65),
            0 0 100px rgba(140, 60, 255, 0.35),
            0 30px 60px rgba(0,0,0,0.6);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-shadow:
        0 0 12px rgba(180, 100, 255, 0.9),
        0 0 28px rgba(160, 80, 255, 0.6);
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    color: #c4b5fd;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 0, 30, 0.5);
    border: 1px solid rgba(140, 80, 255, 0.4);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.login-form input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.login-form input:focus {
    border-color: rgba(180, 100, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(140, 60, 255, 0.22);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    transition: color var(--transition);
}

.toggle-pass:hover {
    color: #c084fc;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    margin-top: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(160, 80, 255, 0.55);
}

.btn-login:active {
    transform: translateY(0);
}

/* Separador */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
}

.login-divider span:first-child,
.login-divider span:last-child {
    flex: 1;
    height: 1px;
    background: rgba(140, 80, 255, 0.3);
}

.divider-text {
    font-size: 13px;
    color: rgba(160, 80, 255, 0.7);
    font-weight: 500;
    flex: none !important;
    height: auto !important;
    background: none !important;
}

/* Botón Regístrate */
.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px;
    background: rgba(140, 60, 255, 0.1);
    color: #c084fc;
    border: 1.5px solid rgba(160, 80, 255, 0.5);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.4px;
}

.btn-register:hover {
    background: rgba(160, 80, 255, 0.2);
    border-color: rgba(200, 120, 255, 0.8);
    color: #e9d5ff;
    box-shadow: 0 0 18px rgba(160, 80, 255, 0.3);
    transform: translateY(-1px);
}

/* Powered by */
.powered-by {
    text-align: center;
    margin-top: 18px;
    padding: 8px 14px;
    background: rgba(80, 20, 160, 0.15);
    border: 1px solid rgba(140, 60, 255, 0.2);
    border-radius: 8px;
    font-size: 11px;
    color: rgba(160, 100, 255, 0.7);
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ============================================================
   LAYOUT PRINCIPAL (con sidebar)
   ============================================================ */

.app-body {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 20px rgba(140, 60, 255, 0.15);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform var(--transition);
    overflow-y: auto;
}

.sidebar.closed {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-color);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(180,100,255,0.7);
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all var(--transition);
}
.sidebar-close-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar { font-size: 34px; color: #a855f7; flex-shrink: 0; }

.user-info { display: flex; flex-direction: column; overflow: hidden; }

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

.user-role { font-size: 11px; color: #a855f7; font-weight: 500; }

/* NAV */
.sidebar-nav { flex: 1; padding: 10px 0; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { padding: 2px 8px; }

.nav-separator {
    border-top: 1px solid var(--border-color);
    margin: 6px 0 !important;
    padding: 0 !important;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-link i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }

.nav-link:hover {
    background: rgba(160, 80, 255, 0.12);
    color: #e9d5ff;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(139,92,246,0.15));
    color: #d8b4fe;
    border-left: 3px solid #a855f7;
}

.sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--border-color); }

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #f87171;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    width: 100%;
}
.logout-btn:hover { background: rgba(239,68,68,0.12); }

/* OVERLAY */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}
.overlay.visible { display: block; }

/* MAIN WRAPPER */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition);
    position: relative;
    z-index: 1;
}
.main-wrapper.expanded { margin-left: 0; }

/* ── GATE MODE: sin sidebar, full width ── */
.gate-wrapper {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
}
body.gate-mode .sidebar,
body.gate-mode .overlay {
    display: none !important;
}

/* Botón flecha regreso en gates */
.gate-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(140,60,255,0.18);
    border: 1px solid rgba(160,80,255,0.4);
    border-radius: 10px;
    color: #d8b4fe;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}
.gate-back-btn i { font-size: 14px; }
.gate-back-btn:hover {
    background: rgba(147,51,234,0.3);
    color: #fff;
    transform: translateX(-2px);
    box-shadow: 0 0 12px rgba(160,80,255,0.3);
}

/* TOPBAR */
.topbar {
    height: var(--topbar-height);
    background: rgba(15, 3, 45, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all var(--transition);
    flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,0.07); color: #fff; }

.topbar-title { font-size: 15px; font-weight: 700; color: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-user { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* CONTENT */
.content-area { padding: 12px 6px; flex: 1; }
@media (min-width: 600px) {
    .content-area { padding: 22px 20px; }
}
.gate-wrapper .content-area { padding: 8px 4px; }

/* ============================================================
   COMPONENTES INTERNOS
   ============================================================ */

.page-header { margin-bottom: 22px; }

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 12px rgba(180,100,255,0.4);
}

.page-header .subtitle { font-size: 13px; color: #94a3b8; margin-top: 4px; }

.wave {
    display: inline-block;
    animation: wave 1.5s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.card {
    background: rgba(20, 5, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(140, 60, 255, 0.35);
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(100, 30, 200, 0.15);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(140, 60, 255, 0.3);
    border-color: rgba(180, 100, 255, 0.6);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.card-blue .card-icon { background: rgba(59,130,246,0.18); color: #60a5fa; }
.card-green .card-icon { background: rgba(34,197,94,0.18); color: #4ade80; }
.card-purple .card-icon { background: rgba(139,92,246,0.18); color: #c084fc; }
.card-orange .card-icon { background: rgba(249,115,22,0.18); color: #fb923c; }

.card-info h3 { font-size: 12px; color: #94a3b8; font-weight: 500; margin-bottom: 4px; }
.card-number { font-size: 26px; font-weight: 700; color: #fff; }
.card-api-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fb923c;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}
.card-api-link:hover { color: #fff; text-decoration: underline; }

/* INFO SECTION */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.info-box {
    background: rgba(20, 5, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(140, 60, 255, 0.3);
}

.info-box h3 {
    font-size: 14px; font-weight: 600; color: #d8b4fe;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}

.info-box ul { list-style: none; }

.info-box ul li {
    padding: 8px 0;
    font-size: 13px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(140,60,255,0.15);
}
.info-box ul li:last-child { border-bottom: none; }

.info-box ul li a { color: #a855f7; text-decoration: none; }
.info-box ul li a:hover { color: #d8b4fe; }

.info-box code {
    background: rgba(147,51,234,0.15);
    padding: 2px 6px; border-radius: 5px;
    font-size: 12px; color: #c084fc;
}

/* QUICK LINKS */
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: rgba(147,51,234,0.12);
    color: #c084fc;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(147,51,234,0.3);
    transition: all var(--transition);
}
.quick-btn:hover {
    background: rgba(160,80,255,0.25);
    color: #fff;
    border-color: rgba(200,120,255,0.6);
}

/* GLASS CARD base */
.glass-card {
    background: rgba(20, 5, 50, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(140, 60, 255, 0.35);
    box-shadow: 0 4px 24px rgba(100, 30, 200, 0.18);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
    border-color: rgba(180,100,255,0.55);
    box-shadow: 0 6px 32px rgba(140,60,255,0.28);
}

/* PERFIL */
.perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.profile-avatar-big { font-size: 64px; color: #a855f7; text-align: center; margin-bottom: 14px; }

.profile-data { flex: 1; }

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(140,60,255,0.15);
    font-size: 13px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row .label { color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.profile-row .value { color: #fff; font-weight: 500; }
.green-text { color: #4ade80; }

.badge-purple {
    background: rgba(147,51,234,0.2);
    color: #d8b4fe;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge {
    background: rgba(147,51,234,0.18);
    color: #d8b4fe;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Créditos */
.card-title-purple { font-size: 14px; font-weight: 700; color: #d8b4fe; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.credit-box {
    background: rgba(147,51,234,0.12);
    border: 1px solid rgba(147,51,234,0.3);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.credit-box i { font-size: 22px; }
.credit-dias i { color: #a855f7; }
.credit-creds i { color: #f59e0b; }
.credit-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.credit-label { font-size: 11px; color: #94a3b8; font-weight: 500; }

.btn-canjear-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px; border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
    transition: all var(--transition);
}
.btn-canjear-link:hover { box-shadow: 0 4px 18px rgba(147,51,234,0.5); transform: translateY(-1px); }

/* Fecha/Hora */
.datetime-box { text-align: center; padding: 14px 0; }
.datetime-fecha { font-size: 15px; color: #94a3b8; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.datetime-hora { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 0 20px rgba(180,100,255,0.5); font-variant-numeric: tabular-nums; }

/* CLIMA */
.clima-header-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding: 10px 16px;
    background: rgba(20,5,50,0.5);
    border-radius: 12px;
    border: 1px solid rgba(140,60,255,0.2);
    font-size: 13px; color: #94a3b8;
}

.btn-refresh {
    background: rgba(147,51,234,0.2);
    border: 1px solid rgba(147,51,234,0.4);
    color: #d8b4fe; padding: 7px 14px;
    border-radius: 8px; font-size: 13px; cursor: pointer;
    transition: all var(--transition);
}
.btn-refresh:hover { background: rgba(160,80,255,0.35); color: #fff; }

.clima-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.clima-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 15px;
}

.clima-card {
    background: rgba(20,5,50,0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(140,60,255,0.3);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    transition: all var(--transition);
}
.clima-card:hover {
    border-color: rgba(180,100,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(140,60,255,0.2);
}

.clima-estado { font-size: 12px; font-weight: 700; color: #d8b4fe; margin-bottom: 10px; }
.clima-icono { font-size: 32px; margin-bottom: 8px; }
.clima-temp { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.clima-condicion { font-size: 11px; color: #94a3b8; margin-bottom: 10px; }
.clima-detalles { display: flex; justify-content: center; gap: 12px; font-size: 11px; color: #94a3b8; }
.clima-detalles span { display: flex; align-items: center; gap: 4px; }

/* TABLA */
.table-card {
    background: rgba(20,5,50,0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(140,60,255,0.3);
    overflow-x: auto;
}

.table-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #d8b4fe; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table th {
    text-align: left; padding: 10px 14px;
    background: rgba(147,51,234,0.1);
    color: #94a3b8; font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(140,60,255,0.2);
}

.data-table td {
    padding: 12px 14px; color: #f1f5f9;
    border-bottom: 1px solid rgba(140,60,255,0.1);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(147,51,234,0.07); }

.badge-tech { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-tech.python { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-tech.php { background: rgba(139,92,246,0.15); color: #a78bfa; }

.status { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.status.ok { background: rgba(34,197,94,0.12); color: #4ade80; }
.status.warn { background: rgba(245,158,11,0.12); color: #fbbf24; }

/* CONFIG BOTONES */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.config-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px;
    background: rgba(20,5,50,0.65);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(140,60,255,0.4);
    border-radius: 18px;
    color: #d8b4fe;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.config-btn i { font-size: 28px; color: #a855f7; }
.config-btn:hover {
    background: rgba(147,51,234,0.2);
    border-color: rgba(200,120,255,0.7);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(140,60,255,0.3);
}
.config-btn:hover i { color: #e9d5ff; }

/* MODALES */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,20,0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: rgba(15,3,40,0.97);
    border: 1.5px solid rgba(160,80,255,0.6);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 40px rgba(140,60,255,0.35);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: #d8b4fe; display: flex; align-items: center; gap: 8px; }
.modal-close {
    background: none; border: none; color: #94a3b8;
    font-size: 18px; cursor: pointer; padding: 4px 8px;
    border-radius: 8px; transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.modal-body label {
    display: block; font-size: 13px; color: #94a3b8; margin-bottom: 10px;
}

.modal-input {
    width: 100%; padding: 12px 14px;
    background: rgba(10,0,30,0.7);
    border: 1px solid rgba(140,60,255,0.4);
    border-radius: 10px; color: #fff;
    font-size: 15px; outline: none;
    transition: border-color var(--transition);
    margin-bottom: 14px;
}
.modal-input:focus { border-color: rgba(180,100,255,0.8); }
.modal-input::placeholder { color: rgba(148,163,184,0.5); }

.modal-btn {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.modal-btn:hover { box-shadow: 0 6px 24px rgba(147,51,234,0.5); transform: translateY(-1px); }
.modal-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.modal-result {
    margin-top: 14px; padding: 14px;
    border-radius: 12px; font-size: 13px; line-height: 1.6;
}
.result-ok {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.35);
    color: #86efac;
}
.result-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.35);
    color: #fca5a5;
}

.bin-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: 10px;
}
.bin-info-grid div { background: rgba(147,51,234,0.1); border-radius: 8px; padding: 8px 10px; }
.bin-info-grid span { display: block; font-size: 10px; color: #94a3b8; margin-bottom: 2px; }
.bin-info-grid strong { font-size: 13px; color: #fff; }

.shein-info { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.shein-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(147,51,234,0.08);
    border-radius: 8px; padding: 8px 10px; font-size: 13px; color: #f1f5f9;
}
.shein-row i { color: #a855f7; width: 16px; text-align: center; flex-shrink: 0; }

/* SETTINGS (mantenidos por si se usan) */
.settings-card {
    background: rgba(20,5,50,0.6);
    border-radius: 16px; padding: 22px;
    border: 1px solid rgba(140,60,255,0.3);
    max-width: 520px;
}

.setting-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid rgba(140,60,255,0.15);
}
.setting-item:last-child { border-bottom: none; }
.setting-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #94a3b8; }
.setting-label i { width: 18px; color: #a855f7; }

.setting-select {
    background: rgba(10,0,30,0.7); border: 1px solid rgba(140,60,255,0.35);
    color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 14px;
    cursor: pointer; outline: none;
}
.setting-select:focus { border-color: #a855f7; }
.setting-value { font-size: 13px; color: #a855f7; font-weight: 500; }

/* ============================================================
   RESPONSIVE MÓVIL
   ============================================================ */

@media (max-width: 768px) {

    /* Sidebar oculto por defecto en móvil */
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
        width: 240px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .content-area {
        padding: 16px 14px;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Login card ajustada a pantalla completa en móvil */
    .login-wrapper {
        padding: 12px;
        max-width: 100%;
    }

    .login-card {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }

    .login-logo h1 {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .login-form input {
        font-size: 16px; /* evita zoom automático en iOS */
        padding: 13px 14px;
    }

    .password-wrapper input {
        padding-right: 46px;
    }

    .btn-login {
        font-size: 15px;
        padding: 14px;
    }

    .btn-register {
        font-size: 14px;
        padding: 12px;
    }

    /* Cards del dashboard en 1 columna */
    .cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card {
        padding: 16px;
        gap: 12px;
    }

    .card-number {
        font-size: 22px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    /* Info section en 1 columna */
    .info-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Tabla horizontal scroll */
    .table-card {
        padding: 16px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Topbar */
    .topbar {
        padding: 0 12px;
    }

    .topbar-title {
        font-size: 15px;
    }

    .topbar-user {
        font-size: 12px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Settings */
    .settings-card {
        max-width: 100%;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .setting-select {
        width: 100%;
    }

    /* Page header */
    .page-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 380px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .login-logo h1 {
        font-size: 22px;
    }
}

/* ============================================================
   PANEL ADMIN
   ============================================================ */

/* Botón especial Admin en sidebar */
.nav-link-admin {
    background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(79,70,229,0.15)) !important;
    border: 1px solid rgba(147,51,234,0.4) !important;
    color: #d8b4fe !important;
}
.nav-link-admin:hover {
    background: linear-gradient(135deg, rgba(160,80,255,0.35), rgba(99,102,241,0.25)) !important;
    color: #fff !important;
    border-color: rgba(200,120,255,0.7) !important;
}
.nav-link-admin.active {
    background: linear-gradient(135deg, rgba(147,51,234,0.45), rgba(79,70,229,0.3)) !important;
    border-left: 3px solid #a855f7 !important;
    color: #fff !important;
}

/* Tabs del admin */
.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex-wrap: nowrap;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.atab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(20,5,50,0.5);
    border: 1px solid rgba(140,60,255,0.3);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.atab:hover {
    background: rgba(147,51,234,0.15);
    color: #d8b4fe;
    border-color: rgba(160,80,255,0.55);
}
.atab.active {
    background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(79,70,229,0.2));
    color: #fff;
    border-color: rgba(200,120,255,0.7);
    box-shadow: 0 2px 12px rgba(147,51,234,0.3);
}

/* Tab content */
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* Section */
.admin-section {
    background: rgba(20,5,50,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(140,60,255,0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.admin-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #d8b4fe;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form row */
.admin-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.admin-form-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 120px;
}

.admin-field-btn {
    flex: 0 0 auto;
    min-width: unset;
}

.admin-field label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-input {
    width: 100%;
    padding: 10px 13px;
    background: rgba(10,0,30,0.7);
    border: 1px solid rgba(140,60,255,0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.admin-input:focus { border-color: rgba(180,100,255,0.8); }
.admin-input::placeholder { color: rgba(148,163,184,0.4); }

.admin-select {
    width: 100%;
    padding: 10px 13px;
    background: rgba(10,0,30,0.7);
    border: 1px solid rgba(140,60,255,0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}
.admin-select:focus { border-color: rgba(180,100,255,0.8); }
.admin-select option { background: #1a0d3a; }

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.admin-btn:hover { box-shadow: 0 4px 20px rgba(147,51,234,0.5); transform: translateY(-1px); }

.admin-btn-danger {
    background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
}
.admin-btn-danger:hover { box-shadow: 0 4px 20px rgba(239,68,68,0.45) !important; }

/* Mensajes */
.admin-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.msg-ok {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.35);
    color: #86efac;
}
.msg-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.35);
    color: #fca5a5;
}

/* Keys generadas */
.keys-resultado {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
}
.resultado-ok {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}
.resultado-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.key-gen-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(147,51,234,0.12);
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid rgba(147,51,234,0.25);
}

.key-gen-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d8b4fe;
    word-break: break-all;
}

/* Tabla admin */
.admin-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 500px;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(147,51,234,0.15);
    color: #94a3b8;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(140,60,255,0.25);
}

.admin-table td {
    padding: 10px 12px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(140,60,255,0.1);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(147,51,234,0.07); }

.key-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
}

.key-text {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #c084fc;
    word-break: break-all;
    flex: 1;
}

.btn-copy {
    background: rgba(147,51,234,0.2);
    border: 1px solid rgba(147,51,234,0.35);
    color: #d8b4fe;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: all var(--transition);
}
.btn-copy:hover { background: rgba(160,80,255,0.35); color: #fff; }

.btn-del-key {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    padding: 5px 9px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition);
}
.btn-del-key:hover { background: rgba(239,68,68,0.3); color: #fff; }

/* Responsive admin — móvil */
@media (max-width: 768px) {
    .admin-section { padding: 13px; border-radius: 13px; }
    .admin-section h3 { font-size: 13px; margin-bottom: 12px; }

    /* Formularios: 2 columnas en móvil para campos numéricos cortos */
    .admin-form-row { flex-direction: column; gap: 10px; }
    .admin-form-row.row-2col { flex-direction: row; flex-wrap: wrap; }
    .admin-form-row.row-2col .admin-field { flex: 1 1 calc(50% - 6px); min-width: calc(50% - 6px); }
    .admin-form-row.row-2col .admin-field-btn { flex: 1 1 100%; }

    .admin-form-col { gap: 10px; }
    .admin-field { min-width: unset; width: 100%; }
    .admin-field-btn { width: 100%; }
    .admin-field-btn .admin-btn { width: 100%; }

    .admin-input, .admin-select {
        padding: 12px 13px;
        font-size: 16px; /* evita zoom en iOS */
        border-radius: 11px;
    }
    .admin-btn {
        width: 100%;
        padding: 13px 16px;
        font-size: 15px;
        border-radius: 12px;
        gap: 8px;
    }
    .atab { padding: 9px 11px; font-size: 11px; gap: 5px; }
    .atab i { font-size: 12px; }

    /* Tabla keys — scroll horizontal */
    .admin-table { font-size: 11px; min-width: 440px; }
    .admin-table th { padding: 8px 8px; font-size: 10px; }
    .admin-table td { padding: 8px 8px; }
    .key-cell { max-width: 160px; }
    .key-text { font-size: 10px; }

    /* Keys generadas */
    .keys-resultado { padding: 11px; font-size: 12px; }
    .key-gen-item { flex-wrap: wrap; gap: 5px; }
    .key-gen-text { font-size: 11px; word-break: break-all; }
    .key-gen-item .btn-copy { margin-left: auto; }

    /* Mensajes */
    .admin-msg { font-size: 12px; padding: 10px 12px; }

    /* Ocultar columnas secundarias en tabla usuarios en pantalla muy pequeña */
    .admin-table .col-hide-sm { display: none; }
}

/* ============================================================
   TELCEL RECARGAS
   ============================================================ */

/* Barra de créditos */
.telcel-credits-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(20,5,50,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(140,60,255,0.3);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 22px;
}

.tcredit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #94a3b8;
}
.tcredit-item i { color: #f59e0b; font-size: 16px; }
.tcredit-item strong { font-size: 22px; font-weight: 800; color: #fff; }

.tcredit-info { display: flex; gap: 10px; flex-wrap: wrap; }

.tcredit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tcredit-badge.live { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.35); color: #4ade80; }
.tcredit-badge.declined { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }

/* Wrapper principal */
.telcel-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

/* Card Telcel */
.telcel-card {
    background: rgba(20,5,50,0.65);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(160,80,255,0.45);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 0 30px rgba(140,60,255,0.18);
}

.telcel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(140,60,255,0.2);
}

.telcel-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 12px rgba(180,100,255,0.5);
}
.telcel-logo i { color: #a855f7; font-size: 24px; }

.telcel-card-sub { font-size: 12px; color: #94a3b8; }

.telcel-section { margin-bottom: 18px; }

.telcel-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.telcel-label i { color: #a855f7; }

.telcel-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(10,0,30,0.65);
    border: 1px solid rgba(140,60,255,0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.telcel-input:focus {
    border-color: rgba(180,100,255,0.8);
    box-shadow: 0 0 0 3px rgba(140,60,255,0.18);
}
.telcel-input::placeholder { color: rgba(148,163,184,0.4); }
.tc-center { text-align: center; }

/* Planes */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.plan-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(15,3,40,0.7);
    border: 1.5px solid rgba(140,60,255,0.3);
    border-radius: 12px;
    color: #d8b4fe;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.plan-btn:hover {
    background: rgba(147,51,234,0.18);
    border-color: rgba(200,120,255,0.6);
    transform: translateY(-2px);
}
.plan-btn.selected {
    background: linear-gradient(135deg, rgba(147,51,234,0.4), rgba(79,70,229,0.25));
    border-color: #a855f7;
    color: #fff;
    box-shadow: 0 0 16px rgba(147,51,234,0.4);
    transform: translateY(-2px);
}

.plan-precio { font-size: 14px; font-weight: 800; }
.plan-desc { font-size: 10px; color: #94a3b8; font-weight: 400; }
.plan-btn.selected .plan-desc { color: #d8b4fe; }

/* Card fields */
.card-fields { display: flex; flex-direction: column; gap: 10px; }
.card-field-full { width: 100%; }
.card-fields-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.card-field-third {}

/* Botón procesar */
.telcel-procesar-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(147,51,234,0.4);
}
.telcel-procesar-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147,51,234,0.55);
}
.telcel-procesar-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Panel resultado */
.telcel-resultado-panel {
    background: rgba(20,5,50,0.65);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(140,60,255,0.4);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(140,60,255,0.15);
}

.resultado-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.resultado-header i { font-size: 22px; }

.resultado-header.procesando { background: rgba(99,102,241,0.25); }
.resultado-header.live       { background: linear-gradient(135deg, rgba(34,197,94,0.35), rgba(16,185,129,0.2)); }
.resultado-header.declined   { background: linear-gradient(135deg, rgba(239,68,68,0.35), rgba(220,38,38,0.2)); }
.resultado-header.dead       { background: linear-gradient(135deg, rgba(100,100,100,0.35), rgba(80,80,80,0.2)); }
.resultado-header.error      { background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(217,119,6,0.15)); }

.resultado-body { padding: 22px; }

/* Loading steps */
.loading-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.lstep {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(148,163,184,0.5);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.4s;
}
.lstep.active {
    color: #d8b4fe;
    background: rgba(147,51,234,0.12);
    border: 1px solid rgba(147,51,234,0.25);
}
.lstep.done {
    color: #4ade80;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
}

.loading-note {
    font-size: 11px;
    color: rgba(148,163,184,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(245,158,11,0.07);
    border-radius: 8px;
    border: 1px solid rgba(245,158,11,0.15);
}

/* Tabla resultado */
.res-tabla { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(10,0,30,0.5);
    border-radius: 10px;
    border: 1px solid rgba(140,60,255,0.12);
    gap: 12px;
    flex-wrap: wrap;
}

.res-lbl { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.res-lbl i { color: #a855f7; width: 14px; }
.res-val { font-size: 13px; color: #fff; font-weight: 500; text-align: right; word-break: break-all; }

.res-status-live     { color: #4ade80; font-weight: 800; }
.res-status-declined { color: #f87171; font-weight: 800; }
.res-status-dead     { color: #9ca3af; font-weight: 800; }
.res-status-error    { color: #fbbf24; font-weight: 800; }

.res-creditos {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    font-size: 13px;
    color: #fbbf24;
    font-weight: 600;
}
.res-creditos i { color: #f59e0b; }

.res-msg {
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.error-msg {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* Responsive Telcel — mobile-first */
.telcel-wrapper { grid-template-columns: 1fr; }
.telcel-credits-bar { flex-direction: column; align-items: flex-start; }
.planes-grid { grid-template-columns: repeat(3, 1fr); }
.card-fields-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

@media (min-width: 900px) {
    .telcel-wrapper { grid-template-columns: 1fr 1fr; }
    .telcel-credits-bar { flex-direction: row; align-items: center; }
}
@media (max-width: 340px) {
    .planes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   AMAZON GLOBAL
   ============================================================ */

.amz-days-bar { margin-bottom: 22px; }

/* mobile-first: columna única siempre, dos columnas solo en pantallas grandes */
.amz-main-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}
@media (min-width: 960px) {
    .amz-main-wrapper { grid-template-columns: 380px 1fr; gap: 22px; }
}

/* ── Card Amazon Global ── */
.amz-global-card {
    background: rgba(20,5,50,0.65);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255,153,0,0.35);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 0 30px rgba(255,153,0,0.1);
}

.amz-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,153,0,0.2);
}

.amz-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}
.amz-logo i { color: #ff9900; font-size: 22px; }

.amz-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(255,153,0,0.15);
    border: 1px solid rgba(255,153,0,0.35);
    border-radius: 20px;
    color: #ff9900;
    letter-spacing: 0.5px;
}

.amz-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a855f7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.amz-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: rgba(148,163,184,0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.amz-sep::before,.amz-sep::after {
    content:''; flex:1;
    height:1px;
    background: rgba(140,60,255,0.2);
}

.amz-gen-btn {
    background: linear-gradient(135deg, #b45309, #ff9900);
    box-shadow: 0 4px 20px rgba(255,153,0,0.35);
}
.amz-gen-btn:hover:not(:disabled) {
    box-shadow: 0 8px 30px rgba(255,153,0,0.5);
}

/* ── Resultado generador ── */
.amz-gen-result {
    margin-top: 14px;
    background: rgba(10,0,30,0.6);
    border: 1px solid rgba(255,153,0,0.25);
    border-radius: 14px;
    overflow: hidden;
}

.amz-gen-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,153,0,0.08);
    border-bottom: 1px solid rgba(255,153,0,0.15);
    font-size: 12px;
    color: #ff9900;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 8px;
}

.amz-small-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255,153,0,0.12);
    border: 1px solid rgba(255,153,0,0.3);
    border-radius: 8px;
    color: #ff9900;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-left: 6px;
}
.amz-small-btn:hover { background: rgba(255,153,0,0.25); }
.amz-save-btn { background: rgba(147,51,234,0.15); border-color: rgba(147,51,234,0.35); color: #d8b4fe; }
.amz-save-btn:hover { background: rgba(147,51,234,0.3); }

.amz-cards-textarea {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: #4ade80;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 110px;
    outline: none;
    line-height: 1.7;
}

.amz-textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(10,0,30,0.65);
    border: 1px solid rgba(140,60,255,0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
    font-family: monospace;
    line-height: 1.5;
}
.amz-textarea:focus {
    border-color: rgba(180,100,255,0.8);
    box-shadow: 0 0 0 3px rgba(140,60,255,0.18);
}
.amz-textarea::placeholder { color: rgba(148,163,184,0.35); }

/* ── Checker panel ── */
.amz-checker-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amz-ctrl-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amz-ctrl-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 10px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
}
.amz-ctrl-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.amz-ctrl-btn.start { background: linear-gradient(135deg, #16a34a, #22c55e); color:#fff; box-shadow: 0 4px 16px rgba(34,197,94,0.35); }
.amz-ctrl-btn.start:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(34,197,94,0.5); transform:translateY(-1px); }
.amz-ctrl-btn.stop  { background: linear-gradient(135deg, #b91c1c, #ef4444); color:#fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }
.amz-ctrl-btn.stop:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(239,68,68,0.5); transform:translateY(-1px); }
.amz-ctrl-btn.freeze { background: linear-gradient(135deg, #1d4ed8, #60a5fa); color:#fff; box-shadow: 0 4px 16px rgba(96,165,250,0.3); }
.amz-ctrl-btn.freeze:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(96,165,250,0.5); transform:translateY(-1px); }

.amz-speed-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.amz-progress-txt {
    font-size: 12px;
    color: rgba(148,163,184,0.7);
    font-style: italic;
    flex: 1;
}

/* ── Contadores — fila única, misma línea, mobile-first ── */
.amz-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
}

.amz-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 5px 4px;
    border-radius: 8px;
    border: 1px solid;
    min-width: 0;
}
.amz-counter i { font-size: 11px; }
.amz-cnt-val { font-size: 16px; font-weight: 900; line-height: 1.1; }
.amz-cnt-lbl { font-size: 8px; font-weight: 700; letter-spacing: 0.5px; opacity: 0.8; white-space: nowrap; }

.amz-counter.live {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.35);
    color: #4ade80;
}
.amz-counter.declined {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.35);
    color: #f87171;
}
.amz-counter.error-c {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.35);
    color: #fbbf24;
}
.amz-counter.total-c {
    background: rgba(148,163,184,0.07);
    border-color: rgba(148,163,184,0.25);
    color: #94a3b8;
}

/* ── Paneles resultado checker ── */
.amz-results-panels { display: flex; flex-direction: column; gap: 12px; }

.amz-result-panel {
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid;
}
.amz-result-panel.live-panel { border-color: rgba(34,197,94,0.25); }
.amz-result-panel.declined-panel { border-color: rgba(239,68,68,0.25); }
.amz-result-panel.error-panel { border-color: rgba(245,158,11,0.2); }

.amz-rp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    gap: 8px;
}
.live-h { background: rgba(34,197,94,0.12); color: #4ade80; }
.declined-h { background: rgba(239,68,68,0.1); color: #f87171; }
.error-h { background: rgba(245,158,11,0.08); color: #fbbf24; }

.amz-rp-clear {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity 0.2s;
}
.amz-rp-clear:hover { opacity: 1; }

.amz-rp-body {
    max-height: 160px;
    overflow-y: auto;
    padding: 8px 10px;
    background: rgba(5,0,20,0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Entradas log ── */
.log-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 11px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }

.log-live     { background: rgba(34,197,94,0.07); border-left: 3px solid #22c55e; }
.log-declined { background: rgba(239,68,68,0.07); border-left: 3px solid #ef4444; }
.log-error    { background: rgba(245,158,11,0.07); border-left: 3px solid #f59e0b; }

.log-time  { color: rgba(148,163,184,0.5); font-family: monospace; flex-shrink:0; }
.log-card  { color: #e2e8f0; font-family: monospace; font-weight: 600; }
.log-lista { color: rgba(148,163,184,0.6); font-family: monospace; font-size:10px; }
.log-msg   { color: #94a3b8; }
.log-bin   { color: rgba(255,153,0,0.8); font-size: 10px; }
.live-txt     { color: #4ade80; font-weight: 600; }
.declined-txt { color: #f87171; font-weight: 600; }

/* ── Responsive Amazon — mobile-first ── */
.amz-ctrl-btns { gap: 8px; }
.amz-ctrl-btn { font-size: 13px; padding: 11px 8px; }
.amz-rp-body  { max-height: 130px; }

@media (min-width: 480px) {
    .amz-cnt-val  { font-size: 24px; }
    .amz-ctrl-btn { font-size: 14px; padding: 12px 10px; }
    .amz-rp-body  { max-height: 160px; }
}

/* ============================================================
   CCN — Lista de gates y gate Zuora-Stripe
   ============================================================ */

/* Lista de gates en /ccn */
.ccn-gates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.ccn-gate-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(20,5,50,0.6);
    border: 1px solid rgba(140,60,255,0.3);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}
.ccn-gate-item:hover {
    border-color: rgba(168,85,247,0.6);
    background: rgba(30,10,70,0.7);
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(160,80,255,0.2);
}

.ccn-gate-icon {
    width: 46px;
    height: 46px;
    background: rgba(139,92,246,0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #c084fc;
    flex-shrink: 0;
}

.ccn-gate-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ccn-gate-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.ccn-gate-desc {
    font-size: 12px;
    color: #94a3b8;
}

.ccn-gate-arrow {
    color: rgba(160,80,255,0.5);
    font-size: 14px;
    transition: all var(--transition);
}
.ccn-gate-item:hover .ccn-gate-arrow {
    color: #a855f7;
    transform: translateX(4px);
}

/* ── Gate Zuora wrapper ── */
.ccnz-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}
@media (min-width: 880px) {
    .ccnz-wrapper { grid-template-columns: 360px 1fr; }
}

.ccnz-card {
    background: rgba(20,5,50,0.65);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(139,92,246,0.4);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 0 28px rgba(139,92,246,0.12);
}

.ccnz-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(139,92,246,0.2);
}

.ccnz-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}
.ccnz-logo i { color: #c084fc; font-size: 20px; }

.ccnz-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(139,92,246,0.2);
    color: #c084fc;
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 20px;
    padding: 3px 10px;
    letter-spacing: 0.5px;
}

.ccnz-checker-panel {
    background: rgba(20,5,50,0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(140,60,255,0.25);
    border-radius: 22px;
    padding: 18px;
}

.ccnz-section { margin-bottom: 12px; }

/* ── Facturas extras ── */
.fac-hint {
    font-size: 11px;
    color: rgba(148,163,184,0.55);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.fac-hint i { color: #a855f7; }

.fac-btn {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    box-shadow: 0 4px 20px rgba(109,40,217,0.4);
}
.fac-btn:hover:not(:disabled) {
    box-shadow: 0 8px 30px rgba(109,40,217,0.6);
}

.res-status-ok   { color: #4ade80; font-weight: 800; }
.res-status-live { color: #fb923c; font-weight: 800; }
.res-status-dead { color: #9ca3af; font-weight: 800; }
.res-status-error{ color: #fbbf24; font-weight: 800; }

/* ============================================================
   GATES PHP — Estilos adicionales
   ============================================================ */

.gate-container { max-width: 860px; margin: 0 auto; padding: 10px 6px; }
.gate-card { background: rgba(20,5,50,0.75); border: 1.5px solid rgba(160,80,255,0.4); border-radius: 18px; padding: 20px 18px; backdrop-filter: blur(14px); }
.gate-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.gate-card-header i { font-size: 28px; color: #c084fc; }
.gate-card-header h2 { font-size: 20px; font-weight: 800; color: #fff; flex: 1; }
.gate-credits-badge { background: rgba(147,51,234,0.25); border: 1px solid rgba(147,51,234,0.5); border-radius: 20px; padding: 4px 14px; font-size: 13px; color: #e9d5ff; }
.gate-input { width: 100%; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(160,80,255,0.3); border-radius: 10px; padding: 10px 14px; color: #f1f5f9; font-size: 14px; outline: none; transition: border-color .2s; }
.gate-input:focus { border-color: rgba(160,80,255,0.7); }
.gate-btn { width: 100%; background: linear-gradient(135deg,#7c3aed,#9333ea); color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 10px; }
.gate-btn:hover { background: linear-gradient(135deg,#6d28d9,#7c3aed); }
.gate-btn-process { width: 100%; background: linear-gradient(135deg,#059669,#10b981); color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 12px; }
.gate-btn-gen { width: 100%; background: rgba(147,51,234,0.2); border: 1.5px solid rgba(147,51,234,0.5); color: #e9d5ff; border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.gate-btn-sm { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #94a3b8; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; margin: 6px 4px 0; }
.gate-textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(160,80,255,0.3); border-radius: 10px; padding: 10px; color: #94a3b8; font-size: 13px; font-family: monospace; resize: vertical; margin-top: 8px; }
.gate-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 10px; }
.gate-montos { margin-top: 14px; }
.monto-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.monto-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(160,80,255,0.3); color: #94a3b8; border-radius: 8px; padding: 8px; font-size: 13px; cursor: pointer; }
.monto-btn.active { background: rgba(147,51,234,0.35); border-color: rgba(147,51,234,0.7); color: #e9d5ff; }
.gate-result { border-radius: 10px; padding: 14px; margin-top: 14px; font-size: 14px; }
.result-live { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.result-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }
.gen-section { background: rgba(0,0,0,0.2); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.gen-row4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.checker-controls { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.ctrl-btn { flex: 1; min-width: 80px; border: none; border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 700; cursor: pointer; }
.ctrl-btn:disabled { opacity: .45; cursor: not-allowed; }
.ctrl-start  { background: #059669; color: #fff; }
.ctrl-stop   { background: #dc2626; color: #fff; }
.ctrl-freeze { background: #d97706; color: #fff; }
.counters-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.counter-box { border-radius: 8px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.counter-box i { font-size: 12px; }
.counter-box span { font-size: 16px; font-weight: 800; color: #fff; }
.counter-box small { font-size: 9px; color: #94a3b8; font-weight: 600; }
.counter-live    { background: rgba(34,197,94,0.12);  border: 1px solid rgba(34,197,94,0.3);  }
.counter-live i  { color: #4ade80; }
.counter-declined{ background: rgba(239,68,68,0.1);   border: 1px solid rgba(239,68,68,0.3);  }
.counter-declined i { color: #f87171; }
.counter-error   { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.3); }
.counter-error i { color: #fbbf24; }
.counter-total   { background: rgba(99,102,241,0.1);  border: 1px solid rgba(99,102,241,0.3); }
.counter-total i { color: #818cf8; }
.log-section { display: flex; flex-direction: column; gap: 10px; }
.log-box { border-radius: 12px; overflow: hidden; }
.log-title { padding: 9px 14px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.log-live .log-title    { background: rgba(34,197,94,0.15); color: #4ade80; }
.log-declined .log-title{ background: rgba(239,68,68,0.12); color: #f87171; }
.log-error .log-title   { background: rgba(245,158,11,0.1); color: #fbbf24; }
.log-content { background: rgba(0,0,0,0.25); max-height: 180px; overflow-y: auto; padding: 8px; }
.log-entry { font-size: 12px; font-family: monospace; padding: 6px 8px; border-radius: 4px; margin-bottom: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.log-entry.live,     .log-entry.log-live     { color: #86efac; border-bottom-color: rgba(34,197,94,0.22); }
.log-entry.declined, .log-entry.log-declined { color: #fca5a5; border-bottom-color: rgba(239,68,68,0.22); }
.log-entry.error,    .log-entry.log-error    { color: #fde68a; border-bottom-color: rgba(245,158,11,0.22); }
.gates-list { display: flex; flex-direction: column; gap: 10px; max-width: 600px; }
.gate-list-item { display: flex; align-items: center; gap: 14px; background: rgba(20,5,50,0.6); border: 1px solid rgba(160,80,255,0.3); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: #f1f5f9; transition: border-color .2s, background .2s; }
.gate-list-item:hover { border-color: rgba(160,80,255,0.7); background: rgba(40,10,80,0.7); }
.gate-list-icon { width: 44px; height: 44px; background: rgba(147,51,234,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #c084fc; }
.gate-list-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.gate-list-name { font-weight: 700; font-size: 15px; }
.gate-list-tipo { font-size: 12px; color: #94a3b8; }
.gate-list-arrow { color: #6b7280; font-size: 14px; }

@media (max-width: 600px) {
    .gate-container { padding: 6px 4px; }
    .gate-card { padding: 16px 12px; border-radius: 14px; }
    .counters-row { grid-template-columns: repeat(4,1fr); gap: 4px; }
    .counter-box { padding: 5px 3px; }
    .counter-box span { font-size: 14px; }
    .gen-row4 { grid-template-columns: 1fr 1fr; }
    .gate-row3 { grid-template-columns: 1fr 1fr 1fr; }
    .monto-grid { grid-template-columns: repeat(4,1fr); }
    .gen-section { padding: 12px 10px; }
    .checker-controls { gap: 6px; }
    .ctrl-btn { padding: 10px 6px; font-size: 13px; }
}
