/**
 * Kryzon Store - Reusable Components
 * Glass-morphism UI Components
 */

/* ============================================
   LOADING SPINNER
   ============================================ */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(8px);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-default);
    border-top-color: var(--kryzon-neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-overlay.hidden {
    display: none;
}

/* ============================================
   HEADER COMPONENT
   ============================================ */

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-3) var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.header-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    box-shadow: var(--neon-shadow);
}

.logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    position: relative;
    z-index: 1;
    gap: 2px;
}

/* Premium Animation Keyframes (Shared) */
/* Premium Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slow Sheen Sweep Animation */
@keyframes sheenSweep {
    0% {
        background-position: -150% center;
    }

    50% {
        background-position: 150% center;
    }

    100% {
        background-position: 150% center;
    }
}

.logo-text {
    /* Professional Serif */
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 800;

    /* Glassy Gradient Text */
    background: linear-gradient(135deg,
            var(--logo-kryzon-color) 0%,
            var(--logo-kryzon-color) 40%,
            rgba(255, 255, 255, 0.6) 50%,
            var(--logo-kryzon-color) 60%,
            var(--logo-kryzon-color) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Multi-Layered Premium Shadows */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));

    letter-spacing: 2px;
    line-height: 1;

    /* Animation: Fade In + Slow Sheen Sweep */
    opacity: 0;
    animation:
        fadeInUp 0.6s ease-out forwards,
        sheenSweep 6s ease-in-out 1s infinite;
}

/* Dark Mode White Glassy */
[data-theme="dark"] .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, rgba(200, 220, 255, 0.9) 50%, #ffffff 60%, #ffffff 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(139, 92, 246, 0.2)) drop-shadow(0 2px 6px rgba(139, 92, 246, 0.15));
}

/* Light Mode Dark Glassy */
[data-theme="light"] .logo-text {
    background: linear-gradient(135deg, #1E293B 0%, #1E293B 40%, rgba(100, 120, 180, 0.5) 50%, #1E293B 60%, #1E293B 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-accent {
    /* Bolder Sans-Serif (Poppins Semi-Bold) */
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Premium Purple Gradient */
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    position: relative;
    top: 3px;
    margin-left: 4px;

    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));

    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.logo-text span {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-default);
}

.theme-toggle:hover {
    background: var(--kryzon-neon);
    color: var(--text-inverse);
    border-color: var(--kryzon-neon);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* Wallet Pill */
.wallet-pill {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(175, 255, 1, 0.1);
    border: 1px solid rgba(175, 255, 1, 0.3);
    border-radius: var(--radius-full);
    color: var(--kryzon-neon);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.wallet-pill:hover {
    background: rgba(175, 255, 1, 0.2);
    box-shadow: var(--neon-shadow);
}

.wallet-pill i {
    font-size: var(--text-base);
}

/* Auth Buttons */
.btn-auth {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-login:hover {
    border-color: var(--kryzon-neon);
    color: var(--kryzon-neon);
}

.btn-register {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.btn-register:hover {
    box-shadow: var(--neon-shadow);
    transform: translateY(-2px);
}

/* ============================================
   NOTICE BAR
   ============================================ */

.notice-bar {
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #7c3aed 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    padding: var(--space-3) var(--space-4);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    overflow: hidden;
}

.notice-content i {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.notice-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.notice-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notice-bar.hidden {
    display: none;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform var(--transition-slow);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--space-2);
}

.slide-subtitle {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    width: 24px;
    background: var(--kryzon-neon);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.product-card {
    position: relative;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    color: var(--text-primary);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--kryzon-neon);
    box-shadow: var(--neon-shadow);
}

.product-card.selected {
    border-color: var(--kryzon-neon);
    box-shadow: var(--neon-shadow);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg-elevated);
}

.product-info {
    padding: var(--space-3);
}

.product-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--kryzon-neon);
}

.product-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    padding: var(--space-1) var(--space-2);
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.product-badge.fast {
    background: var(--success);
}

.product-badge.hot {
    background: var(--danger);
}

.product-badge.new {
    background: var(--info);
}

/* Check Mark for Selection */
.check-mark {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    width: 24px;
    height: 24px;
    background: var(--kryzon-neon);
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--text-sm);
}

.product-card.selected .check-mark {
    display: flex;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 14px;
}

.section-title i {
    color: var(--kryzon-neon);
}

.section-link {
    font-size: var(--text-sm);
    color: var(--kryzon-neon);
    text-decoration: none;
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.section-link:hover {
    text-decoration: underline;
}

/* ============================================
   CATEGORY TABS
   ============================================ */

.category-tabs {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--kryzon-neon);
    color: var(--kryzon-neon);
}

.tab-btn.active {
    background: rgba(175, 255, 1, 0.15);
    border-color: var(--kryzon-neon);
    color: var(--kryzon-neon);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    box-shadow: var(--neon-shadow);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    border-color: var(--kryzon-neon);
    color: var(--kryzon-neon);
}

.btn-outline {
    background: transparent;
    color: var(--kryzon-neon);
    border: 2px solid var(--kryzon-neon);
}

.btn-outline:hover {
    background: var(--kryzon-neon);
    color: var(--text-inverse);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-full {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   INPUT FIELDS
   ============================================ */

.input-group {
    margin-bottom: var(--space-4);
}

.input-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.input-field {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
    outline: none;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    border-color: var(--kryzon-neon);
}

.input-field.error {
    border-color: var(--danger);
}

.input-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.input-error {
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: var(--space-1);
}

/* ============================================
   CARDS (Glass-morphism)
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    padding: var(--space-5);
    box-shadow: var(--glass-shadow);
}

.card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    padding: var(--space-4);
}

/* ============================================
   BALANCE CARD
   ============================================ */

.balance-card {
    position: relative;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    padding: var(--space-6);
    overflow: hidden;
    margin-bottom: var(--space-5);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    background: var(--kryzon-neon);
    filter: blur(80px);
    opacity: 0.25;
}

.balance-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.balance-amount {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.balance-amount .currency {
    font-size: var(--text-xl);
    color: var(--kryzon-neon);
}

.balance-sub {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.sub-balance {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
}

.sub-balance-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-1);
}

.sub-balance-amount {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.sub-balance-amount.gaming {
    color: var(--success);
}

.sub-balance-amount.winning {
    color: var(--warning);
}

/* ============================================
   LIVE ORDER TICKER
   ============================================ */

.live-ticker {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-2) 0;
    overflow: hidden;
    z-index: var(--z-fixed);
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--danger);
    color: white;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.ticker-label i {
    animation: pulse 1s ease-in-out infinite;
}

.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
    padding-left: 80px;
}

.ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    white-space: nowrap;
}

.ticker-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    overflow: hidden;
}

.ticker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticker-info {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.ticker-info strong {
    color: var(--text-primary);
}

.ticker-status {
    font-size: 10px;
    font-weight: var(--font-bold);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.ticker-status.completed {
    background: var(--success-light);
    color: var(--success);
}

.ticker-status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.ticker-status.failed {
    background: var(--danger-light);
    color: var(--danger);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 4px 0 6px;
    height: 60px;
    z-index: var(--z-sticky);
}

.nav-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    /* Reduced gap */
    padding: 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color var(--transition-fast);
    min-width: 60px;
}

.nav-item i {
    font-size: 20px;
    /* Slightly larger as requested */
    margin-bottom: 0px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--purple);
}

.nav-item.active i {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Floating Center Button (Orders) */
.nav-center {
    position: relative;
    transform: none;
    /* Reset transform */
}

.nav-center .nav-center-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin-top: -45px;
    /* Lifted significantly */
    margin-bottom: 0;
    box-shadow: 0 6px 20px var(--purple-glow);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatingIcon 3s ease-in-out infinite;
    /* Floating animation */
}

@keyframes floatingIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.nav-center i {
    font-size: 28px;
    /* Slightly larger again */
    margin-bottom: 0;
    color: white;
}

/* ... unchanged ... */

/* Ensure nav labels are always visible */
.nav-item span {
    display: block !important;
    font-size: 10px;
    font-weight: 600;
    margin-top: -3px;
    /* Moved slightly upward from 0px */
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */

.floating-buttons {
    position: fixed;
    right: var(--space-4);
    bottom: 140px;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: var(--z-fixed);
}

.fab {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-whatsapp {
    background: #25d366;
}

.fab-messenger {
    background: linear-gradient(180deg, #00b2ff 0%, #006aff 100%);
}

.fab-chat {
    background: var(--gradient-primary);
}

/* Install App Banner */
.install-banner {
    position: fixed;
    bottom: 70px;
    left: var(--space-4);
    right: var(--space-4);
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-xl);
}

.install-banner.hidden {
    display: none;
}

.install-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
}

.install-info i {
    font-size: var(--text-2xl);
}

.install-text {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.btn-install {
    padding: var(--space-2) var(--space-4);
    background: white;
    color: #7c3aed;
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-close-banner {
    background: none;
    border: none;
    color: white;
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-1);
    opacity: 0.7;
}

.btn-close-banner:hover {
    opacity: 1;
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal-backdrop);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp var(--transition-base) ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: var(--space-4);
}

.modal-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-default);
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.status-completed {
    background: var(--success-light);
    color: var(--success);
}

.status-pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-failed,
.status-rejected {
    background: var(--danger-light);
    color: var(--danger);
}

.status-processing {
    background: var(--info-light);
    color: var(--info);
}

/* ============================================
   ORDER CARDS
   ============================================ */

.order-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.order-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    padding: var(--space-4);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.order-product {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.order-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.order-name {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
}

.order-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.order-details {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
}

.order-uid {
    color: var(--text-muted);
}

.order-price {
    font-weight: var(--font-bold);
    color: var(--kryzon-neon);
}

/* ============================================
   SKELETON LOADERS
   ============================================ */

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    height: 180px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-2);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 280px;
    max-width: 360px;
    box-shadow: var(--shadow-xl);
    animation: slideInRight var(--transition-base) ease;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: var(--success-light);
    color: var(--success);
}

.toast-error .toast-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.toast-warning .toast-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.toast-message {
    flex: 1;
    font-size: var(--text-sm);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-1);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-4);
}

.empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.empty-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

/* ============================================
   AI CHAT WIDGET
   ============================================ */

/* Floating AI Button */
.fab-ai {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, var(--kryzon-neon) 100%);
    background-size: 200% 200%;
    animation: aiGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(175, 255, 1, 0.4), 0 0 40px rgba(168, 85, 247, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all var(--transition-fast);
}

.fab-ai:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(175, 255, 1, 0.6), 0 0 60px rgba(168, 85, 247, 0.5);
}

.fab-wa {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.fab-wa:hover {
    transform: scale(1.1);
}

@keyframes aiGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Chat Overlay - Floating Popup */
.chat-overlay {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-overlay.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Hide fallback overlay background if it exists */
.chat-overlay::before {
    display: none;
}

.chat-container {
    width: 100%;
    height: 100%;
    max-height: none;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: none;
    /* Reset inherited transform */
}

/* Override previous mobile adjustments if needed */
@media (max-width: 480px) {
    .chat-overlay {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(100%);
    }

    .chat-overlay.active {
        transform: translateY(0);
    }

    .chat-container {
        border-radius: 0;
    }
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-bottom: 1px solid var(--glass-border);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7c3aed 0%, var(--kryzon-neon) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.chat-header-text h4 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin: 0;
    color: var(--text-primary);
}

.chat-status {
    font-size: var(--text-xs);
    color: var(--success);
}

.chat-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.chat-close-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.chat-message {
    display: flex;
    gap: var(--space-2);
    max-width: 85%;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.ai {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7c3aed 0%, var(--kryzon-neon) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.message-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    border: 1px solid var(--border-default);
}

.chat-message.user .message-content {
    background: rgba(175, 255, 1, 0.15);
    border-color: rgba(175, 255, 1, 0.3);
}

.message-content p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--text-primary);
}

.message-content p+p {
    margin-top: var(--space-2);
}

.message-hint {
    font-size: var(--text-xs) !important;
    color: var(--text-muted) !important;
    margin-top: var(--space-2) !important;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: var(--space-1) 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-area {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.chat-input-area input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

.chat-input-area input:focus {
    border-color: var(--kryzon-neon);
}

.chat-input-area input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7c3aed 0%, var(--kryzon-neon) 100%);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(175, 255, 1, 0.4);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-name {
        font-size: var(--text-xs);
    }
}

/* ============================================
   PREMIUM LIGHT MODE OVERRIDES
   ============================================ */

/* Frosted Glass Header - Light Mode */
[data-theme="light"] .header {
    background: rgba(253, 253, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .header::before {
    display: none;
}

/* Premium Cards - Light Mode Layering Effect */
[data-theme="light"] .product-card,
[data-theme="light"] .glass-card,
[data-theme="light"] .card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.12);
}

/* Bottom Navigation - Light Mode Premium */
[data-theme="light"] .bottom-nav {
    background: #fefefe;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.02);
    backdrop-filter: none;
}

[data-theme="light"] .nav-item {
    color: #64748b;
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    color: #8b5cf6;
}

[data-theme="light"] .nav-item.active i {
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .nav-center .nav-center-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}

/* Premium Buttons - Light Mode */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

[data-theme="light"] .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}

[data-theme="light"] .btn-secondary {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

[data-theme="light"] .btn-secondary:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.04);
}

/* Modal - Light Mode Premium */
[data-theme="light"] .modal-overlay {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Input Fields - Light Mode */
[data-theme="light"] .input-field {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .input-field:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Balance Card - Light Mode */
[data-theme="light"] .balance-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .balance-card::before {
    background: rgba(139, 92, 246, 0.15);
    filter: blur(60px);
}

/* Category Tabs - Light Mode */
[data-theme="light"] .tab-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #64748b;
}

[data-theme="light"] .tab-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

[data-theme="light"] .tab-btn.active {
    background: rgba(139, 92, 246, 0.08);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* Wallet Pill - Light Mode */
[data-theme="light"] .wallet-pill {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #7c3aed;
}

[data-theme="light"] .wallet-pill:hover {
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* Toast - Light Mode */
[data-theme="light"] .toast {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Live Ticker - Light Mode */
[data-theme="light"] .live-ticker {
    background: rgba(253, 253, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   NOTICE POPUP MODAL
   ============================================ */

#popupNoticeModal {
    z-index: 99999 !important;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
}

.notice-modal {
    width: 90% !important;
    max-width: 440px !important;
    padding: 0 !important;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6) !important;
    /* Glass effect base */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3);
    /* Neon Border */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(139, 92, 246, 0.15) !important;
    /* Glow */
    border-radius: 24px !important;
    animation: popupBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupBounce {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.notice-media {
    width: 100%;
    position: relative;
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.1), transparent);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.notice-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.notice-modal:hover .notice-image {
    transform: scale(1.05);
}

.notice-content-body {
    padding: 24px 28px 32px;
    text-align: center;
    position: relative;
}

.notice-content-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 100%);
}

.popup-message {
    font-size: 1.05rem;
    color: #e2e8f0;
    /* Lighter text */
    margin-bottom: 24px;
    line-height: 1.6;
    white-space: pre-line;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.popup-cta {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 99px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.popup-cta:active {
    transform: translateY(0);
}

/* Custom Close Button */
.notice-modal .modal-close {
    position: absolute;
    /* Ensure absolute positioning */
    top: 16px;
    right: 16px;
    width: 44px;
    /* Increased size (was 36px) */
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    /* Premium glass background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 50;
    /* Ensure on top */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notice-modal .modal-close i {
    font-size: 24px;
    /* Larger icon */
    line-height: 1;
}

.notice-modal .modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    /* Red hover */
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}