:root {
    --bg-main: #060913;
    --surface: rgba(15, 23, 42, 0.72);
    --surface-hover: rgba(30, 41, 59, 0.82);
    --border-color: rgba(148, 163, 184, 0.14);
    --border-highlight: rgba(99, 102, 241, 0.45);
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-cyan: linear-gradient(135deg, #38bdf8 0%, #818cf8 55%, #c084fc 100%);
    --shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 10px 35px -5px rgba(99, 102, 241, 0.4);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', 'Vazirmatn', system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
}

body {
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.75;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.bg-canvas {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15), transparent 40%),
                radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.12), transparent 42%), var(--bg-main);
}

.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; padding-top: 6.5rem; padding-bottom: 4rem; }

/* هور منوی کپسولی Lissan */
.navbar-wrapper { position: fixed; top: 1rem; left: 0; right: 0; z-index: 100; padding: 0 1.5rem; }
.navbar {
    max-width: 1240px; margin: 0 auto;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px; padding: 0.6rem 1.4rem;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.brand-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-main); font-weight: 800; font-size: 1.2rem; }
.brand-icon { width: 36px; height: 36px; border-radius: 12px; background: var(--gradient-brand); display: grid; place-items: center; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 0.45rem 0.95rem; border-radius: 999px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* منوی انتخاب زبان */
.lang-dropdown { position: relative; display: inline-block; }
.lang-btn {
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main); padding: 0.4rem 0.85rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
}
.lang-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 130px;
    background: #0f172a; border: 1px solid var(--border-color); border-radius: 14px;
    box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; z-index: 110;
}
.lang-dropdown:hover .lang-menu { display: flex; }
.lang-item { padding: 0.55rem 1rem; color: var(--text-secondary); text-decoration: none; font-size: 0.86rem; transition: background 0.2s; }
.lang-item:hover { background: rgba(99, 102, 241, 0.2); color: #fff; }

/* دکمه‌ها و کارت‌ها */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.65rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
    text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}
.btn-primary { background: var(--gradient-cyan); color: #060913; box-shadow: 0 8px 25px -4px rgba(56, 189, 248, 0.4); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-brand { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-glass { background: rgba(255, 255, 255, 0.05); color: var(--text-main); border-color: rgba(255, 255, 255, 0.14); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.84rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

.glass-card {
    background: var(--surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.glass-card:hover { border-color: var(--border-highlight); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 45%, #f472b6 90%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem;
    border-radius: 999px; font-size: 0.8rem; font-weight: 700;
    background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.35); color: #a5b4fc; margin-bottom: 1rem;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* بخش هیرو Lissan */
.hero-section { padding: 3rem 0 5rem; }
.hero-title { font-size: clamp(2.3rem, 4.8vw, 3.8rem); font-weight: 900; line-height: 1.22; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.12rem; color: var(--text-secondary); max-width: 620px; margin-bottom: 2rem; }

/* آواتارهای روی‌هم‌افتاده مشتریان (Stacked Avatars) */
.social-proof-bar { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border-color); }
.avatar-group { display: flex; align-items: center; }
.avatar-item { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg-main); margin-left: -12px; background-size: cover; background-position: center; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background-color: #4f46e5; color: #fff; }

/* فرم‌ها و اینپوت‌ها */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.45rem; }
.form-control {
    width: 100%; background: rgba(6, 9, 19, 0.75); border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px; padding: 0.8rem 1.1rem; color: var(--text-main); font-family: inherit; font-size: 0.95rem; transition: all 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-primary { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.35); }
.badge-success { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-neutral { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.2); }

.progress-track { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-cyan); border-radius: 999px; transition: width 0.6s ease; }

.chat-box { display: flex; flex-direction: column; gap: 1rem; max-height: 480px; overflow-y: auto; padding: 1rem; background: rgba(6, 9, 19, 0.6); border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-bottom: 1.25rem; }
.chat-bubble { max-width: 82%; padding: 0.9rem 1.15rem; border-radius: 16px; }
.chat-customer { align-self: flex-start; background: rgba(30, 41, 59, 0.85); border: 1px solid rgba(148, 163, 184, 0.2); }
.chat-admin { align-self: flex-end; background: linear-gradient(135deg, rgba(79, 70, 229, 0.32), rgba(147, 51, 234, 0.28)); border: 1px solid rgba(129, 140, 248, 0.4); }

.flash-container { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.alert { padding: 0.95rem 1.2rem; border-radius: 14px; font-weight: 600; font-size: 0.92rem; backdrop-filter: blur(12px); }
.alert-success { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.alert-danger { background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.alert-warning { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; }

.site-footer { border-top: 1px solid var(--border-color); background: rgba(6, 9, 19, 0.85); padding: 3.5rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.5rem; }

@media (max-width: 992px) {
    .grid-3, .grid-4, .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}