/* style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 30%, #16213e 70%, #1e1b4b 100%); min-height: 100vh; color: #e2e8f0; }

.lang-selector { position: fixed; top: 20px; left: 20px; z-index: 1000; }
.lang-btn { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50px; padding: 10px 18px; cursor: pointer; font-size: 14px; font-weight: 500; color: #e2e8f0; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); transition: all .2s; }
.lang-btn:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); transform: translateY(-1px); background: rgba(255, 255, 255, 0.15); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); overflow: hidden; min-width: 180px; display: none; animation: dropdownSlide .25s cubic-bezier(0.34, 1.56, 0.64, 1); border: 1px solid rgba(255, 255, 255, 0.1); }
.lang-dropdown.active { display: block; }
@keyframes dropdownSlide { from { opacity: 0; transform: translateY(-10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.lang-option { padding: 14px 18px; cursor: pointer; transition: all .2s; font-size: 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #e2e8f0; }
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: rgba(255, 255, 255, 0.1); padding-right: 22px; }
.lang-option.active { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; }
.lang-flag { font-size: 16px; }

.live-rewards-banner { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%); padding: 18px 0; overflow: hidden; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.live-rewards-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #f59e0b, transparent); }
.live-rewards-track { display: flex; gap: 40px; animation: scrollTrack 30s linear infinite; white-space: nowrap; padding: 0 20px; }
@keyframes scrollTrack { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.reward-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.1); }
.reward-tag .code { color: #f59e0b; font-weight: 800; background: rgba(245, 158, 11, 0.15); padding: 2px 8px; border-radius: 6px; }
.reward-tag .status { width: 8px; height: 8px; background: #f59e0b; border-radius: 50%; animation: pulse 2s infinite; }

.hero { max-width: 1200px; margin: 0 auto; padding: 50px 20px 30px; text-align: center; }
.hero-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(248, 250, 252, 0.03) 100%); backdrop-filter: blur(30px); border-radius: 32px; padding: 40px 45px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.hero-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(239, 68, 68, 0.06) 0%, transparent 50%); pointer-events: none; }
.subtitle { color: #f59e0b; font-size: 14px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 28px; position: relative; display: inline-block; padding: 8px 20px; background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1)); border-radius: 50px; border: 1px solid rgba(245, 158, 11, 0.2); }
.hero-title { display: flex; align-items: center; justify-content: flex-start; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; position: relative; text-align: left; }
.speed-logo { width: 200px; height: auto; filter: drop-shadow(0 8px 24px rgba(245, 158, 11, 0.3)); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.speed-logo:hover { transform: scale(1.08) rotate(-2deg); }
.title-text h1 { font-size: 52px; font-weight: 900; line-height: 1.05; text-transform: uppercase; letter-spacing: -1.5px; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.title-text .black { color: #94a3b8; display: block; font-size: 22px; font-weight: 600; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.title-text .blue { color: #f59e0b; display: block; font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: 0; background: linear-gradient(135deg, #f59e0b, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: #94a3b8; font-size: 18px; margin-bottom: 32px; font-weight: 400; max-width: 500px; line-height: 1.6; }
.claim-section { display: flex; align-items: center; justify-content: flex-start; gap: 24px; flex-wrap: wrap; }
.claim-btn { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #f97316 100%); color: white; border: none; padding: 18px 48px; border-radius: 50px; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4), 0 0 0 1px rgba(245, 158, 11, 0.1); transition: all .3s; position: relative; overflow: hidden; }
.claim-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: left 0.6s; }
.claim-btn:hover::before { left: 100%; }
.claim-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45); }
.live-claims { color: #64748b; font-size: 14px; font-weight: 500; }
.live-claims-number { color: #f59e0b; font-weight: 700; }
.live-indicator { display: flex; align-items: center; justify-content: center; margin: 35px 0; }
.live-badge { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); padding: 12px 24px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: #94a3b8; font-weight: 600; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.live-dot { width: 10px; height: 10px; background: #f59e0b; border-radius: 50%; position: relative; }
.live-dot::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border-radius: 50%; background: #f59e0b; animation: pulseRing 2s infinite; }
@keyframes pulseRing { 0% { transform: translate(-50%, -50%) scale(1); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(3); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.items-section { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.item-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(248, 250, 252, 0.03) 100%); border-radius: 24px; padding: 24px; text-align: center; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1); cursor: pointer; position: relative; overflow: hidden; }
.item-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3); }
.item-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; text-align: right; }
.item-image { width: 100%; height: 150px; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)); transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.item-card:hover .item-image { transform: scale(1.15) rotate(-3deg); }
.item-name { font-size: 15px; font-weight: 800; color: #f1f5f9; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.item-claim-btn { width: 100%; background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); color: white; border: none; padding: 13px; border-radius: 50px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25); }
.item-claim-btn:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.footer { text-align: center; padding: 35px 20px; color: #475569; font-size: 13px; font-weight: 500; }

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(12px); display: none; align-items: center; justify-content: center; z-index: 2000; animation: fadeIn .3s ease; padding: 20px; }
.modal-overlay.active { display: flex; }
.generator-modal { background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 28px; width: 100%; max-width: 440px; overflow: hidden; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); animation: modalSlideUp .45s cubic-bezier(0.34, 1.56, 0.64, 1); border: 1px solid rgba(255, 255, 255, 0.1); }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(40px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #f97316 100%); color: white; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.modal-header-left { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.modal-logo { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.modal-title { font-size: 17px; font-weight: 800; }
.modal-subtitle { font-size: 12px; opacity: .75; margin-top: 2px; font-weight: 500; }
.modal-close { background: rgba(255, 255, 255, 0.2); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all .2s; position: relative; z-index: 1; }
.modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }
.modal-body { padding: 28px; }
.selected-item { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%); padding: 18px; border-radius: 18px; margin-bottom: 22px; border: 1px solid rgba(245, 158, 11, 0.2); }
.selected-item img { width: 52px; height: 52px; object-fit: contain; }
.selected-item-info { flex: 1; text-align: right; }
.selected-item-name { font-weight: 800; color: #f59e0b; font-size: 16px; }
.free-drop-badge { display: inline-block; background: linear-gradient(135deg, #22c55e, #16a34a); color: white; font-size: 10px; font-weight: 800; padding: 5px 12px; border-radius: 50px; margin-top: 5px; text-transform: uppercase; }
.input-label { text-align: center; color: #94a3b8; font-size: 14px; margin-bottom: 18px; line-height: 1.6; font-weight: 500; }
.username-input { width: 100%; padding: 16px 48px 16px 16px; border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 16px; font-size: 15px; font-family: inherit; outline: none; background: rgba(255, 255, 255, 0.05); color: #e2e8f0; transition: all .3s; }
.username-input:focus { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1); }
.username-input.error { border-color: #ef4444; animation: shake .5s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.generate-btn { width: 100%; background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); color: white; border: none; padding: 18px; border-radius: 16px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); transition: all .3s; }
.generate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4); }

/* Generator Progress Screen */
.progress-container { display: none; padding: 35px 28px; text-align: center; }
.progress-container.active { display: block; animation: fadeIn .4s ease; }
.spinner { width: 52px; height: 52px; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: #f59e0b; border-right-color: #ef4444; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-title { color: #f59e0b; font-weight: 700; font-size: 16px; margin-bottom: 28px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); transition: all .5s; }
.step.active { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1)); border-color: rgba(245, 158, 11, 0.3); transform: scale(1.02); }
.step.completed { background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1)); border-color: rgba(34, 197, 94, 0.3); }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: #0f2811; border: 2px solid #22c55e; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.step.active .step-number { color: white; box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
.step.completed .step-number { color: #22c55e; box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
.step-info { flex: 1; text-align: right; }
.step-name { font-weight: 700; font-size: 14px; color: #e2e8f0; }
.step-desc { font-size: 12px; color: #64748b; margin-top: 3px; }
.step.completed .step-desc { color: #22c55e; font-weight: 600; }
.progress-bar { height: 5px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; margin-top: 24px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b); width: 0%; transition: width .6s; }

/* Success & Verification Screen */
.success-screen { display: none; padding: 35px 28px; text-align: center; }
.success-screen.active { display: block; animation: fadeIn .5s ease; }
.gift-icon { font-size: 64px; margin-bottom: 18px; display: inline-block; animation: giftBounce 1.2s ease infinite; }
@keyframes giftBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.success-title { font-size: 26px; font-weight: 900; margin-bottom: 14px; background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.success-desc { color: #94a3b8; font-size: 14px; margin-bottom: 22px; line-height: 1.6; }
.success-item { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05)); padding: 18px; border-radius: 18px; margin-bottom: 20px; border: 1px solid rgba(34, 197, 94, 0.2); }
.success-item img { width: 48px; height: 48px; object-fit: contain; }
.success-item-info { flex: 1; text-align: right; }
.success-item-name { font-weight: 800; color: #22c55e; font-size: 16px; }
.verified-badge { color: #22c55e; font-size: 13px; font-weight: 700; }
.verify-btn { width: 100%; background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: white; border: none; padding: 18px; border-radius: 16px; font-size: 17px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; box-shadow: 0 6px 24px rgba(34, 197, 94, 0.35); animation: verifyPulse 2s ease infinite; }
@keyframes verifyPulse { 0%, 100% { box-shadow: 0 6px 24px rgba(34, 197, 94, 0.35); } 50% { box-shadow: 0 6px 32px rgba(34, 197, 94, 0.55); } }
.verify-btn:hover { transform: translateY(-2px); }
.expire-timer { color: #ef4444; font-size: 14px; font-weight: 700; animation: timerPulse 1s ease infinite; }
@keyframes timerPulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.confetti { position: fixed; width: 12px; height: 12px; top: -12px; z-index: 3000; pointer-events: none; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; } 100% { transform: translateY(100vh) rotate(1080deg) scale(0.3); opacity: 0; } }

/* Mobile Responive */
@media(max-width: 640px) {
    .title-text h1 { font-size: 32px; }
    .speed-logo { width: 90px; }
    .hero-card { padding: 35px 22px; }
    .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .item-image { height: 110px; }
    .item-card { padding: 16px; }
}