/* ═══════════════════════════════════════════════════════════════════════════
   Centrum Pomocy Landing Page — Supplementary Stylesheet
   Classes specific to centrum-pomocy.php partial
   Extends landing.css — uses var(--csl-...) custom properties
   CSS prefix: csl-help__
   Mobile-first responsive (768px, 1024px)
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── 1. HERO ─────────────────────────────────────────────────────────────── */

.csl-hero--help {
    background: var(--csl-white);
    padding-top: 100px;
    padding-bottom: 64px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .csl-hero--help {
        padding-top: 120px;
        padding-bottom: 80px;
    }
}

@media (min-width: 1024px) {
    .csl-hero--help {
        padding-top: 130px;
        padding-bottom: 80px;
    }
}

/* Status pill */
.csl-help__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e0f4f5;
    color: #1a737c;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.csl-help__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--csl-teal, #8cd2d9);
    animation: csl-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes csl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Hero grid */
.csl-help__hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .csl-help__hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* Trust row */
.csl-help__trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 24px;
}

.csl-help__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--csl-muted);
}

.csl-help__trust-item .csl-icon {
    color: var(--csl-purple);
    flex-shrink: 0;
}

/* Hero heading */
.csl-help__hero-heading {
    font-size: 2rem;
    font-weight: 900;
    color: var(--csl-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .csl-help__hero-heading {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .csl-help__hero-heading {
        font-size: 3rem;
    }
}

.csl-help__hero-lead {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--csl-dark);
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 540px;
}

.csl-help__hero-sub {
    font-size: 0.9375rem;
    color: var(--csl-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
}

/* Search */
.csl-help__search-wrap {
    position: relative;
    max-width: 560px;
    margin-bottom: 24px;
}

.csl-help__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    line-height: 0;
}

.csl-help__search-input {
    width: 100%;
    padding: 16px 120px 16px 48px;
    background: #f5f7f9;
    border: 1px solid var(--csl-border);
    border-radius: 16px;
    font-size: 0.9375rem;
    color: var(--csl-dark);
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.csl-help__search-input:focus {
    border-color: var(--csl-purple);
    box-shadow: 0 0 0 3px rgba(82,15,125,0.08);
}

.csl-help__search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
    font-size: 0.875rem;
}

.csl-help__search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--csl-white);
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 8px;
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
}

.csl-help__sr-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.csl-help__sr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.csl-help__sr-item:hover,
.csl-help__sr-item:focus {
    background: #f9fafb;
    outline: none;
}

.csl-help__sr-badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
}

.csl-help__sr-badge--blue  { background: #eff6ff; color: #1d4ed8; }
.csl-help__sr-badge--teal  { background: #f0fdfa; color: #0f766e; }
.csl-help__sr-badge--purple { background: #faf5ff; color: var(--csl-purple); }
.csl-help__sr-badge--gray  { background: #f9fafb; color: #374151; }

.csl-help__sr-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--csl-dark);
    line-height: 1.4;
}

.csl-help__sr-empty {
    padding: 32px 16px;
    text-align: center;
    background: rgba(249,250,251,0.5);
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.csl-help__sr-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--csl-dark);
    margin-bottom: 6px;
}

.csl-help__sr-empty-sub {
    font-size: 0.875rem;
    color: var(--csl-muted);
    margin-bottom: 20px;
}

.csl-help__sr-empty-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

@media (min-width: 480px) {
    .csl-help__sr-empty-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Hero CTAs */
.csl-help__hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.csl-help__hero-cta-ai .csl-icon {
    color: var(--csl-teal, #8cd2d9);
}


/* ── 2. HERO VISUAL ──────────────────────────────────────────────────────── */

.csl-help__hero-visual {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .csl-help__hero-visual {
        display: block;
        height: 450px;
    }
}

.csl-help__mockup {
    position: absolute;
    inset: 0;
    background: #f5f7f9;
    border-radius: 24px;
    box-shadow: 0 20px 60px -12px rgba(0,0,0,0.12);
    border: 1px solid var(--csl-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.csl-help__mockup-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--csl-white);
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid var(--csl-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.csl-help__mockup-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--csl-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.csl-help__mockup-bar-line {
    height: 8px;
    border-radius: 4px;
    background: var(--csl-border);
}

.csl-help__mockup-bar-line--w32 { width: 128px; }
.csl-help__mockup-bar-line--w20 { width: 80px; }
.csl-help__mockup-bar-line--pill { width: 64px; height: 24px; border-radius: 12px; background: #e9d5ff; }

.csl-help__mockup-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csl-help__mockup-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
}

/* Mockup body */
.csl-help__mockup-body {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow: hidden;
}

/* Chat panel */
.csl-help__mockup-chat {
    width: 40%;
    background: var(--csl-white);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--csl-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.csl-help__mockup-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--csl-border);
    color: var(--csl-purple);
}

.csl-help__mockup-bubble {
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csl-help__mockup-bubble--bot {
    background: #f5f7f9;
    border-top-left-radius: 0;
}

.csl-help__mockup-bubble--user {
    background: var(--csl-purple);
    border-top-right-radius: 0;
    align-self: flex-end;
    width: 75%;
    margin-top: auto;
    opacity: 0.8;
}

.csl-help__mockup-line {
    height: 6px;
    border-radius: 3px;
    background: #d1d5db;
}

.csl-help__mockup-line--full { width: 100%; }
.csl-help__mockup-line--w75 { width: 75%; }
.csl-help__mockup-line--w50 { width: 50%; }
.csl-help__mockup-line--light { background: rgba(255,255,255,0.4); }

/* Data panel */
.csl-help__mockup-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.csl-help__mockup-chart {
    flex: 1;
    background: #0a192f;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.csl-help__mockup-chart-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.csl-help__mockup-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 64px;
    opacity: 0.5;
}

.csl-help__mockup-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
}

.csl-help__mockup-bar--teal   { background: #8cd2d9; }
.csl-help__mockup-bar--purple { background: var(--csl-purple); }
.csl-help__mockup-bar--white  { background: #fff; }

.csl-help__mockup-kyc {
    background: var(--csl-white);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--csl-border);
    flex-shrink: 0;
}

.csl-help__mockup-kyc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    flex-shrink: 0;
}

.csl-help__mockup-kyc-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Decorative blurs */
.csl-help__hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.csl-help__hero-blur--teal {
    width: 224px;
    height: 224px;
    background: var(--csl-teal, #8cd2d9);
    mix-blend-mode: multiply;
    opacity: 0.4;
    top: -48px;
    right: -48px;
}

.csl-help__hero-blur--purple {
    width: 224px;
    height: 224px;
    background: var(--csl-purple);
    mix-blend-mode: multiply;
    opacity: 0.3;
    bottom: -48px;
    left: -48px;
}


/* ── 3. ORIENTATION ───────────────────────────────────────────────────────── */

.csl-help__orientation {
    background: #f5f7f9;
    border-top: 1px solid var(--csl-border);
    border-bottom: 1px solid var(--csl-border);
}

.csl-help__intro-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    background: var(--csl-white);
    border: 1px solid var(--csl-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .csl-help__intro-card {
        grid-template-columns: 1fr 1fr;
        padding: 40px;
        gap: 48px;
    }
}

.csl-help__intro-badge {
    display: inline-flex;
    margin-bottom: 20px;
}

.csl-help__intro-title {
    text-align: left;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.csl-help__intro-desc {
    text-align: left;
    margin-bottom: 32px;
}

.csl-help__intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.csl-help__intro-actions .csl-btn .csl-icon {
    flex-shrink: 0;
}

/* Video thumbnail */
.csl-help__video-thumb {
    aspect-ratio: 16/9;
    background: #0a192f;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--csl-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}

.csl-help__video-thumb:hover,
.csl-help__video-thumb:focus {
    transform: scale(1.01);
    outline: 2px solid var(--csl-purple);
    outline-offset: 2px;
}

.csl-help__video-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.csl-help__video-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.csl-help__video-dot--red    { background: #f87171; }
.csl-help__video-dot--yellow { background: #fbbf24; }
.csl-help__video-dot--green  { background: #4ade80; }

.csl-help__video-body {
    flex: 1;
    padding: 16px;
}

.csl-help__video-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    height: 100%;
}

.csl-help__video-placeholder {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.csl-help__video-placeholder--span2 {
    grid-column: span 2;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.csl-help__video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csl-help__video-play-btn .csl-icon {
    width: 64px;
    height: 64px;
    background: var(--csl-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(82,15,125,0.4);
    padding: 16px;
    box-sizing: border-box;
}

.csl-help__video-thumb:hover .csl-help__video-play-btn .csl-icon {
    transform: scale(1.1);
}

/* Glossary */
.csl-help__glossary-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--csl-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.csl-help__glossary-title .csl-icon {
    color: var(--csl-purple);
    flex-shrink: 0;
}

.csl-help__glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .csl-help__glossary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.csl-help__glossary-item {
    background: var(--csl-white);
    border: 1px solid var(--csl-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.csl-help__glossary-term {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--csl-purple);
    margin-bottom: 6px;
}

.csl-help__glossary-def {
    font-size: 0.75rem;
    color: var(--csl-muted);
    line-height: 1.5;
}


/* ── 4. VERIFICATION STATUS ──────────────────────────────────────────────── */

.csl-help__status-section {
    background: var(--csl-white);
}

.csl-help__status-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.csl-help__status-header .csl-badge {
    margin-bottom: 16px;
}

.csl-help__status-header .csl-badge .csl-icon {
    flex-shrink: 0;
}

.csl-help__status-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--csl-white);
    border: 1px solid var(--csl-border);
    border-top: 4px solid var(--csl-purple);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

@media (min-width: 768px) {
    .csl-help__status-card {
        padding: 40px;
    }
}

.csl-help__status-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .csl-help__status-fields {
        grid-template-columns: 1fr 1fr;
    }
}

.csl-help__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csl-help__form-group--full {
    grid-column: 1 / -1;
}

.csl-help__form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csl-dark);
}

.csl-help__form-label-sm {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.csl-help__form-input,
.csl-help__form-select,
.csl-help__form-textarea {
    padding: 12px 16px;
    background: #f5f7f9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--csl-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.csl-help__form-input:focus,
.csl-help__form-select:focus,
.csl-help__form-textarea:focus {
    border-color: var(--csl-purple);
    box-shadow: 0 0 0 3px rgba(82,15,125,0.08);
}

.csl-help__form-textarea {
    resize: none;
}

.csl-help__status-submit {
    width: 100%;
    justify-content: center;
}

/* Status results */
.csl-help__status-result {
    margin-top: 32px;
}

.csl-help__status-success,
.csl-help__status-pending,
.csl-help__status-error {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
}

.csl-help__status-success { background: #f0fdf4; border: 1px solid #bbf7d0; }
.csl-help__status-pending { background: #fffbeb; border: 1px solid #fde68a; }
.csl-help__status-error   { background: #fef2f2; border: 1px solid #fecaca; }

.csl-help__status-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.csl-help__status-icon--green { color: #16a34a; }
.csl-help__status-icon--yellow { color: #d97706; }
.csl-help__status-icon--red   { color: #dc2626; }

.csl-help__status-msg-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.csl-help__status-success .csl-help__status-msg-title { color: #14532d; }
.csl-help__status-pending .csl-help__status-msg-title { color: #78350f; }
.csl-help__status-error   .csl-help__status-msg-title { color: #7f1d1d; }

.csl-help__status-msg-text {
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.csl-help__status-success .csl-help__status-msg-text { color: #166534; }
.csl-help__status-pending .csl-help__status-msg-text { color: #92400e; }
.csl-help__status-error   .csl-help__status-msg-text { color: #991b1b; }


/* ── 5. AI MODULE ─────────────────────────────────────────────────────────── */

.csl-help__ai-section {
    background: var(--csl-white);
    border-top: 1px solid var(--csl-border);
    border-bottom: 1px solid var(--csl-border);
}

.csl-help__ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 1024px) {
    .csl-help__ai-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* Prompts */
.csl-help__prompts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.csl-help__prompt-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f5f7f9;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.csl-help__prompt-card:hover,
.csl-help__prompt-card:focus {
    border-color: var(--csl-purple);
    outline: none;
    box-shadow: 0 2px 8px rgba(82,15,125,0.08);
}

.csl-help__prompt-meta {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--csl-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.csl-help__prompt-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csl-dark);
    transition: color 0.2s;
}

.csl-help__prompt-card:hover .csl-help__prompt-text {
    color: var(--csl-purple);
}

.csl-help__prompt-arrow {
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.2s;
}

.csl-help__prompt-card:hover .csl-help__prompt-arrow {
    color: var(--csl-purple);
}

/* Chat UI */
.csl-help__ai-chat-wrap {
    background: #f5f7f9;
    border-radius: 24px;
    padding: 8px;
    border: 1px solid var(--csl-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.csl-help__ai-chat {
    background: var(--csl-white);
    border-radius: 16px;
    height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.csl-help__ai-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--csl-border);
    flex-shrink: 0;
    background: var(--csl-white);
}

.csl-help__ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--csl-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}

.csl-help__ai-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}

.csl-help__ai-chat-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--csl-dark);
}

.csl-help__ai-chat-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
}

.csl-help__ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(249,250,251,0.5);
}

.csl-help__ai-msg-row {
    display: flex;
    gap: 16px;
    max-width: 90%;
}

.csl-help__ai-msg-row--bot {
    align-self: flex-start;
}

.csl-help__ai-msg-row--user {
    align-self: flex-end;
    justify-content: flex-end;
    max-width: 80%;
}

.csl-help__ai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(82,15,125,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--csl-purple);
}

.csl-help__ai-msg-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.csl-help__ai-bubble {
    padding: 16px;
    border-radius: 16px;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.csl-help__ai-bubble--bot {
    background: var(--csl-white);
    border: 1px solid var(--csl-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    color: var(--csl-dark);
    border-top-left-radius: 0;
}

.csl-help__ai-bubble--user {
    background: var(--csl-purple);
    color: #fff;
    border-top-right-radius: 0;
}

.csl-help__ai-video-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--csl-white);
    border: 1px solid var(--csl-border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
    text-align: left;
}

.csl-help__ai-video-link:hover,
.csl-help__ai-video-link:focus {
    border-color: var(--csl-purple);
    outline: none;
}

.csl-help__ai-video-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--csl-purple);
    flex-shrink: 0;
}

.csl-help__ai-video-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--csl-dark);
}

.csl-help__ai-video-duration {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--csl-muted);
    margin-top: 2px;
}

/* AI input */
.csl-help__ai-input-wrap {
    padding: 16px;
    background: var(--csl-white);
    border-top: 1px solid var(--csl-border);
    flex-shrink: 0;
}

.csl-help__ai-input-inner {
    position: relative;
}

.csl-help__ai-input {
    width: 100%;
    padding: 12px 52px 12px 16px;
    background: #f5f7f9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--csl-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.csl-help__ai-input:focus {
    border-color: var(--csl-purple);
    box-shadow: 0 0 0 3px rgba(82,15,125,0.08);
}

.csl-help__ai-send-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    aspect-ratio: 1;
    background: var(--csl-purple);
    color: #fff;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.csl-help__ai-send-btn:hover {
    background: #3e0b5e;
}

.csl-help__ai-send-btn:focus {
    outline: 2px solid var(--csl-purple);
    outline-offset: 2px;
}


/* ── 6. PROCESS & RULES ──────────────────────────────────────────────────── */

.csl-help__rules-section {
    background: #f5f7f9;
    border-top: 1px solid var(--csl-border);
    border-bottom: 1px solid var(--csl-border);
}

.csl-help__rules-header {
    max-width: 720px;
    margin-bottom: 40px;
}

.csl-help__rules-header .csl-badge {
    margin-bottom: 16px;
}

.csl-help__rules-header .csl-section__title {
    text-align: left;
}

.csl-help__rules-header .csl-section__subtitle {
    text-align: left;
    font-size: 1.0625rem;
}

.csl-help__rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .csl-help__rules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.csl-help__rule-card {
    background: var(--csl-white);
    border: 1px solid var(--csl-border);
    border-radius: 16px;
    padding: 24px;
    border-top-width: 4px;
}

.csl-help__rule-card--teal   { border-top-color: #8cd2d9; }
.csl-help__rule-card--gray   { border-top-color: #d1d5db; }
.csl-help__rule-card--purple { border-top-color: var(--csl-purple); }

.csl-help__rule-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--csl-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.csl-help__rule-title .csl-icon {
    color: var(--csl-purple);
    flex-shrink: 0;
}

.csl-help__rule-text {
    font-size: 0.875rem;
    color: var(--csl-muted);
    line-height: 1.6;
}


/* ── 7. FAQ ───────────────────────────────────────────────────────────────── */

.csl-help__faq-section {
    background: var(--csl-white);
    border-top: 1px solid var(--csl-border);
    border-bottom: 1px solid var(--csl-border);
}

.csl-help__faq-title {
    text-align: center;
}

.csl-help__faq-subtitle {
    text-align: center;
    margin-bottom: 48px;
}

.csl-help__faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.csl-help__faq-item {
    background: var(--csl-white);
    border: 1px solid var(--csl-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.2s;
}

.csl-help__faq-item:hover {
    border-color: #d1d5db;
}

.csl-help__faq-btn {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--csl-dark);
    line-height: 1.4;
    transition: background 0.15s;
}

.csl-help__faq-btn:hover,
.csl-help__faq-btn:focus {
    background: #f9fafb;
    outline: none;
}

.csl-help__faq-btn .csl-icon {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s, color 0.2s;
}

.csl-help__faq-btn.is-open .csl-icon {
    transform: rotate(180deg);
    color: var(--csl-purple);
}

.csl-help__faq-answer {
    padding: 0 24px 20px;
    border-top: 1px solid #f9fafb;
}

.csl-help__faq-answer p {
    font-size: 0.875rem;
    color: var(--csl-muted);
    line-height: 1.7;
    margin-top: 12px;
}

.csl-help__faq-video-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--csl-purple);
    background: #faf5ff;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.csl-help__faq-video-link:hover {
    background: #f3e8ff;
}

.csl-help__faq-video-link:focus {
    outline: 2px solid var(--csl-purple);
    outline-offset: 2px;
}


/* ── 8. CTA (Purple) ─────────────────────────────────────────────────────── */

.csl-help__cta-section {
    background: var(--csl-purple);
    text-align: center;
    padding: 80px 0;
}

.csl-help__cta-title {
    color: #fff;
    font-size: 1.875rem;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .csl-help__cta-title {
        font-size: 2.25rem;
    }
}

.csl-help__cta-subtitle {
    color: #e9d5ff;
    font-size: 1.0625rem;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.csl-help__cta-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 480px) {
    .csl-help__cta-btns {
        flex-direction: row;
        justify-content: center;
    }
}

/* White and purple-outline button variants for CTA */
.csl-btn--white {
    background: #fff;
    color: var(--csl-purple);
    border: 2px solid transparent;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.csl-btn--white:hover {
    background: #f9fafb;
}

.csl-btn--purple-outline {
    background: rgba(62,11,94,0.5);
    color: #fff;
    border: 1px solid rgba(167,139,250,0.5);
    font-weight: 700;
}

.csl-btn--purple-outline:hover {
    background: rgba(50,8,79,0.7);
    border-color: #8cd2d9;
}


/* ── 9. MODALS ────────────────────────────────────────────────────────────── */

.csl-help__demo-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--csl-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.csl-help__demo-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.csl-help__demo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--csl-dark);
    transition: border-color 0.2s, background 0.2s;
}

.csl-help__demo-option:has(input:checked),
.csl-help__demo-option:hover {
    border-color: var(--csl-purple);
    background: #faf5ff;
}

.csl-help__demo-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--csl-purple);
    flex-shrink: 0;
}

.csl-help__demo-next {
    width: 100%;
    justify-content: center;
    gap: 8px;
}

.csl-help__form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .csl-help__form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.csl-help__demo-form-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.csl-help__demo-form-actions .csl-btn:first-child {
    flex: 1;
}

.csl-help__demo-form-actions .csl-btn:last-child {
    flex: 2;
}

/* Brief form */
.csl-help__brief-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.csl-help__brief-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--csl-dark);
    cursor: pointer;
    transition: color 0.15s;
}

.csl-help__brief-check:hover {
    color: var(--csl-purple);
}

.csl-help__brief-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--csl-purple);
    flex-shrink: 0;
}

.csl-help__brief-form-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    justify-content: flex-end;
}

/* Brief success state */
.csl-help__brief-success {
    text-align: center;
    padding: 48px 24px;
}

.csl-help__brief-success-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.csl-help__brief-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--csl-dark);
    margin-bottom: 12px;
}

.csl-help__brief-success p {
    font-size: 0.9375rem;
    color: var(--csl-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.csl-help__brief-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* ── 10. CONTAINER NARROW VARIANT ────────────────────────────────────────── */

.csl-container--narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}


/* ── 11. BUDDYBOSS OVERRIDES ─────────────────────────────────────────────── */

#buddypress .csl-help__search-input,
#buddypress .csl-help__form-input,
#buddypress .csl-help__form-select,
#buddypress .csl-help__form-textarea,
#buddypress .csl-help__ai-input {
    border-radius: 12px;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.csl-hero--help *,
.csl-help__orientation *,
.csl-help__status-section *,
.csl-help__ai-section *,
.csl-help__rules-section *,
.csl-help__faq-section *,
.csl-help__cta-section *,
.csl-modal * {
    box-sizing: border-box;
}
