:root {
    --primary-color: #7b2cbf;
    --secondary-color: #3a0ca3;
    --neon-accent: #00f5d4;
    --bg-color: #0f1016;
    --surface-color: #191a23;
    --surface-light: #242531;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-family: 'Outfit', sans-serif;
    --mobile-width: 420px;
    --bottom-nav-height: 70px;
}

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    background-color: #050508;
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    justify-content: center;
}

a { text-decoration: none; color: inherit; }

/* Desktop Background Particles */
.desktop-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none;
    background: radial-gradient(circle at center, #150525 0%, #050508 100%);
}

/* Mobile Wrapper */
#mobile-wrapper {
    width: 100%; max-width: var(--mobile-width); height: 100vh; height: 100dvh;
    background-color: var(--bg-color); position: relative;
    z-index: 1; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,1);
    display: flex; flex-direction: column;
}

/* Utilities */
.neon-text { color: var(--neon-accent); text-shadow: 0 0 10px rgba(0, 245, 212, 0.4); }
.text-danger { color: #ff4d4d !important; }
h2, h3, h4 { font-weight: 700; }

/* Top Header */
.top-header {
    flex-shrink: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; background: rgba(15, 16, 22, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 1.2rem; font-weight: 700; }
.header-actions i { font-size: 1.5rem; margin-left: 1rem; color: var(--text-main); cursor: pointer; }

/* Transaction Ticker */
.transaction-ticker {
    background: linear-gradient(90deg, rgba(123,44,191,0.2), transparent);
    padding: 8px 1.5rem; font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(123,44,191,0.2);
    position: absolute; top: 60px; width: 100%; z-index: 99;
    transform: translateY(-100%); opacity: 0; visibility: hidden;
}
.transaction-ticker.show {
    visibility: visible;
    animation: slideDown 0.5s forwards, slideUp 0.5s 3s forwards;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100%); opacity: 0; visibility: hidden; } }
.transaction-ticker i { color: var(--neon-accent); }

/* Main Content & SPA Views */
.main-content {
    flex-grow: 1; overflow-y: auto; overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
}
.main-content::-webkit-scrollbar { display: none; }
.main-content { -ms-overflow-style: none; scrollbar-width: none; }

.app-view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.app-view.active {
    display: block;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Hero */
.hero-carousel { padding: 1.5rem; }
.heroSwiper { width: 100%; height: 180px; border-radius: 15px; overflow: hidden; }
.swiper-slide { display: flex; align-items: center; padding: 1.5rem; background-size: cover; background-position: center; }
.banner-1 { background: linear-gradient(135deg, rgba(123,44,191,0.6), rgba(15,16,22,1)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80&w=400') center/cover; }
.banner-2 { background: linear-gradient(135deg, rgba(0,245,212,0.4), rgba(15,16,22,1)), url('https://images.unsplash.com/photo-1552820728-8b83bb6b773f?auto=format&fit=crop&q=80&w=400') center/cover; }
.slide-content h2 { font-size: 1.5rem; line-height: 1.2; }
.slide-content p { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.swiper-pagination-bullet { background: var(--text-muted); }
.swiper-pagination-bullet-active { background: var(--neon-accent); }

/* Flash Sale */
.flash-sale { padding: 0 1.5rem 1.5rem; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.countdown { background: rgba(255,0,0,0.2); color: #ff4d4d; padding: 4px 8px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; }
.flash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.flash-card { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; position: relative; cursor: pointer; transition: 0.2s; }
.flash-card:active { transform: scale(0.95); }
.discount-tag { position: absolute; top: -5px; right: -5px; background: #ff4d4d; color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.game-img-small { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.price.strike { text-decoration: line-through; color: var(--text-muted); font-size: 0.75rem; }
.price.new { color: var(--neon-accent); font-weight: 700; font-size: 0.9rem; }

/* Games Section */
.games-section { padding: 0 1.5rem 1.5rem; }
.section-header { margin-bottom: 1rem; }
.filters { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 10px; padding-bottom: 5px; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { background: var(--surface-color); border: 1px solid var(--glass-border); color: var(--text-main); padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
.filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); }
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.game-card { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: 0.2s; }
.game-card:active { transform: scale(0.95); }
.game-img { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.img-ml { background: linear-gradient(45deg, #1e3c72, #2a5298); }
.img-pubg { background: linear-gradient(45deg, #f12711, #f5af19); }
.img-ff { background: linear-gradient(45deg, #ff416c, #ff4b2b); }
.img-valo { background: linear-gradient(45deg, #ff4655, #0f1923); }
.game-info { padding: 10px; text-align: center; }
.game-info h4 { font-size: 0.9rem; }
.game-info p { font-size: 0.7rem; color: var(--text-muted); }

/* Payment Methods */
.payment-methods { padding: 1.5rem; background: rgba(25, 26, 35, 0.5); margin-bottom: 1rem; }
.payment-methods h3 { margin-bottom: 1rem; font-size: 1rem; text-align: center; }
.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-logo { background: var(--surface-light); border-radius: 8px; padding: 10px; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

/* --- Search View --- */
.page-header { padding: 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--glass-border); }
.search-bar { flex-grow: 1; background: var(--surface-light); border-radius: 12px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; }
.search-bar input { background: transparent; border: none; color: white; width: 100%; outline: none; font-family: inherit; }
.search-bar i { color: var(--text-muted); font-size: 1.2rem; }

/* --- Topup Detail View --- */
.topup-header { height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; position: relative; }
.topup-header::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, var(--bg-color), transparent); }
.back-btn { background: rgba(0,0,0,0.5); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; z-index: 1; backdrop-filter: blur(5px); }
.topup-title { z-index: 1; }
.topup-title h2 { font-size: 1.8rem; }
.topup-title p { color: var(--neon-accent); font-weight: 600; font-size: 0.9rem; }
.topup-body { padding: 1.5rem; }
.topup-step { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 15px; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; }
.step-circle { position: absolute; top: -15px; left: 20px; background: var(--primary-color); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 5px 15px rgba(123,44,191,0.5); }
.topup-step h3 { margin-bottom: 1rem; margin-left: 10px; font-size: 1.1rem; }
.form-group-row { display: flex; flex-direction: column; gap: 10px; } /* Stack inputs on mobile for better responsiveness */
.app-input { width: 100%; background: var(--surface-light); border: 1px solid var(--glass-border); color: white; padding: 12px; border-radius: 10px; outline: none; font-family: inherit; transition: 0.3s; }
.app-input:focus { border-color: var(--neon-accent); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.item-card { background: var(--surface-light); border: 1px solid var(--glass-border); padding: 15px 10px; border-radius: 10px; text-align: center; cursor: pointer; transition: 0.3s; }
.item-card h4 { font-size: 0.9rem; margin-bottom: 5px; }
.item-card p { font-size: 0.8rem; color: var(--neon-accent); font-weight: 600; }
.item-card.active { background: rgba(123,44,191,0.2); border-color: var(--primary-color); transform: scale(1.02); }
.payment-selection { display: flex; flex-direction: column; gap: 10px; }
.pay-method-card { background: var(--surface-light); border: 1px solid var(--glass-border); padding: 15px; border-radius: 10px; display: flex; justify-content: space-between; cursor: pointer; align-items: center; }
.pay-method-card.active { border-color: var(--neon-accent); }
.pay-method-card.active i { color: var(--neon-accent); font-size: 1.2rem; }
.btn-checkout-large { width: 100%; padding: 15px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; box-shadow: 0 10px 20px rgba(123,44,191,0.4); margin-bottom: 2rem; }

/* --- Profile View --- */
.profile-header { padding: 2rem 1.5rem; text-align: center; }
.profile-avatar { width: 80px; height: 80px; background: var(--surface-light); border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary-color); border: 2px solid var(--neon-accent); }
.profile-balance { background: linear-gradient(135deg, rgba(123,44,191,0.2), rgba(0,245,212,0.1)); margin: 0 1.5rem 1.5rem; padding: 1.5rem; border-radius: 15px; border: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.balance-card p { font-size: 0.8rem; color: var(--text-muted); }
.btn-topup-balance { background: var(--neon-accent); color: var(--bg-color); border: none; padding: 8px 15px; border-radius: 8px; font-weight: 700; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.profile-menu { padding: 0 1.5rem; }
.menu-list-item { background: var(--surface-color); padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--glass-border); cursor: pointer; }
.menu-list-item i:first-child { font-size: 1.2rem; color: var(--primary-color); }
.menu-list-item span { flex-grow: 1; font-weight: 600; }

/* --- Notifications View --- */
.notif-list { padding: 1.5rem; }
.notif-item { background: var(--surface-color); border: 1px solid var(--glass-border); padding: 1rem; border-radius: 12px; margin-bottom: 1rem; display: flex; gap: 15px; }
.notif-item.unread { border-left: 4px solid var(--neon-accent); }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(123,44,191,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary-color); }
.notif-icon.success { background: rgba(0,245,212,0.2); color: var(--neon-accent); }
.notif-text h4 { font-size: 0.95rem; margin-bottom: 5px; }
.notif-text p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.notif-time { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 5px; }

/* --- Bottom Navigation --- */
.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; max-width: var(--mobile-width); margin: 0 auto; width: 100%; min-height: var(--bottom-nav-height); padding-bottom: env(safe-area-inset-bottom); background: rgba(15, 16, 22, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top: 1px solid var(--glass-border); display: flex; justify-content: space-around; align-items: center; z-index: 100; box-sizing: border-box; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; height: var(--bottom-nav-height); color: var(--text-muted); font-size: 0.7rem; transition: 0.3s; cursor: pointer; padding: 0 5px; }
.nav-item i { font-size: 1.5rem; margin-bottom: 4px; }
.nav-item.active, .nav-item:active { color: var(--neon-accent); }
.cart-icon-wrapper { position: relative; }
.badge { position: absolute; top: -5px; right: -8px; background: #ff4d4d; color: white; font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* --- Off-Canvas Cart --- */
.cart-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: absolute; bottom: 0; left: 0; width: 100%; height: 70vh; background: var(--surface-color); border-top-left-radius: 20px; border-top-right-radius: 20px; z-index: 1001; transform: translateY(100%); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1); display: flex; flex-direction: column; }
.cart-drawer.active { transform: translateY(0); }
.cart-header { padding: 1.5rem; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.cart-header i { font-size: 1.5rem; cursor: pointer; }
.cart-body { flex-grow: 1; padding: 1.5rem; overflow-y: auto; }
.empty-cart { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); }
.empty-cart i { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.cart-footer { padding: 1.5rem; background: var(--surface-light); border-top: 1px solid var(--glass-border); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.btn-checkout { width: 100%; padding: 12px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; }

/* --- Custom Modal --- */
.custom-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.custom-modal-overlay.active { opacity: 1; visibility: visible; }
.custom-modal { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 20px; width: 85%; padding: 2rem; text-align: center; transform: scale(0.8); opacity: 0; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2); box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
.custom-modal-overlay.active .custom-modal { transform: scale(1); opacity: 1; }
.modal-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; }
.modal-icon.alert { background: rgba(255,77,77,0.2); color: #ff4d4d; }
.modal-icon.confirm { background: rgba(123,44,191,0.2); color: var(--primary-color); }
.modal-icon.success { background: rgba(0,245,212,0.2); color: var(--neon-accent); }
.custom-modal h3 { font-size: 1.3rem; margin-bottom: 10px; }
.custom-modal p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.btn-modal { padding: 10px 20px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; flex: 1; }
.btn-modal.cancel { background: var(--surface-light); color: white; border: 1px solid var(--glass-border); }
.btn-modal.confirm { background: var(--primary-color); color: white; }

/* --- Gamification & Interactive Features --- */

/* Sultan Leaderboard */
.sultan-board { padding: 0 1.5rem 1.5rem; }
.sultan-list { display: flex; flex-direction: column; gap: 12px; }
.sultan-item { display: flex; align-items: center; gap: 15px; padding: 12px 15px; border-radius: 12px; background: var(--surface-color); border: 1px solid var(--glass-border); position: relative; overflow: hidden; cursor: default; }
.sultan-item.gold { background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(15,16,22,1)); border-color: rgba(255,215,0,0.4); }
.sultan-item.silver { background: linear-gradient(135deg, rgba(192,192,192,0.1), rgba(15,16,22,1)); }
.sultan-rank { font-size: 1.2rem; font-weight: 700; width: 25px; text-align: center; }
.sultan-item.gold .sultan-rank { color: gold; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.sultan-item.silver .sultan-rank { color: silver; }
.sultan-avatar { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.sultan-item.gold .sultan-avatar { background: rgba(255,215,0,0.2); color: gold; }
.sultan-item.silver .sultan-avatar { background: rgba(192,192,192,0.2); color: silver; }
.sultan-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.sultan-info p { font-size: 0.8rem; color: var(--neon-accent); font-weight: 600; }
.badge-icon { position: absolute; right: 15px; font-size: 1.8rem; color: gold; opacity: 0.8; }

/* Floating Daily Reward */
.floating-reward { position: absolute; bottom: 85px; right: 20px; width: 55px; height: 55px; background: linear-gradient(135deg, #ff007f, var(--primary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; cursor: pointer; box-shadow: 0 5px 20px rgba(255,0,127,0.5); z-index: 90; transition: 0.3s; }
.floating-reward:hover { transform: scale(1.1); box-shadow: 0 5px 25px rgba(255,0,127,0.8); }

/* Gacha Modal */
.gacha-modal { display: flex; flex-direction: column; align-items: center; }
.treasure-chest { font-size: 5rem; color: gold; text-shadow: 0 0 20px rgba(255,215,0,0.5); margin: 20px 0; cursor: pointer; transition: 0.3s; }
.treasure-chest:hover { transform: scale(1.1); }
.treasure-chest.shake { animation: chestShake 0.5s ease-in-out infinite; }
.treasure-chest.open i::before { content: "\eb07"; } /* bx-box to open equivalent? Or just color change */
.treasure-chest.open { color: var(--neon-accent); text-shadow: 0 0 30px var(--neon-accent); animation: chestPop 0.5s ease-out forwards; }
#gacha-result-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; min-height: 28px; }

@keyframes chestShake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}
@keyframes chestPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

/* --- Advanced Topup Page Revamp --- */
.topup-blur-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80') center/cover; filter: blur(5px); opacity: 0.4; z-index: 0; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }
.topup-header.img-ml .topup-blur-bg { background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80'); }

/* Floating Inputs */
.floating-input { position: relative; width: 100%; }
.floating-input input { width: 100%; background: var(--surface-light); border: 1px solid var(--glass-border); color: white; padding: 18px 12px 6px; border-radius: 10px; outline: none; font-family: inherit; font-size: 0.9rem; transition: 0.3s; }
.floating-input label { position: absolute; left: 12px; top: 12px; color: var(--text-muted); font-size: 0.9rem; pointer-events: none; transition: 0.3s; }
.floating-input input:focus ~ label, .floating-input input:not(:placeholder-shown) ~ label { top: 4px; font-size: 0.65rem; color: var(--neon-accent); }
.floating-input input:focus { border-color: var(--neon-accent); box-shadow: 0 0 10px rgba(0,245,212,0.2); }
.validation-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #00f5d4; font-size: 1.2rem; opacity: 0; transition: 0.3s; }
.validation-icon.valid { opacity: 1; }
.helper-text { display: block; margin-top: 8px; font-size: 0.7rem; color: var(--text-muted); font-style: italic; }

/* Item Cards Advanced */
.item-card.advanced { position: relative; overflow: hidden; }
.item-card.advanced.active { border: 2px solid var(--neon-accent); box-shadow: 0 0 15px rgba(0,245,212,0.3); background: rgba(0,245,212,0.05); transform: scale(1.05); }
.ribbon { position: absolute; top: 10px; right: -25px; background: #ff4d4d; color: white; font-size: 0.6rem; font-weight: 700; padding: 3px 25px; transform: rotate(45deg); box-shadow: 0 2px 4px rgba(0,0,0,0.5); z-index: 1; }
.ribbon.gold { background: gold; color: black; }

/* Payment Advanced */
.payment-category-title { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.pay-method-card.advanced { padding: 12px 15px; }
.pay-method-card.advanced .fee { font-size: 0.75rem; color: var(--text-muted); }
.pay-method-card.advanced.active .fee { color: var(--neon-accent); }

/* Sticky Checkout Bar */
.sticky-checkout { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: rgba(15, 16, 22, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; padding: 0 1.5rem; z-index: 100; transform: translateY(100%); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1); }
.sticky-checkout.show { transform: translateY(0); }
.checkout-info p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.checkout-info h3 { font-size: 1.3rem; margin: 0; }
.checkout-actions { display: flex; gap: 10px; align-items: center; }
.btn-icon { background: var(--surface-light); color: white; border: 1px solid var(--glass-border); width: 45px; height: 45px; border-radius: 12px; font-size: 1.5rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.btn-icon:hover { border-color: var(--neon-accent); color: var(--neon-accent); }
.btn-buy-now { background: linear-gradient(45deg, var(--primary-color), var(--neon-accent)); color: #fff; border: none; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 5px; box-shadow: 0 5px 15px rgba(0,245,212,0.3); transition: 0.3s; }
.btn-buy-now:active { transform: scale(0.95); }

/* --- Cart Items Rendering --- */
.cart-item { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 12px; padding: 12px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.cart-item-img { width: 50px; height: 50px; border-radius: 8px; background: rgba(123,44,191,0.2); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.8rem; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.cart-item-info p { font-size: 0.75rem; color: var(--text-muted); }
.cart-item-price { font-size: 0.9rem; font-weight: 600; color: var(--neon-accent); margin-top: 4px; }
.cart-item-remove { background: none; border: none; color: #ff4d4d; font-size: 1.2rem; cursor: pointer; padding: 5px; opacity: 0.7; transition: 0.3s; }
.cart-item-remove:hover { opacity: 1; transform: scale(1.1); }

/* --- Payment Status Views --- */
.payment-status-view { display: none; align-items: center; justify-content: center; height: 100vh; padding: 1.5rem; background: var(--bg-color); }
.payment-status-view.active { display: flex; }
.status-card { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2rem; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.status-card h2 { margin: 15px 0 5px; font-size: 1.5rem; }
.status-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.qr-box { background: var(--surface-light); border: 2px dashed var(--neon-accent); border-radius: 15px; padding: 20px; margin: 20px auto; width: fit-content; }
.payment-countdown { font-size: 2rem; font-weight: 700; font-family: monospace; color: var(--primary-color); letter-spacing: 2px; margin-bottom: 10px; }

.icon-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto; }
.icon-circle.success { background: rgba(0,245,212,0.1); color: var(--neon-accent); border: 2px solid var(--neon-accent); box-shadow: 0 0 20px rgba(0,245,212,0.4); animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.icon-circle.failed { background: rgba(255,77,77,0.1); color: #ff4d4d; border: 2px solid #ff4d4d; box-shadow: 0 0 20px rgba(255,77,77,0.4); animation: shake 0.4s ease-in-out; }

.cart-payment-select { width: 100%; padding: 10px; border-radius: 8px; background: var(--surface-color); border: 1px solid var(--glass-border); color: white; margin-bottom: 5px; }

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* --- Gamification Premium Features --- */

/* 1. Matrix Hacker Mode */
body.matrix-mode {
    --primary-color: #00ff00 !important;
    --neon-accent: #00ff00 !important;
    --bg-color: #001100 !important;
    --surface-color: #002200 !important;
    color: #00ff00 !important;
    animation: matrixShake 0.5s ease-in-out;
}
body.matrix-mode * {
    color: #00ff00 !important;
    text-shadow: 0 0 5px #00ff00;
}
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: none;
    opacity: 0.3;
}
body.matrix-mode .matrix-canvas {
    display: block;
}

@keyframes matrixShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-5px, -5px) rotate(-1deg); }
    20% { transform: translate(5px, -5px) rotate(1deg); }
    30% { transform: translate(-5px, 5px) rotate(0deg); }
    40% { transform: translate(5px, 5px) rotate(1deg); }
    50% { transform: translate(-5px, -5px) rotate(-1deg); }
}

/* 2. Custom Neon Cursor */
@media (pointer: fine) {
    body { cursor: none; }
    a, button, select, input, .game-card { cursor: none; }
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        background: var(--neon-accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        mix-blend-mode: screen;
        box-shadow: 0 0 15px var(--neon-accent), 0 0 30px var(--neon-accent);
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }
    .custom-cursor.active {
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        opacity: 0.5;
    }
}
@media (pointer: coarse) {
    .custom-cursor { display: none; }
}
