/* ============================================================
   THEME: FINANCE (HiveFinance)
   Inclui estilos da landing page (index) e da página de request (create).
   Carregado via @push('head-links') nas views de hive_finance.
   ============================================================ */

/* ── Variáveis do tema ───────────────────────────────────────
   Consolidado de .hf (index) e .hf-request (create)
   ──────────────────────────────────────────────────────────── */

.hf,
.hf-request {
    --hf-primary:          #687bea;
    --hf-primary-dark:     #4f63d2;
    --hf-primary-deep:     #3145b2;
    --hf-primary-darker:   #3a4dba;
    --hf-primary-light:    #eef0fd;
    --hf-primary-soft:     #f4f5ff;
    --hf-primary-contrast: #1a1f4e;
    --hf-text:             #1e293b;
    --hf-muted:            #64748b;
    --hf-border:           #e2e8f0;
    --hf-bg-soft:          #f8faff;
    --hf-shadow:           0 4px 24px rgba(104, 123, 234, 0.10);
    --hf-shadow-lg:        0 12px 48px rgba(104, 123, 234, 0.16);
    --hf-radius:           0.5rem;
    --hf-radius-sm:        0.5rem;
}

/* ── Base ────────────────────────────────────────────────────── */

.hf { color: var(--hf-text); }
.hf section { width: 100%; }
.hf .container { max-width: 1140px; }

/* ── Typography ──────────────────────────────────────────────── */

.hf-display {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--hf-text);
}

.hf-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hf-text);
}

.hf-section-title {
    color: var(--hf-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hf-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--hf-muted);
}

.hf-hero-subtitle {
    max-width: 520px;
}

.hf-muted { color: var(--hf-muted); }

.hf-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hf-primary);
    margin-bottom: 0.75rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
}

.hf-btn-primary {
    background: var(--hf-primary);
    color: #fff;
    border-color: var(--hf-primary);
    box-shadow: 0 4px 16px rgba(104, 123, 234, 0.3);
}

.hf-btn-primary:hover {
    background: var(--hf-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(104, 123, 234, 0.35);
}

.hf-btn-ghost,
.hf-btn-outline-secondary {
    background: transparent;
    color: var(--hf-primary);
    border: 2px solid var(--hf-primary-light);
}

.hf-btn-ghost:hover,
.hf-btn-outline-secondary:hover {
    background: var(--hf-primary-light);
    border-color: var(--hf-primary);
    color: var(--hf-primary-dark);
    transform: translateY(-1px);
}

.hf-btn-white {
    padding: 0.875rem 2rem;
    background: #fff;
    color: var(--hf-primary-dark);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.hf-btn-white:hover {
    color: var(--hf-primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

/* ── Navbar ──────────────────────────────────────────────────── */

.hf-nav { border-bottom: 1px solid var(--hf-border); }

.hf-nav .nav-link {
    color: var(--hf-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
    padding: 0.5rem 0;
}

.hf-nav .nav-link:hover { color: var(--hf-primary); }

/* ── Hero ────────────────────────────────────────────────────── */

.hf-hero {
    background: linear-gradient(150deg, #f0f3ff 0%, #f8faff 50%, #ffffff 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hf-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104, 123, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: var(--hf-primary-light);
    color: var(--hf-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hf-hero-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hf-primary);
}

.hf-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.hf-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: #fff;
    border: 1.5px solid var(--hf-border);
    color: var(--hf-muted);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.hf-hero-chip svg { color: var(--hf-primary); }

/* ── Hero mockup card ────────────────────────────────────────── */

.hf-mockup-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hf-mockup-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: var(--hf-shadow-lg);
    padding: 1.75rem;
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--hf-border);
}

.hf-mockup-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hf-border);
}

.hf-mockup-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.hf-mockup-title {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hf-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hf-mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hf-mockup-label {
    font-size: 0.8rem;
    color: var(--hf-muted);
    font-weight: 500;
}

.hf-mockup-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #22c55e;
}

.hf-pill-blue {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--hf-primary-light);
    color: var(--hf-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
}

.hf-progress-wrap { margin-bottom: 1rem; }

.hf-progress-bar-track {
    height: 6px;
    border-radius: 999px;
    background: var(--hf-primary-light);
    overflow: hidden;
    margin-top: 0.35rem;
}

.hf-progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
}

.hf-mockup-partner {
    background: var(--hf-bg-soft);
    border-radius: var(--hf-radius-sm);
    padding: 0.75rem;
    margin-top: 0.75rem;
    border: 1px solid var(--hf-primary-light);
}

.hf-mockup-float {
    position: absolute;
    top: -1rem;
    left: -1.5rem;
    background: #fff;
    border-radius: var(--hf-radius-sm);
    padding: 0.6rem 0.9rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hf-text);
    border: 1px solid var(--hf-border);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hf-mockup-float-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* ── Trust bar ────────────────────────────────────────────────── */

.hf-trust {
    border-bottom: 1px solid var(--hf-border);
    padding: 2.5rem 0;
}

.hf-trust-stat {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--hf-primary);
    line-height: 1;
}

.hf-trust-label {
    font-size: 0.85rem;
    color: var(--hf-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}

.hf-trust-divider {
    width: 1px;
    background: var(--hf-border);
    align-self: stretch;
}

/* ── Solutions ────────────────────────────────────────────────── */

.hf-solutions { padding: 5rem 0; background: var(--hf-bg-soft); }

.hf-sol-card {
    background: #fff;
    border-radius: var(--hf-radius);
    padding: 2rem;
    border: 1.5px solid var(--hf-border);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.hf-sol-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hf-shadow-lg);
    border-color: var(--hf-primary-light);
}

.hf-sol-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--hf-radius-sm);
    background: var(--hf-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.hf-sol-icon svg { color: var(--hf-primary); }

.hf-sol-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hf-text);
    margin-bottom: 0.6rem;
}

.hf-sol-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--hf-muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.hf-sol-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hf-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.15s;
}

.hf-sol-link:hover { color: var(--hf-primary-dark); gap: 0.5rem; }

/* ── How it works ─────────────────────────────────────────────── */

.hf-how { padding: 5rem 0; background: #fff; }

.hf-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--hf-primary-light);
    color: var(--hf-primary-dark);
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}

.hf-step-col {
    position: relative;
    text-align: center;
}

.hf-step-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    height: 2px;
    border-top: 2px dashed var(--hf-primary-light);
}

.hf-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hf-text);
    margin-bottom: 0.5rem;
}

.hf-step-desc { font-size: 0.88rem; color: var(--hf-muted); line-height: 1.6; }

/* ── Differentials ────────────────────────────────────────────── */

.hf-diff { padding: 5rem 0; background: var(--hf-primary-soft); }

.hf-diff-card {
    background: #fff;
    border-radius: var(--hf-radius-sm);
    padding: 1.5rem;
    border: 1.5px solid var(--hf-border);
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hf-diff-card:hover {
    box-shadow: var(--hf-shadow);
    border-color: var(--hf-primary-light);
}

.hf-diff-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--hf-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hf-diff-icon svg { color: var(--hf-primary); }
.hf-diff-title { font-size: 0.95rem; font-weight: 700; color: var(--hf-text); margin-bottom: 0.25rem; }
.hf-diff-desc  { font-size: 0.83rem; color: var(--hf-muted); line-height: 1.55; margin: 0; }

/* ── CTA Band ─────────────────────────────────────────────────── */

.hf-cta-band {
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
    padding: 4.5rem 0;
}

.hf-cta-band-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.hf-cta-band-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

/* ── FAQ ──────────────────────────────────────────────────────── */

.hf-faq { padding: 5rem 0; background: #fff; }

.hf-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hf-text);
    background: #fff;
    box-shadow: none;
    padding: 1.1rem 1.25rem;
}

.hf-accordion .accordion-button:not(.collapsed) {
    color: var(--hf-primary-dark);
    background: var(--hf-primary-soft);
}

.hf-accordion .accordion-button::after,
.hf-accordion .accordion-button:not(.collapsed)::after { filter: none; background-size: 14px; }

.hf-accordion .accordion-item {
    border: 1.5px solid var(--hf-border);
    border-radius: var(--hf-radius-sm) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.hf-accordion .accordion-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--hf-muted);
    padding: 0 1.25rem 1.25rem;
}

/* ── Disclaimer ───────────────────────────────────────────────── */

.hf-disclaimer {
    background: var(--hf-bg-soft);
    border-top: 1px solid var(--hf-border);
    padding: 2rem 0;
}

.hf-disclaimer-text {
    font-size: 0.8rem;
    max-width: 680px;
    margin: 0 auto;
}

/* ── Mel teaser (finance landing) ────────────────────────────── */

.hf-mel-teaser-section {
    background: #f8faff;
    border-top: 1px solid rgba(104, 123, 234, 0.14);
    border-bottom: 1px solid rgba(104, 123, 234, 0.14);
}

.hf-mel-teaser-badge {
    background: rgba(104, 123, 234, 0.14);
    color: var(--hf-primary-dark);
}

.hf-mel-teaser-description {
    font-size: 1.03rem;
    line-height: 1.65;
    max-width: 450px;
}

.hf-mel-teaser-point {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--hf-primary-dark);
    font-size: 1rem;
    line-height: 1;
}

.hf-mel-teaser-card {
    background: linear-gradient(160deg, #ffffff 0%, #f4f7ff 100%);
    border: 1px solid rgba(104, 123, 234, 0.28);
    border-radius: 1.25rem;
}

.hf-mel-teaser-name {
    color: var(--hf-primary-deep);
    font-size: 0.95rem;
}

.hf-mel-teaser-bubble {
    background: #f2f6ff;
    border: 1px solid rgba(104, 123, 234, 0.24);
    color: #24316d;
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hf-mel-teaser-legend {
    color: #4e5a8f;
}

.hf-mel-teaser-reply {
    border-color: rgba(49, 69, 178, 0.25);
    color: #253278;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.hf-mel-teaser-reply:hover {
    border-color: rgba(49, 69, 178, 0.45);
    background: #fff;
    color: #1d275f;
}

.hf-mel-teaser-reply[aria-pressed="true"] {
    background: var(--hf-primary);
    border-color: var(--hf-primary);
    color: #fff;
    font-weight: 600;
}

.hf-mel-teaser-cta-btn {
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-deep) 100%);
    color: #fff;
    border: 1px solid rgba(49, 69, 178, 0.25);
    font-weight: 700;
}

.hf-mel-teaser-cta-btn:hover {
    background: linear-gradient(135deg, var(--hf-primary-dark) 0%, var(--hf-primary-deep) 100%);
    color: #fff;
}

.hf-consultor-entry-card {
    border: 1px solid rgba(104, 123, 234, 0.24);
    border-radius: 1rem;
}

.hf-consultor-entry-actions .btn,
.hf-consultor-entry-actions .btn-link {
    min-height: 3rem;
}

/* ── Request page (create) ────────────────────────────────────── */

.hf-request-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #f4f7ff 0%, #fbfcff 36%, #ffffff 100%);
}

.hf-request-hero { padding: 3.5rem 0 2rem; }

.hf-request-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--hf-primary-light);
    color: var(--hf-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hf-request-card,
.hf-request-sidecard {
    border: 1px solid var(--hf-border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 40px rgba(104, 123, 234, 0.10);
}

.hf-request-card    { padding: 0; overflow: hidden; }
.hf-request-sidecard { padding: 1.5rem; }

.hf-request-title { color: var(--hf-text); font-weight: 800; letter-spacing: -0.03em; }

.hf-request-subtitle,
.hf-request-list,
.hf-request-disclaimer { color: var(--hf-muted); }

.hf-request-subtitle-wide {
    max-width: 47.5rem;
}

.hf-request .form-label { font-weight: 600; color: var(--hf-text); }

.hf-request .form-control,
.hf-request .form-select,
.hf-request .form-check-input { border-color: var(--hf-border); }

.hf-request .form-control:focus,
.hf-request .form-select:focus,
.hf-request .form-check-input:focus {
    border-color: var(--hf-primary);
    box-shadow: 0 0 0 0.2rem rgba(104, 123, 234, 0.15);
}

.hf-request-submit {
    border: none;
    border-radius: 999px;
    background: var(--hf-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
}

.hf-request-submit:hover { background: var(--hf-primary-dark); color: #fff; }

.hf-request-list { padding-left: 1.1rem; margin-bottom: 0; }
.hf-request-list li + li { margin-top: 0.85rem; }

/* ── Plans page ──────────────────────────────────────────────── */

.hf-plan-card {
    padding: 2rem;
}

.hf-plan-name {
    color: var(--hf-primary-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hf-plan-benefits-title {
    color: var(--hf-text);
    font-weight: 700;
}

.hf-plan-benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.hf-plan-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--hf-text);
    margin-bottom: 0.7rem;
}

.hf-plan-benefits-list li::before {
    content: '\2713';
    color: var(--hf-primary);
    font-weight: 700;
    line-height: 1.2;
}

.hf-plan-cta {
    width: 100%;
    justify-content: center;
}

.hf-plan-checkout-hint {
    color: var(--hf-muted);
    font-size: 0.9rem;
}

/* ── Pre-lead form component ──────────────────────────────────── */

.hf-prelead-card {
    padding: 1.75rem;
    background:
        radial-gradient(circle at top left, rgba(104, 123, 234, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.hf-prelead-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
}

.hf-prelead-glow-top {
    width: 10rem; height: 10rem;
    top: -3rem; right: -2rem;
    background: rgba(104, 123, 234, 0.14);
}

.hf-prelead-glow-bottom {
    width: 12rem; height: 12rem;
    bottom: -6rem; left: -4rem;
    background: rgba(104, 123, 234, 0.08);
}

.hf-prelead-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(104, 123, 234, 0.16), rgba(104, 123, 234, 0.04));
    border: 1px solid rgba(104, 123, 234, 0.2);
}

.hf-prelead-kicker {
    color: var(--hf-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hf-prelead-title { color: var(--hf-text); font-weight: 800; letter-spacing: -0.03em; }

.hf-prelead-subtitle,
.hf-prelead-support-copy,
.hf-prelead-note,
.hf-prelead-trust-copy { color: var(--hf-muted); }

.hf-prelead-form .form-control {
    min-height: 3.5rem;
    border-radius: 1rem;
    padding-inline: 1rem;
}

.hf-prelead-submit {
    min-height: 3.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-deep) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 20px 38px rgba(104, 123, 234, 0.26);
}

.hf-prelead-submit:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--hf-primary-dark) 0%, var(--hf-primary-deep) 100%);
}

.hf-prelead-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hf-prelead-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(104, 123, 234, 0.06);
    border: 1px solid rgba(104, 123, 234, 0.12);
    color: var(--hf-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.hf-prelead-success {
    border: 1px solid rgba(104, 123, 234, 0.2);
    background: rgba(104, 123, 234, 0.08);
    color: var(--hf-primary-deep);
    border-radius: 1rem;
}

.hf-prelead-chat-wrap {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hf-prelead-chat-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hf-prelead-chat-history {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 220px;
    max-height: 360px;
    overflow-y: auto;
    background: #f7f9ff;
    border: 1px solid rgba(104, 123, 234, 0.14);
    border-radius: 0.85rem;
    padding: 0.9rem;
}

.hf-prelead-chat-message {
    max-width: min(85%, 34rem);
    border-radius: 0.85rem;
    padding: 0.6rem 0.8rem;
    line-height: 1.45;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.hf-prelead-chat-message-ai {
    margin-right: auto;
    background: rgba(104, 123, 234, 0.12);
    color: var(--hf-primary-deep);
}

.hf-prelead-chat-message-user {
    margin-left: auto;
    background: #fff;
    border: 1px solid rgba(104, 123, 234, 0.22);
    color: var(--hf-text);
}

.hf-prelead-chat-send {
    background: var(--hf-primary);
    border-color: var(--hf-primary);
    color: #fff;
}

.hf-prelead-chat-send:hover,
.hf-prelead-chat-send:focus {
    background: var(--hf-primary-dark);
    border-color: var(--hf-primary-dark);
    color: #fff;
}

/* ── Hero chat preview (landing) ─────────────────────────────── */

.hf-hero-chat-preview {
    background: #fff;
    border: 1px solid var(--hf-border);
    border-radius: 1.25rem;
    box-shadow: var(--hf-shadow-lg);
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
}

.hf-hero-chat-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--hf-border);
    background: var(--hf-bg-soft);
}

.hf-hero-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hf-primary-light);
}

.hf-hero-chat-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hf-text);
}

.hf-hero-chat-role {
    font-size: 0.78rem;
    color: var(--hf-muted);
}

.hf-hero-chat-bubble {
    background: var(--hf-primary-soft);
    border-radius: 1rem;
    margin: 1.25rem 1.5rem 0.75rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--hf-primary-deep);
    border: 1px solid rgba(104, 123, 234, 0.16);
}

.hf-hero-chat-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.hf-hero-chat-reply {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hf-primary-dark);
    background: rgba(104, 123, 234, 0.07);
    border: 1.5px solid rgba(104, 123, 234, 0.2);
    border-radius: 999px;
}

.hf-hero-chat-cta {
    display: inline-flex;
    justify-content: center;
    width: calc(100% - 3rem);
    margin: 1.25rem 1.5rem 1.5rem;
}

/* ── Triage chat component (create page) ─────────────────────── */

.hf-triage-card {
    padding: 1.75rem;
}

.hf-triage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hf-triage-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(104, 123, 234, 0.08);
    border: 1px solid rgba(104, 123, 234, 0.2);
    flex-shrink: 0;
}

.hf-triage-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hf-triage-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hf-text);
    letter-spacing: -0.02em;
    margin: 0;
}

.hf-triage-history {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 240px;
    max-height: 420px;
    overflow-y: auto;
    background: #f7f9ff;
    border: 1px solid rgba(104, 123, 234, 0.14);
    border-radius: 0.85rem;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
}

.hf-triage-message {
    max-width: min(85%, 34rem);
    border-radius: 0.85rem;
    padding: 0.6rem 0.9rem;
    line-height: 1.45;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.hf-triage-message-assistant {
    margin-right: auto;
    background: rgba(104, 123, 234, 0.12);
    color: var(--hf-primary-deep);
}

.hf-triage-message-user {
    margin-left: auto;
    background: #fff;
    border: 1px solid rgba(104, 123, 234, 0.22);
    color: var(--hf-text);
}

.hf-triage-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.hf-triage-reply {
    display: inline-block;
    cursor: pointer;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hf-primary-dark);
    background: rgba(104, 123, 234, 0.07);
    border: 1.5px solid rgba(104, 123, 234, 0.22);
    border-radius: 999px;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.hf-triage-reply:hover {
    border-color: var(--hf-primary);
    background: rgba(104, 123, 234, 0.12);
    color: var(--hf-primary-deep);
}

.hf-triage-input-wrap {
    display: flex;
    gap: 0.5rem;
}

.hf-triage-input-wrap .form-control {
    border-radius: 0.85rem;
    min-height: 3.25rem;
}

.hf-triage-submit {
    min-height: 3.25rem;
    padding: 0 1.25rem;
    border: none;
    border-radius: 0.85rem;
    background: var(--hf-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.hf-triage-submit:hover { background: var(--hf-primary-dark); }

.hf-triage-consultant-card {
    background: var(--hf-primary-soft);
    border: 1px solid rgba(104, 123, 234, 0.22);
    border-radius: 1rem;
    padding: 1.25rem;
    width: 100%;
}

.hf-triage-consultant-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hf-triage-consultant-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hf-primary-light);
    flex-shrink: 0;
}

.hf-triage-consultant-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--hf-primary);
    margin-bottom: 0.2rem;
}

.hf-triage-consultant-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hf-text);
    margin: 0 0 0.2rem;
}

.hf-triage-consultant-specialty {
    font-size: 0.83rem;
    color: var(--hf-muted);
    margin: 0;
}

.hf-triage-consultant-description {
    font-size: 0.88rem;
    color: var(--hf-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.hf-triage-consultant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* ── Create page subtitle width ──────────────────────────────── */

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991px) {
    .hf-hero { padding: 3.5rem 0 3rem; }
    .hf-hero-chat-preview { max-width: 100%; margin-top: 2rem; }
    .hf-step-col:not(:last-child)::after { display: none; }
}

@media (max-width: 767.98px) {
    .hf-hero-chips { gap: 0.4rem; }
    .hf-trust { padding: 1.5rem 0; }
    .hf-trust-divider { display: none; }
    .hf-solutions, .hf-how, .hf-diff, .hf-faq { padding: 3.5rem 0; }
    .hf-cta-band { padding: 3rem 0; }
    .hf-request-hero { padding-top: 2.5rem; }
    .hf-triage-card { padding: 1.25rem; }
    .hf-triage-consultant-actions .btn,
    .hf-triage-consultant-actions .hf-btn-primary,
    .hf-triage-consultant-actions .hf-btn-ghost,
    .hf-triage-consultant-actions .hf-btn-outline-secondary { width: 100%; justify-content: center; }
    .hf-consultor-entry-actions .btn { width: 100%; }
}
