/* =========================================================
 * SENIYA TOPUP - High Performance Consolidated CSS Bundle
 * Automatically Generated: 2026-09-24 19:24:42
 * Eliminates @import waterfall and guarantees instant UI updates
 * ========================================================= */

/* --- Component: variables.css --- */
/* CSS Variables - Advanced Cyber Gaming Design System */

:root {
    --primary-purple: #6366f1;
    --dark-purple: #4f46e5;
    --accent-purple: #8b5cf6;
    --light-purple: #a855f7;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-accent: #f59e0b;
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(99, 102, 241, 0.35);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-heavy: 0 16px 50px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --shadow-gold-glow: 0 0 25px rgba(245, 158, 11, 0.25);
    --blur-backdrop: blur(20px);
    --background-primary: #07090e;
    --background-secondary: rgba(15, 23, 42, 0.75);
    --background-tertiary: rgba(30, 41, 59, 0.7);
    --white: rgba(15, 23, 42, 0.85);
    --border-grey: rgba(255, 255, 255, 0.08);
    --text-dark: #f8fafc;
}

/* --- Component: themes.css --- */
/* Theme Styles - State-of-the-Art Cyber Gaming Design System */

/* Ensure all themes inherit the rich dark gaming variables */
[data-theme="white"],
[data-theme="dark"],
:root {
    --primary-purple: #6366f1;
    --dark-purple: #4f46e5;
    --accent-purple: #8b5cf6;
    --light-purple: #a855f7;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-accent: #f59e0b;
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(99, 102, 241, 0.35);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-heavy: 0 16px 50px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --shadow-gold-glow: 0 0 25px rgba(245, 158, 11, 0.25);
    --blur-backdrop: blur(20px);
    --background-primary: #07090e;
    --background-secondary: rgba(15, 23, 42, 0.75);
    --background-tertiary: rgba(30, 41, 59, 0.7);
    --white: rgba(15, 23, 42, 0.85);
    --border-grey: rgba(255, 255, 255, 0.08);
    --text-dark: #f8fafc;
}

/* Form Inputs & Controls */
.form-input,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
    outline: none;
}

.form-input::placeholder,
input::placeholder {
    color: #64748b !important;
}

/* Primary Action Buttons - Vibrant Gradient Gaming Buttons */
.buy-button,
.search-button,
.btn-primary,
.order-btn,
.test-btn,
.pay-now-button,
.submit-button,
button[type="submit"]:not(.profile-btn-danger),
input[type="submit"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-shadow: none !important;
}

.buy-button:hover,
.search-button:hover,
.btn-primary:hover,
.order-btn:hover,
.test-btn:hover,
.pay-now-button:hover,
.submit-button:hover,
button[type="submit"]:not(.profile-btn-danger):hover,
input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45) !important;
    filter: brightness(1.08) !important;
    color: #000000 !important;
}

.buy-button:active,
.search-button:active,
.btn-primary:active,
.order-btn:active,
.submit-button:active {
    transform: translateY(0) scale(0.98) !important;
}

.buy-button *,
.search-button *,
.btn-primary *,
.order-btn *,
.pay-now-button *,
.submit-button * {
    color: #000000 !important;
}

/* Secondary & Back Buttons */
.cancel-button,
.payment-button.back-button {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.cancel-button:hover,
.payment-button.back-button:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Headings & Text Color Overrides for Deep Gaming Canvas */
.welcome-title,
.section-title,
.step-title,
.profile-name,
.profile-card-title,
.footer-title,
.admin-table th,
h1, h2, h3, h4 {
    color: #ffffff !important;
}

.section-title::after {
    background: linear-gradient(90deg, #6366f1, #f59e0b) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5) !important;
}

.footer-subtitle {
    color: #cbd5e1 !important;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #f59e0b !important;
}

.nav-link::after {
    background: #f59e0b !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6) !important;
}

.footer-link {
    color: #94a3b8 !important;
}

.footer-link:hover {
    color: #fbbf24 !important;
}

.coin-pill-text {
    color: #f8fafc !important;
    font-weight: 800 !important;
}

.game-card-title {
    color: #ffffff !important;
}

/* Modals & Backdrop Blur */
.coin-modal-card,
.membership-modal .modal-content {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.15) !important;
    color: #f8fafc !important;
}

.coin-modal-title,
.coin-modal-text {
    color: #f8fafc !important;
}

.coin-modal-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #000 !important;
    font-weight: 800 !important;
    border-radius: 12px;
}

/* SweetAlert2 Modern Dark Gaming Styling */
div.swal2-container {
    z-index: 999999 !important;
}
div.swal2-container div.swal2-popup,
.swal2-popup {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(99, 102, 241, 0.2) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    color: #f8fafc !important;
}
div.swal2-container .swal2-title,
.swal2-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    letter-spacing: -0.02em !important;
}
div.swal2-container .swal2-html-container,
.swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}
div.swal2-container .swal2-actions,
.swal2-actions {
    gap: 12px !important;
    margin-top: 24px !important;
}
div.swal2-container .swal2-confirm,
.swal2-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}
div.swal2-container .swal2-confirm:hover,
.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
    filter: brightness(1.1) !important;
}
div.swal2-container .swal2-cancel,
.swal2-cancel {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}
div.swal2-container .swal2-cancel:hover,
.swal2-cancel:hover {
    background: rgba(51, 65, 85, 0.9) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}
.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}
.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}
.swal2-icon.swal2-info {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}
.swal2-icon.swal2-question {
    border-color: #818cf8 !important;
    color: #818cf8 !important;
}
.swal2-close {
    color: #94a3b8 !important;
}
.swal2-close:hover {
    color: #ffffff !important;
}
.swal2-timer-progress-bar {
    background: #10b981 !important;
}

/* --- Component: base.css --- */
/* Base Styles */

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-primary);
    background-image: 
        radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 88% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.015em;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1460px;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0b101b inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Component: header.css --- */
/* Header Component Styles */

.header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding: 12px 24px;
    position: sticky;
    top: 12px;
    z-index: 1000;
    gap: 12px;
    min-height: 62px;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(99, 102, 241, 0.05);
    margin: 12px 0 20px 0;
}

.mobile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: max-height;
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(99, 102, 241, 0.2) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1500;
}

.mobile-dropdown .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #f8fafc;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.mobile-dropdown .mobile-nav-link:first-child {
    border-top: none;
}

.mobile-dropdown .mobile-nav-link i {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    color: #f59e0b;
}

.mobile-dropdown .mobile-nav-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
    padding-left: 22px;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 20px !important;
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.header-left {
    flex: 0 1 auto;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.header-logo img {
    height: 44px !important;
    width: auto;
    padding-left: 0;
    display: block;
    filter: invert(1);
    transition: filter 0.3s ease;
}

.hamburger {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 8px 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: all 0.2s ease;
}

.hamburger:hover, .hamburger:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.hamburger span {
    width: 100%;
    height: 2.5px;
    background: #f8fafc !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
}

@media (max-width: 768px) {
    .header {
        padding: 8px 12px !important;
        margin: 8px 0 16px 0 !important;
        gap: 8px !important;
        border-radius: 16px !important;
        min-height: 52px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    .header-logo img {
        height: 32px !important;
        max-height: 34px !important;
    }
    .header-left {
        gap: 6px !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
    }
    .header-right {
        gap: 8px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    .coin-pill {
        padding: 5px 10px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }
    .coin-pill-text {
        font-size: 12px !important;
    }
    .coin-pill img {
        width: 14px !important;
        height: 14px !important;
    }
    .hamburger {
        width: 36px !important;
        height: 36px !important;
        padding: 8px 6px !important;
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }
}

/* Mobile Theme Toggle */

.header-theme-toggle {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: none;
    position: relative;
    z-index: 101;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 32px;
        align-items: center;
    }
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 101;
    cursor: pointer;
    display: inline-block;
}

.nav-link:hover {
    color: var(--gradient-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Removed .welcome-title as per request */

.coin-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
    width: auto !important;
    min-width: 100px;
    white-space: nowrap;
    height: 40px;
    line-height: 1;
    transition: all 0.3s ease;
}

.coin-pill:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.coin-pill-text {
    font-size: 14px;
    font-weight: 800;
    color: #f8fafc !important;
    line-height: 1;
}

.coin-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 2000;
}

.coin-modal.open {
    display: flex;
}

.coin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.coin-modal-card {
    position: relative;
    width: min(420px, 100%);
    border-radius: 16px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
    padding: 16px;
}

[data-theme="dark"] .coin-modal-card,
html:not([data-theme]) .coin-modal-card {
    background: rgba(18, 18, 18, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
}

.coin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.coin-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.coin-modal-close {
    border: 1px solid var(--border-color);
    background: var(--background-tertiary);
    color: var(--text-primary);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.coin-modal-body {
    margin-bottom: 14px;
}

.coin-modal-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.coin-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.coin-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: #FFD700;
    color: #000;
    font-weight: 800;
    text-decoration: none;
    min-width: 150px;
}

[data-theme="dark"] .coin-modal .coin-modal-cta,
html:not([data-theme]) .coin-modal .coin-modal-cta {
    background: #FFD700 !important;
    color: #000000 !important;
}

.coin-modal-cta:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.modal-open {
    overflow: hidden;
}

/* --- Component: carousel.css --- */
/* Carousel Component Styles */

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2172 / 352;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.35) 0%, rgba(8, 12, 22, 0.65) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: inherit;
}

@media (max-width: 768px) {
    .carousel-container {
        border-radius: 14px;
        margin-bottom: 20px;
    }
}

/* --- Component: search.css --- */
/* Search Component Styles */

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    text-align: center;
    position: relative;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section {
        margin-bottom: 50px;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 35px;
        padding: 0 30px;
    }
    .section-title::after {
        width: 80px;
        height: 4px;
        bottom: -12px;
    }
}

@media (min-width: 1024px) {
    .section {
        margin-bottom: 60px;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
        padding: 0 40px;
    }
    .section-title::after {
        width: 100px;
        height: 4px;
        bottom: -15px;
    }
}

.search-container {
    background: var(--background-secondary);
    backdrop-filter: var(--blur-backdrop);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 30px;
}

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-input,
.form-select {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: var(--blur-backdrop);
}

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

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--light-purple);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
}

.search-button {
    padding: 16px 32px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    color: rgb(255, 255, 255);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.search-button:active {
    transform: translateY(0);
}

.search-button.loading {
    pointer-events: none;
}

.button-text {
    transition: opacity 0.3s ease;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

.search-button.loading .button-text {
    opacity: 0;
}

.search-button.loading .button-loader {
    display: block;
}

.search-results {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results {
    text-align: center;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 16px;
    line-height: 1.5;
}

.player-card {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    display: none;
}

.player-card.show {
    display: block;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 16px;
}

.player-card.no-stats .player-header {
    margin-bottom: 0;
}

.player-card.no-stats .purchase-status {
    margin-top: 6px;
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-medium);
}

.player-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.player-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-content: center;
    justify-items: center;
}

.stat-item {
    background: var(--background-tertiary);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    min-width: 90px;
    max-width: 110px;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.15);
    animation: stat-border-glow 2.4s ease-in-out infinite;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--light-purple);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes stat-border-glow {
    0% {
        border-color: rgba(255, 180, 0, 0.35);
        box-shadow: 0 0 10px rgba(255, 180, 0, 0.15);
    }
    50% {
        border-color: rgba(255, 120, 0, 0.65);
        box-shadow: 0 0 18px rgba(255, 120, 0, 0.35);
    }
    100% {
        border-color: rgba(255, 180, 0, 0.35);
        box-shadow: 0 0 10px rgba(255, 180, 0, 0.15);
    }
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 0;
    /* box-shadow: 0 0 18px rgba(255, 196, 0, 0.12), 0 0 18px rgba(255, 0, 0, 0.12); */
}

.player-card::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, transparent 0 75%, var(--player-card-border-c1) 86%, transparent 100%), conic-gradient(from 180deg, transparent 0 75%, var(--player-card-border-c2) 86%, transparent 100%);
    animation: player-card-rotate 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.player-card::after {
    content: '';
    position: absolute;
    inset: var(--player-card-border-size);
    border-radius: calc(16px - var(--player-card-border-size));
    pointer-events: none;
    background-color: var(--background-secondary);
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 120, 0, 0.12), transparent 45%), radial-gradient(circle at 80% 30%, rgba(255, 200, 0, 0.08), transparent 50%);
    z-index: 1;
}

@keyframes player-card-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.player-card>* {
    position: relative;
    z-index: 2;
}

@keyframes glow-gold {
    0% {
        box-shadow: 0 0 16px rgba(255, 170, 0, 0.15), inset 0 0 10px rgba(255, 140, 0, 0.06);
        border-color: rgba(255, 170, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 28px rgba(255, 120, 0, 0.35), inset 0 0 18px rgba(255, 120, 0, 0.12);
        border-color: rgba(255, 200, 0, 0.55);
    }
    100% {
        box-shadow: 0 0 16px rgba(255, 170, 0, 0.15), inset 0 0 10px rgba(255, 140, 0, 0.06);
        border-color: rgba(255, 170, 0, 0.25);
    }
}

@keyframes glow-fire {
    0% {
        box-shadow: 0 0 18px rgba(255, 80, 0, 0.25), inset 0 0 12px rgba(255, 40, 0, 0.12);
        border-color: rgba(255, 80, 0, 0.35);
    }
    50% {
        box-shadow: 0 0 34px rgba(255, 40, 0, 0.6), inset 0 0 20px rgba(255, 80, 0, 0.18);
        border-color: rgba(255, 120, 0, 0.7);
    }
    100% {
        box-shadow: 0 0 18px rgba(255, 80, 0, 0.25), inset 0 0 12px rgba(255, 40, 0, 0.12);
        border-color: rgba(255, 80, 0, 0.35);
    }
}

.player-card[data-theme="fire"] {
    --player-card-border-c1: #ff5000;
    --player-card-border-c2: #ffcc00;
    box-shadow: 0 0 18px rgba(255, 80, 0, 0.16), 0 0 18px rgba(255, 200, 0, 0.14);
}

.player-card[data-theme="fire"]::before {
    animation-duration: 3.2s;
}

.player-card[data-theme="fire"]::after {
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 80, 0, 0.16), transparent 45%), radial-gradient(circle at 80% 35%, rgba(255, 160, 0, 0.12), transparent 55%);
}

.player-card[data-theme="gold"] {
    --player-card-border-c1: #ffb400;
    --player-card-border-c2: #ff7800;
    box-shadow: 0 0 18px rgba(255, 120, 0, 0.14), 0 0 18px rgba(255, 180, 0, 0.12);
}

.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #ff6b6b;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

.purchase-status {
    display: flex;
    justify-content: center;
    /* margin-top: 16px; */
}

.purchase-status-text {
    color: #28a745;
    font-weight: 600;
    text-align: center;
}

@media (min-width: 768px) {
    .search-container {
        padding: 40px;
    }
    .search-form {
        grid-template-columns: 2fr 1fr auto;
        gap: 24px;
    }
    .player-stats {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 1024px) {
    .search-container {
        padding: 48px;
    }
    .search-form {
        gap: 32px;
    }
}

/* Dark theme specific button styling - Force black text */

[data-theme="dark"] .search-button {
    background: #CCCCCC !important;
    color: #000000 !important;
}

[data-theme="dark"] .search-button * {
    color: #000000 !important;
}

[data-theme="dark"] .search-button .button-text {
    color: #000000 !important;
}

[data-theme="dark"] .search-button span {
    color: #000000 !important;
}

@media (max-width: 767px) {
    .search-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .search-button {
        width: 100%;
    }
    .player-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .player-info {
        text-align: center;
    }
    .player-stats {
        grid-template-columns: 1fr;
    }
}

/* --- Component: membership.css --- */
/* Membership Component Styles */

.membership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.evo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.diamond-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.membership-tutorial-button {
    border: none;
    display: flex;
    padding: 0.75rem 1.5rem;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    user-select: none;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px #ff000031, 0 2px 4px -1px #ff000017;
    transition: all 0.6s ease;
    margin: 0 auto 14px;
    width: fit-content;
    text-decoration: none;
}

.membership-tutorial-button:hover {
    box-shadow: 0 10px 15px -3px #ff00004f, 0 4px 6px -2px #ff000017;
}

.membership-tutorial-button:focus,
.membership-tutorial-button:active {
    opacity: 0.85;
    box-shadow: none;
}

.membership-tutorial-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .membership-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .evo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .diamond-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .membership-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
    .evo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }
    .diamond-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 24px;
    }
}

.membership-card {
    background: var(--background-secondary);
    backdrop-filter: var(--blur-backdrop);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.membership-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--light-purple);
}

.membership-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.membership-icon {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.membership-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.membership-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--light-purple);
    margin-bottom: 8px;
}

.membership-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.membership-original-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.combo-pack::before {
    content: "COMBO";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buy Button Styles */

.buy-button {
    width: 100%;
    padding: 12px 24px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    margin-top: 8px;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: var(--light-purple);
}

.buy-button:active {
    transform: translateY(0);
}

/* Button text responsive display */

.buy-button .mobile-text {
    display: none;
}

.buy-button .desktop-text {
    display: inline;
}

/* Mobile responsive button text */

@media (max-width: 767px) {
    .buy-button {
        font-size: 14px;
        padding: 10px 16px;
    }
    .buy-button .mobile-text {
        display: inline;
    }
    .buy-button .desktop-text {
        display: none;
    }
}

/* Evo Access Styles */

.evo-card {
    background: var(--background-secondary);
    backdrop-filter: var(--blur-backdrop);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.evo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--light-purple);
}

.evo-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.evo-icon {
    /* width: 120px; */
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 12px;
    overflow: hidden;
}

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

.evo-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.evo-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--light-purple);
}

.levelup-section .evo-icon {
    height: 120px;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.levelup-section .evo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.levelup-notice {
    margin: 0 0 1rem 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Diamond Pack Styles */

.diamond-card {
    background: var(--background-secondary);
    backdrop-filter: var(--blur-backdrop);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.diamond-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--light-purple);
}

.diamond-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.diamond-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 12px;
    overflow: hidden;
}

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

.diamond-quantity {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.diamond-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--light-purple);
}

@media (min-width: 768px) {
    .membership-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .membership-price {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .membership-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .membership-price {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .membership-grid {
        gap: 16px;
    }
    .membership-card {
        padding: 20px;
        min-height: 320px;
    }
    .membership-icon {
        width: 140px;
        height: 140px;
        margin-bottom: 12px;
    }
    .membership-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .membership-price {
        font-size: 22px;
        margin-bottom: 12px;
    }
    .buy-button {
        padding: 14px 28px;
        font-size: 18px;
        margin-top: 12px;
    }
    .evo-title {
        font-size: 18px;
        margin-bottom: 12px;
        text-align: center;
    }
    .evo-price {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .evo-icon {
        width: 140px;
        height: 140px;
        margin-bottom: 16px;
    }
    .diamond-icon {
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }
    .diamond-quantity {
        font-size: 16px;
        margin-bottom: 12px;
    }
    .diamond-price {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

@media (max-width: 360px) {
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- Component: profile.css --- */
.profile-page {
    padding: 10px 0 40px;
}

.profile-hero {
    margin-top: 14px;
}

.profile-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #FFD700;
    flex: 0 0 auto;
}

.profile-name {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-email {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--background-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.profile-btn:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.profile-btn-primary {
    background: #FFD700;
    color: #000;
    border-color: rgba(255, 215, 0, 0.65);
}

.profile-btn-primary:hover {
    filter: brightness(1.03);
}

.profile-btn-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.35);
}

.profile-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    font-weight: 800;
    font-size: 14px;
}

.profile-section {
    margin-top: 18px;
}

.profile-card {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.profile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-stat {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.profile-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.profile-stat:nth-child(1) .profile-stat-val { color: #38bdf8 !important; text-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }
.profile-stat:nth-child(2) .profile-stat-val { color: #34d399 !important; text-shadow: 0 0 15px rgba(52, 211, 153, 0.4); }
.profile-stat:nth-child(3) .profile-stat-val { color: #fbbf24 !important; text-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
.profile-stat:nth-child(4) .profile-stat-val { color: #f59e0b !important; text-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }

.profile-stat-val {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 6px;
}

.profile-stat-lbl {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-coins-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.profile-coin-big {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
}

.profile-coin-big img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.profile-coin-sub {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
}

.profile-packs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.profile-pack-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--background-tertiary);
    text-decoration: none;
    color: var(--text-primary);
    width: 100%;
    text-align: center;
}

.profile-pack-card:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.profile-pack-card-img {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

.profile-pack-card-title {
    font-weight: 900;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.profile-pack-card-price {
    font-weight: 900;
    font-size: 16px;
    color: #FFD700;
}

.profile-pack-card-cta {
    font-weight: 800;
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-ledger {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.profile-redeem {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.profile-redeem-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-tertiary);
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.profile-redeem-input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.profile-ledger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(30, 41, 59, 0.45);
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.profile-ledger-row:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.profile-ledger-kind {
    font-weight: 800;
    color: #ffffff;
}

.profile-ledger-meta {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.profile-ledger-delta {
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.profile-ledger-delta.pos {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.profile-ledger-delta.neg {
    color: #f87171;
}

.profile-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.profile-filter {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--background-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.profile-filter.is-active {
    background: #FFD700;
    color: #000;
    border-color: rgba(255, 215, 0, 0.65);
}

.profile-orders {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.profile-order {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--background-tertiary);
}

.profile-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-order-product {
    min-width: 0;
}

.profile-order-name {
    margin: 0;
    font-weight: 900;
    color: var(--text-primary);
    font-size: 14px;
}

.profile-order-sub {
    margin-top: 4px;
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-order-meta {
    margin-top: 8px;
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 12px;
    word-break: break-word;
}

.profile-order-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.profile-order-amt {
    font-weight: 900;
    color: var(--text-primary);
}

.profile-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid transparent;
    line-height: 1;
}

.profile-status.completed {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.35);
}

.profile-status.pending {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.35);
}

.profile-status.failed {
    background: rgba(220, 53, 69, 0.12);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.35);
}

.profile-status.cancelled {
    background: rgba(108, 117, 125, 0.12);
    color: #adb5bd;
    border-color: rgba(108, 117, 125, 0.35);
}

.profile-status.expired {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.35);
}

.profile-order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-empty {
    text-align: center;
    padding: 26px 10px;
    color: var(--text-secondary);
    font-weight: 800;
}

.profile-empty h3 {
    margin: 10px 0 6px;
    color: var(--text-primary);
    font-weight: 900;
}

@media (min-width: 768px) {
    .profile-name {
        font-size: 20px;
    }
    .profile-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .profile-packs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .profile-order {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
    .profile-order-actions {
        justify-content: flex-end;
    }
    .profile-redeem {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .profile-packs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .profile-packs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .profile-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 50px; /* Space for the edit button */
        position: relative;
    }
    .profile-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .profile-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .profile-btn-edit {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
        padding: 0;
    }
}

/* --- Component: mobile.css --- */
/* Mobile Menu Styles */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--blur-backdrop);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-secondary);
    backdrop-filter: var(--blur-backdrop);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
    text-align: center;
    min-width: 300px;
    position: relative;
}

/* White theme mobile menu styling */

[data-theme="white"] .mobile-menu {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="white"] .mobile-menu-content {
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
}

[data-theme="white"] .mobile-nav-link {
    color: var(--text-primary);
}

[data-theme="white"] .mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gradient-accent);
}

.mobile-nav-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 0;
    margin: 8px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--background-tertiary);
    color: var(--gradient-accent);
}

/* Mobile Menu Close Button */

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: var(--background-tertiary);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* White theme close button styling */

[data-theme="white"] .mobile-menu-close {
    color: var(--text-secondary);
}

[data-theme="white"] .mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Hamburger Animation */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Modal Styles for Membership */

.membership-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--blur-backdrop);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-backdrop);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
    text-align: center;
    min-width: 400px;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .mobile-menu-content {
        min-width: 280px;
        padding: 30px;
    }
    .modal-content {
        min-width: 320px;
        padding: 30px;
        margin: 20px;
    }
    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    .modal-btn {
        width: 100%;
    }

    /* Mobile Hardware Performance Optimization - Super Smooth 60-120FPS */
    body {
        background-attachment: scroll !important;
    }

    .game-card-v2, .ms-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        contain: paint;
    }


    .top-ticker-track, .most-selling-track {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

/* --- Component: Top Announcement Ticker --- */
.top-announcement-ticker {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #080d1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    padding: 8px 0;
    margin-top: 0;
    margin-bottom: 6px;
    user-select: none;
    z-index: 999;
    contain: layout paint;
}

.top-ticker-track {
    display: flex;
    width: max-content;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.top-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    animation: topTickerScroll 42s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.top-announcement-ticker:hover .top-ticker-group {
    animation-play-state: paused;
}

@keyframes topTickerScroll {
    0% {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
        -webkit-transform: translate3d(-100%, 0, 0);
    }
}

.top-announcement-ticker .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 800;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0 2px;
}

.top-announcement-ticker .ticker-item i {
    font-size: 11.5px;
}

.top-announcement-ticker .ticker-item.t-instant i { color: #f59e0b; text-shadow: 0 0 8px rgba(245, 158, 11, 0.7); }
.top-announcement-ticker .ticker-item.t-secure i { color: #10b981; text-shadow: 0 0 8px rgba(16, 185, 129, 0.7); }
.top-announcement-ticker .ticker-item.t-users i { color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, 0.7); }
.top-announcement-ticker .ticker-item.t-support i { color: #38bdf8; text-shadow: 0 0 8px rgba(56, 189, 248, 0.7); }
.top-announcement-ticker .ticker-item.t-api i { color: #34d399; text-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.top-announcement-ticker .ticker-item.t-rates i { color: #ef4444; text-shadow: 0 0 8px rgba(239, 68, 68, 0.7); }

.top-announcement-ticker .ticker-sep {
    color: #f59e0b;
    font-weight: 900;
    font-size: 12px;
    margin: 0 16px;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .top-announcement-ticker {
        padding: 6px 0;
        margin-bottom: 6px;
    }
    .top-announcement-ticker .ticker-item {
        font-size: 11px;
        gap: 5px;
        letter-spacing: 0.4px;
    }
    .top-announcement-ticker .ticker-item i {
        font-size: 10px;
        text-shadow: none;
    }
    .top-announcement-ticker .ticker-sep {
        margin: 0 10px;
        font-size: 10px;
    }
    .top-ticker-group {
        animation-duration: 32s;
    }
}
