/* ==========================================================================
   השוואת מחירים — Design System
   Fonts: Heebo (Google Fonts) · Animations: AOS
   ========================================================================== */

:root {
    --brand: #4f46e5;
    --brand-2: #7c3aed;
    --brand-3: #6366f1;
    --accent: #10b981;
    --accent-dark: #059669;
    --amber: #f59e0b;
    --danger: #ef4444;

    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e9edf5;
    --bg: #f6f7fb;
    --card: #ffffff;

    --grad-brand: linear-gradient(135deg, #6366f1 0%, #7c3aed 55%, #a855f7 100%);
    --grad-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(79, 70, 229, 0.35);

    --radius: 18px;
    --radius-lg: 26px;
    --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Heebo", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.2; }

.gradient-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.5px; color: var(--ink); }
.logo .dot { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; padding: 8px 14px; border-radius: 10px; }
.nav-links a:hover { background: rgba(99, 102, 241, 0.08); color: var(--brand); }
.nav-cta {
    background: var(--grad-brand); color: #fff !important;
    padding: 9px 18px !important; border-radius: 12px !important;
    box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .6);
}
.nav-cta:hover { color: #fff !important; filter: brightness(1.05); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--grad-brand);
    color: #fff;
    padding: 92px 0 120px;
    text-align: center;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px 300px at 15% 10%, rgba(255,255,255,.25), transparent 60%),
        radial-gradient(700px 350px at 85% 20%, rgba(16,185,129,.28), transparent 60%);
    pointer-events: none;
}
.hero .blob {
    position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5;
    animation: float 9s ease-in-out infinite;
}
.hero .blob.b1 { width: 240px; height: 240px; background: #a855f7; top: -60px; inset-inline-start: -40px; }
.hero .blob.b2 { width: 300px; height: 300px; background: #22d3ee; bottom: -120px; inset-inline-end: -60px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }

.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 22px;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 900; letter-spacing: -1px; }
.hero .hero-tagline { font-size: 1.35rem; font-weight: 800; opacity: .96; margin: 0 0 14px; }
.hero p { margin: 0 auto; max-width: 640px; font-size: 1.12rem; opacity: .95; }

.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat .n { font-size: 2rem; font-weight: 900; }
.hero-stats .stat .l { font-size: .9rem; opacity: .9; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ---------- Section headings ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--brand); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: .82rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; margin: 8px 0 10px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Category grid ---------- */
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px;
}
.category-card {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm);
    transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
    display: block; color: var(--ink); overflow: hidden;
}
.category-card::before {
    content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
    background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--ink); }
.category-card:hover::before { opacity: 1; }
.cat-icon {
    width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center;
    font-size: 2rem; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(124,58,237,.14));
    transition: transform .2s;
}
.category-card:hover .cat-icon { transform: scale(1.08) rotate(-4deg); }
.category-card h3 { margin: 0 0 6px; font-size: 1.28rem; font-weight: 800; }
.category-card p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.cat-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; }
.category-card:hover .cat-link { gap: 12px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 26px; }
.step { text-align: center; padding: 20px; }
.step .num {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--grad-brand); color: #fff; display: grid; place-items: center;
    font-weight: 900; font-size: 1.3rem; box-shadow: 0 10px 24px -10px rgba(124,58,237,.7);
}
.step h4 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; }
.step p { color: var(--muted); margin: 0; }

.band { background: linear-gradient(180deg, #fff, #f2f1fb); }

/* ---------- Breadcrumb + category header ---------- */
.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 6px; }
.subnav a {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-soft); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.subnav a:hover { border-color: var(--brand); color: var(--brand); }
.subnav a.active { background: var(--grad-brand); color: #fff; border-color: transparent; }

.cat-hero { padding: 34px 0 6px; }
.cat-hero .breadcrumb { color: var(--muted); font-size: .9rem; }
.cat-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin: 10px 0 6px; display: flex; align-items: center; gap: 14px; }
.cat-hero .cat-emoji {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem;
    background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(124,58,237,.14));
}
.cat-hero p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.cat-intro { max-width: 780px; margin-top: 10px !important; line-height: 1.7; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 6px 20px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
    cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 12px 0; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 14px; color: var(--ink-soft); }

/* ---------- Product cards ---------- */
.product-list { display: flex; flex-direction: column; gap: 18px; margin: 26px 0 20px; }
.product-card {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 26px;
    display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(99,102,241,.35); }
.product-card.best { border-color: rgba(16,185,129,.55); box-shadow: 0 16px 40px -18px rgba(16,185,129,.5); }
.best-ribbon {
    position: absolute; top: 0; inset-inline-start: 26px; transform: translateY(-50%);
    background: var(--grad-accent); color: #fff; font-weight: 800; font-size: .78rem;
    padding: 5px 14px; border-radius: 999px; box-shadow: 0 8px 16px -6px rgba(16,185,129,.7);
    display: inline-flex; align-items: center; gap: 6px;
}
.rank {
    display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    background: #eef0fb; color: var(--brand); font-weight: 800; font-size: .9rem; margin-inline-end: 10px;
}
.product-main { display: flex; flex-direction: column; }
.product-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.product-company {
    font-weight: 800; color: var(--ink); font-size: .92rem; padding: 3px 10px; border-radius: 8px;
    background: #f1f3fb;
}
.highlight-badge {
    display: inline-flex; align-items: center; gap: 5px; background: rgba(245,158,11,.12);
    color: #b45309; border: 1px solid rgba(245,158,11,.3); padding: 3px 11px;
    border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.product-main h3 { margin: 4px 0; font-size: 1.3rem; font-weight: 800; }
.product-desc { margin: 2px 0 0; color: var(--ink-soft); }
.features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.feature-chip {
    background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px;
    padding: 5px 12px; font-size: .84rem; color: var(--muted);
}
.feature-chip strong { color: var(--ink); font-weight: 700; }

.product-side { text-align: center; min-width: 190px; display: flex; flex-direction: column; align-items: center; }
.price-original { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.price { font-size: 2.3rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.price .cur { font-size: 1.2rem; font-weight: 800; }
.price .per { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.price-usage { font-size: 1.25rem; font-weight: 800; color: var(--brand); }
.save-tag { margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--accent-dark); background: rgba(16,185,129,.1); padding: 3px 10px; border-radius: 999px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad-brand); color: #fff; border: none; border-radius: 12px;
    padding: 12px 24px; font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s; box-shadow: 0 10px 24px -12px rgba(124,58,237,.8);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); color: #fff; box-shadow: 0 16px 30px -14px rgba(124,58,237,.9); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--grad-accent); box-shadow: 0 10px 24px -12px rgba(16,185,129,.8); }
.btn-accent:hover { box-shadow: 0 16px 30px -14px rgba(16,185,129,.9); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--brand); background: rgba(99,102,241,.06); color: var(--brand); }
.btn-secondary { background: #64748b; box-shadow: none; }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-sm { padding: 7px 15px; font-size: .86rem; border-radius: 9px; box-shadow: none; }

/* ---------- Forms / cards ---------- */
.form-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 34px; max-width: 580px; margin: 40px auto;
}
.form-title { margin: 0 0 6px; font-size: 1.7rem; font-weight: 900; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .95rem; }
.form-control {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font-size: 1rem; font-family: inherit; background: #fbfcfe; transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99,102,241,.14); background: #fff; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 5px; font-weight: 600; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }
textarea.form-control { resize: vertical; min-height: 90px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: auto; }

.selected-plan {
    display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(16,185,129,.08));
    border: 1px solid rgba(99,102,241,.2); border-radius: 14px; padding: 14px 16px; margin-bottom: 22px;
}
.selected-plan .ic { font-size: 1.6rem; }

/* ---------- Thank you ---------- */
.center-card { text-align: center; padding: 56px 30px; }
.center-card .big-icon {
    width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
    font-size: 3rem; background: var(--grad-accent); color: #fff; box-shadow: 0 20px 40px -16px rgba(16,185,129,.7);
    animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Trust strip ---------- */
.trust { display: flex; align-items: center; justify-content: center; gap: 14px 30px; flex-wrap: wrap; }
.trust .brand-pill { font-weight: 800; color: var(--muted); font-size: 1.1rem; opacity: .75; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; background: var(--grad-brand); color: #fff;
    border-radius: var(--radius-lg); padding: 52px 40px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin: 0 0 10px; }
.cta-band p { opacity: .95; margin: 0 0 24px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1020; color: #94a3b8; padding: 54px 0 30px; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.site-footer .flogo { color: #fff; font-weight: 900; font-size: 1.4rem; margin-bottom: 10px; }
.site-footer h5 { color: #e2e8f0; font-size: .95rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .5px; }
.site-footer a { color: #94a3b8; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; text-align: center; font-size: .88rem; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: var(--accent-dark); border: 1px solid #a7f3d0; }
.empty-state { text-align: center; color: var(--muted); padding: 40px; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-header { background: #0b1020; color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.admin-header .container { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.admin-header .brand { color: #fff; font-weight: 900; font-size: 1.1rem; }
.admin-header nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-header nav a { color: #cbd5e1; font-weight: 600; padding: 7px 12px; border-radius: 9px; font-size: .95rem; }
.admin-header nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

.admin-main { padding: 30px 0 70px; }
.admin-main h1 { font-size: 1.9rem; font-weight: 900; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 22px; position: relative; overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; inset-inline-end: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(124,58,237,.1)); }
.stat-card .num { font-size: 2.2rem; font-weight: 900; color: var(--brand); }
.stat-card .label { color: var(--muted); font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 22px; }
.card h2 { margin-top: 0; font-weight: 800; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 13px 14px; text-align: right; border-bottom: 1px solid var(--line); }
table.data th { background: #f8fafc; font-weight: 700; color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .3px; }
table.data tr:hover td { background: #fbfcfe; }
.table-scroll { overflow-x: auto; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-progress { background: #fef3c7; color: #92400e; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-off { background: #f1f5f9; color: #64748b; }

.inline-form { display: inline; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.filter-bar .filter-tabs { margin-bottom: 0; }
.closed-toggle label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--ink-soft); font-weight: 600; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.closed-toggle input { accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }

/* Lead search */
.lead-search { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.lead-search input[type="search"] { flex: 1; min-width: 220px; padding: 11px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 1rem; background: #fff; }
.lead-search input[type="search"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.search-note { color: var(--ink-soft); font-weight: 600; margin: 0 0 14px; }
.search-note .muted-hint { color: var(--muted); font-weight: 500; font-size: .9em; }

/* Follow-up date pill (table + sidebar), color-coded by proximity.
   Base (far / long-overdue) has no background; today and near are highlighted. */
.fu { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.fu-today { background: #fef9c3; color: #854d0e; }   /* gentle amber — due today */
.fu-near  { background: #e0f2fe; color: #075985; }   /* soft blue — upcoming / recently passed */
.fu-far   { color: var(--muted); }                    /* long overdue — no background */

/* Dashboard: clickable follow-up stat card that highlights when leads are due */
.stat-link { text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
.stat-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-alert { background: #fffbeb; border: 1px solid #fde68a; }
.stat-alert .num { color: #b45309; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-tabs a { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.filter-tabs a.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.feature-rows .feature-row { display: flex; gap: 10px; margin-bottom: 8px; }
.feature-rows .feature-row input { flex: 1; }
.login-wrap { min-height: 88vh; display: grid; place-items: center; background: var(--grad-brand); }
.login-wrap .form-card { margin: 0; width: 100%; max-width: 400px; }

/* ========== Lead CRM: chat-style activity feed ========== */
.lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }

/* --- Feed column --- */
.feed-col { display: flex; flex-direction: column; min-width: 0; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.feed-head h1 { font-size: 1.6rem; }
.feed-sub { color: var(--muted); font-weight: 600; }
.chat-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-weight: 600; }

.chat {
    background: #eef1f8;
    background-image: radial-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 16px;
    min-height: 340px;
    max-height: 62vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-empty { margin: auto; color: var(--muted); text-align: center; max-width: 340px; }

/* System event pills (centered) */
.sys-row { display: flex; justify-content: center; }
.sys-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
    padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    box-shadow: var(--shadow-sm); max-width: 92%;
}
.sys-ico { font-size: .95rem; }
.sys-meta { color: var(--muted); font-weight: 500; }
.sys-meta b { color: var(--ink-soft); font-weight: 700; }
.sys-status  { border-color: #fde68a; background: #fffbeb; }
.sys-assign  { border-color: #c7d2fe; background: #eef2ff; }
.sys-created { border-color: #bbf7d0; background: #f0fdf4; }
.sys-edit    { border-color: #e2e8f0; background: #f8fafc; }
.sys-followup{ border-color: #a5f3fc; background: #ecfeff; }

/* Note bubbles */
.msg-row { display: flex; gap: 9px; align-items: flex-end; max-width: 80%; margin-inline-end: auto; }
.msg-row.own { margin-inline-end: 0; margin-inline-start: auto; flex-direction: row-reverse; }
.avatar {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
    text-transform: uppercase; box-shadow: var(--shadow-sm);
}
.av-0 { background: #6366f1; } .av-1 { background: #10b981; } .av-2 { background: #f59e0b; }
.av-3 { background: #ec4899; } .av-4 { background: #0ea5e9; } .av-5 { background: #8b5cf6; }
.bubble {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    border-end-end-radius: 4px; padding: 8px 12px 6px; box-shadow: var(--shadow-sm); min-width: 0;
}
.msg-row.own .bubble { background: #e7f8ec; border-color: #c7ecd3; border-end-end-radius: 14px; border-end-start-radius: 4px; }
.bubble-head { margin-bottom: 2px; }
.bubble-author { font-size: .78rem; font-weight: 800; color: var(--brand); }
.msg-row.own .bubble-author { color: var(--accent-dark); }
.bubble-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.5; }
.bubble-time { text-align: end; font-size: .68rem; color: var(--muted); margin-top: 2px; }

/* Composer */
.composer {
    display: flex; align-items: flex-end; gap: 8px; margin-top: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 6px 6px 6px 14px;
    box-shadow: var(--shadow-sm);
}
.composer textarea {
    flex: 1; border: none; outline: none; resize: none; background: transparent;
    font-family: inherit; font-size: 1rem; line-height: 1.5; padding: 8px 0; max-height: 140px; color: var(--ink);
}
.composer-send {
    flex-shrink: 0; width: 42px; height: 42px; border: none; border-radius: 50%; cursor: pointer;
    background: var(--grad-brand); color: #fff; font-size: 1.1rem; line-height: 1;
    box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .7); transition: filter .15s, transform .15s;
}
.composer-send:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* --- Sidebar --- */
.lead-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 82px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.contact-top { display: flex; align-items: center; gap: 12px; }
.lead-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; background: var(--grad-brand); color: #fff;
    font-weight: 900; font-size: 1.4rem; text-transform: uppercase;
}
.contact-name { font-weight: 800; font-size: 1.15rem; margin-bottom: 3px; }
.contact-cta {
    display: block; text-align: center; margin: 16px 0 6px; padding: 11px;
    background: var(--grad-accent); color: #fff !important; border-radius: 12px; font-weight: 800;
    box-shadow: 0 8px 18px -10px rgba(16, 185, 129, .8);
}
.contact-cta:hover { filter: brightness(1.05); }
.contact-rows { margin: 10px 0 0; padding: 0; }
.contact-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.contact-rows dt { color: var(--muted); font-size: .82rem; font-weight: 600; margin: 0; }
.contact-rows dd { margin: 0; text-align: end; color: var(--ink-soft); font-weight: 600; overflow-wrap: anywhere; }

.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }
.side-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.side-form { display: flex; gap: 8px; align-items: center; }
.side-form select { flex: 1; }

@media (max-width: 980px) {
    .lead-layout { grid-template-columns: 1fr; }
    .lead-side { position: static; order: -1; }
    .msg-row { max-width: 92%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .product-card { grid-template-columns: 1fr; }
    .product-side { align-items: stretch; text-align: center; border-top: 1px solid var(--line); padding-top: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .hero-stats { gap: 26px; }
    .nav-links .hide-sm { display: none; }
}
