:root {
  --bg: #ffffff;
  --bg-sidebar: #f7f8fa;
  --bg-card: #f8f9fb;
  --bg-card-hover: #eef0f4;
  --border: #e2e5eb;
  --text: #1a1f2b;
  --text-muted: #6b7280;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-text: #15803d;
  --danger: #dc2626;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.auth-card h1 { font-size: 20px; margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.field textarea { resize: vertical; }
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary { background: var(--accent); color: #06210f; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-block { width: 100%; }
.error-msg { background: rgba(244,63,94,0.1); color: #b91c1c; border: 1px solid rgba(244,63,94,0.3); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.success-msg { background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(34,197,94,0.3); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.auth-switch { margin-top: 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.auth-switch a { color: var(--accent-text); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #ffffff; color: #3c4043; border: 1px solid #dadce0;
}
.btn-google:hover { background: #f8f9fa; }

/* ---------- App shell ---------- */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 700; font-size: 16px; }
.sidebar-logo-img { width: 28px; height: 28px; border-radius: 7px; }
.sidebar-account {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 18px;
}
.sidebar-account .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.sidebar-account .who { overflow: hidden; }
.sidebar-account .who div:first-child { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-account .who div:last-child { color: var(--text-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-section { margin-bottom: 18px; }
.nav-section-title { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; padding: 0 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; color: var(--text-muted); font-size: 13px; cursor: pointer;
  text-decoration: none;
}
.nav-item.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav-item.disabled { opacity: 0.4; cursor: not-allowed; }
.nav-item:not(.disabled):not(.active):hover { background: var(--bg-card); color: var(--text); }

.sidebar-bottom { margin-top: auto; }
.credit-block { padding: 10px; }
.credit-block .label { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.credit-block .amount { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.credit-bar { height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; margin-bottom: 12px; }
.credit-bar-fill { height: 100%; background: var(--accent); }

.topbar {
  height: 52px; flex-shrink: 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 20px;
  color: var(--text-muted); font-size: 13px;
}
.topbar .pill { background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.workspace { flex: 1; display: flex; min-height: 0; }

.editor-col { flex: 1; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); }
.editor-textarea {
  flex: 1; border: none; background: transparent; color: var(--text);
  padding: 24px; font-size: 15px; line-height: 1.9; resize: none; outline: none;
}
.editor-toolbar {
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
}
.chip { background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.muted-note { color: var(--text-muted); font-size: 12px; }
.spacer { flex: 1; }

.settings-col { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab { flex: 1; text-align: center; padding: 12px; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { padding: 18px; overflow-y: auto; flex: 1; }
.tab-panel.hidden { display: none; }
.settings-label { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; margin: 16px 0 8px; }
.settings-label:first-child { margin-top: 0; }
.voice-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px;
  cursor: pointer; margin-bottom: 8px;
}
.voice-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.voice-card .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-card-hover); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.voice-card .info div:first-child { font-weight: 600; font-size: 13px; }
.voice-card .info div:last-child { color: var(--text-muted); font-size: 11px; }

.history-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--bg-card); }
.history-item .top-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.status-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.status-badge.done { background: var(--accent-soft); color: var(--accent-text); }
.status-badge.pending { background: rgba(217,119,6,0.12); color: #a16207; }
.status-badge.error { background: rgba(244,63,94,0.14); color: var(--danger); }
.history-item .history-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.history-item .foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }
.history-item audio { width: 100%; margin-top: 6px; }

.dropzone-hint { border-top: 1px solid var(--border); padding: 8px 20px; color: var(--text-muted); font-size: 12px; }

/* ---------- Selected-voice trigger (collapsed state in the settings panel) ---------- */
.voice-trigger {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px;
}
.voice-trigger:hover { border-color: var(--accent); }
.voice-trigger .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-card-hover); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.voice-trigger .info { flex: 1; min-width: 0; }
.voice-trigger .info div { font-weight: 600; font-size: 13px; }
.voice-trigger .chevron { color: var(--text-muted); }

/* ---------- Điều chỉnh tốc độ giọng đọc ---------- */
.speed-control {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
}
.speed-control input[type="range"] {
  flex: 1; accent-color: var(--accent); cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { background: var(--border); height: 4px; border-radius: 999px; }
input[type="range"]::-moz-range-track { background: var(--border); height: 4px; border-radius: 999px; }
.speed-value {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--text);
  min-width: 42px; text-align: right;
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row label { font-size: 13px; color: var(--text); cursor: pointer; }
.toggle-switch {
  position: relative; width: 38px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: var(--border); border: none; cursor: pointer; padding: 0; transition: background 0.15s;
}
.toggle-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.15s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch.on::after { transform: translateX(16px); }

.settings-reset {
  display: flex; align-items: center; gap: 6px; margin-top: 20px;
  background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; padding: 0;
}
.settings-reset:hover { color: var(--text); }
.settings-reset .reset-icon { font-size: 14px; }

/* ---------- Cờ quốc gia thật (ảnh) thay cho emoji lá cờ ---------- */
.flag-icon { border-radius: 2px; object-fit: cover; vertical-align: middle; flex-shrink: 0; }
.voice-tag { display: inline-flex; align-items: center; gap: 5px; }

.flag-select { position: relative; }
.flag-select-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px;
  background: var(--bg-card); color: var(--text); cursor: pointer;
}
.flag-select-trigger .flag-select-label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flag-select-trigger .flag-select-chevron { color: var(--text-muted); font-size: 11px; }
.flag-select-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  max-height: 240px; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.flag-select-list.hidden { display: none; }
.flag-select-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px;
  font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap;
}
.flag-select-item:hover { background: var(--bg-card-hover); }
.flag-select-item.active { background: var(--accent-soft); color: var(--accent-text); }

/* Modal (voice picker) dùng nền sáng riêng — ghi đè lại token cho hợp giao diện đó */
.modal-filters .flag-select-trigger {
  border-color: #e2e5eb; background: #f8f9fb; color: #1a1f2b; min-width: 130px;
}
.modal-filters .flag-select-chevron { color: #6b7280; }
.modal-filters .flag-select-list { background: #fff; border-color: #e2e5eb; box-shadow: 0 12px 28px rgba(20,26,38,0.14); }
.modal-filters .flag-select-item { color: #1a1f2b; }
.modal-filters .flag-select-item:hover { background: #f1f3f6; }
.modal-filters .flag-select-item.active { background: rgba(34,197,94,0.12); color: #16a34a; }

/* ---------- Voice picker modal (light theme, matches reference) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,8,14,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #ffffff; color: #1a1f2b; border-radius: 14px;
  width: 1080px; max-width: 94vw; height: min(720px, 88vh);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 12px; }
.modal-header h2 { margin: 0; font-size: 19px; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #6b7280; width: 32px; height: 32px; border-radius: 8px; }
.modal-close:hover { background: #f1f3f6; }

.modal-tabs { display: flex; gap: 8px; padding: 0 24px 14px; }
.modal-tab {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #6b7280; cursor: pointer; background: #f1f3f6;
}
.modal-tab.active { background: var(--accent); color: #06210f; }

.modal-filters.hidden { display: none; }
.modal-filters { display: flex; align-items: flex-end; gap: 14px; padding: 0 24px 14px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-field label { font-size: 11px; color: #6b7280; font-weight: 600; }
.filter-field select {
  border: 1px solid #e2e5eb; border-radius: 8px; padding: 7px 10px; font-size: 13px;
  background: #f8f9fb; color: #1a1f2b; min-width: 130px;
}
.filter-field select:disabled { color: #b0b6c0; cursor: not-allowed; }
.filter-reset {
  background: #f1f3f6; border: 1px solid #e2e5eb; border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; color: #4b5563; font-size: 14px;
}
.filter-reset:hover { background: #e6e8ec; }

.modal-search { padding: 0 24px 16px; }
.modal-search input {
  width: 100%; border: 1px solid #e2e5eb; border-radius: 8px; padding: 10px 14px; font-size: 14px;
  background: #f8f9fb; color: #1a1f2b;
}
.modal-grid {
  padding: 0 24px 24px; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; flex: 1; min-height: 0; align-content: start;
}
.modal-voice-card { position: relative; border: 1px solid #e6e8ec; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.modal-voice-card:hover { border-color: #c9cdd6; }
.modal-voice-card .row { display: flex; align-items: center; gap: 10px; }
.modal-voice-card .avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.modal-voice-card .name-block { min-width: 0; }
.modal-voice-card .name { font-weight: 600; font-size: 13px; line-height: 1.3; }
.modal-voice-card .tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.voice-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 8px; border-radius: 999px;
  background: #eef1f6; color: #4b5563;
}
.voice-tag.alt { background: rgba(34,197,94,0.12); color: #16a34a; }
.modal-voice-card .card-actions { display: flex; align-items: center; gap: 4px; }
.modal-voice-card .use-btn {
  background: var(--accent); color: #06210f; border: none; border-radius: 7px;
  padding: 6px 16px; font-weight: 700; font-size: 12px; cursor: pointer;
}
.icon-btn {
  background: #f1f3f6; border: none; border-radius: 7px; width: 28px; height: 28px;
  font-size: 12px; color: #4b5563; cursor: pointer;
}
.icon-btn:hover { background: #e6e8ec; }
.modal-voice-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.modal-empty { color: #8b93a3; padding: 30px; text-align: center; grid-column: 1 / -1; }
.modal-empty.hidden { display: none; }

.fav-btn {
  position: absolute; top: 10px; right: 10px; background: none; border: none; cursor: pointer;
  font-size: 16px; color: #b8bec9; line-height: 1; padding: 2px;
}
.fav-btn.active { color: #f43f5e; }

.add-voice-tile {
  align-items: center; justify-content: center; text-align: center; gap: 8px;
  border: 2px dashed #d7dbe3; color: #6b7280; cursor: pointer;
}
.add-voice-tile:hover { border-color: var(--accent); color: var(--accent-text); }
.add-voice-tile .add-voice-icon { font-size: 26px; font-weight: 300; line-height: 1; }
.add-voice-tile .add-voice-label { font-size: 12px; font-weight: 600; }
.add-voice-tile.hidden { display: none; }

/* ---------- Trang "Nhân bản giọng nói mới" (2 cột: form trái, danh sách phải) ---------- */
.clone-page { flex: 1; display: flex; gap: 20px; padding: 20px; min-height: 0; }
.clone-page-col {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px;
  overflow-y: auto;
}
.clone-form-card { flex: 1.3; min-width: 0; display: flex; flex-direction: column; }
.clone-form-card h1 { font-size: 18px; margin: 0 0 6px; }
.clone-page-subtitle { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; line-height: 1.5; }
#clone-create-form { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.clone-form-footer { margin-top: auto; padding-top: 20px; }
.clone-list-card { flex: 1; min-width: 0; max-width: 420px; display: flex; flex-direction: column; }
.clone-list-card h2 { font-size: 16px; margin: 0 0 4px; }
.clone-list-count { color: var(--text-muted); font-size: 12px; margin-bottom: 14px; }

.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; min-width: 0; }

.dropzone {
  position: relative; border: 1.5px dashed var(--border); border-radius: 10px; padding: 24px 16px;
  text-align: center; cursor: pointer; background: var(--bg-card-hover); transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.dropzone-icon { font-size: 22px; color: var(--text-muted); margin-bottom: 8px; }
.dropzone-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dropzone-hint { font-size: 11px; color: var(--text-muted); }
.dropzone-filename { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.dropzone-filename.hidden { display: none; }
.dropzone.has-file { border-color: var(--accent); border-style: solid; }

.clone-free-note { color: var(--text-muted); font-size: 12px; margin: 4px 0 16px; line-height: 1.5; }

.clone-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.clone-list-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border);
}
.clone-list-item:last-child { border-bottom: none; }
.clone-list-item .avatar {
  width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 13px;
}
.clone-list-info { flex: 1; min-width: 0; }
.clone-list-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clone-list-date { font-size: 11px; color: var(--text-muted); }
.clone-list-duration { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.clone-list-delete-form { margin: 0; flex-shrink: 0; }
.clone-list .icon-btn {
  background: var(--bg-card-hover); color: var(--text-muted); flex-shrink: 0;
}
.clone-list .icon-btn:hover { color: var(--text); }

/* ---------- Trang "Mua tín dụng" ---------- */
.buy-form-card { flex: 1; max-width: 460px; }
.buy-status-card { flex: 1; max-width: 340px; }
.buy-bank-info {
  background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin: 14px 0; display: flex; flex-direction: column; gap: 6px;
}
.buy-bank-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.buy-bank-row span { color: var(--text-muted); }
.buy-qr-box {
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 10px;
  min-height: 200px; padding: 16px;
}
.buy-qr-img { max-width: 220px; width: 100%; border-radius: 6px; }
.buy-qr-placeholder { color: var(--text-muted); font-size: 13px; text-align: center; }
.buy-transfer-content { margin-bottom: 10px; }
.buy-transfer-content label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.buy-countdown {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px;
  color: var(--text-muted);
}
.buy-countdown.low { color: var(--danger); }
.buy-transfer-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; font-weight: 700; letter-spacing: 0.03em; text-align: center;
  background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--text);
}
.buy-stepper {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px;
}
.buy-stepper-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card-hover); color: var(--text); font-size: 20px; font-weight: 700;
  cursor: pointer; flex-shrink: 0; line-height: 1;
}
.buy-stepper-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.buy-stepper-amount { text-align: center; min-width: 180px; }
.buy-stepper-vnd { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy-stepper-credits { color: var(--accent-text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-total-credits { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 8px 0 2px; }
.buy-pending-list { display: flex; flex-direction: column; gap: 8px; }
.buy-pending-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 13px;
}
.btn-secondary {
  background: var(--bg-card-hover); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; font-size: 14px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-text); }
