/* ═══════════════════════════════════════════════════════════════
   PagoStore - Recargas de Juegos Digitales
   Estilo inspirado en pagostore.garena.com
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0d0f13;
    --bg-secondary: #13161c;
    --bg-card: #181c24;
    --bg-card-hover: #1e232e;
    --bg-input: #10131a;
    --border-color: #262d3a;
    --border-hover: #3a4458;
    --text-primary: #eaedf2;
    --text-secondary: #8c95a8;
    --text-muted: #5a6478;
    --accent: #4ec94e;
    --accent-hover: #66d966;
    --accent-glow: rgba(78, 201, 78, 0.25);
    --success: #4ec94e;
    --success-bg: rgba(78, 201, 78, 0.1);
    --error: #e05252;
    --error-bg: rgba(224, 82, 82, 0.1);
    --warning: #e6b800;
    --purple: #a64dff;
    --blue: #4d9fff;
    --cyan: #00c8e0;
    --pink: #e64d94;
    --gradient-primary: linear-gradient(135deg, #4ec94e, #e6b800);
    --gradient-card: linear-gradient(145deg, #181c24, #14171e);
    --gradient-hero: linear-gradient(135deg, #0d0f13 0%, #111520 30%, #0f1118 60%, #0d0f13 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(78, 201, 78, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

/* ─── Navbar ──────────────────────────────────────────────────── */
.navbar {
    background: rgba(13, 15, 19, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-icon.small {
    width: 32px;
    height: 32px;
}

.navbar-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Flash Messages ──────────────────────────────────────────── */
.flash-container {
    padding-top: 16px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.flash-error {
    background: var(--error-bg);
    border: 1px solid rgba(224, 82, 82, 0.3);
    color: #f09090;
}

.flash-success {
    background: var(--success-bg);
    border: 1px solid rgba(78, 201, 78, 0.3);
    color: #7cc85a;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.flash-close:hover {
    opacity: 1;
}

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

/* ─── Hero Section ────────────────────────────────────────────── */
.hero {
    background: var(--gradient-hero);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 40%, rgba(78, 201, 78, 0.07) 0%, transparent 50%),
                radial-gradient(circle at 80% 60%, rgba(230, 184, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 50% 20%, rgba(78, 201, 78, 0.04) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-2%, -2%); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #4ec94e 40%, #e6b800 80%, #e09500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge svg {
    color: var(--accent);
}

/* ─── Section Titles ──────────────────────────────────────────── */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* ─── Games Grid ──────────────────────────────────────────────── */
.games-section {
    padding: 60px 0 80px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

.game-card {
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.game-card-selected {
    border-color: var(--accent) !important;
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-4px);
}

.game-card-selected .game-card-action {
    color: var(--accent);
    font-weight: 700;
}

.game-card-banner {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.game-card-banner-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
}

.game-card-banner-bg.ff { background: linear-gradient(135deg, #ff6b00, #ff9500); }
.game-card-banner-bg.ffmax { background: linear-gradient(135deg, #4a00e0, #8e2de2); }
.game-card-banner-bg.cod { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.game-card-banner-bg.pubg { background: linear-gradient(135deg, #f7971e, #ffd200); }
.game-card-banner-bg.ml { background: linear-gradient(135deg, #0052d4, #4364f7); }
.game-card-banner-bg.genshin { background: linear-gradient(135deg, #2c3e50, #3498db); }

.game-card-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-icon-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    position: absolute;
    top: -28px;
    left: 20px;
    border: 3px solid var(--bg-card);
    overflow: hidden;
    background: var(--bg-secondary);
}

.game-card-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 1.4rem;
}

.game-card-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, var(--bg-card));
}

.game-card-body {
    padding: 20px;
    position: relative;
}

.game-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    position: absolute;
    top: -28px;
    left: 20px;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.game-card-icon.ff { background: linear-gradient(135deg, #ff6b00, #ff9500); }
.game-card-icon.ffmax { background: linear-gradient(135deg, #4a00e0, #8e2de2); }
.game-card-icon.cod { background: linear-gradient(135deg, #2d3436, #636e72); }
.game-card-icon.pubg { background: linear-gradient(135deg, #f7971e, #ffd200); }
.game-card-icon.ml { background: linear-gradient(135deg, #0052d4, #4364f7); }
.game-card-icon.genshin { background: linear-gradient(135deg, #2c3e50, #3498db); }

.game-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 6px;
}

.game-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.game-card-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.game-card-action svg {
    transition: var(--transition);
}

.game-card:hover .game-card-action svg {
    transform: translateX(4px);
}

/* ─── Juego Detail Page ───────────────────────────────────────── */
.juego-header {
    padding: 40px 0 20px;
}

.juego-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.juego-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.juego-info h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.juego-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-primary);
}

/* ─── Paquetes Grid ───────────────────────────────────────────── */
.paquetes-section {
    padding: 20px 0 80px;
}

.paquetes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.paquete-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.paquete-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.paquete-card.popular {
    border-color: var(--accent);
}

.paquete-popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paquete-monedas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.paquete-monedas-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4ec94e, #e6b800);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.paquete-cantidad {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.paquete-bonus {
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.paquete-nombre {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: auto;
    padding-bottom: 16px;
}

.paquete-precio {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ─── Comprar Page ────────────────────────────────────────────── */
.comprar-section {
    padding: 40px 0 80px;
}

.comprar-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.comprar-form-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.comprar-form-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-option-label:hover {
    border-color: var(--border-hover);
}

.payment-option input[type="radio"]:checked + .payment-option-label {
    border-color: var(--accent);
    background: rgba(78, 201, 78, 0.05);
}

.payment-option-icon {
    font-size: 1.5rem;
}

.payment-option-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Payment Option Moneda Badge ─────────────────────────────── */
.payment-option-moneda {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.payment-option input[type="radio"]:checked + .payment-option-label .payment-option-moneda {
    color: var(--accent);
    background: rgba(78, 201, 78, 0.1);
}

/* ─── Metodo Info Box ─────────────────────────────────────────── */
.metodo-info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.metodo-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

.metodo-info-header strong {
    font-size: 1rem;
    margin-right: 8px;
}

.metodo-info-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(77,159,255,0.15);
    color: var(--blue);
    vertical-align: middle;
}

.metodo-info-precio {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.metodo-info-instrucciones {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 10px 14px;
    background: rgba(78, 201, 78, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 12px;
}

.metodo-info-datos {
    font-size: 0.85rem;
}

.metodo-info-datos strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}

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

.metodo-dato-label {
    color: var(--text-secondary);
    text-transform: capitalize;
}

.metodo-dato-value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

/* ─── Comprobante Section ─────────────────────────────────────── */
.comprobante-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

#comprobante-fields {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

/* ─── Textarea styling ────────────────────────────────────────── */
textarea.form-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* ─── Order Summary ───────────────────────────────────────────── */
.order-summary {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: sticky;
    top: 84px;
}

.order-summary h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.order-item-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.order-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.order-item-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.order-detail-row .label {
    color: var(--text-secondary);
}

.order-detail-row.total {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.order-detail-row.total .value {
    color: var(--accent);
}

/* ─── Confirmacion ────────────────────────────────────────────── */
.confirmacion-section {
    padding: 60px 0 80px;
    text-align: center;
}

.confirmacion-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 560px;
    margin: 0 auto;
}

.confirmacion-icon {
    width: 80px;
    height: 80px;
    background: var(--success-bg);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--success);
}

.confirmacion-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.confirmacion-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.confirmacion-details {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: left;
    margin-bottom: 32px;
}

.confirmacion-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.confirmacion-detail-row:last-child {
    border-bottom: none;
}

.confirmacion-detail-row .label {
    color: var(--text-secondary);
}

.confirmacion-detail-row .value {
    font-weight: 600;
}

.confirmacion-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ─── Historial ───────────────────────────────────────────────── */
.historial-section {
    padding: 40px 0 80px;
}

.historial-table-wrapper {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.historial-table {
    width: 100%;
    border-collapse: collapse;
}

.historial-table th {
    background: var(--bg-input);
    padding: 12px 10px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.historial-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.historial-table tr:last-child td {
    border-bottom: none;
}

.historial-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-completada {
    background: var(--success-bg);
    color: var(--success);
}

.status-pendiente {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning);
}

.status-pago_aprobado {
    background: rgba(77, 159, 255, 0.1);
    color: #4d9fff;
}

.status-rechazada {
    background: rgba(224, 82, 82, 0.1);
    color: #e05252;
}

.status-id_invalido {
    background: rgba(255, 215, 0, 0.1);
    color: #e6b800;
}

/* ─── Corregir ID ────────────────────────────────────────────── */
.corregir-error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(224, 82, 82, 0.08);
    border: 1px solid rgba(224, 82, 82, 0.25);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: #e05252;
    font-size: 0.85rem;
    margin: 16px 0 8px;
    text-align: left;
}

.corregir-form {
    margin-top: 20px;
    text-align: left;
}

.corregir-form .form-group {
    margin-bottom: 16px;
}

.corregir-form .confirmacion-actions {
    margin-top: 20px;
}

.btn-corregir-id {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(78, 201, 78, 0.12);
    color: var(--accent);
    border: 1px solid rgba(78, 201, 78, 0.3);
    text-decoration: none;
    transition: all 0.2s;
}
.btn-corregir-id:hover {
    background: rgba(78, 201, 78, 0.25);
    color: var(--accent-hover);
}

/* ─── Perfil de Usuario ──────────────────────────────────────── */
.perfil-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-top: 24px;
}

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

.perfil-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
}

.perfil-info-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
}

.perfil-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(78,201,78,0.1), rgba(230,184,0,0.1));
    border: 2px solid rgba(78,201,78,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
}

.perfil-nombre {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.perfil-rol {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(57,255,20,0.1);
    padding: 3px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.perfil-detalles {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perfil-detalle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.perfil-form-card {
    /* form side */
}

.perfil-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.perfil-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .perfil-form-grid {
        grid-template-columns: 1fr;
    }
}

.perfil-separator {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

.perfil-form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

/* ─── Brand Logo Image ───────────────────────────────────────── */
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.brand-icon.small .brand-logo {
    border-radius: 4px;
}

/* ─── Logo Preview (Config) ──────────────────────────────────── */
.logo-preview-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.logo-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-preview-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.logo-eliminar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--danger);
    cursor: pointer;
}

.logo-eliminar-label input[type="checkbox"] {
    accent-color: var(--danger);
}

/* ─── Ranking ────────────────────────────────────────────────── */
.ranking-section {
    padding: 40px 0 60px;
}

.ranking-header .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-filtros {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 20px;
}

.ranking-filtros-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.ranking-filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ranking-filtro-grupo .form-label {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.ranking-filtro-grupo .form-input {
    min-width: 160px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.ranking-filtro-btns {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
}

.ranking-filtro-activo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Podio Top 3 */
.ranking-podio {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 36px 0 40px;
}

@media (max-width: 640px) {
    .ranking-podio {
        flex-direction: column;
        align-items: center;
    }
}

.podio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px 20px;
    position: relative;
    min-width: 160px;
    transition: transform 0.2s;
}

.podio-item:hover {
    transform: translateY(-4px);
}

.podio-1 {
    order: 2;
    padding: 32px 32px 24px;
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(230,184,0,0.05), rgba(78,201,78,0.05));
}

.podio-2 { order: 1; }
.podio-3 { order: 3; }

.podio-medalla {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    position: absolute;
    top: -14px;
}

.podio-oro {
    background: linear-gradient(135deg, #e6b800, #4ec94e);
    color: #0a0d0a;
    box-shadow: 0 4px 15px rgba(230,184,0,0.4);
}

.podio-plata {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #374151;
    box-shadow: 0 4px 12px rgba(156,163,175,0.3);
}

.podio-bronce {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fef3c7;
    box-shadow: 0 4px 12px rgba(217,119,6,0.3);
}

.podio-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 10px;
    margin-top: 8px;
}

.podio-avatar-gold {
    width: 68px;
    height: 68px;
    border-color: rgba(230,184,0,0.4);
    color: #e6b800;
}

.podio-nombre {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-align: center;
}

.podio-recargas {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.podio-monto {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
}

.podio-monto-gold {
    font-size: 1.15rem;
    color: #e6b800;
}

/* Ranking Table */
.ranking-table-wrapper {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead th {
    padding: 14px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.ranking-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s;
}

.ranking-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.ranking-table tbody td {
    padding: 12px 16px;
    font-size: 0.88rem;
}

.ranking-top3 {
    background: rgba(230,184,0,0.02);
}

.ranking-pos {
    display: inline-flex;
}

.ranking-pos-1 { color: #e6b800; }
.ranking-pos-2 { color: #9ca3af; }
.ranking-pos-3 { color: #d97706; }

.ranking-pos-num {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-left: 2px;
}

.ranking-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.ranking-user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.ranking-monto {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

/* ─── Admin Transaction Action Buttons ────────────────────────── */
.acciones-cell {
    min-width: 180px;
}

.acciones-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-accion {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-aceptar {
    background: rgba(78, 201, 78, 0.15);
    color: #4ec94e;
    border: 1px solid rgba(78, 201, 78, 0.3);
}
.btn-aceptar:hover {
    background: rgba(78, 201, 78, 0.3);
}

.btn-rechazar {
    background: rgba(224, 82, 82, 0.15);
    color: #e05252;
    border: 1px solid rgba(224, 82, 82, 0.3);
}
.btn-rechazar:hover {
    background: rgba(224, 82, 82, 0.3);
}

.btn-completar {
    background: rgba(77, 159, 255, 0.15);
    color: #4d9fff;
    border: 1px solid rgba(77, 159, 255, 0.3);
}
.btn-completar:hover {
    background: rgba(77, 159, 255, 0.3);
}

.estado-final-ok {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4ec94e;
}

.estado-final-err {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e05252;
}

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

.modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.2s ease;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-cancelar-rechazo {
    background: rgba(94, 138, 94, 0.15);
    color: #8cbf8c;
    border: 1px solid rgba(94, 138, 94, 0.3);
}
.btn-cancelar-rechazo:hover {
    background: rgba(94, 138, 94, 0.3);
}

.motivo-rechazo {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #e05252;
    background: rgba(224, 82, 82, 0.08);
    border: 1px solid rgba(224, 82, 82, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    line-height: 1.4;
}

/* ─── Modal Confirmar Global ─────────────────────────────────── */
.modal-confirmar-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.2s ease;
    text-align: center;
}

.modal-confirmar-icono {
    margin-bottom: 16px;
    color: #e6b800;
}

.modal-confirmar-icono svg {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.3));
}

.modal-confirmar-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.modal-confirmar-texto {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.modal-confirmar-botones {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-modal-cancelar {
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(140, 149, 168, 0.3);
    background: rgba(140, 149, 168, 0.1);
    color: #8c95a8;
    transition: all 0.2s;
}
.btn-modal-cancelar:hover {
    background: rgba(140, 149, 168, 0.25);
    color: #eaedf2;
}

.btn-modal-confirmar {
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #e05252, #c03030);
    color: #fff;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(224, 82, 82, 0.3);
}
.btn-modal-confirmar:hover {
    background: linear-gradient(135deg, #c03030, #a02020);
    box-shadow: 0 4px 20px rgba(224, 82, 82, 0.5);
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--text-primary);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ─── Hamburger Menu ─────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Visibility Helpers ─────────────────────────────────────── */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* ─── Mobile Cards ───────────────────────────────────────────── */
.mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow: hidden;
}

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

.mobile-card-id {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.mobile-card-body {
    padding-top: 4px;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.84rem;
}

.mobile-card-row:last-child {
    border-bottom: none;
}

.mobile-card-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-right: 10px;
}

.mobile-card-value {
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

.mobile-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(13, 15, 19, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 12px 20px 16px;
        gap: 4px;
        z-index: 999;
    }

    .navbar-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 0.92rem;
    }

    .navbar-content {
        position: relative;
    }

    /* Toggle visibility */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    /* Hero */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Games */
    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .game-card-banner {
        height: 100px;
    }

    .game-card-body {
        padding: 14px;
    }

    .game-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: -20px;
        left: 14px;
        border-width: 2px;
    }

    .game-card-title {
        font-size: 0.9rem;
        margin-top: 14px;
    }

    .game-card-desc {
        font-size: 0.75rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .game-card-action {
        font-size: 0.8rem;
    }

    /* Paquetes */
    .paquetes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .paquete-card {
        padding: 16px;
    }

    .paquete-cantidad {
        font-size: 1.1rem;
    }

    /* Comprar */
    .comprar-grid {
        grid-template-columns: 1fr;
    }

    .comprar-form-card {
        padding: 20px;
    }

    .order-summary {
        position: static;
        padding: 20px;
    }

    .payment-options {
        grid-template-columns: 1fr 1fr;
    }

    /* Confirmacion */
    .confirmacion-card {
        padding: 28px 20px;
    }

    .confirmacion-actions {
        flex-direction: column;
    }

    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    /* Perfil */
    .perfil-card {
        padding: 20px;
    }

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

    /* Ranking */
    .ranking-filtros-form {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-filtro-grupo .form-input {
        min-width: unset;
        width: 100%;
    }

    .ranking-podio {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 24px 0 28px;
    }

    .podio-1, .podio-2, .podio-3 {
        order: unset;
        width: 100%;
        max-width: 260px;
    }

    .podio-item {
        min-width: unset;
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer {
        padding: 32px 0 0;
    }

    /* Admin nav */
    .admin-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

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

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

    .navbar-brand span {
        font-size: 1rem;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .container {
        padding: 0 14px;
    }
}

/* ─── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease backwards;
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.3s; }

.paquete-card {
    animation: fadeInUp 0.4s ease backwards;
}

.paquete-card:nth-child(1) { animation-delay: 0.05s; }
.paquete-card:nth-child(2) { animation-delay: 0.1s; }
.paquete-card:nth-child(3) { animation-delay: 0.15s; }
.paquete-card:nth-child(4) { animation-delay: 0.2s; }
.paquete-card:nth-child(5) { animation-delay: 0.25s; }
.paquete-card:nth-child(6) { animation-delay: 0.3s; }

/* ─── Paquetes Header (index dynamic) ─────────────────────────── */
.paquetes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.paquetes-header-left .section-title {
    margin-bottom: 4px;
}

.paquetes-header-left .section-subtitle {
    margin-bottom: 0;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

/* ─── Loading Spinner ─────────────────────────────────────────── */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 0;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ─── Auth Pages ──────────────────────────────────────────────── */
.auth-section {
    padding: 60px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: rgba(78, 201, 78, 0.1);
    border: 2px solid rgba(78, 201, 78, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.nav-link-login {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: var(--radius-sm);
    padding: 8px 18px !important;
}

.nav-link-logout {
    color: var(--error) !important;
}

.nav-link-logout:hover {
    background: var(--error-bg) !important;
}

/* ─── Dashboard & Admin ───────────────────────────────────────── */
.dashboard-section {
    padding: 40px 0 80px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    padding: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    flex-wrap: wrap;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.admin-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav-link.active {
    color: white;
    background: var(--gradient-primary);
}

/* ─── Stats Grid ──────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

/* ─── Action Buttons ──────────────────────────────────────────── */
.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.action-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.action-btn.edit:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
}

.action-btn.delete:hover {
    border-color: var(--error);
    color: var(--error);
    background: var(--error-bg);
}

/* ─── Status cancelada ────────────────────────────────────────── */
.status-cancelada {
    background: var(--error-bg);
    color: var(--error);
}

/* ─── Select styling ──────────────────────────────────────────── */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ─── Checkbox styling ────────────────────────────────────────── */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    vertical-align: middle;
    margin-right: 6px;
}

/* ─── Action Buttons (edit/delete) ────────────────────────────── */
.action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.action-btn.edit:hover {
    background: rgba(59,130,246,0.15);
    color: var(--blue);
    border-color: rgba(59,130,246,0.3);
}

.action-btn.delete:hover {
    background: rgba(239,68,68,0.15);
    color: var(--error);
    border-color: rgba(239,68,68,0.3);
}

/* ─── Responsive additions ────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-card {
        padding: 28px 20px;
    }

    .admin-nav {
        gap: 4px;
        padding: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-nav-link {
        padding: 8px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .admin-nav-link svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

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

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

    .stat-card {
        padding: 16px;
        gap: 10px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header .btn {
        width: 100%;
    }
}
