/* ============================================================
   Vendor Success Center — premium, Apple/Stripe-inspired UI.
   Uses the b2b design tokens (--b2b-*) with safe fallbacks.
   Loaded only on Vendor Success pages via Theme::asset().
   ============================================================ */

.vsc {
    --vsc-primary: var(--b2b-secondary, #10b981);
    --vsc-primary-strong: color-mix(in srgb, var(--vsc-primary) 82%, #000);
    --vsc-ink: var(--b2b-heading, #0f172a);
    --vsc-text: var(--b2b-text, #334155);
    --vsc-muted: var(--b2b-muted, #64748b);
    --vsc-border: var(--b2b-border, #e6e8ec);
    --vsc-surface: var(--b2b-surface, #ffffff);
    --vsc-bg: #f7f8fb;
    --vsc-radius: 20px;
    --vsc-shadow: 0 10px 40px -18px rgba(15, 23, 42, .28);
    color: var(--vsc-text);
}

.vsc .container { max-width: 1200px; }

/* ---------- Buttons ---------- */
.vsc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: .96rem;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.vsc-btn .material-symbols-outlined { font-size: 20px; }
.vsc-btn--primary { background: var(--vsc-primary); color: #fff; box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--vsc-primary) 70%, transparent); }
.vsc-btn--primary:hover { background: var(--vsc-primary-strong); color: #fff; transform: translateY(-2px); }
.vsc-btn--ghost { background: color-mix(in srgb, var(--vsc-primary) 8%, transparent); color: var(--vsc-ink); border-color: var(--vsc-border); }
.vsc-btn--ghost:hover { border-color: var(--vsc-primary); color: var(--vsc-primary); transform: translateY(-2px); }
.vsc-btn--block { width: 100%; }

/* ---------- Hero ---------- */
.vsc-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 96px 0 84px;
    background:
        radial-gradient(1100px 460px at 50% -8%, color-mix(in srgb, var(--vsc-primary) 16%, transparent), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, var(--vsc-bg) 100%);
}
.vsc-hero__eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; font-size: .72rem; color: var(--vsc-primary);
    background: color-mix(in srgb, var(--vsc-primary) 12%, transparent); margin-bottom: 20px;
}
.vsc-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.08; font-weight: 800; color: var(--vsc-ink); margin: 0 auto 18px; max-width: 15ch; }
.vsc-hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--vsc-muted); max-width: 60ch; margin: 0 auto 34px; }
.vsc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 34px; }
.vsc-hero__trust { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; color: var(--vsc-muted); font-size: .92rem; }
.vsc-hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.vsc-hero__trust .material-symbols-outlined { font-size: 20px; color: var(--vsc-primary); }

/* ---------- Sections ---------- */
.vsc-section { padding: 72px 0; }
.vsc-section--alt { background: var(--vsc-bg); }
.vsc-section__head { text-align: center; max-width: 60ch; margin: 0 auto 42px; }
.vsc-section__head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--vsc-ink); margin: 0 0 10px; }
.vsc-section__head p { color: var(--vsc-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Category filter ---------- */
.vsc-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.vsc-chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--vsc-border); background: var(--vsc-surface);
    color: var(--vsc-text); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .18s ease;
}
.vsc-chip:hover { border-color: var(--vsc-primary); color: var(--vsc-primary); }
.vsc-chip.is-active { background: var(--vsc-primary); border-color: var(--vsc-primary); color: #fff; }

/* ---------- Cards grid (glass) ---------- */
.vsc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.vsc-card {
    display: flex; flex-direction: column; padding: 26px; border-radius: var(--vsc-radius);
    background: color-mix(in srgb, var(--vsc-surface) 88%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--vsc-border); box-shadow: var(--vsc-shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vsc-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--vsc-primary) 45%, var(--vsc-border)); box-shadow: 0 22px 50px -22px rgba(15,23,42,.35); }
.vsc-card.is-hidden { display: none; }
.vsc-card__icon {
    display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
    background: color-mix(in srgb, var(--vsc-primary) 12%, transparent); color: var(--vsc-primary);
}
.vsc-card__icon .material-symbols-outlined { font-size: 30px; }
.vsc-card__icon--lg { width: 72px; height: 72px; border-radius: 20px; }
.vsc-card__icon--lg .material-symbols-outlined { font-size: 40px; }
.vsc-card__title { font-size: 1.18rem; font-weight: 700; color: var(--vsc-ink); margin: 0 0 8px; }
.vsc-card__subtitle { color: var(--vsc-muted); font-size: .95rem; margin: 0 0 16px; }
.vsc-card__features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.vsc-card__features li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--vsc-text); }
.vsc-card__features .material-symbols-outlined { font-size: 18px; color: var(--vsc-primary); }
.vsc-card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--vsc-primary); text-decoration: none; }
.vsc-card__cta .material-symbols-outlined { font-size: 19px; transition: transform .18s ease; }
.vsc-card:hover .vsc-card__cta .material-symbols-outlined { transform: translateX(4px); }

/* ---------- Roadmap ---------- */
.vsc-roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.vsc-roadmap__step { position: relative; text-align: center; }
.vsc-roadmap__marker {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
    background: var(--vsc-surface); border: 2px solid color-mix(in srgb, var(--vsc-primary) 40%, var(--vsc-border));
    color: var(--vsc-primary); box-shadow: var(--vsc-shadow);
}
.vsc-roadmap__marker .material-symbols-outlined { font-size: 30px; }
.vsc-roadmap__num {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .78rem; font-weight: 700;
    background: var(--vsc-primary); color: #fff; margin-bottom: 8px;
}
.vsc-roadmap__body h4 { font-size: 1.02rem; font-weight: 700; color: var(--vsc-ink); margin: 0 0 6px; }
.vsc-roadmap__body p { font-size: .88rem; color: var(--vsc-muted); margin: 0; }
.vsc-roadmap__cta { text-align: center; margin-top: 42px; }

/* ---------- Testimonials ---------- */
.vsc-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.vsc-testimonial { margin: 0; padding: 28px; border-radius: var(--vsc-radius); background: var(--vsc-surface); border: 1px solid var(--vsc-border); box-shadow: var(--vsc-shadow); }
.vsc-testimonial blockquote { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.6; color: var(--vsc-ink); }
.vsc-testimonial figcaption { display: flex; flex-direction: column; margin-bottom: 16px; }
.vsc-testimonial figcaption strong { color: var(--vsc-ink); }
.vsc-testimonial figcaption span { color: var(--vsc-muted); font-size: .88rem; }
.vsc-testimonial__metrics { display: flex; gap: 20px; border-top: 1px solid var(--vsc-border); padding-top: 16px; }
.vsc-testimonial__metrics span { display: flex; flex-direction: column; font-size: .78rem; color: var(--vsc-muted); }
.vsc-testimonial__metrics em { font-style: normal; font-size: 1.2rem; font-weight: 800; color: var(--vsc-primary); }

/* ---------- FAQ ---------- */
.vsc-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.vsc-faq__item { background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: 14px; overflow: hidden; }
.vsc-faq__item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--vsc-ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vsc-faq__item summary::-webkit-details-marker { display: none; }
.vsc-faq__item summary .material-symbols-outlined { transition: transform .2s ease; color: var(--vsc-muted); }
.vsc-faq__item[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.vsc-faq__answer { padding: 0 20px 20px; color: var(--vsc-text); line-height: 1.6; }

/* ---------- Detail page ---------- */
.vsc-detail__hero { background: linear-gradient(180deg, #fff, var(--vsc-bg)); padding: 44px 0 40px; }
.vsc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--vsc-muted); text-decoration: none; font-weight: 600; margin-bottom: 22px; }
.vsc-back:hover { color: var(--vsc-primary); }
.vsc-back .material-symbols-outlined { font-size: 20px; }
.vsc-detail__head { display: flex; align-items: center; gap: 20px; }
.vsc-detail__head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--vsc-ink); margin: 0 0 6px; }
.vsc-detail__head p { color: var(--vsc-muted); margin: 0; font-size: 1.05rem; }
.vsc-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.vsc-detail__lead { font-size: 1.15rem; color: var(--vsc-ink); line-height: 1.6; }
.vsc-detail__body { color: var(--vsc-text); line-height: 1.7; }
.vsc-detail__subhead { font-size: 1.2rem; font-weight: 700; color: var(--vsc-ink); margin: 28px 0 14px; }
.vsc-detail__features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.vsc-detail__features li { display: flex; align-items: center; gap: 9px; color: var(--vsc-text); }
.vsc-detail__features .material-symbols-outlined { color: var(--vsc-primary); }
.vsc-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.vsc-detail__aside { position: sticky; top: 100px; background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: var(--vsc-radius); padding: 22px; box-shadow: var(--vsc-shadow); }
.vsc-detail__aside h4 { margin: 0 0 14px; color: var(--vsc-ink); }
.vsc-detail__related { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--vsc-text); transition: background .18s ease; }
.vsc-detail__related:hover { background: color-mix(in srgb, var(--vsc-primary) 8%, transparent); color: var(--vsc-primary); }
.vsc-detail__related .material-symbols-outlined { color: var(--vsc-primary); }

/* ---------- Forms ---------- */
.vsc-form-wrap { max-width: 760px; }
.vsc-form-card { background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: var(--vsc-radius); padding: 32px; box-shadow: var(--vsc-shadow); }
.vsc-form-card__head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.vsc-form-card__head h1 { font-size: 1.4rem; font-weight: 800; color: var(--vsc-ink); margin: 0 0 4px; }
.vsc-form-card__head p { color: var(--vsc-muted); margin: 0; font-size: .95rem; }
.vsc-form { display: grid; gap: 16px; }
.vsc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vsc-field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--vsc-ink); }
.vsc-field input, .vsc-field textarea, .vsc-field select {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--vsc-border);
    background: #fff; color: var(--vsc-text); font-size: .95rem; font-weight: 400; transition: border-color .18s ease, box-shadow .18s ease;
}
.vsc-field input:focus, .vsc-field textarea:focus, .vsc-field select:focus {
    outline: none; border-color: var(--vsc-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vsc-primary) 18%, transparent);
}
.vsc-alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.vsc-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.vsc-alert ul { margin: 0; padding-left: 18px; }

/* ---------- Assessment ---------- */
.vsc-assessment__q { border: 0; padding: 0; margin: 0 0 22px; }
.vsc-assessment__q legend { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--vsc-ink); font-size: 1.02rem; margin-bottom: 12px; }
.vsc-assessment__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--vsc-primary) 14%, transparent); color: var(--vsc-primary); font-size: .82rem; font-weight: 700; }
.vsc-assessment__options { display: flex; flex-wrap: wrap; gap: 10px; }
.vsc-assessment__opt { position: relative; }
.vsc-assessment__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vsc-assessment__opt span { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--vsc-border); background: var(--vsc-surface); color: var(--vsc-text); font-size: .92rem; transition: all .16s ease; }
.vsc-assessment__opt input:checked + span { border-color: var(--vsc-primary); background: color-mix(in srgb, var(--vsc-primary) 12%, transparent); color: var(--vsc-primary); font-weight: 600; }
.vsc-assessment__opt input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--vsc-primary) 22%, transparent); }

/* ---------- Assessment result ---------- */
.vsc-result { background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: var(--vsc-radius); padding: 30px; box-shadow: var(--vsc-shadow); margin-bottom: 24px; }
.vsc-result__score { display: flex; align-items: center; gap: 24px; }
.vsc-result__ring { --clr: var(--vsc-primary); width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--clr) calc(var(--vsc-score) * 1%), color-mix(in srgb, var(--clr) 15%, transparent) 0); }
.vsc-result__ring span { width: 88px; height: 88px; border-radius: 50%; background: var(--vsc-surface); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; color: var(--vsc-ink); }
.vsc-result__ring em { font-style: normal; font-size: .8rem; color: var(--vsc-muted); font-weight: 600; }
.vsc-result.is-great .vsc-result__ring { --clr: #16a34a; } .vsc-result.is-good .vsc-result__ring { --clr: #10b981; }
.vsc-result.is-ok .vsc-result__ring { --clr: #f59e0b; } .vsc-result.is-low .vsc-result__ring { --clr: #ef4444; }
.vsc-result__score h1 { font-size: 1.8rem; font-weight: 800; color: var(--vsc-ink); margin: 0 0 4px; }
.vsc-result__score p { color: var(--vsc-muted); margin: 0; }
.vsc-result__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 12px; }
.vsc-result__panel { background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: var(--vsc-radius); padding: 24px; box-shadow: var(--vsc-shadow); }
.vsc-result__panel h3 { margin: 0 0 16px; color: var(--vsc-ink); font-size: 1.1rem; }
.vsc-result__breakdown, .vsc-result__recs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vsc-result__breakdown li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.vsc-result__breakdown .material-symbols-outlined { font-size: 20px; }
.vsc-result__breakdown li.is-met .material-symbols-outlined { color: var(--vsc-primary); }
.vsc-result__breakdown li.is-missing .material-symbols-outlined { color: var(--vsc-muted); }
.vsc-result__label { flex: 1; color: var(--vsc-text); }
.vsc-result__pts { color: var(--vsc-muted); font-weight: 600; font-size: .82rem; }
.vsc-result__recs li { display: flex; align-items: flex-start; gap: 10px; }
.vsc-result__recs .material-symbols-outlined { color: var(--vsc-primary); font-size: 20px; }
.vsc-result__recs a { color: var(--vsc-primary); font-weight: 600; text-decoration: none; }
.vsc-result__recs a:hover { text-decoration: underline; }

/* ---------- Pricing calculator ---------- */
.vsc-calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vsc-calc__results { display: grid; gap: 12px; align-content: start; }
.vsc-calc__result { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 12px; background: var(--vsc-bg); border: 1px solid var(--vsc-border); }
.vsc-calc__result span { color: var(--vsc-muted); font-size: .9rem; }
.vsc-calc__result strong { font-size: 1.15rem; color: var(--vsc-ink); font-weight: 800; }
.vsc-calc__result.is-primary { background: color-mix(in srgb, var(--vsc-primary) 10%, transparent); border-color: color-mix(in srgb, var(--vsc-primary) 40%, var(--vsc-border)); }
.vsc-calc__result.is-primary strong { color: var(--vsc-primary); }
.vsc-calc__hint { color: var(--vsc-muted); font-size: .85rem; margin-top: 16px; }
@media (max-width: 720px) { .vsc-calc__grid, .vsc-result__grid { grid-template-columns: 1fr; } }

/* ---------- Consultation type picker ---------- */
.vsc-type-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.vsc-type { position: relative; }
.vsc-type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vsc-type span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--vsc-border); background: var(--vsc-surface); color: var(--vsc-text); font-weight: 600; transition: all .16s ease; }
.vsc-type span .material-symbols-outlined { font-size: 20px; color: var(--vsc-muted); }
.vsc-type input:checked + span { border-color: var(--vsc-primary); background: color-mix(in srgb, var(--vsc-primary) 12%, transparent); color: var(--vsc-primary); }
.vsc-type input:checked + span .material-symbols-outlined { color: var(--vsc-primary); }

/* ---------- Contact team ---------- */
.vsc-dept-members { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.vsc-dept-member { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--vsc-bg); border: 1px solid var(--vsc-border); color: var(--vsc-muted); }

/* ---------- Knowledge center ---------- */
.vsc-search { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto 30px; background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: 14px; padding: 8px 8px 8px 16px; box-shadow: var(--vsc-shadow); }
.vsc-search .material-symbols-outlined { color: var(--vsc-muted); }
.vsc-search input { flex: 1; border: 0; background: transparent; padding: 10px 4px; font-size: 1rem; color: var(--vsc-text); outline: none; }
.vsc-article-card { text-decoration: none; }
.vsc-article-card__type { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--vsc-primary); margin-bottom: 8px; }
.vsc-pagination { display: flex; justify-content: center; margin-top: 34px; }
.vsc-pagination .pagination { display: flex; gap: 6px; list-style: none; padding: 0; }
.vsc-pagination .page-link { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--vsc-border); color: var(--vsc-text); text-decoration: none; }
.vsc-pagination .active .page-link { background: var(--vsc-primary); border-color: var(--vsc-primary); color: #fff; }
.vsc-article__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--vsc-ink); margin: 12px 0; }
.vsc-article__media { margin: 20px 0; }

/* ---------- FAQ page ---------- */
.vsc-faq-wrap { max-width: 860px; margin: 0 auto; display: grid; gap: 30px; }
.vsc-faq-group__title { font-size: 1.2rem; font-weight: 700; color: var(--vsc-ink); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid color-mix(in srgb, var(--vsc-primary) 30%, var(--vsc-border)); }

/* ---------- Floating AI assistant ---------- */
.vsc-ai { position: fixed; inset-inline-end: 22px; inset-block-end: 22px; z-index: 1050; }
.vsc-ai__launch {
    width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--b2b-secondary, #10b981); color: #fff; box-shadow: 0 12px 30px -10px rgba(16,185,129,.6);
    display: grid; place-items: center; transition: transform .18s ease;
}
.vsc-ai__launch:hover { transform: scale(1.06); }
.vsc-ai__launch .material-symbols-outlined { font-size: 30px; }
.vsc-ai.is-open .vsc-ai__launch { display: none; }
.vsc-ai__panel {
    position: absolute; inset-inline-end: 0; inset-block-end: 0; width: min(370px, calc(100vw - 32px)); height: 520px; max-height: calc(100vh - 60px);
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--b2b-border, #e5e7eb);
    border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(15,23,42,.4); overflow: hidden;
}
.vsc-ai__head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--b2b-secondary, #10b981); color: #fff; font-weight: 600; }
.vsc-ai__head strong { flex: 1; }
.vsc-ai__close { margin-inline-start: auto; background: transparent; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.vsc-ai__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f8fb; }
.vsc-ai__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; }
.vsc-ai__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--b2b-border, #e5e7eb); color: #334155; }
.vsc-ai__msg--user { align-self: flex-end; background: var(--b2b-secondary, #10b981); color: #fff; }
.vsc-ai__msg.is-typing { color: #94a3b8; letter-spacing: 2px; }
.vsc-ai__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--b2b-border, #e5e7eb); background: #fff; }
.vsc-ai__form input { flex: 1; border: 1px solid var(--b2b-border, #e5e7eb); border-radius: 10px; padding: 10px 12px; font-size: .95rem; outline: none; }
.vsc-ai__form input:focus { border-color: var(--b2b-secondary, #10b981); }
.vsc-ai__form button { border: 0; background: var(--b2b-secondary, #10b981); color: #fff; border-radius: 10px; width: 44px; display: grid; place-items: center; cursor: pointer; }
@media (prefers-color-scheme: dark) {
    .vsc-ai__panel { background: #10151f; }
    .vsc-ai__body { background: #0b0f17; }
    .vsc-ai__msg--bot { background: #10151f; color: #cbd5e1; border-color: #23324a; }
    .vsc-ai__form { background: #10151f; border-color: #23324a; }
    .vsc-ai__form input { background: #0b0f17; color: #cbd5e1; border-color: #23324a; }
}

/* ---------- Floating support chat ---------- */
.vsc-chat {
    position: fixed; inset-inline-start: 22px; inset-block-end: 22px; z-index: 1049;
    --chat-teal: #115E59;
    --chat-teal-strong: #0D4A46;
    --chat-surface: #ffffff;
    --chat-bg: #F6F8F7;
    --chat-border: #E2E8E6;
    --chat-input-border: #C9D3D0;
    --chat-muted: #9AA5A1;
    --chat-online: #9FC2BE;
    --chat-dot: #4ADE80;
    --chat-system-bg: #EDF0EF;
}
.vsc-chat__launch {
    width: 56px; height: 56px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--chat-teal); color: #fff; box-shadow: 0 8px 24px rgba(17,94,89,.35);
    display: grid; place-items: center; transition: transform .18s ease, box-shadow .18s ease;
}
.vsc-chat__launch:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(17,94,89,.42); }
.vsc-chat__launch .material-symbols-outlined { font-size: 26px; }
.vsc-chat.is-open .vsc-chat__launch { display: none; }
.vsc-chat__panel {
    position: absolute; inset-inline-start: 0; inset-block-end: 0;
    width: min(380px, calc(100vw - 32px)); height: 560px; max-height: calc(100vh - 48px);
    display: flex; flex-direction: column; background: var(--chat-surface); border: 1px solid var(--chat-border);
    border-radius: 16px; box-shadow: 0 24px 64px rgba(18,32,30,.25); overflow: hidden;
}

/* Header */
.vsc-chat__head { display: flex; align-items: center; gap: 11px; padding: 14px 18px; background: var(--chat-teal-strong); color: #fff; flex: none; }
.vsc-chat__avatar {
    width: 36px; height: 36px; border-radius: 999px; flex: none;
    background: rgba(255,255,255,.15); display: grid; place-items: center;
}
.vsc-chat__avatar .material-symbols-outlined { font-size: 20px; color: #fff; }
.vsc-chat__head-txt { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.vsc-chat__head-txt strong { font-size: 14px; font-weight: 600; color: #fff; }
.vsc-chat__status { font-size: 11px; color: var(--chat-online); display: inline-flex; align-items: center; gap: 5px; }
.vsc-chat__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--chat-dot); flex: none; display: inline-block; }
.vsc-chat__close { background: transparent; border: 0; color: var(--chat-online); cursor: pointer; display: grid; place-items: center; padding: 2px; }
.vsc-chat__close .material-symbols-outlined { font-size: 20px; }

/* Start box */
.vsc-chat__start { padding: 16px; display: flex; flex-direction: column; gap: 9px; background: var(--chat-surface); }
.vsc-chat__start p { margin: 0 0 2px; color: var(--chat-muted); font-size: 13px; line-height: 1.5; }
.vsc-chat__start input, .vsc-chat__start select {
    border: 1px solid var(--chat-input-border); border-radius: 10px; padding: 10px 13px;
    font-size: 13px; font-family: inherit; color: #1A2321; outline: none; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vsc-chat__start input:focus, .vsc-chat__start select:focus { border-color: var(--chat-teal); box-shadow: 0 0 0 3px rgba(17,94,89,.12); }

/* Messages */
.vsc-chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--chat-bg); }
.vsc-chat__msg {
    max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55;
    white-space: pre-wrap; word-wrap: break-word;
}
.vsc-chat__msg--agent {
    align-self: flex-start; background: var(--chat-surface); border: 1px solid var(--chat-border); color: #1A2321;
    border-end-start-radius: 3px;
}
.vsc-chat__msg--user {
    align-self: flex-end; background: var(--chat-teal); color: #fff;
    border-end-end-radius: 3px;
}
.vsc-chat__msg--system {
    align-self: center; max-width: 92%; text-align: center; background: var(--chat-system-bg); color: var(--chat-muted);
    font-size: 10.5px; padding: 3px 12px; border-radius: 999px; border: 0;
}

/* Composer */
.vsc-chat__form { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--chat-border); background: var(--chat-surface); flex: none; }
.vsc-chat__form input {
    flex: 1; min-width: 0; border: 1px solid var(--chat-input-border); border-radius: 999px; padding: 11px 15px;
    font-size: 13px; font-family: inherit; color: #1A2321; outline: none; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vsc-chat__form input:focus { border-color: var(--chat-teal); box-shadow: 0 0 0 3px rgba(17,94,89,.12); }
.vsc-chat__form button {
    border: 0; background: var(--chat-teal); color: #fff; border-radius: 999px; width: 40px; height: 40px; flex: none;
    display: grid; place-items: center; cursor: pointer; transition: background .15s ease;
}
.vsc-chat__form button:hover { background: var(--chat-teal-strong); }
.vsc-chat__form button .material-symbols-outlined { font-size: 20px; }

/* Footer disclaimer */
.vsc-chat__foot { text-align: center; font-size: 9.5px; color: var(--chat-input-border); padding: 0 14px 8px; background: var(--chat-surface); flex: none; }
.vsc-chat__foot a { color: var(--chat-muted); }
.vsc-chat__foot a:hover { color: var(--chat-teal); }

@media (prefers-color-scheme: dark) {
    .vsc-chat {
        --chat-surface: #10151f; --chat-bg: #0b0f17; --chat-border: #23324a; --chat-input-border: #2c3d54;
        --chat-muted: #7f93a3; --chat-system-bg: #16202e;
    }
    .vsc-chat__msg--agent { color: #cbd5e1; }
    .vsc-chat__start input, .vsc-chat__start select, .vsc-chat__form input { background: #0b0f17; color: #cbd5e1; }
}

/* ---------- Reveal animation ---------- */
[data-vsc-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--vsc-delay, 0ms); }
[data-vsc-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-vsc-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .vsc-detail__grid { grid-template-columns: 1fr; }
    .vsc-detail__aside { position: static; }
    .vsc-form__row { grid-template-columns: 1fr; }
    .vsc-section { padding: 52px 0; }
    .vsc-hero { padding: 68px 0 60px; }
}

/* ---------- Dark mode (when the theme opts in) ---------- */
@media (prefers-color-scheme: dark) {
    .vsc {
        --vsc-surface: var(--b2b-surface, #10151f);
        --vsc-bg: #0b0f17;
        --vsc-ink: var(--b2b-heading, #f1f5f9);
        --vsc-text: var(--b2b-text, #cbd5e1);
        --vsc-muted: var(--b2b-muted, #94a3b8);
        --vsc-border: var(--b2b-border, #23324a);
        --vsc-shadow: 0 10px 40px -18px rgba(0,0,0,.6);
    }
    .vsc-hero { background: radial-gradient(1100px 460px at 50% -8%, color-mix(in srgb, var(--vsc-primary) 20%, transparent), transparent 70%), linear-gradient(180deg, #0b0f17 0%, #0b0f17 100%); }
    .vsc-detail__hero { background: linear-gradient(180deg, #0b0f17, #0b0f17); }
    .vsc-field input, .vsc-field textarea, .vsc-field select { background: #0b0f17; }
    .vsc-alert--error { background: #2a1416; border-color: #7f1d1d; color: #fca5a5; }
}

/* ============================================================
   Consultation / photo-session booking (redesign)
   ============================================================ */
.vsc-book { --vsc-book-accent: var(--vsc-primary); background: var(--vsc-bg); min-height: 70vh; }
.vsc-book__bar {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    background: var(--vsc-surface); border-bottom: 1px solid var(--vsc-border);
    padding: 14px clamp(16px, 4vw, 40px);
}
.vsc-book__back { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--vsc-muted); text-decoration: none; }
.vsc-book__back:hover { color: var(--vsc-book-accent); }
.vsc-book__back .material-symbols-outlined { font-size: 20px; }
.vsc-book__bar-title { display: inline-flex; align-items: center; gap: 8px; font-size: .98rem; font-weight: 700; color: var(--vsc-ink); }
.vsc-book__bar-title .material-symbols-outlined { font-size: 20px; color: var(--vsc-book-accent); }
.vsc-book__bar-meta { margin-inline-start: auto; font-size: .8rem; color: var(--vsc-muted); }

.vsc-book__wrap { max-width: 1080px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 96px; }
.vsc-book__alert { margin-bottom: 16px; }
.vsc-book__grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.vsc-book__main { display: flex; flex-direction: column; gap: 16px; }

.vsc-book__card { background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: 14px; padding: 20px 22px; }
.vsc-book__step { font-size: .98rem; font-weight: 700; color: var(--vsc-ink); margin-bottom: 14px; }
.vsc-book__hint { font-weight: 400; color: var(--vsc-muted); font-size: .8rem; margin-inline-start: 6px; }
.vsc-book__muted { color: var(--vsc-muted); font-size: .9rem; margin: 0; }

/* Department grid */
.vsc-book__deps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vsc-book__dep {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    border: 2px solid var(--vsc-border); background: var(--vsc-surface); border-radius: 11px;
    padding: 14px 8px; cursor: pointer; text-align: center; transition: all .16s ease; color: var(--vsc-ink);
}
.vsc-book__dep:hover { border-color: color-mix(in srgb, var(--vsc-book-accent) 45%, var(--vsc-border)); }
.vsc-book__dep .material-symbols-outlined { font-size: 24px; color: var(--vsc-muted); transition: color .16s ease; }
.vsc-book__dep-label { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.vsc-book__dep.is-active { border-color: var(--vsc-book-accent); background: color-mix(in srgb, var(--vsc-book-accent) 8%, transparent); }
.vsc-book__dep.is-active .material-symbols-outlined,
.vsc-book__dep.is-active .vsc-book__dep-label { color: var(--vsc-book-accent); }

/* Days */
.vsc-book__days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.vsc-book__day {
    flex: none; border: 2px solid var(--vsc-border); background: var(--vsc-surface); border-radius: 11px;
    padding: 9px 16px; cursor: pointer; text-align: center; transition: all .16s ease;
}
.vsc-book__day:hover { border-color: color-mix(in srgb, var(--vsc-book-accent) 45%, var(--vsc-border)); }
.vsc-book__dow { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--vsc-muted); }
.vsc-book__dnum { display: block; font-size: 1rem; font-weight: 700; color: var(--vsc-ink); margin-top: 2px; }
.vsc-book__day.is-active { border-color: var(--vsc-book-accent); background: color-mix(in srgb, var(--vsc-book-accent) 8%, transparent); }
.vsc-book__day.is-active .vsc-book__dow, .vsc-book__day.is-active .vsc-book__dnum { color: var(--vsc-book-accent); }

/* Time slots */
.vsc-book__slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.vsc-book__slot {
    border: 2px solid var(--vsc-border); background: var(--vsc-surface); border-radius: 9px;
    padding: 10px 0; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--vsc-ink);
    font-variant-numeric: tabular-nums; transition: all .16s ease;
}
.vsc-book__slot:hover:not(.is-taken) { border-color: color-mix(in srgb, var(--vsc-book-accent) 45%, var(--vsc-border)); }
.vsc-book__slot.is-active { border-color: var(--vsc-book-accent); background: color-mix(in srgb, var(--vsc-book-accent) 10%, transparent); color: var(--vsc-book-accent); }
.vsc-book__slot.is-taken { background: color-mix(in srgb, var(--vsc-muted) 8%, transparent); color: color-mix(in srgb, var(--vsc-muted) 60%, transparent); border-color: var(--vsc-border); cursor: not-allowed; text-decoration: line-through; }

/* Details fields */
.vsc-book__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vsc-book__field { display: flex; flex-direction: column; gap: 6px; }
.vsc-book__field--full { grid-column: 1 / -1; }
.vsc-book__field > span { font-size: .84rem; font-weight: 500; color: var(--vsc-ink); }
.vsc-book__field em { color: var(--vsc-muted); font-style: normal; font-weight: 400; }
.vsc-book__field input, .vsc-book__field select, .vsc-book__field textarea {
    width: 100%; box-sizing: border-box; border: 1px solid var(--vsc-border); border-radius: 8px;
    padding: 11px 13px; font-size: .92rem; font-family: inherit; background: var(--vsc-surface); color: var(--vsc-ink);
}
.vsc-book__field input:focus, .vsc-book__field select:focus, .vsc-book__field textarea:focus {
    outline: none; border-color: var(--vsc-book-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vsc-book-accent) 18%, transparent);
}
.vsc-book__field textarea { resize: vertical; min-height: 66px; line-height: 1.5; }

/* Meeting-type segmented radios */
.vsc-book__types { display: flex; flex-wrap: wrap; gap: 8px; }
.vsc-book__type input { position: absolute; opacity: 0; pointer-events: none; }
.vsc-book__type > span {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;
    border: 1px solid var(--vsc-border); background: var(--vsc-surface); font-size: .84rem; font-weight: 600;
    color: var(--vsc-text); cursor: pointer; transition: all .16s ease;
}
.vsc-book__type > span .material-symbols-outlined { font-size: 18px; }
.vsc-book__type input:checked + span { border-color: var(--vsc-book-accent); background: color-mix(in srgb, var(--vsc-book-accent) 9%, transparent); color: var(--vsc-book-accent); }

/* Summary aside */
.vsc-book__aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.vsc-book__summary { background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: 14px; padding: 20px 22px; }
.vsc-book__summary-title { font-size: .9rem; font-weight: 700; color: var(--vsc-ink); margin-bottom: 14px; }
.vsc-book__summary-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.vsc-book__summary-ic {
    width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--vsc-book-accent) 12%, transparent); color: var(--vsc-book-accent);
}
.vsc-book__summary-ic .material-symbols-outlined { font-size: 19px; }
.vsc-book__summary-strong { font-weight: 600; font-size: .9rem; color: var(--vsc-ink); }
.vsc-book__summary-sub { font-size: .76rem; color: var(--vsc-muted); }
.vsc-book__confirm { margin-top: 6px; }
.vsc-book__fineprint { font-size: .72rem; color: var(--vsc-muted); margin: 10px 0 0; text-align: center; line-height: 1.5; }
.vsc-book__help { background: var(--vsc-surface); border: 1px solid var(--vsc-border); border-radius: 14px; padding: 15px 18px; font-size: .8rem; color: var(--vsc-muted); line-height: 1.6; }
.vsc-book__help a { font-weight: 600; color: var(--vsc-book-accent); }

/* Mobile sticky confirm — hidden on desktop */
.vsc-book__sticky { display: none; }

@media (max-width: 860px) {
    .vsc-book__grid { grid-template-columns: 1fr; }
    .vsc-book__deps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vsc-book__slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vsc-book__fields { grid-template-columns: 1fr; }
    .vsc-book__aside { position: static; }
    .vsc-book__wrap { padding-bottom: 108px; }
    .vsc-book__sticky {
        display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
        background: var(--vsc-surface); border-top: 1px solid var(--vsc-border);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
    }
    .vsc-book__sticky-summary { font-size: .78rem; color: var(--vsc-book-accent); font-weight: 600; text-align: center; margin-bottom: 7px; }
    .vsc-book__aside .vsc-book__confirm { display: none; }
}

/* RTL: keep the back chevron pointing the right way */
[dir="rtl"] .vsc-book__back .material-symbols-outlined { transform: scaleX(-1); }
