@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --bg: #07070d;
    --bg-card: #0e0e1a;
    --bg-elevated: #141424;
    --bg-input: #0c0c18;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --gradient-fire: linear-gradient(135deg, #ff6b35, #ee2a7b);
    --gradient-cool: linear-gradient(135deg, #00c6ff, #7c5dfa);
    --gradient-gold: linear-gradient(135deg, #f0c27f, #e8a849);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    --accent: #ee2a7b;
    --accent-orange: #ff6b35;
    --accent-blue: #00c6ff;
    --accent-purple: #7c5dfa;
    --accent-gold: #e8a849;
    --accent-gold-soft: rgba(232,168,73,0.12);
    --text: #f0f0f8;
    --text-dim: #5e5e80;
    --text-muted: #3d3d5c;
    --success: #00e09e;
    --success-bg: rgba(0,224,158,0.1);
    --warning: #ffbe0b;
    --warning-bg: rgba(255,190,11,0.1);
    --danger: #ff4757;
    --danger-bg: rgba(255,71,87,0.1);
    --info: #00c6ff;
    --info-bg: rgba(0,198,255,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 100px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(238,42,123,0.15);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Tajawal', sans-serif; background: var(--bg); color: var(--text); direction: rtl; min-height: 100vh; line-height: 1.8; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { font-family: inherit; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.92rem; border: none; cursor: pointer; position: relative; transition: all 0.4s var(--ease); overflow: hidden; white-space: nowrap; }
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background 0.3s; }
.btn:active::after { background: rgba(255,255,255,0.1); }
.btn:active { transform: scale(0.96); }
.btn-fire { background: var(--gradient-fire); color: #fff; box-shadow: 0 4px 20px rgba(238,42,123,0.3); }
.btn-fire:hover { box-shadow: 0 8px 32px rgba(238,42,123,0.5); transform: translateY(-2px); }
.btn-cool { background: var(--gradient-cool); color: #fff; box-shadow: 0 4px 20px rgba(124,93,250,0.3); }
.btn-cool:hover { box-shadow: 0 8px 32px rgba(124,93,250,0.5); transform: translateY(-2px); }
.btn-gold { background: var(--gradient-gold); color: #0a0a0a; box-shadow: 0 4px 20px rgba(232,168,73,0.3); }
.btn-gold:hover { box-shadow: 0 8px 32px rgba(232,168,73,0.5); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }
.btn-outline-fire { background: transparent; color: var(--accent); border: 1.5px solid rgba(238,42,123,0.3); }
.btn-outline-fire:hover { background: rgba(238,42,123,0.08); border-color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #0a0a0a; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius-sm); }

/* LANDING NAVBAR */
.nav-landing { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 0 32px; transition: all 0.4s var(--ease); }
.nav-landing.scrolled { background: rgba(7,7,13,0.92); backdrop-filter: blur(24px) saturate(1.2); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1200px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 900; }
.nav-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient-fire); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: #fff; font-weight: 900; box-shadow: 0 0 20px rgba(238,42,123,0.3); }
.nav-brand .brand-text { background: var(--gradient-fire); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 500; color: var(--text-dim); transition: all 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-mobile-btn { display: none; width: 44px; height: 44px; border: none; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); color: var(--text); font-size: 1.2rem; cursor: pointer; }

/* HERO */
.hero-section { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 100px 0 60px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 20s ease-in-out infinite; }
.hero-orb-1 { width: 600px; height: 600px; top: -20%; right: -10%; background: radial-gradient(circle, rgba(238,42,123,0.12), transparent 70%); }
.hero-orb-2 { width: 500px; height: 500px; bottom: -10%; left: -10%; background: radial-gradient(circle, rgba(0,198,255,0.08), transparent 70%); animation-delay: -7s; }
.hero-orb-3 { width: 300px; height: 300px; top: 30%; left: 20%; background: radial-gradient(circle, rgba(124,93,250,0.1), transparent 70%); animation-delay: -14s; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: var(--radius-full); background: rgba(238,42,123,0.08); border: 1px solid rgba(238,42,123,0.15); font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 24px; animation: fadeInUp 0.8s var(--ease) 0.2s both; }
.hero-tag .tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s infinite; }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.25; margin-bottom: 20px; animation: fadeInUp 0.8s var(--ease) 0.3s both; }
.hero-title .gradient-text, .gradient-text { background: var(--gradient-fire); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; color: var(--text-dim); line-height: 2; margin-bottom: 36px; max-width: 480px; animation: fadeInUp 0.8s var(--ease) 0.4s both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeInUp 0.8s var(--ease) 0.5s both; }
.hero-visual { position: relative; animation: fadeInUp 1s var(--ease) 0.6s both; }
.hero-phone { width: 280px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 32px; padding: 12px; box-shadow: var(--shadow-lg), var(--shadow-glow); position: relative; overflow: hidden; }
.hero-phone::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 24px; background: #000; border-radius: 0 0 14px 14px; z-index: 5; }
.hero-phone-screen { background: var(--bg-elevated); border-radius: 24px; padding: 40px 16px 20px; min-height: 400px; }
.hero-phone-screen .mock-header { text-align: center; margin-bottom: 24px; }
.hero-phone-screen .mock-balance { font-size: 1.8rem; font-weight: 900; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-phone-screen .mock-label { font-size: 0.75rem; color: var(--text-dim); }
.hero-phone-screen .mock-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.hero-phone-screen .mock-card .mc-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.hero-phone-screen .mock-card .mc-text { font-size: 0.8rem; font-weight: 600; }
.hero-phone-screen .mock-card .mc-sub { font-size: 0.7rem; color: var(--text-dim); }
.hero-phone-screen .mock-card .mc-amount { margin-right: auto; font-weight: 700; font-size: 0.85rem; }
.hero-float-card { position: absolute; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); animation: float-card 6s ease-in-out infinite; z-index: 3; }
.hero-float-card.card-1 { top: 10%; right: -20px; animation-delay: -1s; }
.hero-float-card.card-2 { bottom: 15%; left: -30px; animation-delay: -3s; }
.hero-stats-row { display: flex; gap: 40px; margin-top: 48px; animation: fadeInUp 0.8s var(--ease) 0.7s both; }
.hero-stat .stat-num { font-size: 1.6rem; font-weight: 900; background: var(--gradient-fire); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat .stat-label { font-size: 0.8rem; color: var(--text-dim); }

/* SECTIONS */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: var(--radius-full); background: rgba(238,42,123,0.06); border: 1px solid rgba(238,42,123,0.1); font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 16px; letter-spacing: 0.5px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; margin-bottom: 12px; }
.section-header p { color: var(--text-dim); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* TRUST BAR */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-items { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.85rem; }
.trust-item i { font-size: 1.2rem; color: var(--accent-gold); }
.trust-item strong { color: var(--text); }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 60px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--border-hover), transparent); z-index: 0; }
.step-card { text-align: center; position: relative; z-index: 1; padding: 40px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.5s var(--ease); }
.step-card:hover { transform: translateY(-8px); border-color: rgba(238,42,123,0.2); box-shadow: var(--shadow), 0 0 40px rgba(238,42,123,0.06); }
.step-num { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--gradient-fire); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900; color: #fff; box-shadow: 0 0 30px rgba(238,42,123,0.25); }
.step-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.step-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.9; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 32px 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.5s var(--ease); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; inset: -1px; border-radius: var(--radius); background: var(--gradient-fire); opacity: 0; transition: opacity 0.4s; z-index: -1; }
.feature-card::after { content: ''; position: absolute; inset: 1px; border-radius: calc(var(--radius) - 1px); background: var(--bg-card); z-index: -1; }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px; }
.feature-icon.fire { background: rgba(238,42,123,0.1); color: var(--accent); }
.feature-icon.cool { background: rgba(0,198,255,0.1); color: var(--accent-blue); }
.feature-icon.gold { background: var(--accent-gold-soft); color: var(--accent-gold); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.9; }

/* EVENTS */
.events-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 8px 0 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.events-scroll::-webkit-scrollbar { display: none; }
.event-card { min-width: 300px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--border); transition: all 0.4s var(--ease); flex-shrink: 0; }
.event-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.event-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.6s var(--ease); }
.event-card:hover img { transform: scale(1.05); }
.event-card .event-info { padding: 18px; background: var(--bg-card); }
.event-card .event-type { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; background: rgba(238,42,123,0.1); color: var(--accent); margin-bottom: 8px; }
.event-card .event-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.event-card .event-meta { font-size: 0.78rem; color: var(--text-dim); }

/* STATS */
.stats-section { padding: 80px 0; background: linear-gradient(180deg, rgba(238,42,123,0.03) 0%, transparent 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-block .stat-number { font-size: 2.8rem; font-weight: 900; background: var(--gradient-fire); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-block .stat-text { font-size: 0.88rem; color: var(--text-dim); margin-top: 4px; }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s; }
.faq-item.active { border-color: rgba(238,42,123,0.2); }
.faq-question { width: 100%; padding: 20px 24px; background: var(--bg-card); border: none; color: var(--text); font-size: 0.95rem; font-weight: 700; text-align: right; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background 0.3s; }
.faq-question:hover { background: var(--bg-elevated); }
.faq-question .faq-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(238,42,123,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--accent); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease), padding 0.5s var(--ease); }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-dim); font-size: 0.9rem; line-height: 2; }

/* TERMS */
.terms-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.terms-content { max-width: 700px; margin: 0 auto; color: var(--text-dim); font-size: 0.9rem; line-height: 2.2; }
.terms-content h3 { color: var(--text); font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }
.terms-content h3:first-child { margin-top: 0; }
.terms-content ul { padding-right: 20px; }
.terms-content li { margin-bottom: 6px; position: relative; }
.terms-content li::marker { color: var(--accent); }

/* FOOTER */
.footer-main { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand-text { font-size: 0.88rem; color: var(--text-dim); line-height: 2; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-dim); padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 0; font-size: 0.78rem; color: var(--text-muted); }
.footer-reg { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-reg span { display: flex; align-items: center; gap: 6px; }
.footer-reg strong { color: var(--text-dim); }

/* AUTH */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.auth-page .auth-orb { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.auth-page .auth-orb-1 { top: 10%; right: 10%; background: rgba(238,42,123,0.06); }
.auth-page .auth-orb-2 { bottom: 10%; left: 10%; background: rgba(0,198,255,0.04); }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 40px; position: relative; z-index: 2; box-shadow: var(--shadow-lg); animation: fadeInUp 0.6s var(--ease); }
.auth-card .auth-logo { text-align: center; margin-bottom: 32px; }
.auth-card .auth-logo h2 { font-size: 1.5rem; font-weight: 900; background: var(--gradient-fire); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-card .auth-logo p { color: var(--text-dim); font-size: 0.88rem; margin-top: 4px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; color: var(--text-dim); }
.form-control { width: 100%; padding: 13px 16px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.92rem; transition: all 0.3s var(--ease); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,42,123,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; appearance: none; }
.divider { display: flex; align-items: center; gap: 16px; margin: 22px 0; color: var(--text-muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google { width: 100%; padding: 13px; background: #fff; color: #333; border: none; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 700; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-google:hover { background: #f5f5f5; transform: translateY(-1px); }
.btn-google img { width: 20px; height: 20px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-dim); }
.auth-footer a { color: var(--accent); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

/* APP SHELL (Customer) */
.app-shell { min-height: 100vh; padding-bottom: 72px; background: var(--bg); }
.app-header { position: sticky; top: 0; z-index: 100; padding: 16px 20px; background: rgba(7,7,13,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.app-header .app-title { font-size: 1.15rem; font-weight: 800; }
.app-header .app-back { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.04); border: none; color: var(--text); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.app-header-actions { display: flex; gap: 8px; }
.app-body { padding: 20px; max-width: 600px; margin: 0 auto; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: rgba(7,7,13,0.95); backdrop-filter: blur(24px); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; height: 68px; padding: 0 8px; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.68rem; font-weight: 600; color: var(--text-muted); transition: all 0.3s var(--ease); position: relative; min-width: 56px; }
.bottom-nav a i { font-size: 1.15rem; transition: transform 0.3s var(--ease-bounce); }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a.active i { transform: scale(1.1); }
.bottom-nav a.active::before { content: ''; position: absolute; top: -1px; width: 20px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gradient-fire); }
.bottom-nav .nav-create { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-fire); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(238,42,123,0.35); margin-top: -16px; font-size: 0 !important; color: #fff !important; padding: 0; }
.bottom-nav .nav-create i { font-size: 1.3rem !important; color: #fff; transform: none !important; }

/* APP CARDS */
.app-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; transition: all 0.3s var(--ease); }
.app-card:active { transform: scale(0.98); }
.app-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.app-card-header h3 { font-size: 0.95rem; font-weight: 700; }
.app-card-body { padding: 20px; }

/* WALLET */
.wallet-display { background: linear-gradient(135deg, #141428, #1a1035, #14142a); border: 1px solid rgba(232,168,73,0.15); border-radius: 20px; padding: 28px 24px; margin-bottom: 20px; position: relative; overflow: hidden; }
.wallet-display::before { content: ''; position: absolute; top: -80px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(232,168,73,0.1), transparent 70%); border-radius: 50%; }
.wallet-display::after { content: ''; position: absolute; bottom: -60px; left: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(238,42,123,0.06), transparent 70%); border-radius: 50%; }
.wallet-display .wd-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; position: relative; z-index: 2; }
.wallet-display .wd-balance { font-size: 2.2rem; font-weight: 900; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; z-index: 2; margin-bottom: 20px; }
.wallet-display .wd-actions { display: flex; gap: 10px; position: relative; z-index: 2; }

/* QUICK ACTIONS */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.quick-action { padding: 18px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 12px; transition: all 0.3s var(--ease); cursor: pointer; }
.quick-action:active { transform: scale(0.97); }
.quick-action:hover { border-color: var(--border-hover); }
.quick-action .qa-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.quick-action .qa-text { font-weight: 700; font-size: 0.88rem; }
.quick-action .qa-sub { font-size: 0.72rem; color: var(--text-dim); }

/* TX LIST */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s var(--ease); }
.tx-card:active { transform: scale(0.98); }
.tx-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.tx-info { flex: 1; min-width: 0; }
.tx-info h4 { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-info p { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.tx-meta { text-align: left; flex-shrink: 0; }
.tx-meta .tx-amount { font-weight: 800; font-size: 0.9rem; }
.tx-meta .tx-amount.credit { color: var(--success); }
.tx-meta .tx-amount.debit { color: var(--danger); }

/* FILTER PILLS */
.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill { padding: 8px 18px; border-radius: var(--radius-full); background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim); font-size: 0.82rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.3s var(--ease); }
.filter-pill:hover { background: rgba(255,255,255,0.06); }
.filter-pill.active { background: rgba(238,42,123,0.1); border-color: rgba(238,42,123,0.25); color: var(--accent); }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-paid { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }
.status-refunded { background: var(--info-bg); color: var(--info); }

/* SHARE */
.share-box { display: flex; gap: 8px; margin-top: 10px; }
.share-box input { flex: 1; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.82rem; direction: ltr; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,7,13,0.88); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: flex-end; justify-content: center; padding: 0; }
.modal-overlay.active { display: flex; }
.modal-sheet { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px 24px 0 0; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; animation: slideUp 0.4s var(--ease); }
.modal-sheet .sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--text-muted); margin: 12px auto 0; }
.modal-header { padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.05rem; font-weight: 800; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.06); color: var(--text-dim); cursor: pointer; font-size: 1rem; transition: all 0.3s; }
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body { padding: 0 24px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* CHAT */
.chat-container { display: flex; flex-direction: column; height: calc(100vh - 140px); height: calc(100dvh - 140px); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 10px; max-width: 82%; animation: fadeInUp 0.3s var(--ease); }
.chat-msg.sent { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.received { align-self: flex-start; }
.chat-msg .msg-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }
.chat-msg.sent .msg-avatar { background: var(--gradient-cool); color: #fff; }
.chat-msg.received .msg-avatar { background: var(--gradient-gold); color: #0a0a0a; }
.msg-bubble { padding: 12px 16px; border-radius: 18px; font-size: 0.88rem; line-height: 1.8; position: relative; }
.chat-msg.sent .msg-bubble { background: rgba(124,93,250,0.1); border: 1px solid rgba(124,93,250,0.15); border-bottom-left-radius: 4px; }
.chat-msg.received .msg-bubble { background: rgba(232,168,73,0.06); border: 1px solid rgba(232,168,73,0.1); border-bottom-right-radius: 4px; }
.msg-bubble .msg-sender { font-size: 0.72rem; font-weight: 700; color: var(--text-dim); display: block; margin-bottom: 3px; }
.msg-bubble .msg-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; display: block; }
.msg-bubble .msg-edited { font-size: 0.65rem; color: var(--text-muted); font-style: italic; }
.msg-bubble .msg-deleted { font-style: italic; color: var(--text-muted); }
.msg-checks { margin-right: 4px; font-size: 0.72rem; color: var(--text-muted); }
.msg-checks.read { color: var(--accent-blue); }
.msg-bubble .msg-attachment a { color: var(--accent-blue); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.msg-bubble .msg-actions { position: absolute; top: 6px; left: 6px; display: none; gap: 3px; }
.msg-bubble:hover .msg-actions { display: flex; }
.msg-action-btn { width: 26px; height: 26px; border-radius: 6px; border: none; background: rgba(255,255,255,0.08); color: var(--text-dim); cursor: pointer; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.msg-action-btn:hover { background: rgba(255,255,255,0.15); color: var(--text); }
.chat-input { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-end; }
.chat-input .input-wrap { flex: 1; display: flex; align-items: center; gap: 6px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius-full); padding: 4px 12px; transition: border-color 0.3s; }
.chat-input .input-wrap:focus-within { border-color: var(--accent); }
.chat-input input { flex: 1; background: none; border: none; color: var(--text); padding: 10px 4px; font-size: 0.88rem; }
.chat-input .attach-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px 4px; font-size: 1rem; transition: color 0.3s; }
.chat-input .attach-btn:hover { color: var(--accent-gold); }
.chat-input .send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-fire); border: none; color: #fff; cursor: pointer; font-size: 1rem; flex-shrink: 0; transition: all 0.3s; box-shadow: 0 4px 16px rgba(238,42,123,0.3); }
.chat-input .send-btn:active { transform: scale(0.92); }

/* BANNERS */
.banner-alert { padding: 12px 20px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; border: 1px solid; animation: fadeInDown 0.4s var(--ease); }
.banner-info { background: var(--info-bg); border-color: rgba(0,198,255,0.15); color: var(--info); }
.banner-success { background: var(--success-bg); border-color: rgba(0,224,158,0.15); color: var(--success); }
.banner-warning { background: var(--warning-bg); border-color: rgba(255,190,11,0.15); color: var(--warning); }
.banner-danger { background: var(--danger-bg); border-color: rgba(255,71,87,0.15); color: var(--danger); }
.banner-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; opacity: 0.6; }
.banner-close:hover { opacity: 1; }

/* ALERTS */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.88rem; border: 1px solid; animation: fadeInDown 0.3s var(--ease); }
.alert-success { background: var(--success-bg); border-color: rgba(0,224,158,0.15); color: var(--success); }
.alert-danger { background: var(--danger-bg); border-color: rgba(255,71,87,0.15); color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: rgba(255,190,11,0.15); color: var(--warning); }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: var(--bg-elevated); border: 1px solid var(--border); padding: 12px 24px; border-radius: var(--radius-full); box-shadow: var(--shadow-lg); z-index: 9999; font-size: 0.88rem; font-weight: 600; transition: transform 0.4s var(--ease-bounce); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* EMPTY */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 20px; }

/* PAYMENT */
.pay-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.pay-card { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); animation: fadeInUp 0.6s var(--ease); }
.pay-card .pay-ticket { text-align: center; padding-bottom: 24px; border-bottom: 2px dashed var(--border); margin-bottom: 24px; }
.pay-card .pay-type { display: inline-block; padding: 4px 14px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; background: rgba(238,42,123,0.1); color: var(--accent); margin-bottom: 10px; }
.pay-card .pay-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.pay-card .pay-price { font-size: 2rem; font-weight: 900; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pay-card .pay-seller { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; }

/* BANK */
.bank-card-preview { background: linear-gradient(135deg, #1a1035, #0e0e1a); border: 1px solid rgba(232,168,73,0.2); border-radius: 20px; padding: 28px 24px; margin-bottom: 20px; position: relative; overflow: hidden; }
.bank-card-preview::before { content: ''; position: absolute; top: -40%; right: -20%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(232,168,73,0.08), transparent 70%); border-radius: 50%; }
.bank-card-preview .bcp-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.bank-card-preview .bcp-value { font-size: 0.92rem; font-weight: 700; position: relative; z-index: 2; }
.bank-card-preview .bcp-iban { font-family: monospace; direction: ltr; text-align: right; letter-spacing: 2px; }

/* ADMIN SIDEBAR */
.dashboard-admin { display: flex; min-height: 100vh; }
.sidebar { width: 260px; min-height: 100vh; background: #0a0a12; border-left: 1px solid var(--border); position: fixed; right: 0; top: 0; display: flex; flex-direction: column; z-index: 100; }
.sidebar-brand { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.1rem; }
.sidebar-brand .s-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--gradient-fire); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #fff; font-weight: 900; }
.sidebar-brand span { background: var(--gradient-fire); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sidebar-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: var(--radius-sm); color: var(--text-dim); font-weight: 600; font-size: 0.88rem; transition: all 0.3s; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.sidebar-nav a.active { background: rgba(238,42,123,0.08); color: var(--accent); }
.sidebar-nav a .nav-icon { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-user { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.sidebar-user .u-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-fire); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; color: #fff; }
.sidebar-user .u-name { font-weight: 700; font-size: 0.85rem; }
.sidebar-user .u-role { font-size: 0.7rem; color: var(--text-muted); }
.admin-main { flex: 1; margin-right: 260px; padding: 28px; min-height: 100vh; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.page-header h1 { font-size: 1.4rem; font-weight: 900; }
.page-header h1 .sub { display: block; font-size: 0.82rem; color: var(--text-dim); font-weight: 400; margin-top: 3px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all 0.3s; }
.admin-stat:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.admin-stat .as-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px; }
.admin-stat .as-value { font-size: 1.5rem; font-weight: 900; }
.admin-stat .as-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 20px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th { padding: 12px 14px; text-align: right; font-weight: 700; color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,0.015); }
.table tr:last-child td { border-bottom: none; }
.user-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-item .detail-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 3px; }
.detail-item .detail-value { font-size: 0.9rem; font-weight: 700; }
.search-box { position: relative; max-width: 280px; }
.search-box input { width: 100%; padding: 10px 16px 10px 38px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius-full); color: var(--text); font-size: 0.85rem; transition: border-color 0.3s; }
.search-box input:focus { border-color: var(--accent); }
.search-box .s-icon { position: absolute; right: auto; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.tabs-admin { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-admin { padding: 10px 18px; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); border-bottom: 2px solid transparent; transition: all 0.3s; white-space: nowrap; }
.tab-admin:hover { color: var(--text); }
.tab-admin.active { color: var(--accent); border-bottom-color: var(--accent); }
.ticket-list-admin { display: flex; flex-direction: column; }
.ticket-item-admin { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; border-bottom: 1px solid var(--border); transition: background 0.3s; }
.ticket-item-admin:hover { background: rgba(255,255,255,0.015); }
.ticket-item-admin:last-child { border-bottom: none; }
.ticket-item-admin .ti-subject { font-weight: 700; font-size: 0.88rem; }
.ticket-item-admin .ti-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.sidebar-toggle { display: none; position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font-size: 1.1rem; cursor: pointer; z-index: 200; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }

/* KEYFRAMES */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(20px, -30px) scale(1.02); } 66% { transform: translate(-15px, 15px) scale(0.98); } }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.8); } }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 24px auto; }

/* UTILS */
.text-fire { color: var(--accent); }
.text-gold { color: var(--accent-gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-dim { color: var(--text-dim); }
.text-purple { color: var(--accent-purple); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-phone { width: 220px; }
    .hero-float-card { display: none; }
    .hero-stats-row { justify-content: center; }
    .nav-links { display: none; }
    .nav-mobile-btn { display: flex; align-items: center; justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { transform: translateX(100%); transition: transform 0.3s var(--ease); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .sidebar-overlay.active { display: block; }
    .admin-main { margin-right: 0 !important; padding: 16px; padding-top: 66px; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .user-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
}

/* CHAT MEDIA */
.msg-media { margin-top: 8px; border-radius: 12px; overflow: hidden; max-width: 320px; position: relative; cursor: pointer; }
.msg-media img { width: 100%; height: auto; display: block; border-radius: 12px; transition: transform 0.3s var(--ease); object-fit: cover; max-height: 300px; }
.msg-media:hover img { transform: scale(1.02); }
.msg-media video { width: 100%; max-height: 300px; border-radius: 12px; display: block; background: #000; }
.msg-media .media-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); border-radius: 12px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.msg-media:hover .media-play-overlay { opacity: 1; }
.msg-media .media-play-overlay i { font-size: 2.5rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.msg-file-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-top: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--accent-blue); transition: all 0.3s; }
.msg-file-link:hover { background: rgba(255,255,255,0.07); border-color: var(--border-hover); }
.msg-file-link i { font-size: 1.1rem; }
.msg-file-link .file-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* PRE-SEND PREVIEW */
.upload-preview { display: none; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--bg-elevated); animation: fadeInUp 0.3s var(--ease); align-items: center; gap: 12px; }
.upload-preview.active { display: flex; }
.upload-preview .preview-thumb { position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); background: #000; }
.upload-preview .preview-thumb img,
.upload-preview .preview-thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .preview-file-icon { width: 80px; height: 80px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--text-dim); flex-shrink: 0; }
.upload-preview .preview-info { flex: 1; min-width: 0; }
.upload-preview .preview-name { font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-preview .preview-size { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.upload-preview .preview-remove { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--danger-bg); color: var(--danger); cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }
.upload-preview .preview-remove:hover { background: var(--danger); color: #fff; }

/* MEDIA LIGHTBOX */
.media-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); backdrop-filter: blur(16px); display: none; align-items: center; justify-content: center; padding: 24px; animation: fadeInUp 0.3s var(--ease); }
.media-lightbox.active { display: flex; }
.media-lightbox .lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.1); color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 10; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.media-lightbox .lb-close:hover { background: rgba(255,255,255,0.2); }
.media-lightbox .lb-content { max-width: 90vw; max-height: 85vh; position: relative; }
.media-lightbox .lb-content img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.media-lightbox .lb-content video { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.media-lightbox .lb-download { position: absolute; bottom: -48px; left: 50%; transform: translateX(-50%); padding: 8px 20px; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 6px; }
.media-lightbox .lb-download:hover { background: rgba(255,255,255,0.2); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
