/* ============================================================
   TopUp Store – Main CSS
   Dark Mode Premium Design with Glassmorphism
   ============================================================ */

/* ── Google Fonts already loaded in header ── */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Color Palette */
    --color-bg-primary:   #080b14;
    --color-bg-secondary: #0d1117;
    --color-bg-card:      rgba(17, 25, 40, 0.75);
    --color-bg-card-hover:rgba(22, 33, 54, 0.85);
    --color-bg-glass:     rgba(255, 255, 255, 0.05);
    --color-bg-glass-hover:rgba(255, 255, 255, 0.08);

    /* Accent Colors */
    --color-primary:      #6c63ff;
    --color-primary-dark: #5a52e0;
    --color-primary-light:#8b83ff;
    --color-secondary:    #ff6b9d;
    --color-accent:       #00d4ff;
    --color-gold:         #ffd700;
    --color-green:        #00e676;
    --color-orange:       #ff9800;
    --color-red:          #ff4757;

    /* Gradients */
    --gradient-primary:   linear-gradient(135deg, #6c63ff 0%, #ff6b9d 100%);
    --gradient-blue:      linear-gradient(135deg, #1a1a3e 0%, #0d2060 100%);
    --gradient-hero:      linear-gradient(135deg, #080b14 0%, #0d1a3a 50%, #1a0d2e 100%);
    --gradient-card:      linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(255,107,157,0.05) 100%);
    --gradient-gold:      linear-gradient(135deg, #ffd700 0%, #ff9800 100%);

    /* Text */
    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;
    --text-disabled:  #3f4f64;

    /* Borders */
    --border-color:       rgba(255, 255, 255, 0.08);
    --border-primary:     rgba(108, 99, 255, 0.3);
    --border-glass:       rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:    0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow:  0 0 30px rgba(108,99,255,0.3);
    --shadow-glow-pink: 0 0 30px rgba(255,107,157,0.3);

    /* Border Radius */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-2xl:  32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow:   0.5s ease;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-primary); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: var(--radius-full); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108,99,255,0.15);
    color: var(--color-primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(108,99,255,0.2);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(8, 11, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(8, 11, 20, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--color-bg-glass);
}

.nav-link.active {
    color: var(--color-primary-light);
    background: rgba(108,99,255,0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User Dropdown */
.user-dropdown { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--color-bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-btn:hover { background: var(--color-bg-glass-hover); }

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.user-name { display: none; }
@media (min-width: 640px) { .user-name { display: block; } }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-fast);
    z-index: 100;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--color-bg-glass);
    color: var(--text-primary);
}

.dropdown-item.text-danger { color: var(--color-red); }
.dropdown-item.text-danger:hover { background: rgba(255,71,87,0.1); }

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::before { width: 200px; height: 200px; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108,99,255,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,99,255,0.5);
}

.btn-secondary {
    background: rgba(255,107,157,0.15);
    color: var(--color-secondary);
    border: 1px solid rgba(255,107,157,0.3);
}

.btn-secondary:hover {
    background: rgba(255,107,157,0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-light);
    border: 1px solid var(--border-primary);
}

.btn-outline:hover {
    background: rgba(108,99,255,0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--color-bg-glass);
    color: var(--text-primary);
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #00e676);
    color: white;
    box-shadow: 0 4px 15px rgba(0,230,118,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff2d3a);
    color: white;
}

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--border-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    background: var(--color-bg-card-hover);
}

/* Game Card */
.game-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--shadow-glow);
}

.game-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.game-card:hover .game-card-image { transform: scale(1.05); }

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.game-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 4px;
}

.game-card-dev {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.game-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-action {
    position: absolute;
    inset: 0;
    background: rgba(108,99,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    backdrop-filter: blur(2px);
}

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

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 20px;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid;
}

.flash-success { background: rgba(0,230,118,0.1); color: var(--color-green); border-color: rgba(0,230,118,0.3); }
.flash-error   { background: rgba(255,71,87,0.1);  color: var(--color-red);   border-color: rgba(255,71,87,0.3); }
.flash-info    { background: rgba(0,212,255,0.1);  color: var(--color-accent); border-color: rgba(0,212,255,0.3); }
.flash-warning { background: rgba(255,152,0,0.1);  color: var(--color-orange); border-color: rgba(255,152,0,0.3); }

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
}

.flash-close:hover { opacity: 1; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label .required { color: var(--color-red); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    background: rgba(108,99,255,0.05);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control.is-invalid {
    border-color: var(--color-red);
}

.invalid-feedback {
    font-size: 0.8rem;
    color: var(--color-red);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary   { background: rgba(108,99,255,0.15); color: var(--color-primary-light); border: 1px solid rgba(108,99,255,0.3); }
.badge-success   { background: rgba(0,230,118,0.1);   color: var(--color-green);         border: 1px solid rgba(0,230,118,0.3); }
.badge-warning   { background: rgba(255,152,0,0.1);   color: var(--color-orange);        border: 1px solid rgba(255,152,0,0.3); }
.badge-danger    { background: rgba(255,71,87,0.1);   color: var(--color-red);           border: 1px solid rgba(255,71,87,0.3); }
.badge-info      { background: rgba(0,212,255,0.1);   color: var(--color-accent);        border: 1px solid rgba(0,212,255,0.3); }
.badge-secondary { background: rgba(255,255,255,0.05); color: var(--text-muted);         border: 1px solid var(--border-color); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Slider */
.hero-slider {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-glass);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    background: var(--gradient-blue);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.hero-slide.active { opacity: 1; }

.hero-slide-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0.4;
}

.hero-slide-content { position: relative; z-index: 2; }

.hero-slide-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-slide-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-slide-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.slider-controls {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.slider-dot.active {
    background: white;
    width: 24px;
}

/* ============================================================
   FEATURES / TRUST STRIP
   ============================================================ */
.features-strip {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 28px 0;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================================
   GAME GRID
   ============================================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.games-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* ============================================================
   DENOM CARDS
   ============================================================ */
.denom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.denom-card {
    position: relative;
    padding: 18px 14px;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.denom-card:hover {
    border-color: var(--color-primary);
    background: rgba(108,99,255,0.07);
    transform: translateY(-2px);
}

.denom-card.selected {
    border-color: var(--color-primary);
    background: rgba(108,99,255,0.12);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-glow);
}

.denom-card.popular::before {
    content: 'POPULER';
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 0 var(--radius-lg) 0 var(--radius-md);
    letter-spacing: 0.5px;
}

.denom-amount {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.denom-bonus {
    font-size: 0.7rem;
    color: var(--color-green);
    margin-bottom: 10px;
    font-weight: 500;
}

.denom-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

.denom-original-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ============================================================
   PAYMENT METHOD CARDS
   ============================================================ */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.payment-card:hover {
    border-color: var(--color-primary);
    background: rgba(108,99,255,0.07);
}

.payment-card.selected {
    border-color: var(--color-primary);
    background: rgba(108,99,255,0.12);
    box-shadow: 0 0 0 1px var(--color-primary);
}

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

.payment-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* ============================================================
   PAGE HERO (Inner Pages)
   ============================================================ */
.page-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(108,99,255,0.08) 0%, rgba(255,107,157,0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-secondary); transition: var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-primary-light); }
.breadcrumb-sep { color: var(--text-disabled); }

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
}

/* ============================================================
   SEARCH & FILTER BAR
   ============================================================ */
.search-filter-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    padding: 24px 0;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrap .form-control { padding-left: 42px; }

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 16px;
    background: var(--color-bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tag:hover,
.filter-tag.active {
    background: rgba(108,99,255,0.15);
    border-color: var(--border-primary);
    color: var(--color-primary-light);
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
    padding: 40px 0;
}

.product-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.product-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    margin-bottom: 20px;
}

.product-info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.product-game-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-developer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================================
   ORDER SUMMARY
   ============================================================ */
.order-summary {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.order-summary-header {
    padding: 18px 24px;
    background: var(--gradient-card);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-weight: 700;
}

.order-summary-body { padding: 20px 24px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child { border-bottom: none; }

.summary-label { color: var(--text-secondary); }
.summary-value { font-weight: 600; }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--gradient-card);
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.summary-total-value { color: var(--color-primary-light); font-size: 1.3rem; }

/* ============================================================
   ORDER STATUS PAGE
   ============================================================ */
.order-status-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.order-status-header {
    padding: 30px;
    background: var(--gradient-card);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.status-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.status-success { background: rgba(0,230,118,0.15); color: var(--color-green); border: 2px solid rgba(0,230,118,0.3); }
.status-pending  { background: rgba(255,152,0,0.15);  color: var(--color-orange); border: 2px solid rgba(255,152,0,0.3); }
.status-processing { background: rgba(0,212,255,0.15); color: var(--color-accent); border: 2px solid rgba(0,212,255,0.3); }
.status-failed   { background: rgba(255,71,87,0.15);  color: var(--color-red);    border: 2px solid rgba(255,71,87,0.3); }

.order-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    background: var(--color-bg-primary);
    color: var(--text-muted);
    z-index: 1;
}

.timeline-dot.done { background: rgba(0,230,118,0.15); border-color: rgba(0,230,118,0.5); color: var(--color-green); }
.timeline-dot.current { background: rgba(108,99,255,0.15); border-color: var(--color-primary); color: var(--color-primary-light); }

.timeline-content { flex: 1; padding-top: 4px; }

.timeline-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }

.timeline-time { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
}

.auth-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-2xl);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle { font-size: 0.875rem; color: var(--text-secondary); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 40px 0;
}

.profile-sidebar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    width: 100%;
    background: none;
    border: none;
    margin-top: 4px;
    text-decoration: none;
}

.profile-nav-item:hover,
.profile-nav-item.active {
    background: rgba(108,99,255,0.1);
    color: var(--color-primary-light);
}

.profile-content-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

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

.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.data-table td strong { color: var(--text-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(108,99,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: var(--color-bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: rgba(108,99,255,0.15);
    border-color: var(--border-primary);
    color: var(--color-primary-light);
    transform: translateY(-2px);
}

.footer-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a i { font-size: 0.7rem; color: var(--color-primary); }

.footer-links a:hover { color: var(--text-secondary); padding-left: 4px; }

.footer-payment-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    font-size: 1.3rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.footer-badges { display: flex; gap: 12px; }

.badge-trust {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--color-bg-glass);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary-color { color: var(--color-primary-light); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--color-green); }
.text-danger  { color: var(--color-red); }
.text-warning { color: var(--color-orange); }
.text-accent  { color: var(--color-accent); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.fw-bold { font-weight: 700; }
.fw-600  { font-weight: 600; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.glow-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-desc { font-size: 0.875rem; }

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(108,99,255,0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.05); opacity: 0.8; }
}

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

@keyframes shimmer {
    to { background-position: -400% 0; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.animate-fadeInUp  { animation: fadeInUp 0.5s ease forwards; }
.animate-float     { animation: float 6s ease-in-out infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-slider { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .product-layout { grid-template-columns: 1fr; }
    .product-sidebar { position: static; }
    .profile-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .hamburger { display: flex; }

    .navbar-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 4px;
        z-index: 999;
    }

    .hero { padding: 80px 0 40px; }
    .hero-stats { gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .denom-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-badges { justify-content: center; }

    .section { padding: 50px 0; }
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .btn-lg { padding: 14px 24px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* ============================================================
   PROMO CODE STYLES
   ============================================================ */
.promo-hint-chip {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.25);
    color: #ff9800;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.15s ease;
}
.promo-hint-chip:hover {
    background: rgba(255, 152, 0, 0.18);
    border-color: rgba(255, 152, 0, 0.5);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #00c853, #00e676) !important;
    color: #0a1a0a !important;
    border-color: transparent !important;
    cursor: default !important;
}
