:root { --neon-cyan: #00f3ff; --neon-gold: #ffd700; --neon-pink: #ff0055; --bg: #050507; --panel: rgba(20,20,30,0.95); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #000; color: #fff; font-family: 'Rajdhani', sans-serif; overflow-x: hidden; }

/* LAYOUT & SCREEN */
.mobile-wrapper { width: 100%; max-width: 450px; margin: 0 auto; background: var(--bg); min-height: 100vh; background-image: radial-gradient(circle at 50% 30%, #1a1a2e 0%, #000 100%); box-shadow: 0 0 50px rgba(0, 243, 255, 0.1); border-left: 1px solid #222; border-right: 1px solid #222; padding: 0 15px; position: relative; }
.screen { display: none; flex-direction: column; width: 100%; min-height: 100vh; padding: 20px 5px; animation: fade 0.8s; }
.screen.active { display: flex; }
.center-content { justify-content: center; align-items: center; }
.start-wrapper, .setup-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 15px; }

/* INPUT STYLES */
.tech-input { width: 100%; padding: 15px; background: #000 !important; border: 2px solid var(--neon-cyan); color: #fff !important; font-family: 'Rajdhani'; font-size: 1.1rem; font-weight: bold; margin-bottom: 15px; border-radius: 10px; box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2); }
.tech-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.tech-input:focus { border-color: #fff; box-shadow: 0 0 15px var(--neon-cyan); outline: none; }
.file-upload { display: block; width: 100%; padding: 15px; border: 2px dashed var(--neon-cyan); border-radius: 10px; text-align: center; color: var(--neon-cyan); margin: 15px 0; cursor: pointer; background: rgba(0,243,255,0.05); }

/* GIFT SHOP STYLES (FIXED) */
.gift-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(15px); z-index: 2000; display: none; flex-direction: column; }
.shop-header { flex-shrink: 0; padding: 15px 20px; background: rgba(10, 10, 10, 0.98); border-bottom: 1px solid var(--neon-gold); text-align: center; z-index: 10; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.shop-container { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 30px; align-items: center; width: 100%; scroll-padding-top: 20px; perspective: 1200px; }
.shop-footer { display: none; padding: 20px; gap: 15px; background: rgba(0, 0, 0, 0.95); border-top: 1px solid var(--neon-cyan); justify-content: center; flex-shrink: 0; animation: slideUp 0.3s ease-out; width: 100%; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* GIFT CARD */
.gift-card { width: 300px; height: 480px; background: #050505; border-radius: 20px; border: 3px solid var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 243, 255, 0.4); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: 0.3s; flex-shrink: 0; }
.gift-card::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 20px 20px; z-index: 0; }
.card-header { display: flex; justify-content: space-between; padding: 20px; font-family: 'Orbitron'; font-weight: 900; color: #fff; z-index: 2; font-size: 1.2rem; }
.card-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg); font-family: 'Orbitron'; font-weight: 900; font-size: 3rem; color: rgba(255,255,255,0.04); white-space: nowrap; pointer-events: none; z-index: 1; }
.card-anim-area { flex: 1; display: flex; justify-content: center; align-items: center; z-index: 2; }
.card-footer { text-align: center; padding: 20px; z-index: 2; background: linear-gradient(to top, rgba(0,243,255,0.1), transparent); border-top: 1px solid rgba(0,243,255,0.2); }
.card-name { font-family: 'Cinzel'; font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: 5px; text-transform: uppercase; }
.card-value { font-family: 'Orbitron'; font-weight: 900; font-size: 1.6rem; color: var(--neon-gold); text-shadow: 0 0 10px var(--neon-gold); }
.gift-card.selected { transform: scale(1.03); border-color: var(--neon-gold); box-shadow: 0 0 40px var(--neon-gold); }

/* FONT CÔNG NGHỆ & NÚT LED CHẠY */
.neon-tech-heading { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 2em; color: #fff; text-align: center; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #0ff, 0 0 40px #0ff; animation: neon-flicker 2s infinite alternate; }
@keyframes neon-flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 18px #0ff, 0 0 38px #0ff; opacity: 1; } 20%, 24%, 55% { text-shadow: none; opacity: 0.8; } }

.neon-tech-button { position: relative; padding: 16px 35px; font-family: 'Orbitron', sans-serif; font-size: 1.2em; font-weight: bold; color: #0ff; background: rgba(0, 0, 0, 0.8); border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 1.5px; outline: none; overflow: hidden; transition: 0.3s; margin-top: 20px; }
.neon-tech-button span { position: relative; z-index: 2; text-shadow: 0 0 8px rgba(0, 255, 255, 0.7); }
.neon-tech-button::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.8), rgba(0, 255, 255, 0.1), transparent 40%); animation: rotate-border 3s linear infinite; z-index: 0; }
.neon-tech-button::after { content: ''; position: absolute; inset: 3px; background: #0a0a0a; z-index: 1; }
@keyframes rotate-border { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* COMMON STYLES */
.rgb-border { position: relative; overflow: hidden; border-radius: 15px; background: rgba(15, 15, 20, 0.95); padding: 20px; margin-bottom: 20px; box-shadow: 0 0 15px rgba(0,0,0,0.5); border: 1px solid rgba(0, 243, 255, 0.3); }
.rgb-border::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 15px; pointer-events: none; box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.1); z-index: 1; }
.special-anim-box { width: 100%; height: 300px; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.6); }
.mega-cake-frame { width: 100%; height: 350px; position: relative; display: flex; justify-content: center; align-items: center; margin-top: 10px; }
.click-hint { position: absolute; bottom: 10px; color: var(--neon-cyan); font-family: 'Monoton'; animation: blink 1s infinite; pointer-events: none; z-index: 4; text-shadow: 0 0 5px #000; }
.overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.98); z-index: 2000; display: none; flex-direction: column; align-items: center; justify-content: center; }
.letter-content { background: #111; border: 1px solid var(--neon-gold); padding: 20px; width: 95%; height: 80vh; border-radius: 10px; display: flex; flex-direction: column; }
.letter-body-text { overflow-y: auto; flex: 1; margin: 20px 0; line-height: 1.6; text-align: justify; color: #ddd; font-size: 1.1rem; }
.tech-btn { background: rgba(0,243,255,0.1); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 15px; font-weight: bold; width: 100%; margin-top: 10px; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: 0.3s; }
.btn-gold { border-color: var(--neon-gold); color: var(--neon-gold); background: rgba(255,215,0,0.1); }
.footer { display: flex; justify-content: center; gap: 20px; margin-top: 30px; padding-bottom: 20px; }
.footer-btn { background: rgba(0,0,0,0.8); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 12px 30px; cursor: pointer; border-radius: 8px; font-family: 'Rajdhani'; font-weight: bold; font-size: 1rem; transition: 0.3s; text-transform: uppercase; }
.btn-disabled { opacity: 0.5; pointer-events: none; filter: grayscale(1); }
h1, h2 { font-family: 'Orbitron'; color: var(--neon-cyan); text-align: center; margin: 0; }
.profile-card { display: flex; gap: 20px; align-items: center; width: 100%; }
.avatar-container { position: relative; width: 90px; height: 90px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; border: 2px solid #fff; }
.vip-badge { background: #000; color: #fff; font-family: 'Orbitron'; font-size: 0.9rem; padding: 2px 10px; border: 1px solid var(--neon-gold); border-radius: 4px; display: inline-block; margin-top: 5px; box-shadow: 0 0 10px var(--neon-gold); }
.gift-icons-row { display: flex; gap: 10px; margin-top: 15px; justify-content: center; flex-wrap: wrap; }
.small-gift-icon { width: 45px; height: 45px; background: #222; border: 1px solid var(--neon-gold); border-radius: 8px; display: flex; justify-content: center; align-items: center; color: var(--neon-gold); cursor: pointer; }
.scanner-container { width: 220px; height: 220px; border: 2px solid var(--neon-cyan); border-radius: 50%; display: flex; justify-content: center; align-items: center; position: relative; margin: 30px 0; box-shadow: 0 0 30px rgba(0,243,255,0.3); }
.scan-line { position: absolute; width: 100%; height: 3px; background: var(--neon-cyan); top: 0; animation: scan 2s infinite; box-shadow: 0 0 15px var(--neon-cyan); }
@keyframes scan { 0%{top:0} 100%{top:100%} }
@keyframes fade { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes blink { 50%{opacity:0.5} }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }
/* Rarity Colors */
.rarity-COMMON { border-color: #888; } .rarity-RARE { border-color: #0f0; box-shadow: 0 0 15px rgba(0,255,0,0.2); } .rarity-EPIC { border-color: #bd00ff; box-shadow: 0 0 20px rgba(189,0,255,0.3); } .rarity-LEGEND { border-color: #fa0; box-shadow: 0 0 30px rgba(255,170,0,0.4); } .rarity-MYTHIC { border-color: #f05; box-shadow: 0 0 40px rgba(255,0,85,0.5); }
