/* فروشیار — Custom CSS, RTL, mobile-first */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #059669;
    --accent-light: #d1fae5;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm: #fffbeb;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --font-stack: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

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

html {
    direction: rtl;
    text-align: right;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 0.75rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-inline-start: 1.5rem; margin-bottom: 0.75rem; }
li { margin-bottom: 0.3rem; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── Header / Nav ── */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-weight: 700; font-size: 1.25rem; color: var(--text);
    display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon {
    width: 32px; height: 32px; background: var(--primary);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Mobile nav ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px; height: 40px;
    padding: 0 10px;
    background: none; border: 1px solid var(--border);
    border-radius: 10px; cursor: pointer;
    min-height: var(--tap-target, 40px);
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--text); border-radius: 2px;
}
.nav-mobile {
    border-top: 1px solid var(--border);
    background: var(--surface, #fff);
    padding: 0.75rem 1rem 1rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
    padding: 0.7rem 0.5rem;
    color: var(--text-secondary); font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
}
.nav-mobile a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.nav-mobile-cta {
    margin-block-start: 0.5rem;
    background: var(--primary); color: #fff !important;
    text-align: center; font-weight: 600;
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
}

/* ── Hero ── */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}
.hero-cta {
    display: inline-flex; flex-direction: column; gap: 0.75rem; align-items: center;
}
.hero-img-placeholder {
    width: 100%; max-width: 700px; margin: 2rem auto 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 2rem; border-radius: 10px;
    font-family: var(--font-stack); font-size: 1rem; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border); font-size: 0.9rem; padding: 0.6rem 1.5rem;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── Cards ── */
.card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--border-radius); padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0; }

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

/* ── Problem / Solution ── */
.problem-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.problem-item:last-child { border-bottom: none; }
.problem-icon {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: #fee2e2; color: #dc2626;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.problem-item p { color: var(--text-secondary); margin-bottom: 0; }

/* ── Steps ── */
.steps {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.step {
    display: flex; gap: 1.25rem; align-items: flex-start;
}
.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.step-content h3 { margin-bottom: 0.25rem; }
.step-content p { color: var(--text-secondary); margin-bottom: 0; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.feature-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--border-radius); padding: 1.25rem;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-2px); }
.feature-card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0; }

/* ── Coming Soon ── */
.coming-soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.coming-card {
    background: var(--bg-alt); border: 1px dashed var(--border);
    border-radius: var(--border-radius); padding: 1rem;
    opacity: 0.7;
}
.coming-badge {
    display: inline-block; background: var(--accent-light); color: var(--accent);
    font-size: 0.7rem; padding: 0.15rem 0.6rem; border-radius: 20px;
    font-weight: 600; margin-bottom: 0.5rem;
}
.coming-card h3 { font-size: 0.9rem; }
.coming-card p { font-size: 0.75rem; }

/* ── Trust / Security ── */
.trust-items {
    display: flex; flex-direction: column; gap: 1rem;
}
.trust-item {
    display: flex; gap: 1rem; align-items: flex-start;
}
.trust-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.trust-item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.trust-item p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0; }

/* ── Pricing ── */
.pricing-card {
    max-width: 500px; margin: 0 auto;
    background: white; border: 2px solid var(--primary);
    border-radius: 16px; padding: 2.5rem; text-align: center;
    box-shadow: var(--shadow-lg);
}
.pricing-tag {
    display: inline-block; background: var(--accent); color: white;
    font-size: 0.8rem; padding: 0.3rem 1rem; border-radius: 20px;
    font-weight: 600; margin-bottom: 1rem;
}
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.pricing-desc { color: var(--text-secondary); margin-bottom: 1.5rem; }
.pricing-features { text-align: right; margin-bottom: 1.5rem; }
.pricing-features li { font-size: 0.9rem; }

/* ── FAQ ── */
.faq-item {
    background: white; border: 1px solid var(--border);
    border-radius: var(--border-radius); margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    width: 100%; text-align: right; padding: 1.25rem 1.5rem;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-stack); font-size: 0.95rem; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text);
}
.faq-question::after {
    content: '+'; font-size: 1.25rem; color: var(--text-secondary);
    transition: transform 0.2s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    display: none; padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary); font-size: 0.9rem;
}
.faq-item.active .faq-answer { display: block; }

/* ── Contact Form ── */
.contact-form {
    max-width: 600px; margin: 0 auto;
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; margin-bottom: 0.4rem;
    font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.form-label .required { color: #dc2626; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font-stack); font-size: 0.95rem;
    transition: border-color 0.2s;
    direction: rtl; text-align: right;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; }
.form-hint { color: var(--text-light); font-size: 0.75rem; margin-top: 0.25rem; }
.form-check {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem;
}
.form-check input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--primary);
}
.form-check label { font-size: 0.85rem; color: var(--text-secondary); }
.form-check a { color: var(--primary); }

/* honeypot — hidden from real users */
.form-honeypot {
    position: absolute; left: -9999px; opacity: 0;
    pointer-events: none; height: 0; overflow: hidden;
}

/* ── Admin ── */
.admin-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th, .admin-table td {
    padding: 0.75rem; text-align: right;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    background: var(--bg-alt); font-weight: 600;
    position: sticky; top: 0;
}
.admin-table tr:hover { background: var(--bg-alt); }
.status-badge {
    display: inline-block; padding: 0.2rem 0.7rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-contacted { background: #fef3c7; color: #d97706; }
.status-rejected { background: #fee2e2; color: #dc2626; }
.status-customer { background: #d1fae5; color: #059669; }
.admin-login {
    max-width: 400px; margin: 5rem auto;
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 2.5rem; text-align: center;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
    color: var(--text-secondary); font-size: 0.85rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 {
    font-size: 0.8rem; font-weight: 700;
    color: var(--text); margin-bottom: 0.75rem;
    text-transform: none;
}
.footer-col a {
    display: block;
    color: var(--text-secondary);
    padding-block: 0.3rem;
    text-decoration: none;
}
.footer-col a:hover { color: var(--primary); }
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-tagline { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-note { color: var(--text-light); font-size: 0.75rem; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    text-align: center;
    color: var(--text-light); font-size: 0.75rem;
}
@media (max-width: 767px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-cols { grid-template-columns: 1fr; }
}

/* ── Video placeholder ── */
.video-wrapper {
    position: relative; width: 100%; max-width: 700px;
    margin: 0 auto; border-radius: var(--border-radius);
    overflow: hidden; background: #1e293b;
    box-shadow: var(--shadow-lg);
}
.video-wrapper video { width: 100%; display: block; }
.video-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); cursor: pointer;
    transition: background 0.2s;
}
.video-overlay:hover { background: rgba(0,0,0,0.3); }
.video-overlay .play-btn {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--primary); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem; color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s;
}
.video-overlay:hover .play-btn { transform: scale(1.1); }

/* ── Misc ── */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-small { font-size: 0.8rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none !important; }
.spacer { height: 2rem; }
.spacer-lg { height: 4rem; }

/* ── Persian Numbers ── */
.fa-number { font-feature-settings: "locl"; }

/* ── Alert / Toast — canonical set lives in design-system.css (alert-info/success/warning/danger + .alert-error alias) ── */

/* ── Responsive ── */
@media (min-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .steps { flex-direction: row; }
    .step { flex: 1; flex-direction: column; text-align: center; align-items: center; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .hero h1 { font-size: 2.75rem; }
}
@media (max-width: 767px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 2.5rem 0 3rem; }
    .hero h1 { font-size: 1.6rem; }
    .section { padding: 2.5rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pricing-card { margin: 0 1rem; }
    .contact-form { margin: 0 0.5rem; padding: 1.5rem; }
}

/* ── Admin Panel ── */
.panel-nav {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    padding: 1rem 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem;
}
.panel-nav a {
    padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem;
    color: var(--text-secondary); white-space: nowrap;
}
.panel-nav a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.panel-nav a.active { background: var(--primary); color: white; }
.panel-page { padding: 1rem 0 3rem; }
.panel-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.panel-title h1 { font-size: 1.4rem; margin: 0; }
.stat-card {
    background: white; border: 1px solid var(--border); border-radius: var(--border-radius);
    padding: 1.25rem; box-shadow: var(--shadow);
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-secondary); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--border-radius); background: white; }
.table-wrap .admin-table { min-width: 600px; }
.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filter-bar .form-select, .filter-bar .form-input { width: auto; min-width: 140px; padding: 0.5rem 0.75rem; }
.status-paid, .status-delivered, .status-resolved { background: #d1fae5; color: #059669; }
.status-pending, .status-new-status { background: #fef3c7; color: #d97706; }
.status-shipped, .status-assigned, .status-seen { background: #dbeafe; color: #1d4ed8; }
.status-cancelled, .status-rejected, .status-returned { background: #fee2e2; color: #dc2626; }
.status-confirmed { background: #e0e7ff; color: #4338ca; }
.tag-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 12px; background: var(--primary-light); color: var(--primary); font-size: 0.72rem; font-weight: 600; margin-inline-start: 0.25rem; }
.tag-badge.tag-vip { background: #fef3c7; color: #b45309; }
.tag-badge.tag-loyal { background: #d1fae5; color: #059669; }
.tag-badge.tag-churn { background: #fee2e2; color: #dc2626; }
.ai-toggle {
    display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer;
    padding: 0.75rem 1.25rem; border-radius: 10px; border: 2px solid var(--border);
    background: white; font-family: inherit; font-size: 1rem; font-weight: 600;
}
.ai-toggle .dot { width: 14px; height: 14px; border-radius: 50%; }
.ai-toggle.on { border-color: var(--accent); color: var(--accent); }
.ai-toggle.on .dot { background: var(--accent); }
.ai-toggle.off { border-color: #dc2626; color: #dc2626; }
.ai-toggle.off .dot { background: #dc2626; }
.progress-bar { height: 10px; background: var(--bg-alt); border-radius: 5px; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--primary); transition: width 0.3s; }
.progress-bar.warn > div { background: #d97706; }
.progress-bar.danger > div { background: #dc2626; }
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination button { padding: 0.4rem 0.85rem; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; font-family: inherit; }
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: default; }
.loading-spinner { display: none; text-align: center; padding: 2rem; color: var(--text-secondary); }
.detail-panel { background: var(--bg-alt); border-radius: 8px; padding: 1rem; margin-top: 1rem; font-size: 0.9rem; }
.detail-panel p { margin-bottom: 0.4rem; }
.detail-label { color: var(--text-secondary); font-size: 0.8rem; }
.chat-msg { padding: 0.6rem 1rem; border-radius: 12px; margin-bottom: 0.5rem; max-width: 80%; font-size: 0.9rem; }
.chat-msg.in { background: var(--bg-alt); margin-inline-start: auto; }
.chat-msg.out { background: var(--primary-light); }
.chat-msg .chat-meta { font-size: 0.7rem; color: var(--text-light); margin-top: 0.25rem; }
.msg-direction { font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 8px; }
.msg-direction.in { background: var(--bg-alt); color: var(--text-secondary); }
.msg-direction.out { background: var(--primary-light); color: var(--primary); }
.empty-state { text-align: center; color: var(--text-secondary); }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 1rem 0; }
.chart-bars .bar { flex: 1; background: var(--primary-light); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; transition: background 0.2s; }
.chart-bars .bar:hover { background: var(--primary); }
.chart-bars .bar .bar-tip { position: absolute; bottom: 100%; inset-inline-start: 50%; transform: translateX(50%); background: var(--text); color: white; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; white-space: nowrap; display: none; }
.chart-bars .bar:hover .bar-tip { display: block; }
.chart-labels { display: flex; gap: 4px; font-size: 0.65rem; color: var(--text-light); }
.chart-labels span { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
    .panel-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
    .panel-nav a { flex-shrink: 0; }
    .panel-title h1 { font-size: 1.15rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-bar .form-select, .filter-bar .form-input { min-width: 110px; }
}

/* ═══════════════════════════════════════════════════════════════
   Landing page v2 — hero grid, mock chat, channels, benefits, plans
   ═══════════════════════════════════════════════════════════════ */
.hero { padding: 3.5rem 0 4rem; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-copy { text-align: start; }
.hero h1 { font-size: 2rem; line-height: 1.3; color: var(--text); }
.hero .subtitle { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85; margin: 1rem 0 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-note { margin-block-start: 1rem; font-size: 0.85rem; color: var(--text-light); }
.hero-note a { color: var(--primary); }

/* Mock chat — replaces the dead video box */
.hero-visual { display: flex; justify-content: center; }
.mock-chat {
    width: 100%; max-width: 380px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
}
.mock-msg {
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-block-end: 0.65rem;
    max-width: 88%;
}
.mock-in { background: var(--surface, #fff); border: 1px solid var(--border); border-start-start-radius: 4px; margin-inline-end: auto; }
.mock-out { background: var(--primary); color: #fff; border-start-end-radius: 4px; margin-inline-start: auto; }
.mock-typing { display: flex; gap: 4px; padding: 0.5rem 0.25rem; }
.mock-typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-light);
    animation: mock-bounce 1.2s infinite ease-in-out;
}
.mock-typing span:nth-child(2) { animation-delay: 0.15s; }
.mock-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes mock-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .mock-typing span { animation: none; } }

/* Benefits strip */
.benefit-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.benefit-num {
    font-size: 1.75rem; font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.benefit-label { font-size: 0.85rem; color: var(--text-secondary); }

/* Scenarios */
.scenario-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.scenario-tag {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    font-size: 0.72rem; font-weight: 600;
    padding: 0.2rem 0.65rem; border-radius: 20px;
    margin-bottom: 0.9rem;
}
.scenario-card .chat-msg { max-width: 100%; }
.scenario-note {
    margin-block-start: 0.9rem;
    font-size: 0.8rem; color: var(--text-secondary);
    border-block-start: 1px dashed var(--border);
    padding-block-start: 0.75rem;
}

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.plan-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    text-align: center;
    position: relative;
}
.plan-featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}
.plan-tag {
    position: absolute;
    inset-block-start: -0.75rem;
    inset-inline-start: 50%;
    transform: translateX(50%);
    background: var(--accent); color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 0.25rem 0.9rem; border-radius: 20px;
}
.plan-name { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.5rem; }
.plan-price { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.plan-desc { font-size: 0.8rem; color: var(--text-secondary); min-height: 2.6em; margin-bottom: 1rem; }
.plan-list { text-align: start; padding: 0; list-style: none; margin-bottom: 1.25rem; }
.plan-list li { font-size: 0.85rem; padding-block: 0.3rem; color: var(--text); }

@media (max-width: 1023px) {
    .plans-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .plan-featured { order: -1; }
}
@media (max-width: 767px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 2.5rem 0 3rem; }
    .hero h1 { font-size: 1.7rem; }
    .benefit-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .benefit-strip { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .benefit-num { font-size: 1.4rem; }
}
