/* assets/css/style.css - PixelDrop Game Store Unique Gamer Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&family=Orbitron:wght@600;800;900&display=swap');

:root {
    --pd-bg-dark: #07090e;
    --pd-bg-surface: #0e131f;
    --pd-bg-card: #141c2e;
    --pd-bg-card-hover: #1b263e;
    --pd-border: rgba(0, 240, 255, 0.15);
    --pd-border-glow: rgba(0, 240, 255, 0.5);
    
    --pd-cyan: #00f0ff;
    --pd-cyan-glow: 0 0 15px rgba(0, 240, 255, 0.5);
    --pd-magenta: #ff007f;
    --pd-magenta-glow: 0 0 15px rgba(255, 0, 127, 0.5);
    --pd-purple: #9d4edd;
    --pd-green: #00ff88;
    --pd-green-glow: 0 0 15px rgba(0, 255, 136, 0.4);
    --pd-gold: #ffb703;
    
    --pd-text-main: #f1f5f9;
    --pd-text-muted: #94a3b8;
    --pd-text-dim: #64748b;

    --font-heading: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pd-cyan);
    box-shadow: var(--pd-cyan-glow);
}

body {
    background-color: var(--pd-bg-dark);
    color: var(--pd-text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(157, 78, 221, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .gamer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-font {
    font-family: var(--font-display);
    letter-spacing: 1px;
}

/* Top System Ticker */
.system-ticker {
    background: #05070a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    padding: 6px 0;
    color: var(--pd-text-muted);
}

.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--pd-green);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px var(--pd-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Navbar */
.navbar-gamer {
    background: rgba(14, 19, 31, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--pd-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-gamer.scrolled {
    background: rgba(9, 13, 22, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(0, 240, 255, 0.3);
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--pd-cyan) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--pd-cyan);
    box-shadow: var(--pd-cyan-glow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Brand Logo */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00f0ff, #9d4edd);
    border-radius: 8px;
    color: #07090e;
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-icon {
    transform: rotate(0deg) scale(1.08);
}

/* Gamer Buttons */
.btn-gamer-primary {
    background: linear-gradient(135deg, #00f0ff, #00a8ff);
    color: #05070a !important;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-gamer-primary:hover {
    background: linear-gradient(135deg, #2bf4ff, #1bb0ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-gamer-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-gamer-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--pd-cyan);
    color: var(--pd-cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.btn-gamer-success {
    background: linear-gradient(135deg, #00ff88, #00b359);
    color: #05070a !important;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: var(--pd-green-glow);
    transition: all 0.25s ease;
}

.btn-gamer-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
}

/* Badge Styles */
.discount-badge {
    background: #00ff88;
    color: #07090e;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.platform-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Game Card */
.game-card {
    background: var(--pd-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--pd-border-glow);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
}

.game-card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #090d16;
}

.game-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-img-wrapper img {
    transform: scale(1.08);
}

.game-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
}

.game-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(14, 19, 31, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.game-card-wishlist:hover, .game-card-wishlist.active {
    background: rgba(255, 0, 127, 0.2);
    border-color: var(--pd-magenta);
    color: var(--pd-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

.game-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-title a {
    color: var(--pd-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.game-card-title a:hover {
    color: var(--pd-cyan);
}

.game-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.price-original {
    font-size: 0.85rem;
    color: var(--pd-text-dim);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pd-text-main);
    font-family: var(--font-heading);
}

.price-current.has-discount {
    color: var(--pd-green);
}

/* Featured Hero Showcase */
.hero-showcase {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.06);
}

.hero-main-display {
    position: relative;
    height: 520px;
    min-height: 520px;
    overflow: hidden;
    background-color: #0c1017;
    display: flex;
    align-items: flex-end;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(1.08) contrast(1.05);
    transition: opacity 0.3s ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(90deg, rgba(9, 13, 22, 0.82) 0%, rgba(9, 13, 22, 0.4) 45%, rgba(9, 13, 22, 0.05) 75%, transparent 100%),
        linear-gradient(0deg, rgba(9, 13, 22, 0.8) 0%, rgba(9, 13, 22, 0.2) 35%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 38px 45px;
    max-width: 740px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.hero-tagline {
    font-size: 0.98rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 620px;
}

.hero-tabs {
    background: #090d16;
    padding: 14px 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 520px;
}

.hero-tab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.hero-tab-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.hero-tab-item.active {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(0, 240, 255, 0.4);
    border-left: 3px solid var(--pd-cyan);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.05);
    transform: none;
}

.hero-tab-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--pd-cyan), var(--pd-neon-pink));
    opacity: 0;
    transition: none;
}

.hero-tab-item.active .hero-tab-progress {
    opacity: 1;
    width: 100%;
    transition: width 6.8s linear;
}

.hero-tab-img {
    width: 76px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

/* Hero Navigation Arrows */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(9, 13, 22, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    user-select: none;
}

.hero-nav-arrow i {
    pointer-events: none;
    font-size: 1.15rem;
}

.hero-nav-arrow:hover {
    background: var(--pd-cyan);
    color: #000;
    border-color: var(--pd-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.hero-prev {
    left: 12px;
}

.hero-next {
    right: 12px;
}

@media (max-width: 991px) {
    .hero-main-display {
        height: auto;
        min-height: 440px;
    }
    .hero-bg-img {
        object-position: center top;
    }
    .hero-overlay {
        background: 
            linear-gradient(0deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.72) 48%, rgba(9, 13, 22, 0.15) 80%, transparent 100%);
    }
    .hero-tabs {
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px 14px;
    }
    .hero-tabs #heroThumbList {
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 10px;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
    }
    .hero-tabs #heroThumbList::-webkit-scrollbar {
        height: 4px;
    }
    .hero-tabs #heroThumbList::-webkit-scrollbar-thumb {
        background: rgba(0, 240, 255, 0.3);
        border-radius: 4px;
    }
    .hero-tab-item {
        flex: 0 0 215px;
        min-width: 215px;
        scroll-snap-align: start;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 2px solid transparent;
    }
    .hero-tab-item.active {
        border-bottom: 2px solid var(--pd-cyan);
    }
    .hero-content {
        padding: 24px 20px;
    }
    .hero-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .hero-main-display {
        min-height: 400px;
    }
    .hero-content {
        padding: 18px 14px 14px;
    }
    .hero-title {
        font-size: 1.45rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    .hero-tagline {
        font-size: 0.84rem;
        line-height: 1.42;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px !important;
    }
    .hero-actions-container {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        gap: 8px;
    }
    .hero-price-box {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 12px !important;
    }
    .hero-price-box .price-current {
        font-size: 1.25rem !important;
    }
    .hero-btn-row {
        width: 100%;
        display: flex;
        gap: 6px;
    }
    .hero-btn-row .btn {
        padding: 8px 10px !important;
        font-size: 0.85rem;
    }
    .hero-btn-row #heroBuyBtn {
        flex: 1 1 auto;
        text-align: center;
    }
    .hero-btn-row #heroCartBtn {
        flex: 1.2 1 auto;
        text-align: center;
    }
    .hero-btn-row #heroWishlistBtn {
        flex: 0 0 42px;
        padding: 8px 0 !important;
        text-align: center;
    }
    .hero-tab-item {
        flex: 0 0 185px;
        min-width: 185px;
        padding: 7px 10px;
    }
    .hero-tab-img {
        width: 56px;
        height: 34px;
    }
    .hero-nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
        top: 22%;
    }
    .hero-prev {
        left: 8px;
    }
    .hero-next {
        right: 8px;
    }
    .hero-swipe-hint {
        font-size: 0.75rem;
        text-align: center;
        margin-top: 6px !important;
    }
}

/* Flash Deals Section */
.flash-deal-card {
    background: linear-gradient(135deg, rgba(20, 28, 46, 0.95), rgba(14, 19, 31, 0.98));
    border: 1px solid rgba(255, 0, 127, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.flash-deal-card:hover {
    border-color: var(--pd-magenta);
    box-shadow: 0 10px 35px rgba(255, 0, 127, 0.25);
    transform: translateY(-4px);
}

.flash-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--pd-magenta);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: var(--pd-magenta-glow);
    z-index: 2;
}

/* Filters & Navigation Pills */
.genre-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--pd-text-muted);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.genre-pill:hover, .genre-pill.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--pd-cyan);
    color: var(--pd-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* Toast Notification Styling */
.toast-gamer {
    background: #0e131f !important;
    border: 1px solid var(--pd-cyan) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--pd-cyan-glow) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* Details Page */
.game-header-hero {
    position: relative;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.3) 0%, rgba(7, 9, 14, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.purchase-card {
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.edition-selector-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edition-selector-card:hover, .edition-selector-card.selected {
    border-color: var(--pd-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.gallery-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumbnail:hover, .gallery-thumbnail.active {
    border-color: var(--pd-cyan);
    transform: scale(1.03);
}

/* Spec requirements card */
.spec-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px;
}

.spec-item {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.spec-label {
    color: var(--pd-text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.spec-val {
    color: #e2e8f0;
}

/* Digital Key Presentation */
.cdkey-box {
    background: #05070a;
    border: 1px dashed var(--pd-cyan);
    border-radius: 6px;
    padding: 10px 16px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--pd-cyan);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Footer */
.footer-gamer {
    background: #05070a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 0 30px;
    margin-top: 80px;
    color: var(--pd-text-muted);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--pd-cyan);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (Paddings, Margins, Typography & Buttons)
   ========================================================================== */

/* Prevent iOS Auto-Zoom on form inputs while maintaining clean styling */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    select.form-select,
    textarea.form-control {
        font-size: 16px !important;
    }
}

/* Base Responsive Gallery Image */
.game-main-gallery-img,
#mainGalleryImg {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: height 0.3s ease;
}

/* Tablet & Smaller Desktop Adjustments (<= 991px) */
@media (max-width: 991px) {
    .game-main-gallery-img,
    #mainGalleryImg {
        height: 350px !important;
    }

    .gallery-thumbnail {
        height: 68px !important;
    }

    /* Navbar Mobile Menu Styling */
    .navbar-gamer .navbar-collapse {
        background: #090d16;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 16px;
        margin-top: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    }

    .navbar-gamer .nav-link {
        padding: 10px 12px !important;
        border-radius: 6px;
    }

    .navbar-gamer .nav-link::after {
        display: none;
    }

    .navbar-gamer .nav-link:hover,
    .navbar-gamer .nav-link.active {
        background: rgba(0, 240, 255, 0.08);
    }
}

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    /* Fluid Container & Section Margins */
    .container-fluid.px-lg-5 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .py-5 {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Fluid Typography */
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .display-5 {
        font-size: 1.65rem !important;
        line-height: 1.25;
    }

    h1, .h1 {
        font-size: 1.55rem;
    }

    h2, .h2 {
        font-size: 1.35rem;
    }

    h3, .h3 {
        font-size: 1.2rem;
    }

    .gamer-title {
        font-size: 1.15rem;
        letter-spacing: 0.3px;
    }

    /* Touch-Scrollable Tab Bars & Nav Pills */
    #storeTabs,
    #gameDetailTabs,
    #paymentTabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        margin-bottom: 1.25rem !important;
        scrollbar-width: none;
    }

    #storeTabs::-webkit-scrollbar,
    #gameDetailTabs::-webkit-scrollbar,
    #paymentTabs::-webkit-scrollbar {
        display: none;
    }

    #storeTabs .nav-link,
    #gameDetailTabs .nav-link,
    #paymentTabs .nav-link {
        white-space: nowrap !important;
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        flex-shrink: 0;
    }

    /* Adaptive Card & Box Paddings */
    .spec-box {
        padding: 16px !important;
    }

    .purchase-card {
        padding: 18px !important;
    }

    .p-4 {
        padding: 1.25rem !important;
    }

    .p-lg-5 {
        padding: 1.5rem !important;
    }

    /* Footer Responsive Spacing */
    .footer-gamer {
        padding: 40px 0 24px !important;
        margin-top: 45px !important;
    }
}

/* Smartphone Screens (<= 576px) */
@media (max-width: 576px) {
    /* Snug Container Spacing */
    .container-fluid.px-lg-5 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Mobile Typography Refinement */
    .display-5 {
        font-size: 1.45rem !important;
        line-height: 1.2;
    }

    h1, .h1 {
        font-size: 1.35rem;
    }

    h2, .h2 {
        font-size: 1.2rem;
    }

    h3, .h3 {
        font-size: 1.1rem;
    }

    .brand-font {
        letter-spacing: 0.5px;
    }

    /* Mobile Buttons & Touch Targets */
    .btn-gamer-primary,
    .btn-gamer-secondary,
    .btn-gamer-success {
        padding: 8px 14px;
        font-size: 0.85rem;
        letter-spacing: 0.3px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Game Card Compactness */
    .game-card-body {
        padding: 12px;
    }

    .game-card-title {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .price-current {
        font-size: 1.15rem;
    }

    .price-original {
        font-size: 0.78rem;
    }

    .discount-badge {
        font-size: 0.75rem;
        padding: 2px 6px;
    }

    /* Game Detail Page Mobile Adjustments */
    .game-main-gallery-img,
    #mainGalleryImg {
        height: 230px !important;
    }

    .gallery-thumbnail {
        height: 52px !important;
    }

    .edition-selector-card {
        padding: 12px;
    }

    /* Digital CD Key Presentation on Small Screens */
    .cdkey-box {
        font-size: 0.85rem;
        letter-spacing: 1px;
        padding: 8px 10px;
        gap: 6px;
        word-break: break-all;
        max-width: 100%;
    }

    /* Flash Deals Card on Phones */
    .flash-deal-card {
        padding: 12px !important;
    }

    .flash-deal-card img {
        height: 150px !important;
    }

    /* Genre Pills Strip */
    .genre-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* VIP Newsletter Form Full-Width Stack */
    .footer-gamer form {
        flex-direction: column;
    }

    .footer-gamer form .btn {
        width: 100%;
    }

    /* Modal dialog snug sizing on mobile */
    .modal-dialog {
        margin: 0.75rem;
    }
}

/* ==========================================================================
   Legal & Contact Pages Styles (Terms, Privacy, Contact)
   ========================================================================== */

.page-hero {
    background: linear-gradient(180deg, rgba(14, 19, 31, 0.95) 0%, rgba(7, 9, 14, 0.98) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.legal-card {
    background: rgba(14, 19, 31, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legal-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
}

.legal-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
}

.legal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--pd-text-muted);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 6px;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.08);
    border-left-color: var(--pd-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    padding-left: 18px;
}

.legal-section {
    scroll-margin-top: 110px;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-callout {
    background: rgba(0, 240, 255, 0.04);
    border-left: 4px solid var(--pd-cyan);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.legal-callout.warning {
    background: rgba(255, 183, 3, 0.05);
    border-left-color: var(--pd-gold);
}

.legal-callout.success {
    background: rgba(0, 255, 136, 0.05);
    border-left-color: var(--pd-green);
}

.legal-callout.danger {
    background: rgba(255, 0, 127, 0.05);
    border-left-color: var(--pd-magenta);
}

.contact-channel-card {
    background: var(--pd-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.contact-channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--pd-border-glow);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.12);
}

.contact-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--pd-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.contact-icon-box.purple {
    background: rgba(157, 78, 221, 0.1);
    color: var(--pd-purple);
    border-color: rgba(157, 78, 221, 0.2);
}

.contact-icon-box.green {
    background: rgba(0, 255, 136, 0.1);
    color: var(--pd-green);
    border-color: rgba(0, 255, 136, 0.2);
}

.contact-icon-box.gold {
    background: rgba(255, 183, 3, 0.1);
    color: var(--pd-gold);
    border-color: rgba(255, 183, 3, 0.2);
}

/* Cyberpunk Accordion Styling */
.accordion-gamer .accordion-item {
    background: var(--pd-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-gamer .accordion-button {
    background: var(--pd-bg-surface);
    color: var(--pd-text-main);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 1.1rem 1.25rem;
    box-shadow: none;
    transition: all 0.2s ease;
}

.accordion-gamer .accordion-button:not(.collapsed) {
    background: rgba(0, 240, 255, 0.08);
    color: var(--pd-cyan);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.accordion-gamer .accordion-button::after {
    filter: invert(1);
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.accordion-gamer .accordion-button:not(.collapsed)::after {
    filter: invert(72%) sepia(98%) saturate(1450%) hue-rotate(145deg) brightness(105%) contrast(105%);
}

.accordion-gamer .accordion-body {
    background: rgba(14, 19, 31, 0.6);
    color: var(--pd-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    padding: 1.25rem;
}

/* Status Indicator Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-pill-online {
    background: rgba(0, 255, 136, 0.12);
    color: var(--pd-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 6px currentColor;
}

