/* Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-glass: rgba(24, 24, 27, 0.85);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-blue: #e4e4e7;
    --accent-blue-light: #d4d4d8;
    --accent-glow: rgba(255, 255, 255, 0.04);
    --accent-gold: #a1a1aa;
    
    --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 6px;
    --border-glow: 1px solid rgba(255, 255, 255, 0.08);
}

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

html {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

.scroll-container {
    width: 100%;
}

.page {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.games-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50px;
    background: transparent;
    pointer-events: auto;
    z-index: 1000;
    display: none;
}

header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    border-radius: 0 0 6px 6px;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 1px 6px rgba(255, 255, 255, 0.1);
    opacity: 0;
}

header.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

header.nav-hidden::before {
    display: block;
}

header.nav-hidden::after {
    opacity: 1;
}

header.nav-hidden:hover,
header.nav-hidden:focus-within,
header.nav-hidden.active,
header.nav-visible {
    transform: translateY(0);
    opacity: 1;
}

header.nav-hidden:hover::after,
header.nav-hidden:focus-within::after,
header.nav-hidden.active::after,
header.nav-visible::after {
    opacity: 0;
}

.nav-container {
    max-width: 100%;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    margin-top: 2rem;
    z-index: 10;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: var(--bg-primary);
}

/* Video Hero Section */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 10%, var(--bg-primary) 100%);
    z-index: 2;
    pointer-events: none;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 2rem;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-align: center;
}

/* Games Showcase Section */
.games-section {
    padding: 4.5rem 0 0.5rem 0;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0 1.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.game-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-media {
    position: relative;
    height: 120px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.game-card:hover .game-thumbnail {
    transform: scale(1.02);
}

.planet-plunder-thumb {
    background: linear-gradient(135deg, #18181b, #27272a);
    position: relative;
}

.planet-plunder-thumb::before {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
}

.spell-controller-thumb {
    background: linear-gradient(135deg, #27272a, #3f3f46);
    position: relative;
}

.spell-controller-thumb::before {
    content: '🪄';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
}

.game-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-genre {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.game-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.game-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

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

.btn-download {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 2.5rem;
}

.footer-content {
    max-width: 100%;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Content Container */
.modal-container {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 102, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Tab Switcher */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--bg-tertiary);
    margin-bottom: 1.5rem;
}

.modal-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.modal-tab.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
}

/* Forms */
.modal-form {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.form-error {
    color: hsl(0, 85%, 60%);
    font-size: 0.8rem;
    margin-top: -0.25rem;
    display: none;
}

.btn-form {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    padding: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-form:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
    box-shadow: none;
}

/* Checkout specific styles */
.checkout-method-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.checkout-method-tab {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.65rem 0.25rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.checkout-method-tab span {
    font-size: 1.1rem;
}

.checkout-method-tab.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Quick Pay Buttons */
.btn-gpay {
    background: #000;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-gpay:hover {
    background: #111;
    border-color: #555;
}

.btn-applepay {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-applepay:hover {
    background: #eee;
}

.payment-form-section {
    display: none;
}

.payment-form-section.active {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Spinner and loading */
.loading-spinner-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header HUD */
.hud-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-sign-in {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-sign-in:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.btn-sign-in:active {
    transform: translateY(0);
}

.user-hud {
    display: none; /* Shown dynamically when logged in */
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-hud-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.user-hud-avatar:hover {
    transform: scale(1.05);
    border-color: var(--text-primary);
}

.user-hud-info {
    display: flex;
    flex-direction: column;
}

.user-hud-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-hud-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 240px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 10000;
}

.user-menu-profile-summary {
    padding: 0.75rem 1rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.user-menu-username {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-uid {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.user-menu-pts {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.user-menu-dropdown.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.user-menu-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
}

/* Shop Section Styles */
.shop-section {
    padding: 6.5rem 2.5rem 1rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.shop-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-toggle-btn.active {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: var(--bg-tertiary) !important;
    box-shadow: none;
}

.game-toggle-btn[data-game="planet-plunder"].active {
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
}

.game-toggle-btn[data-game="spell-controller"].active {
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.shop-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 5px 15px rgba(0, 0, 0, 0.35);
}

.shop-card:hover {
    transform: translateY(-5px);
}

/* Card coloring based on game */
.shop-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.shop-card-media {
    position: relative;
    height: 110px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-card-graphic {
    font-size: 2.2rem;
    transition: var(--transition-smooth);
}

.shop-card:hover .shop-card-graphic {
    transform: scale(1.15) rotate(5deg);
}

.shop-card[data-game="planet-plunder"] .shop-card-media,
.shop-card[data-game="spell-controller"] .shop-card-media {
    background: linear-gradient(135deg, #18181b, #27272a);
}

.shop-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(9, 9, 11, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
}

.shop-card-info {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.4rem;
}

.shop-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.shop-card-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    flex-grow: 1;
}

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

.shop-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-buy {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.shop-card[data-game="spell-controller"] .btn-buy {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-buy:hover, .shop-card[data-game="spell-controller"] .btn-buy:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 200000;
    pointer-events: none;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--text-primary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 250px;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: all;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-left-color: hsl(0, 85%, 60%);
}

.toast.success {
    border-left-color: hsl(140, 80%, 45%);
}

/* Inventory List inside Modal */
.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.inventory-item {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inventory-item-details {
    display: flex;
    flex-direction: column;
}

.inventory-item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.inventory-item-game {
    font-size: 0.75rem;
    color: var(--accent-blue-light);
}

.inventory-item-game.spell-game {
    color: hsl(230, 90%, 75%);
}

.inventory-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}

/* Points Shop Style additions */
.shop-card-points {
    color: hsl(45, 100%, 60%) !important;
    font-weight: 800;
}

.btn-redeem {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-redeem:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

/* Profile Dashboard Styles */
.profile-modal-container {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 850px;
    height: 80vh;
    max-height: 600px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    display: flex;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .profile-modal-container {
    transform: translateY(0);
}

.profile-sidebar {
    width: 240px;
    background: var(--bg-tertiary);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-sidebar-user {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.profile-sidebar-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.profile-sidebar-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-sidebar-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-sidebar-badge.admin-badge {
    background: rgba(230, 50, 50, 0.15);
    border-color: hsl(0, 85%, 60%);
    color: hsl(0, 90%, 70%);
}

.profile-nav-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-nav-item {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.profile-nav-item:hover, .profile-nav-item.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.profile-nav-item.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-left: 2px solid var(--text-primary);
    border-radius: 0 8px 8px 0;
}

.profile-content-area {
    flex: 1;
    padding: 2.2rem;
    overflow-y: auto;
    position: relative;
}

/* Overview Tab components */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.xp-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.xp-bar-fill {
    height: 100%;
    background: var(--text-primary);
    width: 45%;
    border-radius: 4px;
}

.game-activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.5rem;
}

.game-activity-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Friends Hub */
.friends-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.friend-item {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.friend-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.friend-status.online {
    background: hsl(140, 80%, 45%);
    box-shadow: 0 0 8px hsl(140, 80%, 45%);
}

.friend-status.offline {
    background: var(--text-muted);
}

.btn-remove-friend {
    background: rgba(230, 50, 50, 0.1);
    color: hsl(0, 90%, 70%);
    border: 1px solid rgba(230, 50, 50, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-remove-friend:hover {
    background: rgba(230, 50, 50, 0.25);
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.achievement-card.unlocked {
    opacity: 1;
    filter: grayscale(0%);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.08);
}

.achievement-icon {
    font-size: 2.2rem;
}

.achievement-title {
    font-size: 0.85rem;
    font-weight: 800;
}

.achievement-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Billing Log Table */
.billing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.billing-table th {
    text-align: left;
    color: var(--text-muted);
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--bg-tertiary);
    font-weight: 700;
}

.billing-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

#btn-close-profile {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

#btn-close-profile:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Shop Landing & Game Selection */
.shop-landing-container {
    max-width: 100%;
    margin: 6rem auto 2rem auto;
    padding: 2.5rem 0;
    text-align: center;
}

.shop-landing-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    padding: 0 1.5rem;
}

.shop-landing-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1rem;
    padding: 0 1.5rem;
}

.game-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.game-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 310px));
    gap: 1.5rem;
    width: 100%;
    margin: 1.5rem auto 0 auto;
    justify-content: center;
    max-width: 1100px;
}

.game-select-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1;
    min-height: 330px;
}

.game-select-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.game-select-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: translateY(-6px);
    z-index: 5;
}

.game-select-card-graphic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-select-card-graphic svg {
    width: 3.2rem;
    height: 3.2rem;
}

.game-select-card:hover .game-select-card-graphic {
    transform: scale(1.05);
    background: var(--text-primary);
    border-color: transparent;
    color: var(--bg-primary);
}

.game-select-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.game-select-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-back-selection {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.btn-back-selection:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.active-shop-container {
    max-width: 1200px;
    margin: 6rem auto 2rem auto;
    padding: 0 2.5rem;
}

/* ==========================================
   GOOGLE SIMULATED AUTHENTICATION STYLES
   ========================================== */

/* Authentication Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider:not(:empty)::before {
    margin-right: 0.75rem;
}

.auth-divider:not(:empty)::after {
    margin-left: 0.75rem;
}



.google-signin-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
}

/* User avatar image fallback */
.user-hud-avatar-img,
.profile-sidebar-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Landing Page Ambient glows and visual sections */
.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
    animation: float-glow 8s ease-in-out infinite alternate;
}

.hero-glow-2 {
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    filter: blur(90px);
    z-index: 2;
    pointer-events: none;
    animation: float-glow 12s ease-in-out infinite alternate-reverse;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.15); }
}

.hero-content {
    max-width: 850px;
    text-align: center;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    display: inline-block;
    box-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.btn-secondary-outline {
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: none;
}

.hero-stats {
    display: flex;
    gap: 3.5rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 1.5rem 3.5rem;
    background: rgba(24, 24, 27, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

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

.stat-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: none;
}

.stat-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    z-index: 4;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translate(-50%, 2px);
}

.mouse {
    width: 22px;
    height: 38px;
    border: 2px solid var(--text-secondary);
    border-radius: 11px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 650px) {
    .hero-stats {
        gap: 1.5rem;
        padding: 1rem 1.5rem;
        flex-direction: row;
        width: 100%;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-ctas .btn, .hero-ctas .btn-secondary-outline {
        width: 100%;
        text-align: center;
    }
    .scroll-indicator {
        display: none;
    }
}

/* ==========================================
   SHOPPING CART & DRAWER STYLES
   ========================================== */

.cart-hud-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.55rem 1rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    position: relative;
}

.cart-hud-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.cart-count {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Drawer Backdrop Overlay */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Slide-out Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100001;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.btn-close-cart {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-cart:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.cart-drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.75rem;
    position: relative;
}

.cart-item-graphic {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-game {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.btn-remove-cart-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.25rem;
}

.btn-remove-cart-item:hover {
    color: hsl(0, 85%, 65%);
}

.cart-empty-message {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* Coupon and Summary styles */
.cart-summary-section {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(24, 24, 27, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.coupon-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coupon-section label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.coupon-status {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

.coupon-status.success {
    color: hsl(140, 80%, 45%);
}

.coupon-status.error {
    color: hsl(0, 85%, 60%);
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-row.discount-row {
    color: hsl(140, 80%, 45%);
}

.price-row.total-row {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

/* Responsive Cart Drawer adjustments */
@media (max-width: 480px) {
    .cart-drawer {
        width: 100vw;
        right: -100vw;
    }
}

/* ==========================================
   INTERACTIVE GAMES SECTION ADDITIONS
   ========================================== */

/* Game Card Video Hover State */
.game-card .game-media {
    position: relative;
    overflow: hidden;
}

.game-card-video {
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.game-card:hover .game-card-glowing-effect {
    opacity: 1;
}

/* Game Card Badges */
.game-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    z-index: 10;
}

.game-badge.popular {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.game-badge.new-release {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Game Details Modal Structure */
.game-detail-container {
    max-width: 850px;
    height: 80vh;
    max-height: 580px;
    width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2.2rem 2.2rem 1.8rem 2.2rem !important;
}

.game-detail-layout {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.game-detail-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 0.5rem;
    height: 100%;
}

.game-detail-left::-webkit-scrollbar {
    width: 4px;
}

.game-detail-left::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 2px;
}

.game-detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    height: 100%;
}

/* Modal Inner Tab Overrides */
.game-detail-tabs {
    margin-bottom: 1rem !important;
}

.game-tab-content {
    display: none;
    flex-direction: column;
    height: auto;
}

.game-tab-content.active {
    display: flex;
}

/* Game Detail Custom Elements */
.game-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.game-features-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.game-features-list li::before {
    content: '•';
    color: var(--text-muted);
}

/* System Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.spec-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 600;
}

.spec-val {
    color: var(--text-secondary);
}

/* Screenshot Carousel Styles */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.carousel-btn:hover {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    transform: translateY(-50%) scale(1.05);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--text-primary);
    width: 16px;
    border-radius: 4px;
}

/* Reviews Feed Styles */
.review-bubble {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.review-username {
    font-weight: 700;
    color: var(--text-primary);
}

.review-rating {
    color: hsl(45, 100%, 65%);
    font-size: 0.8rem;
}

.review-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.review-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Star input picker */
.star-input:hover,
.star-input.active {
    color: hsl(45, 100%, 65%) !important;
}

/* Download Simulation Custom Styles */
.download-progress-track {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.download-progress-fill {
    background: var(--text-primary);
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .game-detail-container {
        height: 90vh;
        max-height: none;
        overflow-y: auto;
    }
    .game-detail-layout {
        flex-direction: column;
        overflow: visible;
    }
    .game-detail-left {
        overflow-y: visible;
        height: auto;
    }
    .game-detail-right {
        height: 220px;
        order: -1;
    }
}

/* ==========================================
   SHOWCASE CAROUSEL STYLES
   ========================================== */
.showcase-carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.showcase-carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0; /* Prevents card translation card hover clipping */
}

.showcase-carousel-track {
    display: flex;
    gap: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.carousel-game-card {
    flex: 0 0 33.333%; /* Desktop: 3 cards visible */
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    position: relative;
    z-index: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-game-card:last-child {
    border-right: none;
}

@media (max-width: 900px) {
    .carousel-game-card {
        flex: 0 0 50%; /* Tablet: 2 cards visible */
    }
}

@media (max-width: 600px) {
    .carousel-game-card {
        flex: 0 0 100%; /* Mobile: 1 card visible */
        border-right: none;
    }
}

.carousel-game-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
    margin: 0.6rem 0.6rem 0 0.6rem;
}

.carousel-game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.carousel-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}

.carousel-game-card:hover .carousel-game-overlay {
    opacity: 1;
    pointer-events: all;
}

.carousel-game-card:hover img {
    transform: scale(1.04);
}

.carousel-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 5;
    border-right-color: transparent;
}

.carousel-game-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 0;
    background: var(--text-primary);
    color: var(--bg-primary);
    z-index: 5;
    letter-spacing: 0.5px;
}

.carousel-game-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.carousel-game-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.carousel-game-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Showcase Controls */
.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 9, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.showcase-arrow.prev {
    left: 1.5rem;
}

.showcase-arrow.next {
    right: 1.5rem;
}

.showcase-arrow:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.showcase-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

.showcase-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.showcase-dot.active {
    background: var(--text-primary);
    width: 16px;
    border-radius: 4px;
}

/* ==========================================
   MINIMALISTIC SVG ICONS UTILITIES
   ========================================== */
.icon-svg {
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.icon-svg-lg {
    width: 2.25rem;
    height: 2.25rem;
    stroke-width: 1.5;
}

/* Ensure flex alignment for inline icon labels */
.nav-links a,
.user-menu-item,
.profile-nav-item,
.cart-hud-btn,
.checkout-method-tab,
.game-toggle-btn,
.btn-sign-in {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   FOMO STYLING ADDITIONS
   ========================================== */

/* Countdown Timer */
.shop-card-fomo-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: hsl(35, 90%, 55%);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.4rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fomo-pulse 2s infinite ease-in-out;
}

@keyframes fomo-pulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* Stock Bar */
.shop-card-fomo-stock {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
    width: 100%;
}

.fomo-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.fomo-stock-label {
    color: hsl(0, 85%, 65%);
    animation: fomo-pulse-red 1.5s infinite ease-in-out;
}

@keyframes fomo-pulse-red {
    0%, 100% { text-shadow: 0 0 0px transparent; }
    50% { text-shadow: 0 0 4px rgba(239, 68, 68, 0.2); }
}

.fomo-stock-claimed {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.fomo-stock-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.fomo-stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(0, 80%, 55%), hsl(35, 90%, 55%));
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bottom Left Notification Feed */
.fomo-feed-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 200000;
    pointer-events: none;
}

.fomo-feed-item {
    background: rgba(24, 24, 27, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid hsl(35, 90%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 280px;
    max-width: 380px;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
}

.fomo-feed-item.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.fomo-feed-item.hide {
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
}

.fomo-feed-avatar {
    width: 26px;
    height: 26px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(35, 90%, 55%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fomo-feed-body {
    display: flex;
    flex-direction: column;
}

.fomo-feed-title {
    font-weight: 600;
    color: var(--text-primary);
}

.fomo-feed-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Points Shop Hero Highlight */
.points-shop-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 15px 45px rgba(245, 158, 11, 0.3) !important;
}

.points-shop-hero-card:hover .points-shop-hero-graphic {
    transform: scale(1.1) rotate(5deg);
    color: hsl(35, 95%, 60%) !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

@media (max-width: 768px) {
    .points-shop-hero-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem !important;
        gap: 1.5rem !important;
    }
    .points-shop-hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}



