/* ===================================
   DESIGN SYSTEM / TOKENS
   =================================== */
:root {
    /* Colors */
    --bg-primary: #1a1f2e;
    --bg-secondary: #232940;
    --bg-card: #2a3150;
    --bg-card-hover: #313a5c;
    --bg-modal: #232940;
    --bg-header: rgba(26, 31, 46, 0.92);

    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --accent-coral: #f87171;
    --accent-orange: #f59e0b;
    --accent-cyan: #22d3ee;
    --accent-purple: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #ef4444, #f97316);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #f87171;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);

    /* Spacing */
    --container-padding: 40px;
    --section-gap: 60px;
    --card-radius: 16px;
    --btn-radius: 50px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.5);
    --shadow-btn: 0 4px 20px rgba(239, 68, 68, 0.4);
    --shadow-glow: 0 0 80px rgba(239, 68, 68, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

/* ===================================
   RESET & BASE
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input {
    border: none;
    outline: none;
    font-family: inherit;
    background: none;
}

/* ===================================
   HEADER
   =================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-accent {
    color: var(--accent-red);
}

#main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

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

.nav-link.active {
    color: var(--text-primary);
    background: rgba(239, 68, 68, 0.12);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===================================
   HERO SECTION
   =================================== */
#hero-section {
    padding: 140px var(--container-padding) 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-coral);
    margin-bottom: 24px;
    animation: slideUp 0.6s var(--ease-out) both;
}

#hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    animation: slideUp 0.6s var(--ease-out) 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
    animation: slideUp 0.6s var(--ease-out) 0.2s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: slideUp 0.6s var(--ease-out) 0.3s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

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

/* ===================================
   SECTIONS COMMON
   =================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.section-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-bar {
    width: 4px;
    height: 28px;
    background: var(--accent-red);
    border-radius: 4px;
    flex-shrink: 0;
}

.section-title-group h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* ===================================
   TRENDING GAMES SECTION
   =================================== */
#trending {
    padding: 20px 0 var(--section-gap);
}

.trending-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.trending-scroll::-webkit-scrollbar {
    display: none;
}

/* Trending Scroll Wrapper & Hint */
.trending-wrapper {
    position: relative;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 4px 0;
    color: var(--text-muted);
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.scroll-hint-arrow {
    width: 18px;
    height: 18px;
    animation: bounceRight 1.5s ease-in-out infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.trending-card {
    flex-shrink: 0;
    width: 170px;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-card);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.trending-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
}

.trending-card:hover::before {
    opacity: 1;
}

.trending-icon-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 14px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.trending-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.trending-card-rating .star-icon {
    width: 14px;
    height: 14px;
}

/* ===================================
   SEARCH BOX
   =================================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 50px;
    padding: 10px 20px;
    min-width: 260px;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

#search-input {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

#search-input::placeholder {
    color: var(--text-muted);
}

/* ===================================
   ALL GAMES GRID
   =================================== */
#all-games {
    padding-bottom: var(--section-gap);
}

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

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: 22px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
    border-color: rgba(239, 68, 68, 0.15);
}

.game-card:hover::after {
    opacity: 1;
}

.game-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.game-card-author {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.game-card-author span {
    color: var(--accent-cyan);
    font-weight: 600;
}

.game-card-platforms {
    display: flex;
    gap: 6px;
    align-items: center;
}

.game-card-platforms svg {
    width: 13px;
    height: 13px;
    color: var(--text-muted);
}

.game-card-body {
    display: flex;
    gap: 16px;
    flex: 1;
}

.game-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.game-card-info {
    flex: 1;
    min-width: 0;
}

.game-card-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.game-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
}

.game-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.game-card-rating .star-icon {
    width: 14px;
    height: 14px;
}

.game-card-rating span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.game-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.game-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.install-btn {
    padding: 8px 28px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-btn);
    letter-spacing: 0.02em;
}

.install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.star-icon {
    fill: #fbbf24;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 1rem;
    font-weight: 500;
}

/* ===================================
   CONTENT LOCKER / VERIFICATION PAGE
   =================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Locker Page Card --- */
.locker-page {
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 50%, #111125 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow:
        0 0 60px rgba(239, 68, 68, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: scale(0.92) translateY(30px);
    transition: transform 0.45s var(--ease-out);
    overflow: hidden;
    padding: 0;
    margin: auto 0;
    flex-shrink: 0;
}

.modal-overlay.active .locker-page {
    transform: scale(1) translateY(0);
}

/* Top Glow Effect */
.locker-top-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Close Button */
.locker-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.locker-close svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.locker-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

/* Game Icon */
.locker-game-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 30px auto 18px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(239, 68, 68, 0.2);
    position: relative;
    z-index: 1;
}

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

/* Title */
.locker-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.locker-title-accent {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.locker-subtitle {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 30px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.locker-highlight {
    color: var(--accent-red);
    font-weight: 700;
}

.locker-highlight-underline {
    text-decoration: underline;
    text-decoration-color: var(--accent-red);
    text-underline-offset: 3px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Steps Indicator */
.locker-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 40px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.locker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.locker-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.locker-step.completed .locker-step-circle {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #22c55e;
}

.locker-step.active .locker-step-circle {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    animation: pulseStep 2s ease-in-out infinite;
}

@keyframes pulseStep {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.6); }
}

.locker-step-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.locker-step.completed .locker-step-label {
    color: #22c55e;
}

.locker-step.active .locker-step-label {
    color: var(--accent-red);
    font-weight: 800;
}

.locker-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 2px;
    min-width: 30px;
}

.locker-step-line.completed {
    background: linear-gradient(90deg, #22c55e, #22c55e);
}

/* Offers Section */
.locker-offers-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin: 0 20px 20px;
    padding: 18px;
    position: relative;
    z-index: 1;
}

.locker-offers-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.locker-offers-icon {
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.locker-offers-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.locker-offers-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* OGAds container - make the content locker fit inside */
#ogads-locker-container {
    min-height: 120px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#ogads-locker-container iframe,
#ogads-locker-container #locker-iframe {
    width: 100% !important;
    min-height: 350px;
    border: none !important;
    border-radius: 10px !important;
    background: transparent;
    display: block;
}

/* Override OGAds default styling to blend in */
#ogads-locker-container iframe {
    border-radius: 10px !important;
    width: 100% !important;
}

/* Verifying Section */
.locker-verifying {
    text-align: center;
    padding: 20px 20px 16px;
    position: relative;
    z-index: 1;
}

.locker-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spinLoader 1s linear infinite;
}

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

.locker-verifying-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.locker-verifying-timer {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Bottom Stats Bar */
.locker-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

.locker-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.locker-stat-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-red);
}

/* Red border glow on sides */
.locker-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    z-index: 2;
}

.locker-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
    z-index: 2;
}

/* ===================================
   INSTALL STEP CONTAINERS
   =================================== */
.install-step {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}

/* ===================================
   STEP 1 & 2: DETAIL / INSTALLING CARD
   =================================== */
.detail-card {
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 50%, #111125 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(100, 120, 200, 0.12);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    margin: auto 0;
    flex-shrink: 0;
}
.detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
}
.detail-close svg { width: 16px; height: 16px; color: #94a3b8; }
.detail-close:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg); }
.detail-banner {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.detail-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.5);
    transform: scale(1.3);
}
.detail-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, #1a1a2e 100%);
}
.detail-icon-wrap {
    width: 90px;
    height: 90px;
    margin: -50px auto 14px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 0 3px rgba(100,120,200,0.15);
}
.detail-icon-img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { text-align: center; padding: 0 24px; }
.detail-game-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #f1f5f9;
    margin-bottom: 4px;
}
.detail-downloads {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 16px;
}
.detail-downloads svg { color: #64748b; }
.detail-testimonial {
    margin: 0 20px 16px;
    padding: 14px 16px;
    background: rgba(100,120,200,0.06);
    border-left: 3px solid #4f6df5;
    border-radius: 0 10px 10px 0;
}
.detail-testimonial-text {
    font-size: 0.78rem;
    color: #c8d0e0;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 6px;
}
.detail-testimonial-author {
    font-size: 0.72rem;
    color: #4f6df5;
    font-weight: 600;
}
.detail-description {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.6;
    padding: 0 24px;
    margin-bottom: 16px;
}
.detail-readiness {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 16px;
    font-size: 0.78rem;
}
.detail-readiness-label { color: #64748b; }
.detail-readiness-value { color: #94a3b8; font-weight: 700; }
.detail-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 40px);
    margin: 0 20px 24px;
    padding: 15px;
    background: #4f6df5;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(79,109,245,0.4);
}
.detail-install-btn:hover { background: #3d5bd9; transform: translateY(-1px); }
.detail-install-btn svg { width: 18px; height: 18px; }

/* Installing button area */
.installing-btn-wrap {
    margin: 0 20px 24px;
    background: rgba(30,35,55,0.9);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(100,120,200,0.1);
}
.installing-progress-bar {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.installing-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(79,109,245,0.2), rgba(79,109,245,0.35));
    transition: width 0.2s ease;
    border-radius: 14px;
}
.installing-btn-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
}
.installing-spinner-icon { animation: spinLoader 1.5s linear infinite; }

/* ===================================
   STEP 3: PROCESSING
   =================================== */
.processing-card {
    background: linear-gradient(180deg, #1a1a2e 0%, #12122a 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(100,120,200,0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    margin: auto 0;
    padding-bottom: 30px;
    flex-shrink: 0;
}
.processing-bg {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}
.processing-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px) brightness(0.3);
    transform: scale(1.5);
}
.processing-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, #1a1a2e);
}
.processing-gear-wrap {
    width: 70px;
    height: 70px;
    margin: -20px auto 16px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.processing-gear-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid rgba(79,109,245,0.3);
    border-top-color: #4f6df5;
    animation: spinLoader 2s linear infinite;
}
.processing-gear-icon {
    color: #4f6df5;
    animation: spinLoader 4s linear infinite reverse;
    width: 36px;
    height: 36px;
}
.processing-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.processing-subtitle {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    padding: 0 30px;
    margin-bottom: 20px;
}
#processing-game-name { color: #94a3b8; font-weight: 600; }
.processing-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    margin: 0 30px 28px;
    overflow: hidden;
}
.processing-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f6df5, #7c3aed);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.processing-steps-list {
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.processing-step-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.processing-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255,255,255,0.04);
    color: #475569;
    border: 2px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.processing-step-num.active {
    background: #4f6df5;
    border-color: #4f6df5;
    color: white;
    box-shadow: 0 0 16px rgba(79,109,245,0.5);
}
.processing-step-num.completed {
    background: rgba(34,197,94,0.15);
    border-color: #22c55e;
    color: #22c55e;
}
.processing-step-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* ===================================
   FOOTER
   =================================== */
#main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 28px var(--container-padding);
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

#main-footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    margin-top: 4px;
    font-size: 0.72rem !important;
    opacity: 0.7;
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE — TABLET
   =================================== */
@media (max-width: 900px) {
    :root {
        --container-padding: 24px;
    }

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

    .header-badge {
        display: none;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    /* Card layout: switch to vertical (stacked) for 2-col grid */
    .game-card {
        padding: 14px;
    }

    .game-card-top {
        margin-bottom: 10px;
    }

    .game-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .game-card-icon {
        width: 64px;
        height: 64px;
    }

    .game-card-name-row {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .game-card-name {
        font-size: 0.88rem;
        text-align: center;
    }

    .game-card-desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
        text-align: center;
        margin-bottom: 10px;
    }

    .game-card-footer {
        justify-content: center;
    }

    .install-btn {
        padding: 7px 22px;
        font-size: 0.78rem;
    }
}

/* ===================================
   RESPONSIVE — MOBILE
   =================================== */
@media (max-width: 600px) {
    :root {
        --container-padding: 16px;
        --section-gap: 40px;
    }

    .header-inner {
        height: 56px;
        padding: 0 16px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    #hero-section {
        padding: 110px 16px 40px;
    }

    #hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-stats {
        gap: 14px;
    }

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

    .stat-label {
        font-size: 0.68rem;
    }

    .stat-divider {
        height: 30px;
    }

    .section-title-group h2 {
        font-size: 1.05rem;
    }

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

    .search-box {
        width: 100%;
        min-width: unset;
    }

    .trending-card {
        width: 140px;
        padding: 16px 12px;
    }

    .trending-icon-wrapper {
        width: 88px;
        height: 88px;
        border-radius: 14px;
    }

    .trending-card-name {
        font-size: 0.78rem;
        min-height: 32px;
    }

    .game-card {
        padding: 12px;
    }

    .game-card-top {
        margin-bottom: 8px;
    }

    .game-card-author {
        font-size: 0.65rem;
    }

    .game-card-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .game-card-name {
        font-size: 0.82rem;
    }

    .game-card-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }

    .install-btn {
        padding: 6px 18px;
        font-size: 0.75rem;
    }

    /* Locker Mobile */
    .modal-overlay {
        padding: 12px 8px;
    }

    .locker-page {
        max-width: 100%;
        border-radius: 16px;
    }

    .locker-game-icon-wrap {
        width: 56px;
        height: 56px;
        margin: 22px auto 12px;
        border-radius: 14px;
    }

    .locker-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .locker-subtitle {
        font-size: 0.76rem;
        padding: 0 18px;
        margin-bottom: 16px;
    }

    .locker-steps {
        padding: 0 20px;
        margin-bottom: 18px;
    }

    .locker-step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .locker-step-label {
        font-size: 0.58rem;
    }

    .locker-step-line {
        margin-bottom: 18px;
    }

    .locker-offers-section {
        margin: 0 10px 12px;
        padding: 12px;
    }

    .locker-offers-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .locker-offers-title {
        font-size: 0.9rem;
    }

    .locker-offers-desc {
        font-size: 0.7rem;
    }

    #ogads-locker-container iframe,
    #ogads-locker-container #locker-iframe {
        min-height: 300px;
    }

    .locker-verifying {
        padding: 14px 16px 10px;
    }

    .locker-spinner {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }

    .locker-verifying-text {
        font-size: 0.76rem;
    }

    .locker-verifying-timer {
        font-size: 0.82rem;
    }

    .locker-bottom-bar {
        gap: 10px;
        padding: 10px 12px;
    }

    .locker-stat {
        font-size: 0.6rem;
        gap: 4px;
    }

    .locker-stat-icon {
        width: 12px;
        height: 12px;
    }

    .locker-close {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }

    .locker-close svg {
        width: 14px;
        height: 14px;
    }
}

/* ===================================
   VERY SMALL SCREENS
   =================================== */
@media (max-width: 380px) {
    #hero-title {
        font-size: 1.45rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .trending-card {
        width: 125px;
    }

    .trending-icon-wrapper {
        width: 76px;
        height: 76px;
    }

    .games-grid {
        gap: 10px;
    }

    .game-card {
        padding: 10px;
    }

    .game-card-icon {
        width: 48px;
        height: 48px;
    }

    .game-card-name {
        font-size: 0.75rem;
    }

    .game-card-desc {
        display: none;
    }

    .install-btn {
        padding: 5px 14px;
        font-size: 0.7rem;
    }
}
