/* =========================================
   YONO APPS — PREMIUM UI v4.0
   Light Premium UI + Vibrant Accents
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* =========================================
   1. DESIGN TOKENS
   ========================================= */
:root {
    /* Brand Palette */
    --accent: #f97316;
    /* orange fire */
    --accent-2: #22c55e;
    /* green cash */
    --accent-blue: #3b82f6;
    /* download blue */
    --accent-gold: #f59e0b;
    /* gold star */
    --danger: #ef4444;

    /* Light Background System */
    --bg-base: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-glass: rgba(0, 0, 0, 0.04);
    --bg-header: rgba(255, 255, 255, 0.95);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-white: #0f172a; /* Changed to dark for light headers */

    /* Borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(249, 115, 22, 0.2);
    --border-blue: rgba(59, 130, 246, 0.2);

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(249, 115, 22, 0.1);
    --shadow-btn: 0 4px 12px rgba(59, 130, 246, 0.3);

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Fonts */
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   2. BASE RESET
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    background-image: none; /* Removed dark gradients */
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =========================================
   3. UTILITIES
   ========================================= */
.container {
    max-width: 900px; /* Increased from 800px */
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.hidden-mobile {
    display: block !important;
}

.hidden-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }

    .hidden-desktop {
        display: block !important;
    }
}

/* =========================================
   4. HEADER (Glassmorphism)
   ========================================= */
.site-header,
#masthead,
.main-header-bar,
.ast-primary-header-bar {
    background: var(--bg-header) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    position: sticky;
    top: 0;
    z-index: 999999 !important;
}

.site-header .custom-logo,
.site-header .site-logo-img img {
    width: 44px;
    height: 44px;
    margin-left: 16px;
    border-radius: 10px;
}

.site-header .site-title a,
.site-header .ast-site-title-wrap a {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-white) !important;
    letter-spacing: -0.02em;
}

/* Hide 3-line hamburger menu button */
.menu-toggle,
.main-header-menu-toggle,
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap {
    display: none !important;
}

.main-header-menu .menu-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary) !important;
    padding: 0 12px;
    transition: color 0.2s;
}

.main-header-menu .menu-link:hover {
    color: var(--accent) !important;
}

/* Desktop header always visible, mobile header hidden */
#ast-desktop-header {
    display: block !important;
}

#ast-mobile-header {
    display: none !important;
}

/* On mobile: show mobile header with inline nav (no hamburger) */
@media (max-width: 921px) {
    #ast-mobile-header {
        display: block !important;
    }

    #ast-desktop-header {
        display: none !important;
    }

    /* Show mobile nav links inline always */
    #ast-mobile-header .main-navigation,
    #ast-mobile-header #ast-hf-mobile-menu {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center !important; /* Centered for balance */
        gap: 4px;
        padding: 6px 10px;
        width: 100% !important;
    }

    #ast-mobile-header .main-navigation .menu-item a {
        font-size: 12px;
        padding: 4px 10px;
        border-bottom: none !important;
    }

    /* Mobile header top row: logo+brand left | search right */
    #ast-mobile-header .ast-builder-grid-row-has-sides {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 4px !important; /* Slight inner padding for balance */
    }

    /* Mobile right section: show search, hide hamburger */
    #ast-mobile-header .site-header-primary-section-right {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important; /* Don't grow excessively */
        justify-content: flex-end !important;
    }

    /* Hide hamburger button — we already show nav inline */
    #ast-mobile-header .menu-toggle,
    #ast-mobile-header .ast-button-wrap {
        display: none !important;
    }

    /* Show & style mobile search */
    #ast-mobile-header .header-search-wrap {
        display: flex !important;
        width: 140px; /* Slimmer */
        max-width: 140px;
    }

    /* Mobile left section: more balanced */
    #ast-mobile-header .site-header-primary-section-left {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }
}

.ast-mobile-header-wrap,
.ast-mobile-header-content,
.ast-mobile-popup-drawer,
.ast-mobile-popup-inner,
.ast-mobile-popup-content,
.main-navigation,
.main-header-menu,
#ast-desktop-header,
#ast-mobile-header {
    background-color: var(--bg-surface) !important;
    background: var(--bg-surface) !important;
}

.ast-mobile-header-wrap .main-navigation a {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    font-weight: 600;
}

.ast-mobile-menu-trigger-fill,
.ast-icon svg {
    fill: var(--text-primary) !important;
}

/* =========================================
   5. SECONDARY NAV — HIDDEN (duplicate menu)
   ========================================= */
.secondary-nav {
    display: none !important;
}

/* =========================================
   6. SEARCH BAR
   ========================================= */
.search-section {
    padding: 14px 16px 10px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 65px;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    opacity: 0.4;
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-input-wrapper input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-clear {
    position: absolute;
    right: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}

.search-clear:hover {
    background: var(--border);
    color: var(--text-primary);
}

.search-btn {
    padding: 12px 22px;
    border: none;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-btn);
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.search-btn:active {
    transform: translateY(0);
}

.search-results-info {
    text-align: center;
    padding: 8px 0 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.search-results-info strong,
.search-back-link {
    color: var(--accent-blue);
}

.search-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .search-input-wrapper input {
        font-size: 13px;
        padding: 10px 36px;
    }

    .search-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* =========================================
   7. PAGE HEADING
   ========================================= */
.seo-page-heading {
    font-family: var(--font-head) !important;
    font-size: 16px !important; /* Slightly smaller to save space */
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    text-align: center;
    padding: 8px 16px 2px; /* Reduced from 18px 16px 8px */
    letter-spacing: -0.01em;
}

.seo-page-heading span {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   8. SEO BANNER (Announcement Bar)
   ========================================= */
.seo-banner {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    border-radius: var(--r-md);
    margin: 6px 16px 10px; /* Reduced from 10px 16px 16px */
    padding: 8px 16px !important; /* Reduced from 12px 16px */
    text-align: center;
}

.seo-banner p {
    color: #166534 !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* =========================================
   9. CATEGORY FILTER PILLS
   ========================================= */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 12px 14px;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 500px; /* Increased to allow more width on larger phones */
}

.btn-cat {
    flex: 1; /* Auto adjust width */
    text-align: center;
    white-space: nowrap;
}

.btn-cat {
    flex: 1;
    padding: 10px 20px;
    border-radius: 100px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn-cat:first-child {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-cat:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

.btn-cat:last-child {
    background: transparent;
    color: #ef4444;
    border-color: #dc2626;
}

.btn-cat:last-child:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

/* =========================================
   10. GAME CARDS — PREMIUM REDESIGN
   ========================================= */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced from 10px to fit more items */
    padding: 4px 12px 60px;
}

.game-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap */
    padding: 6px 100px 6px 8px; /* Space on right for absolute button */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    width: 100% !important; /* Force full width within list */
    box-sizing: border-box !important;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.game-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.game-card:hover::before {
    opacity: 1;
}

/* Rank Badge */
.game-rank,
.game-card__rank {
    position: absolute;
    top: -6px;
    left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    z-index: 10;
}

/* Rank 1-3 special colors */
.game-card:nth-child(1) .game-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.game-card:nth-child(2) .game-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.game-card:nth-child(3) .game-rank {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Game Image */
.game-image,
.game-card__image {
    flex-shrink: 0;
    width: 48px; /* Slightly smaller icon to save height */
    height: 48px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: transparent;
    border: none;
}

.game-image img,
.game-card__image img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--r-sm);
    transition: transform 0.3s ease;
    display: block;
}

.game-card:hover .game-image img {
    transform: scale(1.06);
}

/* Content */
.game-details {
    flex: 1;
    min-width: 0;
}

/* Title */
.game-title,
.game-card__title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary) !important;
    line-height: 1.3;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile info block */
.game-info-mobile {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Bonus & Withdraw text */
.mobile-bonus-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fb7185;
    line-height: 1.3;
}

.mobile-withdraw-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-2);
    margin-top: 2px;
    line-height: 1.3;
}

.mobile-bonus-text svg {
    width: 12px;
    height: 12px;
    fill: #fb7185;
    flex-shrink: 0;
}

.mobile-withdraw-text svg {
    width: 12px;
    height: 12px;
    fill: var(--accent-2);
    flex-shrink: 0;
}

/* Download Button (Mobile - absolute positioned) */
.btn-download-mobile,
.game-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 14px;
    height: 34px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff !important;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--r-sm);
    border: none;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-download-mobile:hover,
.game-card__btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    transform: translateY(calc(-50% - 1px));
}

.btn-download-mobile svg,
.game-card__btn svg {
    width: 9px;
    height: 9px;
    fill: currentColor;
}

/* Desktop layout */
.game-info-desktop {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.icon-gift {
    fill: #fb7185;
    width: 13px;
    height: 13px;
}

.icon-home {
    fill: var(--accent-2);
    width: 13px;
    height: 13px;
}

.game-action-desktop {
    margin-top: 8px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    color: #fff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-btn);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.btn-download svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Desktop responsive tweaks */
@media (min-width: 768px) {
    .games-list {
        gap: 14px;
        padding: 8px 16px 80px;
    }

    .game-card {
        padding: 18px 20px;
        gap: 18px;
        align-items: center;
    }

    .game-rank {
        top: -8px;
        left: -8px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .game-image {
        width: 72px;
        height: 72px;
    }

    .game-details {
        display: flex;
        align-items: center;
        gap: 20px;
        flex: 1;
    }

    .game-title {
        font-size: 15px;
        min-width: 130px;
        max-width: 180px;
        margin: 0;
    }

    .game-info-desktop {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
}

/* =========================================
   11. FOOTER
   ========================================= */
.site-footer {
    background: var(--bg-surface) !important;
    border-top: 1px solid var(--border) !important;
    padding: 28px 16px;
    text-align: center;
    color: var(--text-secondary) !important;
}

.site-footer p {
    font-size: 13px;
    color: var(--text-muted) !important;
    margin-bottom: 8px;
}

.site-footer a {
    color: var(--accent-blue) !important;
}

/* =========================================
   12. GAME PAGE STYLES (game.php)
   ========================================= */
.elementor-heading-title.game-title-text {
    font-family: var(--font-head) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    line-height: 1.2 !important;
}

.elementor-button {
    border-radius: var(--r-sm) !important;
    font-family: var(--font-head) !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

/* Download button on game page */
.elementor-element-99ef41b .elementor-button {
    background: linear-gradient(135deg, var(--accent), #ea580c) !important;
    color: #fff !important;
    font-size: 16px !important;
    padding: 14px 30px !important;
    border-radius: var(--r-md) !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
    letter-spacing: 0.05em !important;
    width: 100% !important;
    text-align: center !important;
}

.elementor-element-99ef41b .elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.55) !important;
}

/* Telegram button on game page */
.elementor-element-cd6ff72 .elementor-button {
    background: linear-gradient(135deg, #0088cc, #006699) !important;
    color: #fff !important;
    border: none !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    width: 100% !important;
}

.elementor-element-cd6ff72 .elementor-button-text,
.elementor-element-cd6ff72 i {
    color: #fff !important;
}

/* Icon box stats */
.elementor-icon-box-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 8px;
    text-align: center;
    transition: border-color 0.2s;
}

.elementor-icon-box-wrapper:hover {
    border-color: var(--accent);
}

.elementor-icon-box-icon i,
.elementor-icon-box-icon svg {
    color: var(--accent-gold) !important;
    fill: var(--accent-gold) !important;
    font-size: 18px !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.elementor-icon-box-title,
.elementor-icon-box-title span {
    color: var(--text-primary) !important;
    font-family: var(--font-head) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    filter: none !important;
}

.elementor-icon-box-description {
    color: var(--text-secondary) !important;
    font-size: 11px !important;
    filter: none !important;
}

/* Game logo on game page */
.site-content .elementor-widget-image img {
    border-radius: var(--r-lg) !important;
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    object-fit: cover !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #ffffff !important;
}

/* Game extra content section */
.game-extra-content {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
}

.game-extra-content h2,
.game-extra-content h3 {
    color: var(--text-primary) !important;
    font-family: var(--font-head) !important;
    font-weight: 700 !important;
}

.game-extra-content p,
.game-extra-content li,
.game-extra-content span {
    color: var(--text-secondary) !important;
}

/* Important notice box */
.important-notice-inline {
    background: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
    border-left: 4px solid var(--danger) !important;
    border-radius: var(--r-md) !important;
    color: var(--text-primary) !important;
}

.important-notice-inline h4 {
    color: var(--danger) !important;
}

.important-notice-inline div,
.important-notice-inline p {
    color: var(--text-secondary) !important;
}

/* =========================================
   13. MARQUEE / TICKER
   ========================================= */
.marquee-wrap {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.06));
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    padding: 8px 0;
    overflow: hidden;
}

.marquee-wrap marquee,
.marquee-wrap p {
    color: var(--accent) !important;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   14. SWIPER BANNER
   ========================================= */
.swiper {
    border-radius: var(--r-lg);
    overflow: hidden;
}

.swiper-slide img {
    border-radius: var(--r-md);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
}

.swiper-pagination-bullet-active {
    background: var(--accent);
}

/* =========================================
   15. SCROLL & EMPTY STATE
   ========================================= */
.no-games {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 50px 24px;
    text-align: center;
    margin: 20px 12px;
    color: var(--text-secondary) !important;
}

.no-games p {
    font-size: 16px;
    color: var(--text-secondary) !important;
}

/* =========================================
   16. MISC OVERRIDES for Dark Mode
   ========================================= */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
li,
div {
    color: var(--text-primary);
}

a:hover {
    color: var(--accent);
}

input,
textarea,
select {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
}

input::placeholder {
    color: var(--text-muted) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =========================================
   17. ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.15);
    }
}

.game-card {
    animation: fadeUp 0.35s ease both;
}

.game-card:nth-child(1) {
    animation-delay: 0.02s;
}

.game-card:nth-child(2) {
    animation-delay: 0.04s;
}

.game-card:nth-child(3) {
    animation-delay: 0.06s;
}

.game-card:nth-child(4) {
    animation-delay: 0.08s;
}

.game-card:nth-child(5) {
    animation-delay: 0.10s;
}

.game-card:nth-child(6) {
    animation-delay: 0.12s;
}

.game-card:nth-child(7) {
    animation-delay: 0.14s;
}

.game-card:nth-child(8) {
    animation-delay: 0.16s;
}

.game-card:nth-child(9) {
    animation-delay: 0.18s;
}

.game-card:nth-child(10) {
    animation-delay: 0.20s;
}

/* Download button pulse on game page */
.elementor-element-99ef41b .elementor-button {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* =========================================
   18. SAFE OVERRIDES (Astra compat)
   ========================================= */
.site-content {
    position: relative;
    z-index: 1 !important;
}

.site-header,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-main-header-wrap,
.ast-mobile-header-wrap,
.main-header-bar,
.ast-primary-header-bar {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
}

.main-navigation ul,
.main-header-menu,
.ast-hf-menu-1,
.ast-hf-mobile-menu,
.ast-builder-menu-1,
.ast-builder-menu-mobile {
    background: var(--bg-surface) !important;
}

.main-header-menu .sub-menu,
.main-header-menu .children {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-md) !important;
}

/* =========================================
   19. HEADER SEARCH BAR STYLES
   ========================================= */
.header-search-wrap {
    flex-grow: 1;
    max-width: 320px; /* Slightly narrower to fit well */
    margin: 0 15px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 2px 14px;
    transition: all 0.3s ease;
}

.header-search-form:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

.header-search-input {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    width: 100%;
    font-size: 14px;
    color: var(--text-primary) !important;
    outline: none !important;
}

.header-search-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 8px !important; /* Margin on the left now */
    color: var(--text-muted) !important;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.header-search-form:focus-within .header-search-btn {
    color: var(--accent) !important;
}

/* Mobile Search bar tweaks */
@media (max-width: 768px) {
    .header-search-wrap {
        margin: 0 10px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .header-search-wrap {
        margin: 0 5px;
        max-width: 130px;
    }
    .header-search-input { font-size: 12px; }
    .header-search-btn { font-size: 12px; }
}

/* =========================================
   20. HEADER LAYOUT OVERRIDES
   ========================================= */

/* Fix Astra's grid to allow search bar to sit properly */
#ast-desktop-header .ast-builder-grid-row-has-sides {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Left section: logo + brand — no excessive gap */
.site-header-primary-section-left {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

/* Logo and brand name spacing */
.site-branding.ast-site-identity {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.site-logo-img {
    flex-shrink: 0;
}

.site-logo-img img.custom-logo { width: 44px !important; height: 44px !important; } /* Smaller logo */

.ast-site-title-wrap {
    display: block !important; /* ensure brand name is always visible */
}

.site-title a {
    font-family: var(--font-head) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--text-white) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

/* Right section: search on left of nav links */
.site-header-primary-section-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    justify-content: flex-end !important;
}

/* Search bar inside right section */
.header-search-wrap {
    flex-shrink: 0;
    max-width: 220px;
    width: 220px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 4px 10px;
    transition: border-color 0.3s;
}

.header-search-form:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.header-search-input {
    background: transparent !important;
    border: none !important;
    padding: 5px 0 !important;
    width: 100%;
    font-size: 13px;
    color: var(--text-primary) !important;
    outline: none !important;
}

.header-search-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 6px !important;
    color: var(--text-muted) !important;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-search-form:focus-within .header-search-btn {
    color: var(--accent) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .header-search-wrap {
        max-width: 150px;
        width: 150px;
    }
    
    .site-title a {
        font-size: 11px !important;
    }
}

@media (max-width: 400px) {
    .header-search-wrap {
        max-width: 110px;
        width: 110px;
    }
    .header-search-input {
        font-size: 11px;
    }
}

/* =========================================
   21. GLOBAL MOBILE EDGE PADDING FIX
   ========================================= */

/* Prevent any content touching screen edges on mobile */
@media (max-width: 921px) {

    /* Main content wrapper */
    .main-content,
    .site-content,
    #content,
    .ast-container,
    .ast-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* All page-level containers */
    .about-container,
    .contact-container,
    .disclaimer-container,
    .game-container,
    .games-section,
    .category-section,
    .hero-section,
    .search-results-section,
    .page-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    /* Cards — no full-bleed */
    .game-card,
    .game-row,
    .category-card,
    .about-content-section,
    .important-notice-section,
    .site-footer,
    .footer-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    /* Ensure nothing overflows horizontally */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .site-content,
    .main-content,
    .container,
    .ast-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Full-width containers */
    .games-grid,
    .games-list {
        padding-left: 6px !important; /* Minimal gap for separation from edge */
        padding-right: 6px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Header inner: no edge overflow */
    .ast-container,
    .main-header-bar,
    .ast-primary-header-bar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
/* =========================================
   22. FOOTER ABOUT SECTION PADDING
   ========================================= */

/* Footer about section always needs inner padding */
.about-content-section,
.about-content-wrapper,
.about-full-content,
.important-notice-section,
.important-notice-box,
.notice-content {
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
}

@media (max-width: 921px) {
    .about-content-section,
    .about-content-wrapper,
    .about-full-content,
    .important-notice-section,
    .footer-content,
    .site-footer {
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box;
    }
    .main-content,
    .site-content,
    #content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 600px) {
    .site-title a { font-size: 11px !important; }
    .header-search-wrap { 
        flex: 1 !important; /* Grow to fill space */
        max-width: 140px !important; 
        min-width: 100px !important;
    }
    .game-card { padding-right: 90px !important; } 
}
