:root {
    --primary-orange: #f97316;
    --orange-gradient: linear-gradient(135deg, #fb923c, #ea580c);
    --orange-glow: rgba(249, 115, 22, 0.4);
    --neon-blue: #0284c7;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-orange: #fed7aa;
    --border-light: #ffedd5;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }

body { background: var(--bg-light); color: var(--text-dark); padding-bottom: 85px; min-height: 100vh; overflow-x: hidden; position: relative; }

.top-action-bar { position: absolute; top: 12px; right: 16px; z-index: 50; display: flex; gap: 8px; }
.sound-toggle-btn { background: #ffffff; border: 1px solid var(--border-orange); color: var(--primary-orange); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15); transition: 0.25s; }
.sound-toggle-btn.muted { color: var(--text-muted); border-color: #cbd5e1; }

.view { display: none; padding: 14px; animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

#home-view { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 90px); padding: 10px 16px; max-width: 480px; margin: 0 auto; }
#home-view.active { display: flex; }

.home-header { text-align: center; padding: 8px 0 12px; width: 100%; }
.store-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; color: var(--primary-orange); border: 1px solid var(--border-orange); padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.3px; box-shadow: 0 3px 12px var(--orange-glow); animation: pulseGlow 2.5s infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 3px 10px rgba(249, 115, 22, 0.2); } 50% { box-shadow: 0 3px 18px rgba(249, 115, 22, 0.5); } }

.store-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.4px; line-height: 1.25; background: linear-gradient(135deg, #0f172a 40%, #ea580c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.store-subtitle-wrap { height: 22px; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.store-subtitle { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.typing-cursor { display: inline-block; width: 2px; height: 14px; background: var(--primary-orange); margin-left: 4px; animation: blink 0.8s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.slider-wrap { width: 100%; display: flex; align-items: center; justify-content: center; margin: 10px 0 16px; }
.slider-container { width: 100%; max-width: 380px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 14px 32px rgba(249, 115, 22, 0.22); border: 2px solid var(--border-orange); background: #ffffff; animation: sliderGlow 3s ease-in-out infinite; }
@keyframes sliderGlow { 0%, 100% { box-shadow: 0 14px 28px rgba(249, 115, 22, 0.18); } 50% { box-shadow: 0 16px 38px rgba(249, 115, 22, 0.34); } }
.slider { width: 100%; height: 100%; position: relative; touch-action: pan-y; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s ease-in-out, transform 4s ease-out; pointer-events: none; }
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.slider-fade { position: absolute; left:0; right:0; bottom:0; height:46%; background: linear-gradient(to top, rgba(0,0,0,0.42), rgba(0,0,0,0)); pointer-events: none; z-index: 2; }
.slider-progress { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 5; }
.slider-progress .bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.35); overflow: hidden; }
.slider-progress .bar i { display: block; height: 100%; width: 0%; background: #fff; border-radius: 3px; box-shadow: 0 0 6px rgba(255,255,255,0.8); }
.slider-progress .bar.done i { width: 100%; transition: none; }
.slider-progress .bar.filling i { width: 100%; transition: width 4s linear; }
.slider-dots { position: absolute; bottom: 8px; left: 0; width: 100%; display: flex; justify-content: center; align-items: center; gap: 6px; z-index: 5; }
.slider-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.slider-dots span.active { background: var(--primary-orange); width: 20px; border-radius: 6px; box-shadow: 0 2px 6px rgba(249, 115, 22, 0.6); border-color: #fff; }
.slider-empty { display:flex; align-items:center; justify-content:center; height:100%; color: var(--text-muted); font-size:0.85rem; }

.adcash-video-slider { width: 100%; max-width: 380px; margin: 4px auto 14px; padding: 8px; background: #ffffff; border: 1px solid var(--border-orange); border-radius: 16px; box-shadow: 0 6px 18px rgba(249, 115, 22, 0.10); overflow: hidden; }
.ad-label { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 0.65rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.ad-label i { color: var(--primary-orange); font-size: 0.65rem; }
#adcash-video-slider { width: 100%; min-height: 20px; overflow: hidden; }
@media (max-width: 380px) { .adcash-video-slider { max-width: 100%; margin-left: 0; margin-right: 0; } }

.social-section { text-align: center; width: 100%; padding: 6px 0; }
.social-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.social-label::before, .social-label::after { content: ""; height: 1px; width: 32px; background: #e2e8f0; }
.social-buttons-bottom { display: flex; gap: 20px; justify-content: center; align-items: center; }
.social-circle-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.3rem; color: white; box-shadow: 0 8px 18px rgba(0,0,0,0.12); transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s; flex-shrink: 0; animation: floatBtn 3s ease-in-out infinite; }
.social-circle-btn:active { transform: scale(0.9); }
.social-circle-btn:hover { box-shadow: 0 12px 22px rgba(0,0,0,0.22); transform: translateY(-3px); }
.social-circle-btn:nth-child(2) { animation-delay: 0.2s; }
.social-circle-btn:nth-child(3) { animation-delay: 0.4s; }
@keyframes floatBtn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.btn-yt { background: linear-gradient(145deg, #ff2a2a, #b80000); }
.btn-fb { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.btn-tg { background: linear-gradient(145deg, #38bdf8, #0284c7); }
.btn-other { background: linear-gradient(145deg, #a855f7, #6d28d9); }

.trust-strip { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-top: 16px; padding: 12px 6px; background: #fff; border: 1px solid var(--border-orange); border-radius: 16px; box-shadow: 0 6px 16px rgba(249, 115, 22, 0.08); }
.trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 4px; }
.trust-item i { font-size: 1.15rem; color: var(--primary-orange); width: 34px; height: 34px; display:flex; align-items:center; justify-content:center; background: #fff7ed; border-radius: 50%; }
.trust-item span { font-size: 0.68rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; }

.shop-header { text-align: center; margin: 6px 0 14px; }
.shop-header h2 { font-size: 1.3rem; color: var(--text-dark); font-weight: 800; }
.shop-header p { font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; }

.search-container { max-width: 460px; margin: 0 auto 16px; position: relative; }
.search-input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 14px; border: 1.5px solid #e2e8f0; background: #ffffff; color: var(--text-dark); font-size: 0.9rem; outline: none; transition: 0.25s; box-shadow: 0 3px 10px rgba(0,0,0,0.03); }
.search-input:focus { border-color: var(--primary-orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18); }
.search-icon { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }

.shop-single-list { display: flex; flex-direction: column; gap: 20px; max-width: 460px; margin: 0 auto; padding: 2px; }

.product-card { background: var(--card-bg); border-radius: 20px; overflow: hidden; border: 1.5px solid var(--border-light); box-shadow: 0 8px 24px rgba(0,0,0,0.05); display: flex; flex-direction: column; position: relative; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #fdba74; box-shadow: 0 14px 32px rgba(249, 115, 22, 0.18); }
.product-card::before { content: ''; position: absolute; top: 0; left: -150%; width: 80%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-25deg); z-index: 10; pointer-events: none; animation: lightSweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes lightSweep { 0%, 50% { left: -150%; } 100% { left: 180%; } }

.thumb-wrapper { width: 100%; aspect-ratio: 16 / 9; background: #f1f5f9; overflow: hidden; border-bottom: 1.5px solid var(--border-light); position: relative; }
.product-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.product-card:hover .product-thumb { transform: scale(1.05); }

.card-tag { position: absolute; top: 10px; right: 10px; backdrop-filter: blur(8px); color: #ffffff; font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 10px; letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 5; }
.card-tag.tag-free { background: rgba(2, 132, 199, 0.9); }
.card-tag.tag-pro { background: rgba(234, 88, 12, 0.92); }

.product-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.product-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; }

.btn-source { background: var(--orange-gradient); color: white; border: none; padding: 11px 18px; border-radius: 25px; font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: 0.25s; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35); display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; position: relative; overflow: hidden; }
.btn-source::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: btnGlint 3s infinite; }
@keyframes btnGlint { 0%, 60% { left: -100%; } 100% { left: 150%; } }
.btn-source:hover { box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5); transform: translateY(-2px); }
.btn-source:active { transform: scale(0.97); }
.empty-state { text-align: center; color: var(--text-muted); padding: 50px 10px; font-size: 0.95rem; }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 62px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); display: flex; justify-content: space-around; align-items: center; border-top: 1.5px solid #fed7aa88; box-shadow: 0 -4px 20px rgba(0,0,0,0.04); z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.nav-btn { background: none; border: none; color: var(--text-muted); font-size: 0.8rem; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: 0.25s; font-weight: 600; padding: 6px 24px; border-radius: 14px; }
.nav-btn i { font-size: 1.25rem; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-btn.active { color: var(--primary-orange); background: #fff7ed; transform: translateY(-3px); box-shadow: 0 6px 14px rgba(249, 115, 22, 0.18); }
.nav-btn.active i { transform: scale(1.15); }
.nav-btn:active i { transform: scale(0.85); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.45); backdrop-filter: blur(6px); z-index: 200; justify-content: center; align-items: center; padding: 18px; }
.modal.active { display: flex; }
.modal-content { background: #ffffff; padding: 24px 20px; border-radius: 22px; max-width: 370px; width: 100%; position: relative; border: 1.5px solid var(--border-orange); box-shadow: 0 25px 45px rgba(0,0,0,0.2); text-align: center; max-height: 90vh; overflow-y: auto; animation: modalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modalPop { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
.close-btn { position: absolute; top: 12px; right: 16px; font-size: 1.6rem; color: var(--text-muted); cursor: pointer; transition: transform 0.2s; }
.close-btn:hover { transform: scale(1.15) rotate(90deg); color: #dc2626; }

.option-btns { display: flex; gap: 12px; margin-top: 18px; }
.btn-buy { background: var(--orange-gradient); color: white; flex: 1; padding: 12px; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-buy:active { transform: scale(0.96); }
.btn-free { background: linear-gradient(135deg, #38bdf8, #0284c7); color: white; flex: 1; padding: 12px; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-free:active { transform: scale(0.96); }
.btn-buy:disabled, .btn-free:disabled { opacity: 0.6; cursor: not-allowed; }
.field-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; line-height: 1.35; }

.notice-box { background: #fff7ed; border: 1px solid #fdba74; color: #c2410c; padding: 11px; border-radius: 12px; font-size: 0.84rem; margin: 12px 0; text-align: left; line-height: 1.4; white-space:pre-line; }
.binance-id { background: #fff7ed; border: 1px dashed var(--primary-orange); padding: 11px 14px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #ea580c; margin-bottom: 14px; font-size: 0.92rem; }
.input-group { margin-bottom: 12px; text-align: left; }
.input-group label { display: block; font-size: 0.82rem; margin-bottom: 4px; color: var(--text-muted); font-weight: 600; }
.input-group input { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1.5px solid #cbd5e1; background: #f8fafc; color: var(--text-dark); outline: none; font-size: 0.88rem; transition: 0.2s; }
.input-group input:focus { border-color: var(--primary-orange); background: #ffffff; box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }

.tg-user-box { display: flex; align-items: center; gap: 10px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; text-align: left; }
.tg-user-box img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e2e8f0; }
.tg-user-box .tg-name { font-weight: 700; font-size: 0.9rem; }
.tg-user-box .tg-handle { font-size: 0.78rem; color: var(--text-muted); }
.tg-verified-badge { color: #0ea5e9; font-size: 0.75rem; margin-left: auto; font-weight: bold; }

.timer-display { font-size: 1.7rem; font-weight: 800; color: var(--primary-orange); margin: 12px 0; letter-spacing: 2px; }
.progress-track { width: 100%; height: 8px; background: #fed7aa; border-radius: 6px; overflow: hidden; margin: 8px 0 4px; }
.progress-fill { height: 100%; background: var(--orange-gradient); width: 0%; transition: width 0.6s ease; }
.progress-label { font-size: 0.75rem; color: var(--text-muted); }
.status-sent { color: #16a34a; }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--border-orange); border-top-color: var(--primary-orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#cyber-toast { position: fixed; bottom: 75px; left: 50%; transform: translateX(-50%) translateY(50px); background: #0f172a; color: #ffffff; padding: 10px 18px; border-radius: 25px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 8px 25px rgba(0,0,0,0.3); border: 1px solid var(--primary-orange); display: flex; align-items: center; gap: 8px; opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 999; }
#cyber-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   TELEGRAM GUARD SCREEN
   ========================================================= */
.tg-guard-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(160deg, #0f172a, #1e293b);
    display: flex; align-items: center; justify-content: center;
    padding: 30px;
}
.tg-guard-box { text-align: center; color: #fff; max-width: 320px; }
.tg-guard-box i { font-size: 3.2rem; color: var(--primary-orange); margin-bottom: 18px; }
.tg-guard-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.tg-guard-box p { font-size: 0.85rem; color: #cbd5e1; line-height: 1.6; }

/* =========================================================
   PREMIUM TELEGRAM PROFILE HEADER
   ========================================================= */
.profile-header {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1.5px solid var(--border-orange);
    border-radius: 18px;
    padding: 12px 16px;
    margin: 12px 16px 4px 16px;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.1);
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; border: 2.5px solid var(--primary-orange);
    box-shadow: 0 3px 10px var(--orange-glow);
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-weight: 800; font-size: 0.95rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-handle { font-size: 0.76rem; color: var(--text-muted); font-weight: 600; }
.profile-wallet-chip {
    display: flex; align-items: center; gap: 6px;
    background: var(--orange-gradient); color: #fff;
    padding: 8px 14px; border-radius: 30px;
    font-weight: 800; font-size: 0.85rem;
    box-shadow: 0 4px 14px var(--orange-glow);
    cursor: pointer; flex-shrink: 0;
    transition: transform 0.15s;
}
.profile-wallet-chip:active { transform: scale(0.94); }

/* =========================================================
   WALLET VIEW
   ========================================================= */
.wallet-balance-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px; padding: 26px 22px; margin: 0 16px 16px 16px;
    color: #fff; position: relative; overflow: hidden;
}
.wallet-balance-card::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, var(--orange-glow), transparent 70%);
}
.wallet-balance-label { font-size: 0.78rem; color: #cbd5e1; font-weight: 600; margin-bottom: 6px; }
.wallet-balance-amount { font-size: 2.1rem; font-weight: 900; color: var(--primary-orange); }

.wallet-referral-card, .wallet-tx-card {
    background: var(--card-bg); border: 1.5px solid var(--border-light);
    border-radius: 16px; padding: 18px; margin: 0 16px 16px 16px;
}
.wallet-referral-title, .wallet-tx-title {
    font-weight: 800; font-size: 0.95rem; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px; color: var(--text-dark);
}
.wallet-referral-title i, .wallet-tx-title i { color: var(--primary-orange); }
.wallet-referral-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.wallet-referral-link-row { display: flex; gap: 8px; }
.wallet-referral-link-row input {
    flex: 1; padding: 10px 12px; border-radius: 10px;
    border: 1.5px solid var(--border-orange); font-size: 0.78rem; color: var(--text-dark);
    background: var(--bg-light);
}
.wallet-referral-link-row button {
    background: var(--orange-gradient); color: #fff; border: none;
    width: 42px; border-radius: 10px; cursor: pointer; font-size: 1rem;
}
.wallet-tx-list { display: flex; flex-direction: column; gap: 10px; }
.wallet-tx-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: var(--bg-light); border-radius: 12px;
}
.wallet-tx-reason { font-weight: 700; font-size: 0.82rem; color: var(--text-dark); }
.wallet-tx-date { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.wallet-tx-amount { font-weight: 800; font-size: 0.95rem; }
.wallet-tx-amount.credit { color: #16a34a; }
.wallet-tx-amount.debit { color: #dc2626; }
.wallet-balance-mini { font-size: 0.85rem; color: var(--text-dark); font-weight: 700; margin-bottom: 10px; text-align: center; }

/* =========================================================
   BUY MODAL — PAY METHOD SWITCH
   ========================================================= */
.pay-method-switch { display: flex; gap: 8px; margin: 14px 0; }
.pay-method-btn {
    flex: 1; padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--border-orange);
    background: var(--bg-light); color: var(--text-muted); font-weight: 700; font-size: 0.78rem;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pay-method-btn.active { background: var(--orange-gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 14px var(--orange-glow); }

/* =========================================================
   FLOATING AI BUTTON
   ========================================================= */
.ai-fab {
    position: fixed; right: 18px; bottom: 100px; z-index: 500;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--orange-gradient); color: #fff; border: none;
    font-size: 1.5rem; display: none; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px var(--orange-glow);
    cursor: pointer; animation: aiFabPulse 2.4s infinite;
}
@keyframes aiFabPulse {
    0%, 100% { box-shadow: 0 8px 24px var(--orange-glow); }
    50% { box-shadow: 0 8px 30px rgba(249, 115, 22, 0.75), 0 0 0 8px rgba(249, 115, 22, 0.12); }
}

/* =========================================================
   AI CHAT PANEL
   ========================================================= */
.ai-panel {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--card-bg);
    display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform 0.3s ease;
}
.ai-panel.active { transform: translateY(0); }
.ai-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff;
    flex-shrink: 0;
}
.ai-panel-title { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.ai-panel-title i { color: var(--primary-orange); }
.ai-panel-actions { display: flex; gap: 10px; }
.ai-panel-actions button {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
}
.ai-messages {
    flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
    background: var(--bg-light);
}
.ai-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 0.87rem; line-height: 1.5; white-space: pre-wrap; }
.ai-msg-user { align-self: flex-end; background: var(--orange-gradient); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg-assistant { align-self: flex-start; background: #fff; color: var(--text-dark); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
.ai-typing {
    padding: 0 16px 8px 16px; display: none; gap: 4px; align-items: center; background: var(--bg-light);
}
.ai-typing span {
    width: 7px; height: 7px; border-radius: 50%; background: var(--primary-orange);
    animation: aiTypingBounce 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-input-row {
    display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) 14px;
    border-top: 1px solid var(--border-light); background: var(--card-bg); flex-shrink: 0;
}
.ai-input-row input {
    flex: 1; padding: 12px 16px; border-radius: 24px; border: 1.5px solid var(--border-orange);
    font-size: 0.88rem; background: var(--bg-light); color: var(--text-dark);
}
.ai-input-row input:focus { outline: none; border-color: var(--primary-orange); }
.ai-input-row button {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: var(--orange-gradient); color: #fff; font-size: 1rem; cursor: pointer;
    flex-shrink: 0; box-shadow: 0 4px 14px var(--orange-glow);
}
.ai-input-row button:disabled { opacity: 0.6; }

/* Product demo/payment enhancements */
.product-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.btn-demo { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:9px 12px; border-radius:10px; text-decoration:none; font-weight:700; font-size:.82rem; background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; }
.btn-demo:hover { filter:brightness(.97); }
.pay-method-switch .pay-method-btn { flex:1 1 30%; min-width:105px; }
