/* ═══ StartupDealVault — Modern Admin Theme ═══ */

:root {
  --bg: #0a0b10;
  --surface: #12141d;
  --surface-hover: #181b27;
  --border: #1e2235;
  --border-light: #262a40;
  --text: #a8b2c7;
  --text-bright: #e8ecf4;
  --text-dim: #5a6278;

  /* Gradient accent palette */
  --accent: #7c5cfc;
  --accent-light: #9b7eff;
  --accent-dark: #5b3fd4;
  --gradient-accent: linear-gradient(135deg, #7c5cfc 0%, #4cc9f0 100%);
  --gradient-accent-hover: linear-gradient(135deg, #6b4de6 0%, #3bb8df 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-green: linear-gradient(135deg, #0cebeb 0%, #20e3b2 50%, #29ffc6 100%);
  --gradient-sidebar: linear-gradient(180deg, #12141d 0%, #0e1018 100%);

  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  --shadow-glow: 0 0 30px rgba(124,92,252,.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── Layout ─── */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  font-size: 15px;
  font-weight: 700;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s ease;
  border-left: 3px solid transparent;
  margin: 1px 0;
}

.nav-item:hover {
  color: var(--text-bright);
  background: rgba(124,92,252,.06);
  border-left-color: rgba(124,92,252,.3);
}

.nav-item.active {
  color: var(--accent-light);
  background: rgba(124,92,252,.1);
  border-left-color: var(--accent);
}

.content {
  flex: 1;
  margin-left: 240px;
  padding: 28px 36px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header h1 {
  font-size: 24px;
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: -.3px;
}

/* ─── Stat Cards ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity .25s ease;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-card:hover::before { opacity: 1; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -.5px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}

.card:hover { border-color: var(--border-light); }

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-bright);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -.1px;
}

.card-body { padding: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Tables ─── */
table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-dim);
  font-weight: 700;
  background: rgba(124,92,252,.03);
}

tr { transition: background .15s ease; }
tr:hover { background: rgba(124,92,252,.04); }

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .2px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  gap: 6px;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--text-bright);
  background: var(--surface-hover);
}

.btn-sm { padding: 5px 12px; font-size: 12px; }

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(124,92,252,.3);
}

.btn-accent:hover {
  background: var(--gradient-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,92,252,.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-danger:hover {
  opacity: .9;
  color: #fff;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-success:hover {
  opacity: .9;
  color: #fff;
  transform: translateY(-1px);
}

/* ─── Form Elements ─── */
.input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-size: 13px;
  font-family: inherit;
  transition: all .2s ease;
}

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,.12);
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ─── Filter Bar ─── */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-bar .input, .filter-bar select { width: auto; }

/* ─── Alerts ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-warning {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  color: var(--yellow);
}

.alert-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  color: var(--red);
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  color: var(--green);
  margin-bottom: 16px;
}

/* ─── Typography Utilities ─── */
.text-sm { font-size: 12px; }
.text-dim { color: var(--text-dim); }
.text-mono { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; }
.text-right { text-align: right; }

code {
  background: rgba(124,92,252,.08);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  border: 1px solid rgba(124,92,252,.15);
}

kbd {
  background: var(--surface);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}

hr { border: none; border-top: 1px solid var(--border); }

.masked-secret { cursor: pointer; color: var(--text-dim); transition: color .2s; }
.masked-secret:hover { color: var(--accent-light); }

/* ─── CSS Modal System ─── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all .15s;
}

.modal-close:hover { color: var(--text-bright); background: var(--surface-hover); }

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Beautiful Confirm Modal ─── */
.confirm-modal-overlay {
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.confirm-modal {
  max-width: 420px;
  text-align: center;
  padding: 32px 28px 24px;
  background: rgba(18,20,29,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  animation: confirmIn .25s cubic-bezier(.4,0,.2,1);
}

@keyframes confirmIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-modal-overlay:not(.active) .confirm-modal {
  animation: confirmOut .2s ease forwards;
}

@keyframes confirmOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(.95) translateY(10px); }
}

.confirm-modal-icon {
  margin-bottom: 20px;
}

.confirm-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  animation: iconPulse 2s ease-in-out infinite;
}

.confirm-icon-danger {
  background: rgba(239,68,68,.1);
  border: 2px solid rgba(239,68,68,.25);
  box-shadow: 0 0 20px rgba(239,68,68,.1);
}

.confirm-icon-warning {
  background: rgba(245,158,11,.1);
  border: 2px solid rgba(245,158,11,.25);
  box-shadow: 0 0 20px rgba(245,158,11,.1);
}

.confirm-icon-success {
  background: rgba(16,185,129,.1);
  border: 2px solid rgba(16,185,129,.25);
  box-shadow: 0 0 20px rgba(16,185,129,.1);
}

.confirm-icon-info {
  background: rgba(124,92,252,.1);
  border: 2px solid rgba(124,92,252,.25);
  box-shadow: 0 0 20px rgba(124,92,252,.1);
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.confirm-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: -.2px;
}

.confirm-modal-msg {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-cancel-btn {
  min-width: 100px;
  background: var(--surface-hover);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-weight: 500;
  transition: all .2s ease;
}

.confirm-cancel-btn:hover {
  background: var(--border);
  color: var(--text-bright);
  border-color: var(--text-dim);
}

.confirm-ok-btn {
  min-width: 120px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: all .2s ease;
}

.confirm-ok-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,92,252,.3);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  font-weight: 600;
}

.btn-warning:hover {
  opacity: .9;
  color: #000;
  transform: translateY(-1px);
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: toastIn .3s ease, toastOut .3s ease 3.7s forwards;
  max-width: 360px;
}

.toast-success { background: linear-gradient(135deg, #10b981, #059669); }
.toast-error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-info { background: var(--gradient-accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

/* ─── Pagination ─── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 18px;
  font-size: 13px;
}

.pagination-bar .page-info { color: var(--text-dim); }

.pagination-bar .page-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination-bar .page-buttons .btn { min-width: 36px; }

.pagination-bar .per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

.pagination-bar .per-page select { width: auto; padding: 5px 10px; }

/* ─── Login Page ─── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,92,252,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(76,201,240,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(245,87,108,.06) 0%, transparent 50%),
    var(--bg);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(18,20,29,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124,92,252,.08);
}

.login-card .brand {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}

.login-card .brand-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 32px;
}

.login-card .form-group { margin-bottom: 18px; }

.login-card .btn-accent {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  margin-top: 6px;
}

/* ─── Review Card Styles ─── */
.review-card {
  transition: all .2s ease;
}

.review-card:hover {
  border-color: var(--border-light);
}

.review-card.highlighted {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-dim);
}

.empty-state .icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .5;
}

.empty-state p { font-size: 14px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar-brand { font-size: 0; padding: 16px 8px; text-align: center; }
  .sidebar-brand::after { content: 'SDV'; font-size: 14px; -webkit-text-fill-color: var(--accent); }
  .nav-item { padding: 12px; justify-content: center; font-size: 0; }
  .nav-item .badge { display: none; }
  .content { margin-left: 64px; padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .input, .filter-bar select { width: 100%; }
  .pagination-bar { flex-direction: column; gap: 10px; text-align: center; }
  .login-card { padding: 28px 24px; }
}

/* ─── Source Platform Badges ──────────────────── */
.badge-source {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-reddit      { background: rgba(255, 69, 0, 0.15);  color: #ff4500; border: 1px solid rgba(255, 69, 0, 0.25); }
.badge-telegram    { background: rgba(0, 136, 204, 0.15);  color: #0088cc; border: 1px solid rgba(0, 136, 204, 0.25); }
.badge-twitter     { background: rgba(29, 155, 240, 0.15); color: #1d9bf0; border: 1px solid rgba(29, 155, 240, 0.25); }
.badge-github      { background: rgba(110, 84, 148, 0.15); color: #6e5494; border: 1px solid rgba(110, 84, 148, 0.25); }
.badge-hn          { background: rgba(255, 102, 0, 0.15);  color: #ff6600; border: 1px solid rgba(255, 102, 0, 0.25); }
.badge-news        { background: rgba(52, 152, 219, 0.15); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.25); }
.badge-discovery   { background: rgba(155, 89, 182, 0.15); color: #9b59b6; border: 1px solid rgba(155, 89, 182, 0.25); }
.badge-scraper     { background: rgba(149, 165, 166, 0.15); color: #95a5a6; border: 1px solid rgba(149, 165, 166, 0.25); }

/* ─── Freshness Badges ────────────────────────── */
.badge-freshness {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-fresh-now    { background: rgba(46, 204, 113, 0.2);  color: #27ae60; }
.badge-fresh-today  { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.badge-fresh-recent { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.badge-fresh-week   { background: rgba(241, 196, 15, 0.15); color: #f39c12; }
.badge-fresh-old    { background: rgba(149, 165, 166, 0.15); color: #95a5a6; }

/* ─── Expiry Badges ───────────────────────────── */
.badge-expiry {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-expired         { background: rgba(231, 76, 60, 0.2);   color: #e74c3c; }
.badge-expiring-soon   { background: rgba(231, 76, 60, 0.15);  color: #e74c3c; animation: pulse-badge 2s infinite; }
.badge-expiring-week   { background: rgba(241, 196, 15, 0.15); color: #f39c12; }
.badge-expiring-later  { background: rgba(149, 165, 166, 0.15); color: #95a5a6; }
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ─── Enhanced Promo Code Display ─────────────── */
.promo-code-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt, rgba(0, 0, 0, 0.06));
  border: 1.5px dashed var(--accent, #667eea);
  border-radius: 6px;
  padding: 4px 10px;
}
.promo-code-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-light, #764ba2);
  background: transparent;
  padding: 0;
  border: none;
}
.promo-code-copy {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim, #888);
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.promo-code-copy:hover { color: var(--accent, #667eea); background: rgba(102, 126, 234, 0.1); }
.promo-code-copy.copied { color: var(--green, #2ecc71); }

/* ─── Source Filter Dropdown ──────────────────── */
.source-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.source-filter-bar select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: var(--bg-card, rgba(255,255,255,0.05));
  color: var(--text, #ddd);
  font-size: 13px;
}

/* ─── Quick Review Mode ──────────────────────── */
.review-card.keyboard-active {
  border: 2px solid var(--accent, #667eea);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.review-card .quick-actions { display: flex; gap: 6px; margin-top: 8px; }
.review-card .quick-actions .btn { padding: 4px 14px; font-size: 12px; font-weight: 600; }

/* ─── Auto-Reject Rules Panel ─────────────────── */
.auto-reject-rules {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-alt, rgba(0,0,0,0.06));
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
}
.auto-reject-rules h3 { margin: 0 0 12px; font-size: 15px; color: var(--text-bright, #fff); }
.rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  flex-wrap: wrap;
}
.rule-row:last-child { border-bottom: none; }
.rule-row label { font-size: 13px; color: var(--text-dim, #999); }
.rule-row select,
.rule-row input[type="number"] {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: var(--bg-card, rgba(255,255,255,0.05));
  color: var(--text, #ddd);
  font-size: 13px;
  width: auto;
}
.rule-row input[type="number"] { width: 80px; }

/* ─── Accordion / Collapsible Sections ───────── */
.accordion-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}

.accordion-section:hover { border-color: var(--border-light); }

.accordion-section.active { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.accordion-header {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--text-bright);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
  letter-spacing: -.1px;
}

.accordion-header:hover { background: rgba(124,92,252,.04); }

.accordion-header .accordion-icon {
  font-size: 11px;
  color: var(--text-dim);
  transition: transform .25s ease;
  flex-shrink: 0;
}

.accordion-section.active .accordion-header .accordion-icon {
  transform: rotate(180deg);
}

.accordion-header .accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
}

.accordion-section.active .accordion-body {
  max-height: 2000px;
  padding: 0 20px 20px;
}

.accordion-body-inner {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
