/* ============================================================
   LeadRadar — vibrant modern theme (Bootstrap 5 + custom)
   ============================================================ */

:root {
    --lr-primary: #4f46e5;        /* indigo */
    --lr-primary-dark: #4338ca;
    --lr-violet: #7c3aed;
    --lr-accent: #10b981;         /* emerald */
    --lr-amber: #f59e0b;
    --lr-pink: #ec4899;
    --lr-cyan: #06b6d4;
    --lr-ink: #0f172a;
    --lr-soft: #f1f5f9;
    --lr-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #ec4899 120%);
    --lr-grad-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%);
}

body {
    color: #1e293b;
    background-color: #fbfbfe;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .navbar-brand { letter-spacing: -0.02em; }

[x-cloak] { display: none !important; }

/* ----- Buttons ----- */
.btn-primary {
    --bs-btn-bg: var(--lr-primary);
    --bs-btn-border-color: var(--lr-primary);
    --bs-btn-hover-bg: var(--lr-primary-dark);
    --bs-btn-hover-border-color: var(--lr-primary-dark);
    --bs-btn-active-bg: var(--lr-primary-dark);
    box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.btn-outline-primary {
    --bs-btn-color: var(--lr-primary);
    --bs-btn-border-color: var(--lr-primary);
    --bs-btn-hover-bg: var(--lr-primary);
    --bs-btn-hover-border-color: var(--lr-primary);
    --bs-btn-active-bg: var(--lr-primary);
}
.btn-gradient {
    background: var(--lr-grad);
    color: #fff !important;
    border: none;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124, 58, 237, .45); }
.text-primary { color: var(--lr-primary) !important; }
.text-gradient {
    background: var(--lr-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----- Navbar ----- */
.navbar {
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(255, 255, 255, .85) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
}
.navbar-brand { font-size: 1.35rem; }
.navbar-brand i { color: var(--lr-violet); }
.brand-text { font-weight: 800; font-size: 1.3rem; color: var(--lr-ink); letter-spacing: -0.03em; }
.brand-accent {
    background: var(--lr-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar .nav-link { font-weight: 500; color: #475569; }
.navbar .nav-link:hover { color: var(--lr-primary); }

/* ----- Hero ----- */
.hero-section {
    position: relative;
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(236, 72, 153, .18), transparent 60%),
        radial-gradient(800px 420px at 0% 10%, rgba(79, 70, 229, .16), transparent 55%),
        var(--lr-grad-soft);
    overflow: hidden;
}
.hero-section .badge { font-weight: 600; }
.hero-card {
    background: #ffffff;
    border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(79, 70, 229, .18) !important;
}
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
}
.chat-bubble.incoming { background: var(--lr-soft); border-bottom-left-radius: 4px; }
.chat-bubble.outgoing {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

/* ----- Section tints ----- */
.bg-light { background: #f6f7fb !important; }
section { position: relative; }

/* ----- Feature cards ----- */
.feature-card {
    transition: transform .18s ease, box-shadow .18s ease;
    border-radius: 18px !important;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12) !important; }
.feature-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--lr-grad);
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 10px 22px rgba(124, 58, 237, .28);
}
/* Varied icon colors per card */
.row > div:nth-child(6n+1) .feature-icon { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.row > div:nth-child(6n+2) .feature-icon { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 10px 22px rgba(16,185,129,.28); }
.row > div:nth-child(6n+3) .feature-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 10px 22px rgba(245,158,11,.28); }
.row > div:nth-child(6n+4) .feature-icon { background: linear-gradient(135deg, #ec4899, #f472b6); box-shadow: 0 10px 22px rgba(236,72,153,.28); }
.row > div:nth-child(6n+5) .feature-icon { background: linear-gradient(135deg, #06b6d4, #22d3ee); box-shadow: 0 10px 22px rgba(6,182,212,.28); }
.row > div:nth-child(6n+6) .feature-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 10px 22px rgba(124,58,237,.28); }

/* ----- Use cases ----- */
.use-case {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.use-case:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 30px rgba(15,23,42,.10); }
.use-case-icon {
    width: 46px; height: 46px; flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 13px; background: #eef2ff; color: var(--lr-primary);
    font-size: 1.3rem;
}
.row > div:nth-child(6n+2) .use-case-icon { background: #ecfdf5; color: var(--lr-accent); }
.row > div:nth-child(6n+3) .use-case-icon { background: #fff7ed; color: var(--lr-amber); }
.row > div:nth-child(6n+4) .use-case-icon { background: #fdf2f8; color: var(--lr-pink); }
.row > div:nth-child(6n+5) .use-case-icon { background: #ecfeff; color: var(--lr-cyan); }
.row > div:nth-child(6n+6) .use-case-icon { background: #f5f3ff; color: var(--lr-violet); }

/* ----- Steps ----- */
.step-circle {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--lr-grad); color: #fff; font-weight: 700; font-size: 1.3rem;
    box-shadow: 0 10px 24px rgba(124, 58, 237, .3);
}

/* ----- Pricing ----- */
.pricing-card {
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative; border-radius: 20px !important; overflow: hidden;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15,23,42,.12) !important; }
.pricing-card.popular {
    border: 2px solid transparent !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--lr-grad) border-box;
}
.ribbon {
    position: absolute; top: 16px; right: -36px;
    background: var(--lr-grad); color: #fff;
    padding: 5px 42px; transform: rotate(45deg);
    font-size: .72rem; font-weight: 700; letter-spacing: .3px;
    box-shadow: 0 6px 14px rgba(124,58,237,.35);
}
.plan-select { cursor: pointer; }
.plan-select:has(input:checked) {
    border: 2px solid transparent !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--lr-grad) border-box;
}

/* ----- CTA ----- */
.cta-band {
    background: var(--lr-grad);
    box-shadow: 0 22px 50px rgba(124, 58, 237, .35);
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 200px at 90% 0%, rgba(255,255,255,.25), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }

/* ----- Onboarding steps ----- */
.onboarding-steps .step {
    flex: 1; text-align: center; font-size: .9rem; color: #94a3b8;
    padding-bottom: 8px; border-bottom: 3px solid #e2e8f0;
}
.onboarding-steps .step.active { color: var(--lr-primary); border-bottom-color: var(--lr-primary); font-weight: 600; }
.onboarding-steps .step.done { color: var(--lr-accent); border-bottom-color: var(--lr-accent); }

/* ----- Auth / onboarding cards ----- */
.card { border-radius: 16px; }

/* ----- App shell (persistent sidebar layout) ----- */
.app-sidebar { width: 232px; flex: 0 0 232px; }
.app-main { min-width: 0; }

/* ----- Dashboard ----- */
.dashboard-sidebar {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    min-height: calc(100vh - 56px);
}
.dashboard-sidebar .navbar-brand,
.dashboard-sidebar .fw-bold { color: #fff !important; }
.sidebar-link { color: #c7d2fe; border-radius: 10px; padding: .6rem .8rem; margin-bottom: 3px; transition: background .12s ease; }
.sidebar-link:hover { background: rgba(99, 102, 241, .25); color: #fff; }
.sidebar-link.active { background: var(--lr-grad); color: #fff; box-shadow: 0 8px 18px rgba(124,58,237,.4); }

.dashboard-header {
    background: var(--lr-grad);
    color: #fff; border-radius: 18px;
    box-shadow: 0 16px 38px rgba(124, 58, 237, .28);
}
.dashboard-header .badge { background: rgba(255,255,255,.22) !important; color: #fff !important; }

/* Colorful stat cards */
.stat-card { border-radius: 16px !important; border: none !important; color: #fff; overflow: hidden; position: relative; }
.stat-card .stat-label { opacity: .9; font-size: .85rem; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-card i.stat-bg { position: absolute; right: -6px; bottom: -10px; font-size: 4.2rem; opacity: .18; }
.stat-indigo { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.stat-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.stat-amber  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.stat-pink   { background: linear-gradient(135deg, #ec4899, #f472b6); }

/* Accordion */
.accordion-item { border-radius: 14px !important; }
.accordion-button { border-radius: 14px !important; font-weight: 600; }
.accordion-button:not(.collapsed) { background: #eef2ff; color: var(--lr-primary-dark); }
.accordion-button:focus { box-shadow: none; }

/* ----- Section eyebrow label ----- */
.eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: 1.5px;
    color: var(--lr-primary);
    background: #eef2ff;
    padding: 4px 12px; border-radius: 999px;
}

/* ----- Bigger hero title ----- */
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }

/* ----- Hero visual + floating chips ----- */
.hero-visual { padding: 10px; }
.float-chip {
    position: absolute;
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 14px; padding: 10px 14px;
    font-size: .85rem; color: #1e293b;
    border: 1px solid #eef2f7;
    animation: floaty 4s ease-in-out infinite;
}
.float-chip i { font-size: 1.3rem; }
.float-chip.chip-leads { top: 8px; left: -14px; }
.float-chip.chip-leads i { color: var(--lr-accent); }
.float-chip.chip-reply { bottom: 14px; right: -10px; animation-delay: 1.5s; }
.float-chip.chip-reply i { color: var(--lr-amber); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 575px) { .float-chip { display: none; } }

/* ----- Trust strip ----- */
.trust-strip .col {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: #94a3b8; font-weight: 600; font-size: .9rem;
    transition: color .15s ease;
}
.trust-strip .col i { font-size: 1.6rem; }
.trust-strip .col:hover { color: var(--lr-primary); }

/* ----- Stats band ----- */
.stats-band { background: var(--lr-grad); position: relative; overflow: hidden; }
.stats-band::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 85% 0%, rgba(255,255,255,.18), transparent 60%);
}
.stats-band .container { position: relative; z-index: 1; }
.stat-number { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }

/* ----- Testimonials ----- */
.testimonial-card { border-radius: 18px !important; transition: transform .18s ease, box-shadow .18s ease; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.12) !important; }
.testimonial-card p { color: #334155; }
.avatar {
    width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .9rem; flex: 0 0 46px;
}

/* Footer */
footer.bg-dark { background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%) !important; }

/* ----- Impersonation banner ----- */
.impersonation-banner {
    background: linear-gradient(90deg, #b45309, #f59e0b);
    color: #fff; font-size: .9rem; font-weight: 500;
}
.impersonation-banner .alert-link { color: #fff; text-decoration: underline; }

/* ----- Platform admin layout ----- */
.admin-body { background: #f6f7fb; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; flex: 0 0 250px;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    color: #c7d2fe; padding-bottom: 1rem; position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.admin-brand { color: #fff; font-weight: 800; font-size: 1.2rem; padding: 1.1rem 1.25rem; }
.admin-link { color: #c7d2fe; border-radius: 10px; padding: .55rem .8rem; margin: 2px 0; font-weight: 500; }
.admin-link:hover { background: rgba(99,102,241,.25); color: #fff; }
.admin-link.active { background: var(--lr-grad); color: #fff; box-shadow: 0 8px 18px rgba(124,58,237,.35); }
.admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; padding: .9rem 1.5rem; border-bottom: 1px solid #e9edf5; }
.admin-content { padding: 1.5rem; }
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; flex-basis: auto; height: auto; position: static; }
}
