/**
 * RECARGOD v4.0 - POLISHED DESIGN
 * UniPin-inspired with better proportions
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-hover: #30363d;
    --primary: #f97316;
    --primary-hover: #fb923c;
    --success: #22c55e;
    --text: #ffffff;
    --text-primary: #ffffff;
    /* Added alias */
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;
    --border: #30363d;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:not(input):not(textarea):not(select) {
    cursor: default !important;
    user-select: none;
    -webkit-user-select: none;
}

input,
textarea,
select {
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}

a,
button,
.btn,
.package-card,
.game-card,
.nav a,
.chip,
.tab,
[onclick] {
    cursor: pointer !important;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    cursor: default;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    /* Slightly reduced vertical padding */
}

.header .container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 98%;
    /* Expand header to nearly full width */
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 8px;
    margin-right: auto;
}



.logo-icon {
    font-size: 1.8rem;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    /* Tighter padding */
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
    /* Prevent wrap */
}

.nav a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav a.active {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 200px;
    /* Reduced width */
    padding: 10px 16px 10px 38px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.85rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ========== HERO ========== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(249, 115, 22, 0.1), transparent 60%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    max-width: 550px;
}

.hero-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    color: #000;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    flex-shrink: 0;
}

.hero-visual img {
    width: 400px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* ========== FEATURES BAR ========== */
.features-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.features-bar .container {
    display: flex;
    justify-content: space-around;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

/* Mobile Features Bar Optimization */
@media (max-width: 768px) {
    .features-bar {
        padding: 12px 0;
    }

    .features-bar .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-items: center;
    }

    .feature-item {
        font-size: 0.75rem;
        gap: 6px;
        flex-direction: column;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .feature-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
}

/* ========== GAMES SECTION ========== */
.games-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--primary);
}

.filter-chips {
    display: flex;
    gap: 10px;
}

.chip {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========== GAMES GRID ========== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.game-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.game-card:hover .overlay-btn {
    transform: translateY(0);
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-price b {
    color: var(--success);
}

.card-rating {
    font-size: 0.85rem;
    color: #fbbf24;
}

/* ========== TRUST SECTION ========== */
.trust-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.trust-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.trust-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.trust-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.trust-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 16px 0 24px;
    font-size: 0.9rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-links h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ========== GAME PAGE ========== */
.page-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 32px 24px;
}

.back-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.back-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.back-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.game-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.game-hero img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.game-hero-overlay h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.game-tags {
    display: flex;
    gap: 10px;
}

.game-tags span {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== STEP CARDS ========== */
.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.step-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ========== FORMS ========== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ========== PACKAGES (PREMIUM DESIGN) ========== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.package-card {
    background: linear-gradient(145deg, #1e232d, #14181f);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Efecto Hover: Se eleva y brilla */
.package-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.package-card.selected {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.25);
}

.package-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

/* Icono/Diamante */
.package-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(0, 198, 255, 0.5));
}

/* Título del Producto */
.package-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Etiquetas especiales (Doble, Popular, etc.) */
.package-bonus {
    background: linear-gradient(90deg, #ff8a00, #ff5000);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    min-height: 18px;
    display: inline-block;
}

.package-bonus:empty {
    background: transparent;
    padding: 0;
}

/* Precio: Color más vibrante y legible */
.package-price {
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Efecto de brillo de fondo para ofertas especiales */
.package-card.featured {
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.package-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ========== SUMMARY ========== */
.order-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 14px;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

/* ========== VERIFY ========== */
.verify-result {
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 16px;
}

.verify-result.pending {
    background: rgba(59, 130, 246, 0.1);
    border: 1px dashed #3b82f6;
}

.verify-result.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
}

.verify-result.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
}

.verify-nickname {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0;
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 10px;
    min-width: 280px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual img {
        width: 300px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sticky Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    /* Ensure background is solid */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Add shadow for separation */
}

/* ... Mobile Styles ... */
/* ... Mobile Styles ... */
@media (max-width: 1024px) {
    .header .container {
        justify-content: space-between;
        padding: 10px 20px;
    }

    .nav,
    .header-actions,
    .search-box {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.8rem;
        padding: 10px;
        color: var(--primary);
        cursor: pointer;
        background: rgba(255, 255, 255, 0.05);
        /* Slight bg for click target */
        border-radius: 8px;
    }

    .mobile-menu-toggle:hover {
        background: rgba(249, 115, 22, 0.1);
    }

    /* ... remaning mobile styles ... */

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        display: block;
        width: 100%;
        max-width: 320px;
        height: 200px;
        margin: 0 auto;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    /* Improved Mobile Nav Buttons */
    /* Improved Mobile Nav Buttons */
    .mobile-nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 16px 20px !important;
        margin-bottom: 12px !important;
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        transition: all 0.3s !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) !important;
        border: 1px solid rgba(255, 152, 0, 0.3) !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
    }

    .mobile-nav-link:active,
    .mobile-nav-link:hover {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 191, 36, 0.1)) !important;
        border-color: #f97316 !important;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
    }

    .mobile-nav-link i {
        width: 35px !important;
        text-align: center !important;
        margin-right: 15px !important;
        color: #fbbf24 !important;
        font-size: 1.4rem !important;
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    }

    /* Specific styling for Logout button in mobile */
    .mobile-nav-link[href*="logout"] {
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.3);
    }

    .mobile-nav-link[href*="logout"] i {
        color: #ef4444;
    }

    .benefits-grid,
    .trust-grid,
    .footer-main,
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* PACKAGES MOBILE - Tablet */
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 5px 0;
    }

    .package-card {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .package-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .package-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .package-bonus {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    .package-price {
        font-size: 0.95rem;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .games-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-image {
        aspect-ratio: 1/1;
    }

    .hero-stats {
        flex-direction: row;
        gap: 10px;
        justify-content: space-around;
        width: 100%;
        margin-bottom: 20px;
    }

    .stat-value {
        font-size: 1.4rem;
    }


    .stat-label {
        font-size: 0.8rem;
    }

    /* PACKAGES MOBILE - Small Phones */
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 5px 0;
    }

    .package-card {
        padding: 12px 8px;
        border-radius: 10px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    }

    .package-card:hover {
        transform: translateY(-4px);
    }

    .package-card.selected::after {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: 6px;
        right: 6px;
    }

    .package-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .package-name {
        font-size: 0.75rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .package-bonus {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-bottom: 6px;
        min-height: 14px;
    }

    .package-price {
        font-size: 0.85rem;
        margin-top: 6px;
    }

    /* Step card compacto */
    .step-card {
        padding: 18px 14px;
        margin-bottom: 14px;
    }

    .step-head {
        margin-bottom: 16px;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .step-title {
        font-size: 1rem;
    }

    /* === MOBILE OPTIMIZATION (COMPACT MODE) === */
    .trust-card {
        padding: 12px;
    }

    .trust-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .trust-card h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .trust-card p {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    /* Compact Footer */
    .footer {
        padding: 20px 0;
        margin-top: 30px;
    }

    .footer-main {
        gap: 20px;
        padding-bottom: 20px;
    }

    .footer-brand p {
        display: none;
        /* Hide slogan to save space */
    }

    .footer-links h5 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    /* Ultra Compact Game Cards */
    .card-body {
        padding: 10px !important;
    }

    .card-body h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .card-footer {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .section-header {
        margin-bottom: 15px !important;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }
}

/* Animation refinement */
.hero-slide {
    transition: opacity 1s ease-in-out, transform 4s ease-out;
    /* Slower zoom */
}

.hero-slide.active img {
    transform: scale(1.05);
    /* Subtle zoom effect */
}

/* ========== USER AVATAR ========== */
.user-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

/* ========== DROPDOWNS ========== */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    height: 100%;
    padding: 0 10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 180px;
    padding: 8px 0;
    display: none;
    /* Changed from opacity/visibility */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s;
}

/* ... */

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    display: none;
    /* Changed from opacity/visibility */
    backdrop-filter: blur(5px);
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 2000;
    padding: 20px;
    /* Reduced top padding */
    transition: all 0.3s;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Prevents scroll chaining to body */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-overlay.active .mobile-nav-content {
    right: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: var(--primary);
}

.mobile-nav-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.mobile-nav-group-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}



/ *   = = = = = = = = = =   M O B I L E   N A V I G A T I O N   F I X E S   = = = = = = = = = =   * /     . m o b i l e - m e n u - t o g g l e    {
                 d i s p l a y :    n o n e ;
                 / *   H i d d e n   o n   d e s k t o p   * /             f o n t - s i z e :    1 . 5 r e m ;
                 c o l o r :    v a r ( - - t e x t ) ;
                 p a d d i n g :    8 p x ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r ) ;
                 b o r d e r - r a d i u s :    8 p x ;
                 b a c k g r o u n d :    v a r ( - - b g - s e c o n d a r y ) ;
         
}

         @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
                     / *   H i d e   D e s k t o p   N a v   * /             . n a v    {
                             d i s p l a y :    n o n e    ! i m p o r t a n t ;
                     
    }

                     / *   S h o w   M o b i l e   T o g g l e   * /             . m o b i l e - m e n u - t o g g l e    {
                             d i s p l a y :    f l e x ;
                             a l i g n - i t e m s :    c e n t e r ;
                             j u s t i f y - c o n t e n t :    c e n t e r ;
                     
    }

                     / *   A d j u s t   H e a d e r   L a y o u t   * /             . h e a d e r   . c o n t a i n e r    {
                             j u s t i f y - c o n t e n t :    s p a c e - b e t w e e n ;
                     
    }

                     . h e a d e r - a c t i o n s    {
                             g a p :    8 p x ;
                     
    }

                     / *   H i d e   s p e c i f i c   d e s k t o p   e l e m e n t s   i n   h e a d e r   a c t i o n s   i f   n e e d e d   * /             . s e a r c h - b o x    {
                             d i s p l a y :    n o n e ;
                             / *   H i d e   s e a r c h   b a r   i n   h e a d e r   o n   m o b i l e   i f   t o o   c r a m p e d   * /             
    }

         
}

     