*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --bg-input: #f5f7fb;
    --bg-hover: #e8edf5;
    --border: #dce1ea;
    --border-focus: #2563eb;
    --text: #111827;
    --text-dim: #4b5563;
    --text-muted: #9ca3af;
    --accent: #2563eb;
    --accent-hover: #1d4fd8;
    --accent-light: #dbeafe;
    --accent-glow: rgba(37,99,235,0.18);
    --success: #059669;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, sans-serif;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* ===== Login ===== */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eff6ff, #dbeafe, #bfdbfe); }
.login-card { background: #fff; border-radius: 16px; padding: 48px 40px; width: 100%; max-width: 380px; box-shadow: var(--shadow-md); text-align: center; }
.login-logo { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2563eb, #3b82f6); border-radius: 16px; color: #fff; }
.login-title { font-size: 22px; font-weight: 800; }
.login-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.login-form { text-align: left; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.login-field input { width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 14px; color: var(--text); }
.login-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.login-error { color: var(--danger); font-size: 13px; margin-bottom: 12px; padding: 8px 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; }
.login-btn { width: 100%; padding: 11px; background: var(--accent); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 600; border: none; border-radius: var(--radius-sm); cursor: pointer; }
.login-btn:hover { background: var(--accent-hover); }

/* ===== Landing ===== */
.landing-screen { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #f0f4f8 0%, #e0eafc 50%, #dbeafe 100%); }
.landing-header { flex-shrink: 0; }
.landing-header .logo { cursor: default; }
.landing-header .logo:hover { opacity: 1; }
.landing-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 680px; width: 100%; margin: 0 auto; padding: 40px 20px; }
.landing-logo { width: 80px; height: 80px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2563eb, #3b82f6); border-radius: 22px; color: #fff; box-shadow: 0 8px 30px rgba(37,99,235,0.25); }
.landing-title { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.landing-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }
.landing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .landing-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .landing-cards { grid-template-columns: 1fr; } }
.landing-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 24px 28px; background: #fff; border: 2px solid var(--border); border-radius: 16px; cursor: pointer; transition: all 0.2s; text-align: center; box-shadow: var(--shadow); }
.landing-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-3px); }
.landing-card-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.lc-profile { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.lc-synth { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.lc-video { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }

/* ===== Video tab ===== */
.video-audio-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 10px 14px; background: var(--accent-light); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text); }
.video-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.video-thumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-order { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; padding: 0 4px; }
.thumb-del { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border: none; border-radius: 9px; background: rgba(0,0,0,0.65); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb-del:hover { background: #dc2626; }
.aspect-row { display: flex; gap: 8px; }
.aspect-btn { flex: 1; padding: 9px 0; border: 2px solid var(--border); background: #fff; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.aspect-btn:hover { border-color: var(--accent); }
.aspect-btn.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

/* ===== Video: auto mode ===== */
.video-mode-switch { display: inline-flex; gap: 4px; padding: 4px; background: #eef2f7; border-radius: 12px; margin: 0 0 18px; }
.vmode-btn { padding: 8px 20px; border: none; background: transparent; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.vmode-btn.active { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.video-auto-card { max-width: 620px; margin: 0 auto; }
.video-auto-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: -4px 0 18px; }
.video-auto-note { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; margin: 4px 0 14px; line-height: 1.5; }
.select-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: #fff; color: var(--text); cursor: pointer; }
.select-input:focus { outline: none; border-color: var(--accent); }
.video-result-card { max-width: 760px; margin: 0 auto; }
.video-result-card #videoPlayer { width: 100%; border-radius: 12px; background: #000; display: block; }
.video-out-title { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 8px; }
.landing-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.landing-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.landing-card-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

/* ===== Header ===== */
.header { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--border); }
.header-left { display: flex; align-items: center; gap: 12px; }
.logo { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2563eb, #3b82f6); border-radius: 10px; color: #fff; border: none; cursor: pointer; transition: opacity 0.15s; }
.logo:hover { opacity: 0.85; }
.header h1 { font-size: 17px; font-weight: 800; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-badge { display: flex; align-items: center; gap: 5px; padding: 4px 12px; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 16px; }
.lang-selector { display: flex; gap: 2px; background: var(--bg); padding: 2px; border-radius: 6px; }
.lang-btn { padding: 4px 10px; border: none; background: transparent; color: var(--text-muted); font-size: 12px; font-family: var(--font); font-weight: 600; border-radius: 4px; cursor: pointer; }
.lang-btn.active { background: var(--accent); color: #fff; }
.lang-btn:hover:not(.active) { background: var(--bg-hover); color: var(--text); }

/* ===== Tabs ===== */
.tab-nav { display: flex; gap: 0; background: #fff; border-bottom: 2px solid var(--border); padding: 0 24px; }
.tab-btn { display: flex; align-items: center; gap: 6px; padding: 12px 20px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-btn svg { opacity: 0.6; }
.tab-btn.active svg { opacity: 1; color: var(--accent); }
.tab-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.tab-page { display: none; }
.tab-page.active { display: block; }

/* ===== Page Layout ===== */
.page-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 24px; min-height: calc(100vh - 110px); align-items: start; }
@media (max-width: 1024px) { .page-layout { grid-template-columns: 1fr; } }
.page-col { display: flex; flex-direction: column; gap: 16px; }

/* ===== Cards ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-full { flex: 1; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.card-title svg { color: var(--accent); }
.step-num { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 50%; }
.count-badge { background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: auto; }

/* ===== Upload ===== */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 32px 16px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent); background: var(--accent-light); }
.upload-icon { color: var(--text-muted); margin-bottom: 8px; }
.upload-text { font-size: 13px; color: var(--text-dim); }
.upload-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== Waveform ===== */
.waveform-info { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.file-name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-duration { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.btn-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border: none; background: none; color: var(--text-muted); border-radius: 4px; cursor: pointer; }
.btn-icon:hover { color: var(--danger); background: #fef2f2; }
.waveform-container { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 12px; min-height: 90px; }
.trim-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.trim-dur { margin-left: auto; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.time-input-group { display: flex; align-items: center; gap: 4px; }
.time-input-group label { color: var(--text-dim); font-weight: 600; font-size: 12px; }
.time-input-group input { width: 72px; padding: 4px 6px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; font-family: var(--font); color: var(--text); font-variant-numeric: tabular-nums; }
.time-input-group input:focus { outline: none; border-color: var(--accent); }
.time-input-group span { color: var(--text-muted); font-size: 11px; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--text-dim); border: 1px solid var(--border); }
.btn-outline:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.btn-full { width: 100%; justify-content: center; padding: 10px 16px; }
.btn-xs { padding: 3px 8px; font-size: 11px; background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.btn-xs:hover { color: var(--accent); border-color: var(--accent); }
.btn-generate { width: 100%; padding: 13px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; font-size: 15px; font-weight: 700; border: none; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; transition: all 0.2s; }
.btn-generate:hover:not(:disabled) { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); }
.btn-generate:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 5px; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.label-row label { margin-bottom: 0; }
textarea, input[type="text"] { width: 100%; padding: 9px 11px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 13px; resize: vertical; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.char-count { text-align: right; font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ===== Toggle ===== */
.toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 8px; }
.toggle-label input { display: none; }
.toggle-switch { flex-shrink: 0; width: 32px; height: 18px; background: var(--border); border-radius: 9px; position: relative; transition: background 0.2s; }
.toggle-switch::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: transform 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.toggle-label input:checked + .toggle-switch { background: var(--accent); }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(14px); }

/* ===== Slider ===== */
.slider { -webkit-appearance: none; appearance: none; height: 4px; background: var(--border); border-radius: 2px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }

/* ===== Advanced ===== */
.advanced-settings { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.advanced-settings summary { padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--text-dim); cursor: pointer; }
.settings-inner { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.setting-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.setting-row label { min-width: 80px; font-weight: 600; }
.setting-row span { min-width: 28px; font-variant-numeric: tabular-nums; }

/* ===== Messages ===== */
.msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; margin-top: 10px; }
.msg-success { background: var(--success-light); color: var(--success); border: 1px solid #a7f3d0; }
.stt-loading { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--accent); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.generating { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-size: 13px; color: var(--text-dim); }

/* ===== Profile Cards ===== */
.profile-grid { display: flex; flex-direction: column; gap: 8px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 14px; font-weight: 500; }
.empty-sub { font-size: 12px; margin-top: 4px; }
.empty-state-sm { text-align: center; padding: 16px; font-size: 13px; color: var(--text-muted); }

.profile-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: default; transition: all 0.15s; }
.profile-card:hover { border-color: #93c5fd; }
.profile-card.selected { border-color: var(--accent); background: var(--accent-light); }
.profile-avatar { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--accent-light); color: var(--accent); border-radius: 50%; flex-shrink: 0; font-weight: 800; font-size: 14px; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 14px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-actions { display: flex; gap: 2px; flex-shrink: 0; }
.profile-actions button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.profile-actions .p-play:hover { color: var(--accent); background: var(--accent-light); }
.profile-actions .p-delete:hover { color: var(--danger); background: #fef2f2; }

.synth-profiles .profile-card { cursor: pointer; }

/* ===== Selected Profile Banner ===== */
.selected-profile { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--accent-light); border: 1px solid #93c5fd; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.selected-profile-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border-radius: 50%; }

/* ===== Output ===== */
.output-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.output-duration { margin-left: auto; font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ===== History ===== */
.history-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 4px; font-size: 12px; }
.history-item:hover { border-color: #93c5fd; }
.hist-play { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--accent-light); border: none; border-radius: 50%; color: var(--accent); cursor: pointer; flex-shrink: 0; }
.hist-play:hover { background: var(--accent); color: #fff; }
.hist-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-dur { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ===== Chatbot ===== */
.chatbot-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 1000;
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
    border-radius: 50%; cursor: pointer; box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    transition: all 0.2s;
}
.chatbot-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,99,235,0.45); }

.chatbot-panel {
    position: fixed; bottom: 24px; right: 24px; z-index: 1001;
    width: 380px; height: 520px; max-height: calc(100vh - 48px);
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    display: flex; flex-direction: column; overflow: hidden;
}
@media (max-width: 480px) { .chatbot-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; } }

.chatbot-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
}
.chatbot-header-left { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.chatbot-close {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.15); border: none; border-radius: 6px; color: #fff; cursor: pointer;
}
.chatbot-close:hover { background: rgba(255,255,255,0.3); }

.chatbot-messages {
    flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
}

.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.chat-bubble {
    max-width: 85%; padding: 10px 14px; border-radius: 12px;
    font-size: 13px; line-height: 1.5; word-break: break-word;
}
.chat-msg.bot .chat-bubble { background: var(--bg-input); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot .chat-bubble.typing { color: var(--text-muted); font-style: italic; }

.chatbot-input {
    display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fff;
}
.chatbot-input input {
    flex: 1; padding: 9px 12px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 8px; font-family: var(--font); font-size: 13px; color: var(--text);
}
.chatbot-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.chatbot-send {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.chatbot-send:hover { background: var(--accent-hover); }

/* ===== Card News ===== */
.lc-cardnews { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.cmode-btn { padding: 8px 20px; border: none; background: transparent; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.cmode-btn.active { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.cardnews-card { max-width: 640px; }
.cardnews-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.cn-card-thumb { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.15s; aspect-ratio: 1 / 1; background: #f1f5f9; }
.cn-card-thumb:hover { transform: translateY(-3px); }
.cn-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Utility ===== */
.hidden { display: none !important; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
