/* ─── WS Car Checker Frontend ──────────────────── */
/* v1.0.0 */

:root {
    --wscc-primary: #1a1a2e;
    --wscc-accent: #e63946;
    --wscc-accent-hover: #c1121f;
    --wscc-yellow: #f5c518;
    --wscc-bg: #f4f4f5;
    --wscc-white: #ffffff;
    --wscc-text: #1a1a2e;
    --wscc-muted: #888;
    --wscc-border: #e5e5e5;
    --wscc-radius: 16px;
    --wscc-radius-sm: 12px;
}

.wscc-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--wscc-text); line-height: 1.6; }
.wscc-wrap *, .wscc-wrap *::before, .wscc-wrap *::after { box-sizing: border-box; }

/* ─── Typography ────────────────────────────────── */
.wscc-title { font-size: clamp(48px, 8vw, 80px); font-weight: 800; line-height: 1; letter-spacing: 0.02em; margin: 0 0 16px; }
.wscc-section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: 0.02em; margin: 0 0 12px; }
.wscc-highlight { color: var(--wscc-yellow); }
.wscc-muted { color: var(--wscc-muted); font-size: 14px; margin: 4px 0; }
.wscc-muted-light { color: rgba(255,255,255,0.5); font-size: 14px; }
.wscc-small { font-size: 12px; }
.wscc-center { text-align: center; }
.wscc-text-white { color: #fff; }
.wscc-mono { font-family: 'SF Mono', Monaco, Consolas, monospace; letter-spacing: 0.05em; }
.wscc-error { color: var(--wscc-accent); font-size: 13px; margin-top: 6px; }
.wscc-success { color: #16a34a; font-size: 13px; margin-top: 6px; }
.wscc-subtitle { color: rgba(255,255,255,0.6); font-size: clamp(16px, 2vw, 20px); max-width: 540px; margin: 0 auto 40px; }

/* ─── Hero ──────────────────────────────────────── */
.wscc-hero { background: var(--wscc-primary); color: #fff; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; position: relative; overflow: hidden; text-align: center; }
.wscc-hero-bg { position: absolute; inset: 0; opacity: 0.05; background-image: radial-gradient(circle at 20% 50%, var(--wscc-accent) 0%, transparent 50%), radial-gradient(circle at 80% 20%, var(--wscc-yellow) 0%, transparent 40%); }
.wscc-hero-content { position: relative; z-index: 1; max-width: 700px; width: 100%; }
.wscc-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border-radius: 999px; padding: 6px 16px; font-size: 13px; margin-bottom: 24px; }
.wscc-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: wscc-pulse 2s infinite; }
@keyframes wscc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── Plate input ───────────────────────────────── */
.wscc-reg-form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wscc-plate-input { display: flex; align-items: center; background: var(--wscc-yellow); border-radius: var(--wscc-radius-sm); padding: 8px; gap: 8px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.wscc-plate-gb { font-weight: 700; font-size: 12px; color: var(--wscc-primary); padding-left: 8px; }
.wscc-plate-input input { flex: 1; background: transparent; border: none; outline: none; color: var(--wscc-primary); font-size: 28px; font-weight: 800; text-align: center; letter-spacing: 0.12em; text-transform: uppercase; }
.wscc-plate-input input::placeholder { color: rgba(26,26,46,0.35); }
.wscc-plate-input button { background: var(--wscc-primary); color: #fff; border: none; border-radius: 10px; padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.2s; white-space: nowrap; }
.wscc-plate-input button:hover { background: var(--wscc-accent); }

/* Plate display badge */
.wscc-plate-display { display: inline-block; background: var(--wscc-yellow); color: var(--wscc-primary); font-size: 24px; font-weight: 800; padding: 6px 20px; border-radius: 8px; letter-spacing: 2px; margin-bottom: 12px; }

/* Vehicle preview */
.wscc-vehicle-preview { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border-radius: var(--wscc-radius-sm); padding: 14px 18px; max-width: 420px; margin: 20px auto 0; text-align: left; }
.wscc-preview-title { font-weight: 600; font-size: 16px; margin: 0; }
.wscc-preview-detail { color: rgba(255,255,255,0.5); font-size: 13px; margin: 2px 0 0; }

/* ─── Trust bar ─────────────────────────────────── */
.wscc-trust-bar { background: var(--wscc-accent); color: #fff; padding: 14px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-size: 13px; font-weight: 500; }
.wscc-trust-bar span { display: flex; align-items: center; gap: 6px; }

/* ─── Section layout ────────────────────────────── */
.wscc-section-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wscc-section-subtitle { color: var(--wscc-muted); font-size: 16px; margin-bottom: 32px; }

/* ─── Packages grid ─────────────────────────────── */
.wscc-packages { padding: 80px 20px; background: var(--wscc-white); text-align: center; }
.wscc-packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.wscc-pkg-card { background: var(--wscc-white); border: 2px solid var(--wscc-border); border-radius: var(--wscc-radius); padding: 28px 24px; display: flex; flex-direction: column; text-align: left; position: relative; transition: border-color 0.2s, box-shadow 0.2s; }
.wscc-pkg-card.wscc-pkg-popular { border-color: var(--wscc-accent); box-shadow: 0 8px 30px rgba(230,57,70,0.1); }
.wscc-pkg-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--wscc-accent); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.wscc-pkg-name { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; margin: 0 0 4px; }
.wscc-pkg-desc { color: var(--wscc-muted); font-size: 13px; margin: 0 0 16px; }
.wscc-pkg-price { font-size: 36px; font-weight: 800; margin: 0 0 20px; }
.wscc-pkg-checks { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.wscc-pkg-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #555; padding: 3px 0; }
.wscc-pkg-checks li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.wscc-pkg-btn { width: 100%; padding: 14px; border: none; border-radius: var(--wscc-radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.wscc-pkg-btn-primary { background: var(--wscc-primary); color: #fff; }
.wscc-pkg-btn-primary:hover { background: var(--wscc-accent); }
.wscc-pkg-btn-accent { background: var(--wscc-accent); color: #fff; }
.wscc-pkg-btn-accent:hover { background: var(--wscc-accent-hover); }

/* ─── How it works ──────────────────────────────── */
.wscc-how-it-works { padding: 80px 20px; background: var(--wscc-bg); text-align: center; }
.wscc-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.wscc-step-card { background: var(--wscc-white); border-radius: var(--wscc-radius); padding: 32px 24px; text-align: left; }
.wscc-step-num { font-size: 42px; font-weight: 800; color: var(--wscc-accent); opacity: 0.3; }
.wscc-step-card h3 { font-size: 18px; font-weight: 700; margin: 12px 0 8px; }
.wscc-step-card p { color: var(--wscc-muted); font-size: 14px; margin: 0; }

/* ─── Buttons ───────────────────────────────────── */
.wscc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--wscc-radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.wscc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wscc-btn-primary { background: var(--wscc-primary); color: #fff; }
.wscc-btn-primary:hover:not(:disabled) { background: var(--wscc-accent); }
.wscc-btn-accent { background: var(--wscc-accent); color: #fff; }
.wscc-btn-accent:hover:not(:disabled) { background: var(--wscc-accent-hover); }
.wscc-btn-outline { background: transparent; border: 1px solid var(--wscc-border); color: var(--wscc-muted); }
.wscc-btn-outline:hover { background: var(--wscc-bg); }
.wscc-btn-ghost { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); }
.wscc-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.wscc-btn-full { width: 100%; }
.wscc-btn-sm { padding: 8px 16px; font-size: 13px; }
.wscc-btn-row { display: flex; gap: 12px; margin-top: 24px; }
.wscc-btn-row .wscc-btn { flex: 1; }

/* ─── Cards ─────────────────────────────────────── */
.wscc-card { background: var(--wscc-white); border: 1px solid var(--wscc-border); border-radius: var(--wscc-radius); padding: 32px; }
.wscc-card-center { text-align: center; }

/* ─── Forms ─────────────────────────────────────── */
.wscc-form-group { margin-bottom: 16px; }
.wscc-form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.wscc-form-group input, .wscc-form-group select { width: 100%; border: 1px solid var(--wscc-border); border-radius: var(--wscc-radius-sm); padding: 12px 16px; font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.wscc-form-group input:focus { border-color: var(--wscc-accent); box-shadow: 0 0 0 3px rgba(230,57,70,0.15); }
.wscc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wscc-inline-group { display: flex; gap: 8px; }
.wscc-inline-group input { flex: 1; }
.wscc-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--wscc-muted); margin: 12px 0; }
.wscc-checkbox-label input { margin-top: 2px; accent-color: var(--wscc-accent); }

/* ─── Check page ────────────────────────────────── */
.wscc-check-page { max-width: 640px; margin: 0 auto; padding: 40px 20px; }
.wscc-steps-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.wscc-step-dot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wscc-muted); }
.wscc-step-dot span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; background: #e5e5e5; color: var(--wscc-muted); transition: all 0.3s; }
.wscc-step-dot.active span { background: var(--wscc-accent); color: #fff; }
.wscc-step-dot.done span { background: #16a34a; color: #fff; }
.wscc-step-line { width: 24px; height: 1px; background: #ddd; }

/* Package list (check page) */
.wscc-package-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.wscc-package-option { width: 100%; background: var(--wscc-white); border: 2px solid var(--wscc-border); border-radius: var(--wscc-radius); padding: 18px 20px; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: all 0.2s; }
.wscc-package-option:hover { border-color: #ccc; }
.wscc-package-option.selected { border-color: var(--wscc-accent); box-shadow: 0 4px 16px rgba(230,57,70,0.08); }
.wscc-package-option-left { display: flex; align-items: center; gap: 12px; }
.wscc-package-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ccc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.wscc-package-option.selected .wscc-package-radio { border-color: var(--wscc-accent); background: var(--wscc-accent); }
.wscc-package-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: none; }
.wscc-package-option.selected .wscc-package-radio-dot { display: block; }
.wscc-package-option-name { font-weight: 600; font-size: 15px; }
.wscc-package-option-checks { font-size: 12px; color: var(--wscc-muted); margin-top: 2px; }
.wscc-popular-tag { display: inline-block; background: var(--wscc-accent); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-left: 8px; }
.wscc-package-option-price { font-size: 24px; font-weight: 800; flex-shrink: 0; }

/* Order summary */
.wscc-order-summary { background: var(--wscc-bg); border-radius: var(--wscc-radius-sm); padding: 16px; margin: 20px 0; }
.wscc-order-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.wscc-order-row.wscc-order-discount { color: #16a34a; }
.wscc-order-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--wscc-border); }
.wscc-order-total-price { font-size: 22px; font-weight: 800; }

/* ─── Processing page ───────────────────────────── */
.wscc-processing-page { background: var(--wscc-primary); min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.wscc-processing-content { text-align: center; max-width: 480px; width: 100%; }

.wscc-progress-ring { width: 96px; height: 96px; margin: 0 auto 32px; position: relative; }
.wscc-progress-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.wscc-ring-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 4; }
.wscc-ring-fill { fill: none; stroke: var(--wscc-accent); stroke-width: 4; stroke-dasharray: 276; stroke-dashoffset: 276; transition: stroke-dashoffset 1s ease; }
.wscc-ring-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 36px; }

.wscc-stage-list { text-align: left; margin: 32px 0; }
.wscc-stage { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: var(--wscc-radius-sm); transition: background 0.3s; color: rgba(255,255,255,0.25); font-size: 14px; }
.wscc-stage.active { background: rgba(255,255,255,0.08); color: #fff; }
.wscc-stage.done { color: #4ade80; }
.wscc-stage-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.wscc-stage.active .wscc-stage-dot { border-color: var(--wscc-accent); }
.wscc-stage.active .wscc-stage-dot::after { content: ''; width: 8px; height: 8px; background: var(--wscc-accent); border-radius: 50%; animation: wscc-pulse 1s infinite; }
.wscc-stage.done .wscc-stage-dot { background: #16a34a; border-color: #16a34a; }
.wscc-stage.done .wscc-stage-dot::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }

.wscc-fail-icon { font-size: 60px; margin-bottom: 20px; }
.wscc-spinner { width: 48px; height: 48px; border: 4px solid var(--wscc-yellow); border-top-color: transparent; border-radius: 50%; animation: wscc-spin 0.8s linear infinite; margin: 0 auto 24px; }
@keyframes wscc-spin { to { transform: rotate(360deg); } }

/* ─── Results page ──────────────────────────────── */
.wscc-results-header { background: var(--wscc-primary); color: #fff; padding: 40px 20px; }
.wscc-results-header-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wscc-results-info { flex: 1; }
.wscc-result-car-img { width: 192px; height: 112px; object-fit: cover; border-radius: var(--wscc-radius-sm); opacity: 0.9; }
.wscc-results-body { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.wscc-results-body section { margin-bottom: 32px; }

.wscc-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .wscc-check-grid { grid-template-columns: 1fr; } }
.wscc-status-badge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--wscc-radius-sm); border: 1px solid var(--wscc-border); }
.wscc-status-badge.pass { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.wscc-status-badge.fail { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.wscc-status-badge.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.wscc-status-badge-icon { font-size: 18px; flex-shrink: 0; }
.wscc-status-badge-label { font-weight: 600; font-size: 14px; }
.wscc-status-badge-detail { font-size: 12px; opacity: 0.75; margin-top: 2px; }

.wscc-mot-list { background: var(--wscc-white); border: 1px solid var(--wscc-border); border-radius: var(--wscc-radius); overflow: hidden; }
.wscc-mot-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--wscc-border); }
.wscc-mot-item:last-child { border-bottom: none; }
.wscc-mot-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.wscc-mot-dot.pass { background: #16a34a; }
.wscc-mot-dot.fail { background: var(--wscc-accent); }

.wscc-val-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.wscc-val-card { background: var(--wscc-bg); border-radius: var(--wscc-radius-sm); padding: 20px; text-align: center; }
.wscc-val-label { font-size: 12px; color: var(--wscc-muted); margin-bottom: 4px; }
.wscc-val-amount { font-size: 24px; font-weight: 800; }

/* ─── Auth pages ────────────────────────────────── */
.wscc-auth-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 20px; background: var(--wscc-bg); }
.wscc-auth-container { width: 100%; max-width: 420px; }
.wscc-auth-header { text-align: center; margin-bottom: 24px; }
.wscc-benefits { display: flex; justify-content: center; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--wscc-muted); }
.wscc-auth-footer { text-align: center; font-size: 13px; color: var(--wscc-muted); margin-top: 20px; }
.wscc-auth-footer a { color: var(--wscc-accent); font-weight: 600; text-decoration: none; }
.wscc-auth-footer a:hover { text-decoration: underline; }

/* ─── Members dashboard ─────────────────────────── */
.wscc-members-header { background: var(--wscc-primary); color: #fff; padding: 24px; border-radius: var(--wscc-radius); margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }
.wscc-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 24px; }
.wscc-stat-card { background: var(--wscc-white); border: 1px solid var(--wscc-border); border-radius: var(--wscc-radius); padding: 20px; }
.wscc-stat-card-label { font-size: 12px; color: var(--wscc-muted); }
.wscc-stat-card-value { font-size: 24px; font-weight: 800; }
.wscc-cta-card { display: flex; align-items: center; gap: 16px; background: var(--wscc-accent); color: #fff; padding: 20px 24px; border-radius: var(--wscc-radius); text-decoration: none; transition: background 0.2s; margin-bottom: 24px; cursor: pointer; border: none; width: 100%; }
.wscc-cta-card:hover { background: var(--wscc-accent-hover); color: #fff; text-decoration: none; }
.wscc-cta-icon { font-size: 24px; width: 44px; height: 44px; background: rgba(255,255,255,0.2); border-radius: var(--wscc-radius-sm); display: flex; align-items: center; justify-content: center; }
.wscc-cta-title { font-weight: 600; font-size: 16px; margin: 0; }
.wscc-cta-subtitle { opacity: 0.7; font-size: 13px; margin: 2px 0 0; }
.wscc-cta-arrow { margin-left: auto; font-size: 20px; }

.wscc-check-card { display: flex; align-items: center; gap: 14px; background: var(--wscc-white); border: 1px solid var(--wscc-border); border-radius: var(--wscc-radius); padding: 18px 20px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; }
.wscc-check-card:hover { border-color: rgba(230,57,70,0.3); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.wscc-check-card-icon { width: 48px; height: 48px; background: var(--wscc-bg); border-radius: var(--wscc-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.wscc-check-card-info { flex: 1; min-width: 0; }
.wscc-check-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wscc-check-card-tag { font-size: 11px; background: var(--wscc-bg); padding: 2px 8px; border-radius: 999px; color: var(--wscc-muted); }
.wscc-check-card-right { text-align: right; flex-shrink: 0; }
.wscc-center-content { display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.wscc-empty-state { text-align: center; padding: 40px 20px; color: var(--wscc-muted); }

/* ─── Chatbot ───────────────────────────────────── */
.wscc-chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 99999; width: 56px; height: 56px; border-radius: 50%; background: var(--wscc-accent); color: #fff; border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.wscc-chat-fab:hover { background: var(--wscc-accent-hover); transform: scale(1.05); }
.wscc-chat-fab.hidden { transform: scale(0); opacity: 0; pointer-events: none; }

.wscc-chat-window { position: fixed; bottom: 24px; right: 24px; z-index: 99999; width: 360px; max-width: calc(100vw - 48px); background: var(--wscc-white); border-radius: var(--wscc-radius); box-shadow: 0 8px 40px rgba(0,0,0,0.15); border: 1px solid var(--wscc-border); display: flex; flex-direction: column; overflow: hidden; max-height: 500px; }
.wscc-chat-header { background: var(--wscc-primary); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.wscc-chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--wscc-accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.wscc-chat-name { font-size: 14px; font-weight: 600; margin: 0; }
.wscc-chat-status { font-size: 11px; color: rgba(255,255,255,0.5); margin: 0; }
.wscc-chat-close { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 16px; margin-left: auto; padding: 4px; }
.wscc-chat-close:hover { color: #fff; }

.wscc-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 340px; }
.wscc-chat-msg { display: flex; }
.wscc-chat-bot { justify-content: flex-start; }
.wscc-chat-user { justify-content: flex-end; }
.wscc-chat-bubble { max-width: 80%; padding: 10px 14px; border-radius: var(--wscc-radius); font-size: 13px; line-height: 1.5; }
.wscc-chat-bot .wscc-chat-bubble { background: var(--wscc-bg); color: var(--wscc-text); border-bottom-left-radius: 4px; }
.wscc-chat-user .wscc-chat-bubble { background: var(--wscc-primary); color: #fff; border-bottom-right-radius: 4px; }

.wscc-chat-typing { display: flex; gap: 4px; padding: 10px 14px; background: var(--wscc-bg); border-radius: var(--wscc-radius); border-bottom-left-radius: 4px; }
.wscc-chat-typing span { width: 6px; height: 6px; background: #aaa; border-radius: 50%; animation: wscc-bounce 1.4s infinite; }
.wscc-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.wscc-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wscc-bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

.wscc-chat-input-bar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--wscc-border); }
.wscc-chat-input-bar input { flex: 1; background: var(--wscc-bg); border: none; border-radius: var(--wscc-radius-sm); padding: 8px 14px; font-size: 13px; outline: none; }
.wscc-chat-input-bar input:focus { box-shadow: 0 0 0 2px rgba(230,57,70,0.15); }
.wscc-chat-send { width: 36px; height: 36px; border-radius: var(--wscc-radius-sm); background: var(--wscc-accent); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.wscc-chat-send:hover { background: var(--wscc-accent-hover); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
    .wscc-packages-grid { grid-template-columns: 1fr; }
    .wscc-steps-grid { grid-template-columns: 1fr; }
    .wscc-form-row { grid-template-columns: 1fr; }
    .wscc-results-header-inner { flex-direction: column; text-align: center; }
    .wscc-result-car-img { width: 100%; height: auto; }
    .wscc-val-grid { grid-template-columns: 1fr 1fr; }
    .wscc-stats-grid { grid-template-columns: 1fr 1fr; }
    .wscc-benefits { flex-direction: column; gap: 6px; }
    .wscc-chat-window { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}
