/* ============================================
   TRAVONA Download Platform - Premium Design
   Aesthetic: Luxury Dark Tech / Glass Morphism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-void: #030712;
    --bg-deep: #070c1b;
    --bg-surface: #0c1222;
    --bg-elevated: #111a2e;
    --bg-hover: #162040;
    --bg-input: #0e1529;
    --glass-bg: rgba(12, 18, 34, 0.65);
    --glass-border: rgba(255,255,255,0.06);
    --glow-1: #0ea5e9;
    --glow-2: #6366f1;
    --glow-3: #a855f7;
    --gradient-brand: linear-gradient(135deg, #0ea5e9, #6366f1, #a855f7);
    --gradient-brand-h: linear-gradient(90deg, #0ea5e9, #6366f1, #a855f7);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #eab308;
    --info: #0ea5e9;
    --text-100: #f1f5f9;
    --text-200: #cbd5e1;
    --text-300: #94a3b8;
    --text-400: #64748b;
    --text-500: #475569;
    --border-1: rgba(255,255,255,0.04);
    --border-2: rgba(255,255,255,0.08);
    --border-3: rgba(255,255,255,0.12);
    --border-glow: rgba(99,102,241,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow-sm: 0 0 20px rgba(99,102,241,0.15);
    --shadow-glow-md: 0 0 40px rgba(99,102,241,0.2);
    --shadow-glow-lg: 0 4px 60px rgba(99,102,241,0.25);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 100px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --speed: 0.3s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background: var(--bg-void);
    color: var(--text-200);
    direction: rtl;
    min-height: 100vh;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 50%, rgba(14,165,233,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 80%, rgba(168,85,247,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

::selection { background: rgba(99,102,241,0.3); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-500); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--glow-2); }

a { color: var(--glow-1); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: #38bdf8; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 1000; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 3rem);
    background: rgba(3,7,18,0.7);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-1);
}
.nav-logo { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; font-weight: 800; color: var(--text-100); }
.nav-logo .logo-icon {
    width: 44px; height: 44px; background: var(--gradient-brand); border-radius: 14px;
    display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-glow-sm); position: relative;
}
.nav-logo .logo-icon::after {
    content: ''; position: absolute; inset: -2px; border-radius: 16px; background: var(--gradient-brand);
    z-index: -1; opacity: 0.4; filter: blur(8px);
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: var(--text-300); padding: 8px 20px; border-radius: var(--r-full); font-weight: 500; font-size: 0.9rem; transition: all var(--speed) var(--ease); border: 1px solid transparent; }
.nav-links a:hover { color: var(--text-100); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text-100); background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border: none; border-radius: var(--r-full);
    font-family: 'Noto Kufi Arabic', sans-serif; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all var(--speed) var(--ease); text-decoration: none;
    white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow-sm); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%); opacity: 0; transition: opacity var(--speed); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-lg); color: #fff; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--glass-bg); color: var(--text-200); border: 1px solid var(--border-2); backdrop-filter: blur(10px); }
.btn-secondary:hover { border-color: var(--border-3); background: var(--bg-hover); color: var(--text-100); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 2rem 60px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    top: -200px; right: -100px; animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
    bottom: -150px; left: -100px; animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-content { text-align: center; max-width: 820px; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px;
    border-radius: var(--r-full); font-size: 0.82rem; font-weight: 500; color: var(--glow-1);
    background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.15);
    margin-bottom: 2.5rem; animation: fadeUp 0.7s var(--ease) both; backdrop-filter: blur(10px);
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px; background: var(--glow-1); border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(14,165,233,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(14,165,233,0); }
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.25;
    color: var(--text-100); margin-bottom: 1.5rem; animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.hero h1 .gradient-text {
    background: var(--gradient-brand-h); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% 100%; animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 50% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero p { font-size: 1.15rem; color: var(--text-300); margin-bottom: 3rem; animation: fadeUp 0.7s var(--ease) 0.2s both; line-height: 2; }

/* ========== DOWNLOAD BOX ========== */
.download-box { max-width: 680px; margin: 0 auto; animation: fadeUp 0.7s var(--ease) 0.3s both; }
.download-input-wrapper {
    display: flex; gap: 10px; padding: 8px;
    background: var(--glass-bg); border: 1px solid var(--border-2);
    border-radius: var(--r-lg); backdrop-filter: blur(20px);
    transition: all var(--speed) var(--ease); position: relative;
}
.download-input-wrapper::before {
    content: ''; position: absolute; inset: -1px; border-radius: calc(var(--r-lg) + 1px);
    background: var(--gradient-brand); opacity: 0; z-index: -1; transition: opacity 0.5s;
}
.download-input-wrapper:focus-within { border-color: transparent; box-shadow: var(--shadow-glow-md); }
.download-input-wrapper:focus-within::before { opacity: 0.5; }
.download-input-wrapper input {
    flex: 1; background: transparent; border: none; outline: none; color: var(--text-100);
    font-family: 'Space Mono', 'Noto Kufi Arabic', monospace; font-size: 0.95rem;
    padding: 14px 18px; direction: ltr; text-align: left;
}
.download-input-wrapper input::placeholder { color: var(--text-500); }
.download-input-wrapper .btn { border-radius: 14px; padding: 14px 36px; }

/* ========== PLATFORMS ========== */
.platforms-strip {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-top: 3.5rem; flex-wrap: wrap; animation: fadeUp 0.7s var(--ease) 0.5s both;
}
.platform-icon {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
    background: var(--glass-bg); border: 1px solid var(--border-1); font-size: 1.3rem;
    transition: all var(--speed) var(--ease-bounce); cursor: default; backdrop-filter: blur(10px);
}
.platform-icon:hover {
    transform: translateY(-6px) scale(1.08); border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-sm); background: rgba(99,102,241,0.08);
}

/* ========== LAYOUT ========== */
.container { max-width: 1260px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.section { padding: clamp(60px, 8vw, 100px) 0; position: relative; z-index: 1; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--text-100); margin-bottom: 0.8rem; }
.section-title p { color: var(--text-400); font-size: 1.05rem; }

.section-alt { background: var(--bg-deep); position: relative; }
.section-alt::before, .section-alt::after { content: ''; position: absolute; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

/* ========== GLASS CARDS ========== */
.card {
    background: var(--glass-bg); border: 1px solid var(--border-1); border-radius: var(--r-lg);
    padding: 2rem; backdrop-filter: blur(16px); transition: all 0.4s var(--ease);
    position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
.card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
    width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
    font-size: 1.5rem; margin-bottom: 1.5rem; position: relative;
}
.card-icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; filter: blur(14px); opacity: 0.4; z-index: -1; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-100); margin-bottom: 0.6rem; }
.card p { color: var(--text-400); font-size: 0.92rem; line-height: 1.9; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* ========== STEPS ========== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 950px; margin: 0 auto; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 52px; right: 16%; left: 16%; height: 2px; background: linear-gradient(90deg, var(--glow-1), var(--glow-2), var(--glow-3)); opacity: 0.2; z-index: 0; }
.step-card { text-align: center; padding: 2rem; position: relative; z-index: 1; }
.step-number {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    margin: 0 auto 1.5rem; font-family: 'Space Mono', monospace; font-size: 1.3rem;
    font-weight: 700; color: #fff; background: var(--gradient-brand); box-shadow: var(--shadow-glow-sm);
    position: relative;
}
.step-number::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--gradient-brand); opacity: 0.2; filter: blur(8px); z-index: -1; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-100); margin-bottom: 0.5rem; }
.step-card p { color: var(--text-400); font-size: 0.9rem; line-height: 1.9; }

/* ========== PRICING ========== */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; max-width: 780px; margin: 0 auto; }
.pricing-card { background: var(--glass-bg); border: 1px solid var(--border-1); border-radius: var(--r-xl); padding: 2.5rem; text-align: center; position: relative; backdrop-filter: blur(16px); transition: all 0.4s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-glow-md); background: rgba(99,102,241,0.05); }
.pricing-card.featured::before { content: 'الأكثر طلباً'; position: absolute; top: -14px; right: 50%; transform: translateX(50%); background: var(--gradient-brand); color: #fff; padding: 6px 24px; border-radius: var(--r-full); font-size: 0.78rem; font-weight: 700; box-shadow: var(--shadow-glow-sm); }
.pricing-card .price { font-size: 3.2rem; font-weight: 900; color: var(--text-100); margin: 1.5rem 0; font-family: 'Space Mono', monospace; }
.pricing-card .price span { font-size: 0.9rem; color: var(--text-400); font-weight: 400; font-family: 'Noto Kufi Arabic', sans-serif; }
.pricing-features { list-style: none; text-align: right; margin: 2rem 0; }
.pricing-features li { padding: 12px 0; color: var(--text-300); display: flex; align-items: center; gap: 12px; font-size: 0.92rem; border-bottom: 1px solid var(--border-1); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--success); }
.pricing-features li .cross { color: var(--text-500); }

/* ========== FORMS ========== */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.85rem; color: var(--text-300); }
.form-control {
    width: 100%; padding: 14px 18px; background: var(--bg-input); border: 1px solid var(--border-2);
    border-radius: var(--r-md); color: var(--text-100); font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 0.92rem; transition: all var(--speed) var(--ease); outline: none;
}
.form-control:focus { border-color: var(--glow-2); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-control::placeholder { color: var(--text-500); }

/* ========== AUTH ========== */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-card { background: var(--glass-bg); border: 1px solid var(--border-1); border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3rem); width: 100%; max-width: 460px; position: relative; z-index: 1; backdrop-filter: blur(20px); }
.auth-card h2 { font-size: 1.7rem; font-weight: 800; text-align: center; color: var(--text-100); margin-bottom: 0.5rem; }
.auth-card .subtitle { text-align: center; color: var(--text-400); margin-bottom: 2rem; font-size: 0.9rem; }

/* ========== DASHBOARD ========== */
.dashboard { display: flex; min-height: 100vh; padding-top: 72px; }
.sidebar { width: 280px; background: var(--bg-deep); border-left: 1px solid var(--border-1); padding: 2rem 0; position: fixed; top: 72px; right: 0; bottom: 0; overflow-y: auto; z-index: 100; }
.sidebar-nav { list-style: none; padding: 0 1rem; }
.sidebar-nav li { margin-bottom: 3px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-radius: var(--r-md); color: var(--text-400); font-weight: 500; font-size: 0.9rem; transition: all var(--speed) var(--ease); border-right: 3px solid transparent; }
.sidebar-nav a:hover { background: rgba(99,102,241,0.06); color: var(--text-200); }
.sidebar-nav a.active { background: rgba(99,102,241,0.1); color: var(--text-100); border-right-color: var(--glow-2); }
.sidebar-nav .nav-icon { font-size: 1.15rem; width: 24px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border-1); margin: 1.5rem 1rem; }
.main-content { flex: 1; margin-right: 280px; padding: clamp(1.5rem, 3vw, 2.5rem); }

/* ========== STATS ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 2rem; }
.stat-card { background: var(--glass-bg); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 1.5rem; display: flex; align-items: center; gap: 1.2rem; backdrop-filter: blur(10px); transition: all var(--speed) var(--ease); }
.stat-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.stat-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-info h4 { font-size: 0.82rem; color: var(--text-400); font-weight: 500; margin-bottom: 4px; }
.stat-info .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--text-100); font-family: 'Space Mono', monospace; }
.stat-info .stat-change { font-size: 0.78rem; margin-top: 2px; }
.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* ========== TABLES ========== */
.table-wrapper { background: var(--glass-bg); border: 1px solid var(--border-1); border-radius: var(--r-lg); overflow: hidden; backdrop-filter: blur(10px); }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem 1rem; }
.table-header h3 { font-weight: 700; color: var(--text-100); font-size: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 18px; text-align: right; font-size: 0.88rem; }
th { background: rgba(99,102,241,0.04); color: var(--text-400); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 1px solid var(--border-1); }
td { border-bottom: 1px solid var(--border-1); color: var(--text-300); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(99,102,241,0.02); }

/* ========== BADGES ========== */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-full); font-size: 0.73rem; font-weight: 600; }
.badge-success { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.15); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.15); }
.badge-warning { background: rgba(234,179,8,0.12); color: var(--warning); border: 1px solid rgba(234,179,8,0.15); }
.badge-info { background: rgba(14,165,233,0.12); color: var(--info); border: 1px solid rgba(14,165,233,0.15); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--glow-3); border: 1px solid rgba(168,85,247,0.15); }

/* ========== ALERTS ========== */
.alert { padding: 14px 20px; border-radius: var(--r-md); margin-bottom: 1.5rem; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(10px); }
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.15); color: var(--success); }
.alert-danger { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); color: var(--danger); }
.alert-warning { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.15); color: var(--warning); }
.alert-info { background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.15); color: var(--info); }

/* ========== DOWNLOAD RESULT ========== */
.download-result { max-width: 680px; margin: 2rem auto 0; background: var(--glass-bg); border: 1px solid var(--border-2); border-radius: var(--r-lg); overflow: hidden; display: none; backdrop-filter: blur(16px); }
.download-result.show { display: block; animation: fadeUp 0.4s var(--ease); }
.result-preview { display: flex; gap: 1.5rem; padding: 1.5rem; }
.result-thumbnail { width: 200px; height: 120px; border-radius: var(--r-md); object-fit: cover; background: var(--bg-surface); }
.result-info { flex: 1; }
.result-info h4 { font-weight: 700; color: var(--text-100); margin-bottom: 0.5rem; line-height: 1.5; }
.result-info .result-meta { color: var(--text-400); font-size: 0.85rem; }
.result-actions { padding: 1rem 1.5rem; border-top: 1px solid var(--border-1); display: flex; gap: 10px; flex-wrap: wrap; }

/* ========== MISC ========== */
.loader { display: none; text-align: center; padding: 3rem; }
.loader.show { display: block; }
.spinner { width: 44px; height: 44px; border: 3px solid var(--border-2); border-top-color: var(--glow-2); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-brand); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: #fff; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.chart-card { background: var(--glass-bg); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 1.5rem; backdrop-filter: blur(10px); }
.chart-card h3 { font-weight: 700; color: var(--text-100); margin-bottom: 1.5rem; font-size: 1rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2rem; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 600; }
.pagination a { background: var(--glass-bg); border: 1px solid var(--border-1); color: var(--text-400); transition: all var(--speed); }
.pagination a:hover { border-color: var(--border-glow); color: var(--text-100); }
.pagination .active { background: var(--gradient-brand); color: #fff; border: none; }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(12px); display: none; place-items: center; z-index: 2000; padding: 2rem; }
.modal-overlay.show { display: grid; }
.modal { background: var(--bg-elevated); border: 1px solid var(--border-2); border-radius: var(--r-xl); max-width: 500px; width: 100%; animation: fadeUp 0.3s var(--ease); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--border-1); }
.modal-header h3 { font-weight: 700; color: var(--text-100); }
.modal-close { width: 36px; height: 36px; border: none; background: var(--bg-surface); border-radius: 50%; color: var(--text-400); cursor: pointer; font-size: 1.1rem; transition: all var(--speed); display: grid; place-items: center; }
.modal-close:hover { background: rgba(239,68,68,0.15); color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.5rem; border-top: 1px solid var(--border-1); display: flex; gap: 10px; justify-content: flex-end; }

.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h4 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text-200); }
.empty-state p { color: var(--text-400); }

.toast-container { position: fixed; top: 84px; left: 2rem; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-elevated); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 14px 20px; min-width: 300px; display: flex; align-items: center; gap: 12px; animation: slideIn 0.35s var(--ease-bounce); box-shadow: var(--shadow-lg); color: var(--text-200); font-size: 0.9rem; }
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }

/* ========== FOOTER ========== */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border-1); padding: 4rem 0 2rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-100); }
.footer-brand p { color: var(--text-400); font-size: 0.88rem; line-height: 2; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--text-200); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-400); font-size: 0.88rem; }
.footer-col a:hover { color: var(--glow-1); }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border-1); color: var(--text-500); font-size: 0.82rem; }

/* CTA */
.cta-section { text-align: center; padding: 5rem 2rem; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(99,102,241,0.08) 0%, transparent 70%); }
.cta-section h2, .cta-section p, .cta-section .btn { position: relative; z-index: 1; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) { .sidebar { display: none; } .main-content { margin-right: 0; } .footer-grid { grid-template-columns: 1fr 1fr; } .steps-grid { grid-template-columns: 1fr; max-width: 400px; } .steps-grid::before { display: none; } }
@media (max-width: 768px) { .navbar { padding: 0 1rem; } .nav-links { display: none; } .hero { padding: 100px 1rem 40px; } .download-input-wrapper { flex-direction: column; } .download-input-wrapper .btn { width: 100%; } .result-preview { flex-direction: column; } .result-thumbnail { width: 100%; height: 180px; } .stats-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .auth-card { padding: 1.5rem; } .pricing-cards { grid-template-columns: 1fr; } .features-grid { grid-template-columns: 1fr; } }

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-muted { color: var(--text-400); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.dir-ltr { direction: ltr; text-align: left; }
