/* === Reset y base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
}

/* === Header === */
.header {
    background: rgba(13, 17, 23, 0.95);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-login {
    color: #e6edf3;
    text-decoration: none;
    padding: 10px 22px;
    border: 2px solid #22c55e;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.btn-login:hover {
    background: #22c55e;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-usuario {
    position: relative;
}

.menu-usuario-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: #e6edf3;
}

.menu-usuario-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #22c55e;
}

.menu-usuario-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0d1117;
}

.menu-usuario-nombre {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e6edf3;
}

.menu-usuario-flecha {
    font-size: 0.75rem;
    color: #8b949e;
    transition: transform 0.3s;
}

.menu-abierto ~ .menu-usuario-btn .menu-usuario-flecha,
.menu-usuario-btn:focus .menu-usuario-flecha {
    transform: rotate(180deg);
}

.menu-usuario-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 200;
}

.menu-usuario-dropdown.menu-abierto {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-usuario-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: #e6edf3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.menu-usuario-item:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.menu-item-icono {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.menu-usuario-separador {
    height: 1px;
    background: #30363d;
    margin: 6px 0;
}

.menu-item-pedidos {
    color: #3b82f6;
}

.menu-item-pedidos:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.menu-item-admin {
    color: #f0b429;
}

.menu-item-admin:hover {
    background: rgba(240, 180, 41, 0.1);
    color: #f0b429;
}

.menu-item-logout {
    color: #f85149;
}

.menu-item-logout:hover {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usuario-nombre {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-logout {
    color: #e6edf3;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    border-color: #22c55e;
    color: #22c55e;
}

.logo {
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    padding-right: 120px;
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-power {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.logo-topup {
    color: #e6edf3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* === Alertas === */
.alerta {
    max-width: 500px;
    margin: 15px auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.alerta-error {
    background-color: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* === Main === */
.main-content {
    flex: 1;
    padding: 0;
}

/* === Carrusel === */
.carrusel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carrusel-track {
    position: relative;
    height: 400px;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.banner-activo {
    opacity: 1;
    pointer-events: all;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    line-height: 1.1;
}

.banner-content p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6);
}

/* Indicadores */
.carrusel-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicador-activo {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.indicador:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Botones prev/next */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    border-radius: 8px;
    transition: background 0.3s;
}

.carrusel-btn:hover {
    background: rgba(34, 197, 94, 0.5);
}

.carrusel-prev {
    left: 20px;
}

.carrusel-next {
    right: 20px;
}

/* === Tienda === */
.tienda-seccion {
    padding: 60px 20px;
}

.tienda-container {
    max-width: 1200px;
    margin: 0 auto;
}

.seccion-header {
    text-align: center;
    margin-bottom: 40px;
}

.seccion-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #e6edf3;
    margin-bottom: 8px;
}

.seccion-header p {
    color: #8b949e;
    font-size: 1rem;
}

/* === Juegos Grid === */
.juegos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.juego-card {
    background: #161b22;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.juego-card:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.2);
}

.juego-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #21262d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.juego-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.juego-card:hover .juego-img {
    transform: scale(1.05);
}

.juego-info {
    padding: 16px;
}

.juego-categoria {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.juego-info h3 {
    color: #e6edf3;
    font-size: 1rem;
    font-weight: 600;
}

/* === Beneficios === */
.beneficios {
    padding: 60px 20px;
    background: #161b22;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.beneficio {
    text-align: center;
    padding: 30px 20px;
    border-radius: 14px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s;
}

.beneficio:hover {
    border-color: #22c55e;
}

.beneficio-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.beneficio h3 {
    color: #e6edf3;
    font-size: 1rem;
    margin-bottom: 8px;
}

.beneficio p {
    color: #8b949e;
    font-size: 0.9rem;
}

/* === Site Footer === */
.site-footer {
    background: #0d1117;
    border-top: 1px solid #21262d;
    padding: 40px 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    color: #e6edf3;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-col-center {
    text-align: center;
    align-items: center;
}

.footer-col-right {
    align-items: flex-end;
}

.footer-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #22c55e;
}

.footer-red-icono {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 3px;
}

.footer-metodo {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 6px 14px;
    color: #e6edf3;
    font-size: 0.8rem;
    font-weight: 600;
}

.faq-item {
    width: 100%;
}

.faq-pregunta {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s;
    width: 100%;
    text-align: center;
}

.faq-pregunta:hover {
    color: #22c55e;
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #6e7681;
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 0 8px;
    text-align: center;
}

.faq-respuesta-visible {
    max-height: 120px;
    padding: 6px 8px 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #21262d;
}

.footer-bottom p {
    color: #484f58;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col-center,
    .footer-col-right {
        align-items: center;
    }
}

/* === Login === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.login-card {
    background: #161b22;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.telefono-row {
    display: flex;
    gap: 8px;
}

.telefono-prefijo {
    width: 120px;
    flex-shrink: 0;
    padding: 12px 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 0.9rem;
    cursor: pointer;
}

.telefono-prefijo:focus {
    border-color: #22c55e;
    outline: none;
}

.telefono-row input[type="tel"] {
    flex: 1;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 1rem;
}

.telefono-row input[type="tel"]:focus {
    border-color: #22c55e;
    outline: none;
}

.login-card h2 {
    text-align: center;
    color: #e6edf3;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #8b949e;
    font-size: 0.9rem;
}

.campo input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #30363d;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: #0d1117;
    color: #e6edf3;
}

.campo input:focus {
    outline: none;
    border-color: #22c55e;
}

.campo input::placeholder {
    color: #484f58;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-separador {
    text-align: center;
    margin: 20px 0 15px;
    color: #484f58;
    font-size: 0.9rem;
}

.btn-registro {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: transparent;
    color: #22c55e;
    border: 2px solid #22c55e;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-registro:hover {
    background: #22c55e;
    color: white;
}

/* === Dashboard === */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #e6edf3;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: #8b949e;
    font-size: 1.1rem;
}

.admin-header h1 {
    color: #f87171;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #161b22;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #22c55e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 4px solid #22c55e;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card-admin {
    border-top-color: #f87171;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.card h3 {
    color: #e6edf3;
    margin-bottom: 8px;
    font-size: 1rem;
}

.card p {
    color: #8b949e;
    font-size: 0.9rem;
}

.card-numero {
    font-size: 2rem !important;
    font-weight: bold;
    color: #22c55e !important;
}

/* === Tabla === */
.tabla-container {
    background: #161b22;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tabla-container h2 {
    color: #e6edf3;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
}

.tabla th,
.tabla td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #21262d;
}

.tabla th {
    background: #0d1117;
    color: #8b949e;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tabla td {
    color: #e6edf3;
    font-size: 0.95rem;
}

.tabla tr:hover {
    background: rgba(34, 197, 94, 0.05);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-admin {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.badge-cliente {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.alerta-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* === Admin Layout === */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 55px);
}

.admin-sidebar {
    width: 240px;
    background: #161b22;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 25px 0;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 15px;
}

.sidebar-icon {
    font-size: 1.5rem;
}

.sidebar-header h3 {
    color: #e6edf3;
    font-size: 1.1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    color: #8b949e;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: #e6edf3;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border-left-color: #22c55e;
}

.sidebar-logout {
    margin-top: auto;
    color: #f87171;
}

.sidebar-logout:hover {
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
}

.admin-main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.admin-seccion {
    display: none;
}

.admin-seccion-activa {
    display: block;
}

.admin-seccion-header {
    margin-bottom: 25px;
}

.admin-seccion-header h1 {
    font-size: 1.8rem;
    color: #e6edf3;
    margin-bottom: 5px;
}

.admin-seccion-header p {
    color: #8b949e;
}

/* Stats Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-green { background: rgba(34, 197, 94, 0.12); }
.stat-blue { background: rgba(59, 130, 246, 0.12); }
.stat-red { background: rgba(248, 113, 113, 0.12); }
.stat-purple { background: rgba(168, 85, 247, 0.12); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-numero {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e6edf3;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #8b949e;
    margin-top: 3px;
}

/* Acciones tabla */
.acciones-celda {
    display: flex;
    gap: 8px;
}

.btn-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-rol {
    background: rgba(59, 130, 246, 0.12);
}

.btn-rol:hover {
    background: rgba(59, 130, 246, 0.25);
}

.btn-eliminar-usr {
    background: rgba(248, 113, 113, 0.12);
}

.btn-eliminar-usr:hover {
    background: rgba(248, 113, 113, 0.25);
}

.badge-tu {
    color: #8b949e;
    font-size: 0.8rem;
    font-style: italic;
}

/* Admin Juegos Grid */
.admin-juegos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.admin-juego-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.admin-juego-card:hover {
    border-color: #22c55e;
}

.admin-juego-img {
    height: 120px;
    overflow: hidden;
    background: #21262d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-juego-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-juego-info {
    padding: 12px;
}

.admin-juego-info h3 {
    color: #e6edf3;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* Admin Forms */
.admin-form-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 25px;
}

.admin-form-card h3 {
    color: #e6edf3;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.campo-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #30363d;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #0d1117;
    color: #e6edf3;
    transition: border-color 0.3s;
    appearance: none;
    cursor: pointer;
}

.campo-select:focus {
    outline: none;
    border-color: #22c55e;
}

.tabla-thumb {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 6px;
    background: #21262d;
}

.fila-inactiva {
    opacity: 0.45;
}

.badge-inactivo {
    background: rgba(255, 255, 255, 0.08);
    color: #484f58;
}

/* === Detalle Juego === */
.detalle-page {
    padding: 30px 20px;
}

.detalle-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
}

.detalle-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 25px;
}

.detalle-header-img {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #21262d;
}

.detalle-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detalle-header-info h1 {
    font-size: 2rem;
    color: #e6edf3;
    margin-bottom: 10px;
}

.detalle-tags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.detalle-tag-entrega {
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Servicios Grid */
.detalle-servicios {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 25px;
}

.detalle-servicios h2 {
    color: #e6edf3;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.servicio-card {
    display: block;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.servicio-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.servicio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.servicio-card input[type="radio"]:checked ~ .servicio-contenido,
.servicio-card input[type="radio"]:checked ~ .servicio-desc {
    color: #22c55e;
}

.servicio-card:has(input:checked) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.servicio-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-nombre {
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.95rem;
}

.servicio-precio {
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
}

.servicio-desc {
    display: block;
    color: #484f58;
    font-size: 0.8rem;
    margin-top: 5px;
}

.sin-servicios {
    text-align: center;
    padding: 40px 20px;
    color: #484f58;
}

.sin-servicios p {
    margin-bottom: 5px;
}

/* Descripcion */
.detalle-descripcion {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 25px;
}

.detalle-descripcion h2 {
    color: #e6edf3;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.detalle-descripcion p {
    color: #8b949e;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Sidebar Compra */
.detalle-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-compra {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 25px;
}

.sidebar-compra h3 {
    color: #e6edf3;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.campo-id {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #30363d;
    border-radius: 8px;
    font-size: 1rem;
    background: #0d1117;
    color: #e6edf3;
    font-family: inherit;
    transition: border-color 0.3s;
}

.campo-id:focus {
    outline: none;
    border-color: #22c55e;
}

.campo-id::placeholder {
    color: #484f58;
}

.resumen-compra {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #30363d;
}

.resumen-compra h3 {
    margin-bottom: 12px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.resumen-total {
    color: #e6edf3;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 10px;
    border-top: 1px solid #30363d;
    margin-top: 8px;
}

.btn-comprar {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-comprar:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* Relacionados */
.sidebar-relacionados {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 25px;
}

.sidebar-relacionados h3 {
    color: #e6edf3;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.relacionado-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.relacionado-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.relacionado-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    background: #21262d;
}

.relacionado-nombre {
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.relacionado-cat {
    color: #484f58;
    font-size: 0.8rem;
}

/* Metodos de Pago */
.metodos-pago-seccion {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #30363d;
}

.metodos-pago-seccion h3 {
    color: #e6edf3;
    font-size: 1rem;
    margin-bottom: 12px;
}

.metodos-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metodo-opcion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #30363d;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #0d1117;
}

.metodo-opcion:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.metodo-opcion input[type="radio"] {
    accent-color: #22c55e;
    width: 16px;
    height: 16px;
}

.metodo-opcion:has(input:checked) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
}

.metodo-icono {
    font-size: 1.3rem;
}

.metodo-icono-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

/* Sidebar Metodos de Pago */
.sidebar-metodos {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-metodos h3 {
    color: #e6edf3;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.sidebar-metodos-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-metodo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-metodo-item:hover {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.04);
}

.sidebar-metodo-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-metodo-icono-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
}

.sidebar-metodo-emoji {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.sidebar-metodo-nombre {
    color: #8b949e;
    font-size: 0.82rem;
    font-weight: 500;
}

.sidebar-metodo-precio {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Campos Formulario Detalle */
.campo-detalle {
    margin-bottom: 12px;
}

.campo-detalle-label {
    display: block;
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.campo-check {
    margin: 12px 0;
}

.campo-check label {
    color: #8b949e;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.campo-check input[type="checkbox"] {
    accent-color: #22c55e;
    width: 16px;
    height: 16px;
}

select.campo-id {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #30363d;
    border-radius: 8px;
    font-size: 1rem;
    background: #0d1117;
    color: #e6edf3;
    font-family: inherit;
    transition: border-color 0.3s;
    appearance: none;
    cursor: pointer;
}

select.campo-id:focus {
    outline: none;
    border-color: #22c55e;
}

.metodo-info-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.metodo-nombre {
    color: #e6edf3;
    font-weight: 500;
    font-size: 0.9rem;
}

.metodo-moneda-tag {
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === Checkout === */
.checkout-page {
    padding: 30px 20px;
    min-height: 80vh;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkout-header h1 {
    color: #e6edf3;
    font-size: 1.5rem;
}

.checkout-volver {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.checkout-volver:hover {
    opacity: 0.8;
}

.checkout-juego-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.checkout-juego-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-juego-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-juego-info h2 {
    color: #e6edf3;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.checkout-detalle-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.checkout-detalle-card h3 {
    color: #e6edf3;
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #30363d;
}

.checkout-servicio {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-servicio-nombre {
    color: #22c55e;
    font-weight: 700;
    font-size: 1.1rem;
}

.checkout-servicio-desc {
    color: #8b949e;
    font-size: 0.85rem;
}

.checkout-dato {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.checkout-dato:last-child {
    border-bottom: none;
}

.checkout-dato-label {
    color: #8b949e;
    font-size: 0.9rem;
}

.checkout-dato-valor {
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Checkout - Pago */
.checkout-pago h2 {
    color: #e6edf3;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.checkout-total-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.checkout-precio-base,
.checkout-precio-convertido {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-precio-base {
    color: #8b949e;
    font-size: 0.95rem;
}

.checkout-precio-usd {
    color: #e6edf3;
    font-weight: 700;
    font-size: 1.1rem;
}

.checkout-precio-convertido {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #30363d;
    color: #22c55e;
    font-size: 1rem;
}

.checkout-precio-final {
    font-weight: 800;
    font-size: 1.4rem;
    color: #22c55e;
}

.checkout-metodos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.checkout-metodo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-metodo-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.checkout-metodo-card:has(input:checked) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
}

.checkout-metodo-card input[type="radio"] {
    display: none;
}

.checkout-metodo-icono {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    flex-shrink: 0;
}

.checkout-metodo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.checkout-metodo-emoji {
    font-size: 1.8rem;
}

.checkout-metodo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.checkout-metodo-nombre {
    color: #e6edf3;
    font-weight: 600;
    font-size: 1rem;
}

.checkout-metodo-moneda {
    color: #8b949e;
    font-size: 0.8rem;
}

.checkout-metodo-precio {
    color: #22c55e;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    white-space: nowrap;
}

/* Checkout - Power Points */
.checkout-pp-card {
    border-color: #f0b429 !important;
    background: rgba(240, 180, 41, 0.04) !important;
}

.checkout-pp-card:has(input:checked) {
    border-color: #f0b429 !important;
    background: rgba(240, 180, 41, 0.1) !important;
}

.checkout-pp-card:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.pp-insuficiente {
    color: #f85149;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

.btn-pp {
    background: linear-gradient(135deg, #f0b429, #d4940a) !important;
    color: #0d1117 !important;
}

.btn-pp:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4940a, #b87d08) !important;
    box-shadow: 0 4px 20px rgba(240, 180, 41, 0.3) !important;
}

/* Checkout - Datos de Pago */
.checkout-datos-pago {
    margin-bottom: 20px;
}

.checkout-datos-card {
    background: #161b22;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 20px;
}

.checkout-datos-card h3 {
    color: #22c55e;
    font-size: 1rem;
    margin-bottom: 6px;
}

.checkout-datos-instruccion {
    color: #8b949e;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.checkout-dato-pago {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-dato-pago:last-child {
    border-bottom: none;
}

.checkout-dato-pago-label {
    display: block;
    color: #8b949e;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-dato-pago-valor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-dato-pago-valor {
    color: #e6edf3;
    font-weight: 600;
    font-size: 1.05rem;
    word-break: break-all;
}

.btn-copiar {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-copiar:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

/* Modal Confirmacion */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalEntrar 0.3s ease;
}

@keyframes modalEntrar {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-header h2 {
    color: #e6edf3;
    font-size: 1.3rem;
}

.modal-cerrar {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-cerrar:hover {
    color: #e6edf3;
}

.modal-instruccion {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.modal-form .campo-detalle {
    margin-bottom: 14px;
}

.btn-confirmar-pago {
    width: 100%;
    padding: 16px;
    background: #22c55e;
    color: #0d1117;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-confirmar-pago:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-confirmar-pago:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === Billetera === */
.billetera-page {
    padding: 30px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.billetera-header {
    margin-bottom: 30px;
}

.billetera-header h1 {
    color: #e6edf3;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.billetera-saldo-card {
    background: linear-gradient(135deg, #161b22, #1c2333);
    border: 2px solid #f0b429;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.billetera-saldo-label {
    color: #8b949e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.billetera-saldo-valor {
    color: #f0b429;
    font-size: 2.2rem;
    font-weight: 800;
}

.billetera-saldo-usd {
    color: #8b949e;
    font-size: 0.9rem;
}

.billetera-historial h2 {
    color: #e6edf3;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.billetera-movimientos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.billetera-mov {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    transition: all 0.2s;
}

.billetera-mov:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.mov-izq {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mov-icono {
    font-size: 1.3rem;
}

.mov-info {
    display: flex;
    flex-direction: column;
}

.mov-desc {
    color: #e6edf3;
    font-size: 0.9rem;
    font-weight: 500;
}

.mov-fecha {
    color: #484f58;
    font-size: 0.78rem;
}

.mov-cantidad {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.mov-positivo {
    color: #22c55e;
}

.mov-negativo {
    color: #f85149;
}

.billetera-vacia {
    text-align: center;
    padding: 40px 20px;
    color: #484f58;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.billetera-vacia p:first-child {
    font-size: 1rem;
    color: #8b949e;
    margin-bottom: 6px;
}

/* === Ruleta de Premios === */
.ruleta-page {
    padding: 30px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.ruleta-container h1 {
    color: #e6edf3;
    font-size: 1.6rem;
    margin-bottom: 4px;
    text-align: center;
}

.ruleta-desc {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: center;
}

.ruleta-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.ruleta-stat {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 14px 22px;
    text-align: center;
    flex: 1;
    max-width: 160px;
}

.ruleta-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #22c55e;
}

.ruleta-stat-label {
    color: #8b949e;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ruleta-wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.ruleta-wheel-wrapper {
    position: relative;
    display: inline-block;
}

.ruleta-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    color: #f0b429;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#ruletaCanvas {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2), 0 0 60px rgba(34, 197, 94, 0.05);
}

.btn-girar {
    margin-top: 18px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-girar:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-girar:disabled {
    background: #30363d;
    color: #484f58;
    cursor: not-allowed;
}

.ruleta-resultado {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.ruleta-resultado-inner {
    background: #161b22;
    border: 1px solid #22c55e;
    border-radius: 12px;
    padding: 16px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ruleta-resultado-emoji {
    font-size: 2rem;
}

.ruleta-resultado-texto {
    color: #e6edf3;
    font-size: 1.1rem;
    font-weight: 700;
}

.ruleta-resultado-pp {
    font-size: 1.3rem;
    font-weight: 800;
}

.ruleta-vacia {
    text-align: center;
    padding: 40px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #484f58;
    margin-bottom: 24px;
}

.ruleta-como {
    margin-top: 30px;
}

.ruleta-como h2, .ruleta-referidos h2, .ruleta-historial h2 {
    color: #e6edf3;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.ruleta-como-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ruleta-como-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.ruleta-como-icono {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.ruleta-como-card h3 {
    color: #e6edf3;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.ruleta-como-card p {
    color: #8b949e;
    font-size: 0.82rem;
}

.progreso-giro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.progreso-barra {
    flex: 1;
    height: 8px;
    background: #30363d;
    border-radius: 4px;
    overflow: hidden;
}

.progreso-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
    transition: width 0.3s;
}

.progreso-texto {
    color: #8b949e;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.ruleta-referidos {
    margin-top: 28px;
}

.referido-codigo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 8px;
}

.referido-codigo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f0b429;
    letter-spacing: 2px;
    flex: 1;
}

.btn-copiar-ref {
    padding: 8px 16px;
    background: rgba(240, 180, 41, 0.15);
    border: 1px solid #f0b429;
    border-radius: 8px;
    color: #f0b429;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copiar-ref:hover {
    background: rgba(240, 180, 41, 0.3);
}

.referido-link-desc {
    color: #484f58;
    font-size: 0.82rem;
}

.referidos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.referido-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px 14px;
}

.referido-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referido-nombre {
    color: #e6edf3;
    font-size: 0.85rem;
}

.ruleta-historial {
    margin-top: 28px;
}

.giros-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.giro-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 14px;
}

.giro-premio {
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
}

.giro-pp {
    font-weight: 700;
    font-size: 0.9rem;
}

.giro-fecha {
    color: #484f58;
    font-size: 0.78rem;
}

@media (max-width: 500px) {
    .ruleta-stats {
        flex-direction: column;
        align-items: center;
    }
    .ruleta-stat {
        max-width: 100%;
        width: 100%;
    }
    .ruleta-como-grid {
        grid-template-columns: 1fr;
    }
}

/* === Codigo Descuento Checkout === */
.checkout-descuento-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.checkout-descuento-card h3 {
    color: #e6edf3;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.descuento-input-row {
    display: flex;
    gap: 8px;
}

.descuento-input-row input {
    flex: 1;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 0.9rem;
}

.descuento-input-row input:focus {
    border-color: #22c55e;
    outline: none;
}

.btn-aplicar-desc {
    padding: 10px 18px;
    background: rgba(240, 180, 41, 0.15);
    border: 1px solid #f0b429;
    border-radius: 8px;
    color: #f0b429;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-aplicar-desc:hover {
    background: rgba(240, 180, 41, 0.3);
}

#descuento-resultado {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* === Registro Influencer === */
.influencer-card {
    border-color: #f0b429 !important;
    box-shadow: 0 0 20px rgba(240, 180, 41, 0.1);
}

.influencer-header {
    text-align: center;
    margin-bottom: 16px;
}

.influencer-icono {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 4px;
}

.influencer-desc {
    color: #8b949e;
    font-size: 0.85rem;
    margin-top: 4px;
}

.social-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icono {
    font-size: 1.3rem;
    min-width: 32px;
    text-align: center;
}

.social-input-row input {
    flex: 1;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 0.9rem;
}

.social-input-row input:focus {
    border-color: #f0b429;
    outline: none;
}

.btn-influencer {
    background: linear-gradient(135deg, #f0b429, #d4940a) !important;
    color: #0d1117 !important;
    font-weight: 700;
}

.btn-influencer:hover {
    box-shadow: 0 0 20px rgba(240, 180, 41, 0.4);
}

.btn-influencer-link {
    border-color: #f0b429 !important;
    color: #f0b429 !important;
}

.btn-influencer-link:hover {
    background: rgba(240, 180, 41, 0.1) !important;
}

/* === Panel Influencer === */
.influencer-panel {
    padding: 30px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.influencer-panel-header {
    text-align: center;
    margin-bottom: 28px;
}

.influencer-panel-icono {
    font-size: 3rem;
    display: block;
    margin-bottom: 6px;
}

.influencer-panel-header h1 {
    color: #f0b429;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.influencer-panel-header p {
    color: #8b949e;
    font-size: 0.95rem;
}

.influencer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.influencer-info-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.influencer-info-icono {
    font-size: 1.5rem;
}

.influencer-info-label {
    display: block;
    color: #484f58;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.influencer-info-valor {
    color: #e6edf3;
    font-size: 0.9rem;
    font-weight: 600;
}

.influencer-info-link {
    color: #f0b429;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.influencer-info-link:hover {
    text-decoration: underline;
}

.influencer-estado-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.influencer-estado-label {
    color: #e6edf3;
    font-weight: 600;
}

.influencer-acciones {
    display: flex;
    gap: 12px;
}

.btn-influencer-accion {
    flex: 1;
    padding: 14px;
    text-align: center;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #e6edf3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-influencer-accion:hover {
    border-color: #f0b429;
    background: rgba(240, 180, 41, 0.05);
}

.btn-logout-inf:hover {
    border-color: #f85149;
    background: rgba(248, 81, 73, 0.05);
}

@media (max-width: 500px) {
    .influencer-info-grid {
        grid-template-columns: 1fr;
    }
    .influencer-acciones {
        flex-direction: column;
    }
}

/* === Ganancias Influencer === */
.ganancias-codigo-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ganancias-codigo-label {
    color: #8b949e;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.ganancias-codigo-valor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ganancias-codigo-valor span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f0b429;
    letter-spacing: 2px;
    background: rgba(240, 180, 41, 0.1);
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px dashed #f0b429;
}

.btn-copiar-codigo {
    padding: 8px 16px;
    background: rgba(240, 180, 41, 0.15);
    border: 1px solid #f0b429;
    border-radius: 8px;
    color: #f0b429;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copiar-codigo:hover {
    background: rgba(240, 180, 41, 0.3);
}

.ganancias-codigo-info {
    color: #8b949e;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ganancias-crear-codigo h3 {
    color: #e6edf3;
    margin-bottom: 8px;
}

.ganancias-input-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ganancias-input-row input {
    flex: 1;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.ganancias-input-row input:focus {
    border-color: #f0b429;
    outline: none;
}

.btn-crear-codigo {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f0b429, #d4940a);
    border: none;
    border-radius: 8px;
    color: #0d1117;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-crear-codigo:hover {
    box-shadow: 0 0 20px rgba(240, 180, 41, 0.4);
}

.ganancias-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.ganancias-stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ganancias-stat-icono {
    font-size: 2rem;
}

.ganancias-stat-valor {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #22c55e;
}

.ganancias-stat-label {
    display: block;
    color: #484f58;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.ganancias-historial {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
}

.ganancias-historial h3 {
    color: #e6edf3;
    margin-bottom: 14px;
}

.ganancias-vacio {
    text-align: center;
    padding: 20px;
    color: #484f58;
}

/* === Retiro Ganancias === */
.retiro-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.retiro-card h3 {
    color: #e6edf3;
    margin-bottom: 14px;
}

.retiro-minimo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(240, 180, 41, 0.08);
    border: 1px solid rgba(240, 180, 41, 0.3);
    border-radius: 8px;
    padding: 14px;
}

.retiro-minimo-icono {
    font-size: 1.3rem;
}

.retiro-minimo p {
    color: #8b949e;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.retiro-metodo-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.retiro-metodo-option {
    cursor: pointer;
}

.retiro-metodo-option input {
    display: none;
}

.retiro-metodo-content {
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s;
}

.retiro-metodo-option input:checked + .retiro-metodo-content {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.retiro-metodo-icono {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.retiro-metodo-nombre {
    display: block;
    color: #e6edf3;
    font-weight: 700;
    font-size: 0.85rem;
}

.retiro-metodo-desc {
    display: block;
    color: #484f58;
    font-size: 0.72rem;
    margin-top: 2px;
}

.retiro-campo {
    margin-bottom: 12px;
}

.retiro-campo label {
    display: block;
    color: #8b949e;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.retiro-campo input {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.retiro-campo input:focus {
    border-color: #22c55e;
    outline: none;
}

.btn-retirar {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s;
}

.btn-retirar:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

@media (max-width: 500px) {
    .ganancias-stats {
        grid-template-columns: 1fr;
    }
    .ganancias-codigo-valor {
        flex-direction: column;
        align-items: flex-start;
    }
    .ganancias-input-row {
        flex-direction: column;
    }
    .retiro-metodo-selector {
        grid-template-columns: 1fr;
    }
}

/* === Populares Grid === */
.populares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.popular-card {
    position: relative;
    background: linear-gradient(145deg, #161b22, #1a2332);
    border: 1px solid #30363d;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.popular-card:hover {
    transform: translateY(-6px);
    border-color: #f59e0b;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

.popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.popular-img-container {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
}

.popular-img-container .juego-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-card:hover .juego-img {
    transform: scale(1.08);
}

.popular-info {
    padding: 14px 16px;
}

.popular-info h3 {
    font-size: 1rem;
    color: #e6edf3;
    margin: 4px 0 8px;
}

.popular-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* === Catalogo por Categorias === */
.catalogo-seccion {
    padding-top: 0;
}

.categoria-bloque {
    margin-bottom: 36px;
}

.categoria-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #21262d;
}

.categoria-icono {
    font-size: 1.5rem;
}

.categoria-titulo h3 {
    font-size: 1.15rem;
    color: #e6edf3;
    margin: 0;
    font-weight: 700;
}

.categoria-count {
    margin-left: auto;
    font-size: 0.78rem;
    color: #484f58;
    background: #161b22;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #30363d;
}

@media (max-width: 768px) {
    .populares-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .popular-img-container {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .categoria-titulo {
        flex-wrap: wrap;
    }
    .categoria-count {
        margin-left: 0;
    }
}

/* === Categorias Tabs === */
.categorias-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cat-tab {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 8px 18px;
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-tab:hover {
    border-color: #22c55e;
    color: #e6edf3;
}

.cat-tab-activo {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: #fff;
}

/* === Input Archivo Upload === */
.input-archivo {
    width: 100%;
    padding: 10px;
    background: #0d1117;
    border: 2px dashed #30363d;
    border-radius: 8px;
    color: #8b949e;
    font-size: 0.85rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-archivo:hover {
    border-color: #22c55e;
}

.input-archivo::file-selector-button {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 10px;
}

.tabla-thumb-sm {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

/* === Campana Notificaciones Admin === */
.notif-campana-container {
    position: relative;
    display: inline-block;
}

.notif-campana-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    padding: 6px;
    line-height: 1;
    transition: transform 0.2s;
}

.notif-campana-btn:hover {
    transform: scale(1.15);
}

.notif-campana-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: #f85149;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: notif-pulse 2s infinite;
}

@keyframes notif-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(248, 81, 73, 0); }
}

.notif-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    min-width: 260px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    overflow: hidden;
}

.notif-panel.notif-abierto {
    display: block;
}

.notif-panel-header {
    padding: 10px 14px;
    font-weight: 700;
    color: #e6edf3;
    border-bottom: 1px solid #30363d;
    font-size: 0.85rem;
}

.notif-panel-vacio {
    padding: 16px 14px;
    color: #484f58;
    font-size: 0.8rem;
    text-align: center;
}

.notif-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #e6edf3;
    transition: background 0.15s;
    border-bottom: 1px solid #21262d;
}

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

.notif-panel-item:hover {
    background: rgba(34, 197, 94, 0.06);
}

.notif-panel-icono {
    font-size: 1.2rem;
}

.notif-panel-item strong {
    display: block;
    font-size: 0.8rem;
    color: #e6edf3;
}

.notif-panel-item small {
    display: block;
    font-size: 0.7rem;
    color: #484f58;
    margin-top: 1px;
}

/* === Perfil del Cliente === */
.perfil-page {
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.perfil-header {
    text-align: center;
    margin-bottom: 30px;
}

.perfil-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.perfil-header h1 {
    color: #e6edf3;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.perfil-desc {
    color: #8b949e;
    font-size: 0.9rem;
}

.perfil-seccion {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
}

.perfil-seccion h2 {
    color: #e6edf3;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.perfil-seccion-desc {
    color: #484f58;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.perfil-campo {
    margin-bottom: 16px;
}

.perfil-campo label {
    display: block;
    color: #8b949e;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.perfil-campo input[type="text"],
.perfil-campo input[type="email"],
.perfil-campo input[type="password"],
.perfil-campo input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.perfil-campo input:focus {
    border-color: #22c55e;
    outline: none;
}

.perfil-btn-guardar {
    width: 100%;
    margin-top: 6px;
}

/* === Historial de Transacciones === */
.historial-page {
    padding: 30px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.historial-container h1 {
    color: #e6edf3;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.historial-desc {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.historial-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.historial-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.historial-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.historial-procesado {
    border-left: 3px solid #22c55e;
}

.historial-pago_recibido {
    border-left: 3px solid #3b82f6;
}

.historial-pendiente {
    border-left: 3px solid #f0b429;
}

.historial-pago_rechazado {
    border-left: 3px solid #f97316;
}

.historial-rechazado {
    border-left: 3px solid #f85149;
}

.historial-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.historial-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.historial-id {
    color: #8b949e;
    font-weight: 700;
    font-size: 0.85rem;
}

.historial-fecha {
    color: #484f58;
    font-size: 0.8rem;
}

.historial-card-body {
    padding: 14px 16px;
}

.historial-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.historial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.historial-label {
    color: #484f58;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.historial-valor {
    color: #e6edf3;
    font-size: 0.9rem;
    font-weight: 500;
}

.historial-monto {
    color: #22c55e;
    font-weight: 700;
}

.historial-datos-cliente {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.historial-datos-titulo {
    display: block;
    color: #8b949e;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.historial-datos-pago {
    border-color: rgba(34, 197, 94, 0.15);
    background: rgba(34, 197, 94, 0.02);
}

.historial-datos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.historial-dato {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.historial-motivo {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(248, 81, 73, 0.06);
    border: 1px solid rgba(248, 81, 73, 0.15);
    border-radius: 8px;
    color: #f85149;
    font-size: 0.82rem;
}

.historial-motivo-label {
    font-weight: 700;
}

.historial-vacio {
    text-align: center;
    padding: 50px 20px;
    color: #484f58;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.historial-vacio p:first-child {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .historial-info-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pedidos - Badges y filas */
.badge-pendiente {
    background: rgba(240, 180, 41, 0.15);
    color: #f0b429;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-aprobado {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-rechazado {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-pago-ok {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-pago-no {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.fila-aprobada {
    background: rgba(34, 197, 94, 0.03);
}

.fila-rechazada {
    background: rgba(248, 81, 73, 0.03);
}

.historial-error-id {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}

.error-id-msg {
    margin-bottom: 12px;
}

.error-id-msg strong {
    color: #f59e0b;
    font-size: 0.9rem;
}

.error-id-msg p {
    color: #8b949e;
    font-size: 0.82rem;
    margin: 4px 0 0;
}

.error-id-form label {
    color: #e6edf3;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.error-id-input {
    flex: 1;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 0.9rem;
}

.error-id-input:focus {
    border-color: #f59e0b;
    outline: none;
}

.error-id-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

.error-id-btn:hover {
    opacity: 0.9;
}

.historial-error_id {
    border-left: 3px solid #f59e0b;
}

.btn-pago-ok {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 6px;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-pago-ok:hover {
    background: rgba(59, 130, 246, 0.3) !important;
}

.btn-pago-no {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid #f97316;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #f97316;
}

.btn-pago-no:hover {
    background: rgba(249, 115, 22, 0.3);
}

.btn-aprobar {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: #22c55e !important;
}

.btn-editar-usr {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid #3b82f6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #3b82f6;
}

.btn-editar-usr:hover {
    background: rgba(59, 130, 246, 0.3);
}

.btn-rechazar-pedido {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid #f85149;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #f85149;
}

.btn-rechazar-pedido:hover {
    background: rgba(248, 81, 73, 0.3);
}

/* Billetera - Recarga */
.billetera-recarga {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
}

.billetera-recarga h2 {
    color: #e6edf3;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.billetera-recarga-desc {
    color: #8b949e;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.recarga-label {
    display: block;
    color: #8b949e;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.recarga-montos-rapidos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recarga-monto-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.recarga-monto-btn:hover {
    border-color: #f0b429;
    background: rgba(240, 180, 41, 0.08);
}

.recarga-monto-btn.monto-activo {
    border-color: #f0b429;
    background: rgba(240, 180, 41, 0.15);
    color: #f0b429;
}

.recarga-metodos-section {
    margin-top: 18px;
}

.recarga-metodos-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recarga-metodo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #30363d;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.recarga-metodo-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.recarga-metodo-card:has(input:checked) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
}

.recarga-metodo-card input[type="radio"] {
    display: none;
}

.recarga-metodo-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recarga-metodo-nombre {
    color: #e6edf3;
    font-weight: 500;
    font-size: 0.9rem;
}

.recarga-metodo-precio {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.95rem;
}

.recarga-datos-pago {
    margin-top: 16px;
}

.btn-recarga {
    margin-top: 18px;
    background: linear-gradient(135deg, #f0b429, #d4940a) !important;
}

.btn-recarga:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4940a, #b87d08) !important;
    box-shadow: 0 4px 20px rgba(240, 180, 41, 0.3) !important;
}

/* === Responsive === */
@media (max-width: 900px) {
    .juegos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 15px;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.1rem;
        padding-right: 60px;
    }

    .carrusel-track {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .carrusel-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }

    .juegos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .juego-img-container {
        height: 120px;
    }

    .beneficios-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .login-card {
        margin: 0 15px;
        padding: 30px 25px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tabla-container {
        overflow-x: auto;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 15px 0;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 10px;
        gap: 5px;
    }

    .sidebar-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 6px;
    }

    .sidebar-link.active {
        border-left: none;
        border-bottom-color: #22c55e;
    }

    .sidebar-header {
        padding: 0 15px 10px;
        margin-bottom: 10px;
    }

    .admin-main {
        padding: 20px 15px;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-juegos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detalle-container {
        grid-template-columns: 1fr;
    }

    .detalle-header {
        flex-direction: column;
        text-align: center;
    }

    .detalle-header-img {
        width: 100px;
        height: 100px;
    }

    .detalle-header-info h1 {
        font-size: 1.5rem;
    }

    .detalle-tags {
        justify-content: center;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
    }
}
