/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Dark theme (default) */
  --bg:         #0a0e1a;
  --bg-surface: #0f1429;
  --bg-raised:  #1a2035;
  --bg-hover:   #1e2640;
  --accent-rgb:  0, 212, 255;
  --accent2-rgb: 0, 128, 255;
  --border:     rgba(var(--accent-rgb), 0.12);
  --border-mid: rgba(var(--accent-rgb), 0.22);
  --accent:     #00d4ff;
  --accent-dim: rgba(var(--accent-rgb), 0.15);
  --accent2:    #0080ff;
  --glow:       0 0 20px rgba(var(--accent-rgb), 0.25);
  --glow-sm:    0 0 10px rgba(var(--accent-rgb), 0.18);
  --text:       #e8eaf6;
  --text-sub:   #8892b0;
  --text-muted: #4a5580;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  16px;
  --sidebar-w:  240px;
  --header-h:   56px;
  --bottom-nav-h: 64px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Status colors */
  --s-applied:     #4fc3f7;
  --s-screening:   #ba68c8;
  --s-interviewing:#29b6f6;
  --s-assessment:  #ffb74d;
  --s-offer:       #66bb6a;
  --s-rejected:    #ef5350;
  --s-withdrawn:   #78909c;

  /* Type colors */
  --t-fulltime:  #00d4ff;
  --t-contract:  #ff9100;
}

[data-theme="light"] {
  --bg:         #f0f4ff;
  --bg-surface: #ffffff;
  --bg-raised:  #e8edf8;
  --bg-hover:   #dde5f5;
  --accent-rgb:  0, 100, 204;
  --accent2-rgb: 0, 64, 170;
  --border:     rgba(var(--accent-rgb), 0.14);
  --border-mid: rgba(var(--accent-rgb), 0.28);
  --accent:     #0064cc;
  --accent-dim: rgba(var(--accent-rgb), 0.1);
  --accent2:    #0040aa;
  --glow:       0 0 20px rgba(var(--accent-rgb), 0.15);
  --glow-sm:    0 0 10px rgba(var(--accent-rgb), 0.1);
  --text:       #1a2035;
  --text-sub:   #4a5580;
  --text-muted: #8892b0;
  --shadow:     0 4px 24px rgba(0,0,0,0.1);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --s-applied:     #0288d1;
  --s-screening:   #8e24aa;
  --s-interviewing:#0277bd;
  --s-assessment:  #e65100;
  --s-offer:       #2e7d32;
  --s-rejected:    #c62828;
  --s-withdrawn:   #546e7a;
  --t-fulltime:  #0064cc;
  --t-contract:  #e65100;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

/* Grid texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
}

/* ─── Loading Screen ───────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loading-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.loading-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── App Shell ─────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.3s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Sidebar (Desktop) ──────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100dvh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
}

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

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  box-shadow: var(--glow-sm);
}

.sidebar-stats {
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-stats .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.sidebar-stats .stat-label { color: var(--text-sub); }
.sidebar-stats .stat-value { font-weight: 600; color: var(--accent); }

/* ─── Main Wrapper ───────────────────────────────────────────── */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ─── Mobile Header ──────────────────────────────────────────── */
.mobile-header {
  display: none;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background var(--transition);
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── View Container ──────────────────────────────────────────── */
.view-container {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  width: 100%;
}

/* ─── Bottom Navigation ──────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
  padding: 8px 0;
  position: relative;
}

.bottom-nav-item.active { color: var(--accent); }

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  box-shadow: var(--glow-sm);
}

/* ─── Theme Toggle ───────────────────────────────────────────── */
.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-btn:hover {
  background: var(--bg-hover);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ─── Dashboard Stats Bar ────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
  cursor: pointer;
}

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

.stat-card.active-filter {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--glow-sm);
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Filters ────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  padding: 0 12px 0 38px;
  transition: all var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

.search-input::placeholder { color: var(--text-muted); }

.filter-select {
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  padding: 0 32px 0 12px;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 140px;
}

.filter-select:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

.sort-btn {
  height: 40px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.sort-btn:hover {
  border-color: var(--border-mid);
  color: var(--text);
}

/* ─── Dashboard Header ───────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.dash-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Card Grid ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ─── Application Card ───────────────────────────────────────── */
.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.app-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow), var(--glow-sm);
  transform: translateY(-2px);
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-company {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-title {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-type-fulltime { background: rgba(var(--accent-rgb), 0.15); color: var(--t-fulltime); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.badge-type-contract { background: rgba(255, 145, 0, 0.15); color: var(--t-contract); border: 1px solid rgba(255, 145, 0, 0.3); }

.badge-status-applied     { background: rgba(79,195,247,0.15);  color: var(--s-applied);     border: 1px solid rgba(79,195,247,0.3); }
.badge-status-screening   { background: rgba(186,104,200,0.15); color: var(--s-screening);   border: 1px solid rgba(186,104,200,0.3); }
.badge-status-interviewing{ background: rgba(41,182,246,0.15);  color: var(--s-interviewing);border: 1px solid rgba(41,182,246,0.3); }
.badge-status-assessment  { background: rgba(255,183,77,0.15);  color: var(--s-assessment);  border: 1px solid rgba(255,183,77,0.3); }
.badge-status-offer       { background: rgba(102,187,106,0.15); color: var(--s-offer);       border: 1px solid rgba(102,187,106,0.3); }
.badge-status-rejected    { background: rgba(239,83,80,0.15);   color: var(--s-rejected);    border: 1px solid rgba(239,83,80,0.3); }
.badge-status-withdrawn   { background: rgba(120,144,156,0.15); color: var(--s-withdrawn);   border: 1px solid rgba(120,144,156,0.3); }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-meta-item svg { opacity: 0.6; flex-shrink: 0; }

.card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.card-chip.has-data { color: var(--accent); border-color: var(--border-mid); }

.card-notes-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-sub);
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #000;
  box-shadow: 0 2px 12px rgba(var(--accent2-rgb), 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(var(--accent2-rgb), 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-mid);
  color: var(--text);
}

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-danger {
  background: rgba(239, 83, 80, 0.15);
  border: 1px solid rgba(239, 83, 80, 0.3);
  color: var(--s-rejected);
}

.btn-danger:hover {
  background: rgba(239, 83, 80, 0.25);
  border-color: var(--s-rejected);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-mid);
}

/* ─── FAB ────────────────────────────────────────────────────── */
.fab {
  display: none;
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(var(--accent2-rgb), 0.5);
  z-index: 80;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(var(--accent2-rgb), 0.65);
}

.fab:active { transform: scale(0.95); }

/* ─── Forms ──────────────────────────────────────────────────── */
.view-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.view-header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.back-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-mid);
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 720px;
}

.form-section {
  margin-bottom: 28px;
}

.form-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
}

.form-label.required::after {
  content: ' *';
  color: var(--s-rejected);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  padding: 10px 12px;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Type toggle */
.type-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.type-toggle-btn {
  flex: 1;
  height: 36px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}

.type-toggle-btn.active-fulltime {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--t-fulltime);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4);
}

.type-toggle-btn.active-contract {
  background: rgba(255, 145, 0, 0.2);
  color: var(--t-contract);
  box-shadow: inset 0 0 0 1px rgba(255, 145, 0, 0.4);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ─── Detail View ────────────────────────────────────────────── */
.detail-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.detail-company {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.detail-title {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-meta-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-meta-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

.detail-meta-val a {
  color: var(--accent);
  text-decoration: none;
}

.detail-meta-val a:hover { text-decoration: underline; }

.detail-header-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

/* ─── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tab-btn:hover { background: var(--bg-hover); color: var(--text-sub); }

.tab-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}

.tab-btn.active .tab-badge {
  background: rgba(var(--accent-rgb), 0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Section cards ──────────────────────────────────────────── */
.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.section-card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-card-body { padding: 16px; }

/* ─── Assessment Items ───────────────────────────────────────── */
.assessment-item,
.interview-item,
.comm-item {
  padding: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all var(--transition);
}

.assessment-item:last-child,
.interview-item:last-child,
.comm-item:last-child { margin-bottom: 0; }

.assessment-item:hover,
.interview-item:hover { border-color: var(--border-mid); }

.item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}

.item-meta-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
}

.item-notes {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* ─── Communication Log ──────────────────────────────────────── */
.comm-item {
  position: relative;
}

.comm-timestamp {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comm-note {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.attachment-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--transition);
  max-width: 200px;
}

.attachment-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* File upload area */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  font-size: 13px;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.file-drop-zone input[type="file"] {
  display: none;
}

.files-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.file-preview-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-sub);
}

.file-preview-chip button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  line-height: 1;
  transition: color var(--transition);
}

.file-preview-chip button:hover { color: var(--s-rejected); }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow), var(--glow);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 1;
}

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

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

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

.modal-body { padding: 20px; }

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

/* ─── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: toastIn 0.3s ease forwards;
  max-width: 320px;
  backdrop-filter: blur(8px);
}

.toast.toast-success { border-left: 3px solid var(--s-offer); }
.toast.toast-error   { border-left: 3px solid var(--s-rejected); }
.toast.toast-info    { border-left: 3px solid var(--accent); }

.toast.removing { animation: toastOut 0.25s ease forwards; }

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

@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ─── Notes View ─────────────────────────────────────────────── */
.notes-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.notes-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.notes-empty {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Status indicator dot ───────────────────────────────────── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-applied      { background: var(--s-applied); }
.status-dot-screening    { background: var(--s-screening); box-shadow: 0 0 6px var(--s-screening); }
.status-dot-interviewing { background: var(--s-interviewing); box-shadow: 0 0 6px var(--s-interviewing); }
.status-dot-assessment   { background: var(--s-assessment); }
.status-dot-offer        { background: var(--s-offer); box-shadow: 0 0 6px var(--s-offer); }
.status-dot-rejected     { background: var(--s-rejected); }
.status-dot-withdrawn    { background: var(--s-withdrawn); }

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

/* ─── Misc utility ───────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-sub    { color: var(--text-sub); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

.confirm-dialog {
  text-align: center;
  padding: 8px 0;
}

.confirm-dialog p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.6;
}

/* Interview type colors */
.interview-type-phone    { color: #4fc3f7; }
.interview-type-video    { color: #ba68c8; }
.interview-type-technical{ color: #ffb74d; }
.interview-type-final    { color: #66bb6a; }

/* ─── Responsive: Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }

  .main-wrapper {
    margin-left: 0;
    padding-bottom: var(--bottom-nav-h);
  }

  .mobile-header { display: block; }

  .bottom-nav {
    display: flex;
    align-items: stretch;
  }

  .fab { display: flex; }

  .view-container { padding: 16px; }

  .form-card { padding: 18px; }

  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr 1fr; }

  .card-grid { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .detail-hero { padding: 16px; }
  .detail-company { font-size: 20px; }
  .detail-header-actions { position: static; margin-top: 12px; }

  .modal { max-height: 95dvh; }

  .filter-bar { gap: 8px; }
  .filter-select { min-width: 120px; }

  .tabs { padding: 3px; }
  .tab-btn { padding: 7px 12px; font-size: 12px; }

  .toast-container { bottom: calc(var(--bottom-nav-h) + 8px); }
}

@media (min-width: 769px) {
  .toast-container { bottom: 24px; right: 24px; }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3); }
  50% { box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6); }
}

.pulse { animation: pulse-glow 2s ease-in-out infinite; }

/* Detail header back button + actions row */
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Status select inline */
.status-quick-select {
  height: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  padding: 0 28px 0 10px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  outline: none;
  transition: all var(--transition);
}

.status-quick-select:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ─── Auth Shell ─────────────────────────────────────────────── */
.auth-shell {
  /* Always cyan — the login page is branding, not a user preference surface */
  --accent:      #00d4ff;
  --accent2:     #0080ff;
  --accent-rgb:  0, 212, 255;
  --accent2-rgb: 0, 128, 255;
  --accent-dim:  rgba(0, 212, 255, 0.15);
  --border-mid:  rgba(0, 212, 255, 0.22);
  --t-fulltime:  #00d4ff;
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Theme toggle pinned to top-right of auth screen */
.auth-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.auth-theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ─── Auth Card ──────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow), 0 0 60px rgba(var(--accent2-rgb), 0.08);
  position: relative;
  overflow: hidden;
}

/* glowing top stripe */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

/* subtle corner glow */
.auth-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  font-family: 'Courier New', Courier, monospace;
}

.auth-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
}

.auth-subheading {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.5;
}

/* ─── Auth Form Fields ───────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-sub);
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 6px;
  display: block;
}

.auth-input {
  height: 44px;
  font-size: 14px;
  transition: all var(--transition);
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm), 0 0 0 3px var(--accent-dim);
}

/* password show/hide toggle */
.auth-pw-toggle {
  position: absolute;
  right: 12px;
  bottom: 11px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  transition: color var(--transition);
}

.auth-pw-toggle:hover { color: var(--accent); }

.auth-submit {
  height: 46px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 4px;
  width: 100%;
}

/* ─── Google OAuth Button ───────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}

.btn-google:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── "or continue with email" divider ──────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Auth Feedback ──────────────────────────────────────────── */
.auth-error {
  background: rgba(239, 83, 80, 0.1);
  border: 1px solid rgba(239, 83, 80, 0.3);
  border-radius: var(--radius-sm);
  color: var(--s-rejected);
  font-size: 13px;
  padding: 10px 14px;
  line-height: 1.5;
}

.auth-success {
  background: rgba(102, 187, 106, 0.1);
  border: 1px solid rgba(102, 187, 106, 0.3);
  border-radius: var(--radius-sm);
  color: var(--s-offer);
  font-size: 13px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ─── Auth Links Row ─────────────────────────────────────────── */
.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity var(--transition);
}

.auth-link:hover { opacity: 0.75; text-decoration: underline; }

.auth-link-sep { color: var(--text-muted); font-size: 13px; }

.auth-reset-back { margin-bottom: 4px; }

/* ─── Password strength bar ──────────────────────────────────── */
.pw-strength { margin-top: 6px; }

.pw-strength-bar {
  height: 3px;
  background: var(--bg-raised);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-label {
  font-size: 11px;
  font-weight: 600;
}

/* ─── Auth loading spinner (inline) ─────────────────────────── */
.auth-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ─── Sidebar User Info ──────────────────────────────────────── */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-btn {
  flex-shrink: 0;
  opacity: 0.6;
  transition: all var(--transition);
}

.sidebar-logout-btn:hover {
  opacity: 1;
  color: var(--s-rejected) !important;
  border-color: rgba(239, 83, 80, 0.3) !important;
}

/* ─── Bottom nav logout button ───────────────────────────────── */
#btn-logout-mobile {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

/* ─── Mobile responsive additions ───────────────────────────── */
@media (max-width: 768px) {
  .auth-card { padding: 28px 20px; }
  .auth-heading { font-size: 20px; }
}

/* ─── Cover Letter Builder ───────────────────────────────────── */

.cl-editor-wrap {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tone toggle — active state uses accent (no fulltime/contract color bias) */
.cl-tone-btn.cl-tone-active {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4);
}

/* Generated output — contenteditable writing area */
.cl-output {
  min-height: 220px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: Georgia, 'Times New Roman', serif;
}

.cl-output:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm), 0 0 0 3px var(--accent-dim);
}

.cl-output:empty::before {
  content: 'Your cover letter will appear here…';
  color: var(--text-muted);
  pointer-events: none;
}

.cl-preview-wrap {
  animation: fadeIn 0.25s ease;
}

@media (max-width: 768px) {
  .cl-output { padding: 14px 16px; font-size: 13px; }
}

/* ─── Contract status badges ─────────────────────────────────── */
.badge-ct-active    { background: var(--accent-dim);           color: var(--accent);       border: 1px solid var(--border-mid); }
.badge-ct-completed { background: rgba(102,187,106,.12);       color: var(--s-offer);      border: 1px solid rgba(102,187,106,.3); }
.badge-ct-paused    { background: rgba(255,183,77,.12);        color: var(--s-assessment); border: 1px solid rgba(255,183,77,.3); }
.badge-ct-pending   { background: rgba(79,195,247,.12);        color: var(--s-applied);    border: 1px solid rgba(79,195,247,.3); }

/* ─── Overview Dashboard ─────────────────────────────────────── */
.ov-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

.ov-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .ov-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.ov-recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .ov-recent-grid { grid-template-columns: 1fr; }
}

.ov-recent-col {}

.ov-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ov-recent-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Courier New', Courier, monospace;
}

.ov-see-all {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--transition);
}
.ov-see-all:hover { opacity: .75; text-decoration: underline; }

.ov-recent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
}
.ov-recent-card:last-child { margin-bottom: 0; }
.ov-recent-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-mid);
}

.ov-rc-main { flex: 1; min-width: 0; }
.ov-rc-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-rc-role {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.7;
}
.ov-empty a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ov-empty a:hover { text-decoration: underline; }

/* ─── Sidebar quick-add group ────────────────────────────────── */
.nav-add-group {
  border-top: 1px solid var(--border);
  padding: 10px 0 4px;
  margin-top: 4px;
}

.nav-add-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px 6px;
  font-family: 'Courier New', Courier, monospace;
  display: block;
}

.nav-add-item {
  opacity: 0.75;
  font-size: 13px;
}
.nav-add-item:hover { opacity: 1; }

/* ─── Landing Page ───────────────────────────────────────────── */
/* Landing page + static pages always render dark and always cyan.
   These two rules cover both data-theme="dark" (default) and
   data-theme="light" (user preference) — the second selector wins
   specifically when the light theme is active, overriding it back. */
.lp-root,
[data-theme="light"] .lp-root {
  font-family: 'DM Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100dvh;
  --bg:         #080c10;
  --bg-surface: #0d1117;
  --bg-raised:  #111820;
  --bg-hover:   #161e28;
  --accent:     #00d4ff;
  --accent2:    #0080ff;
  --accent-rgb:  0, 212, 255;
  --accent2-rgb: 0, 128, 255;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --border:     rgba(0, 212, 255, 0.12);
  --border-mid: rgba(0, 212, 255, 0.22);
  --text:       #f0f4f8;
  --text-sub:   #8892b0;
  --text-muted: #6b7a8d;
  background: var(--bg);
  color: var(--text);
}

/* Same dark-always treatment for FAQ / Terms / Privacy */
.sp-page,
[data-theme="light"] .sp-page {
  --bg:         #080c10;
  --bg-surface: #0d1117;
  --bg-raised:  #111820;
  --bg-hover:   #161e28;
  --accent:     #00d4ff;
  --accent2:    #0080ff;
  --accent-rgb:  0, 212, 255;
  --accent2-rgb: 0, 128, 255;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --border:     rgba(0, 212, 255, 0.12);
  --border-mid: rgba(0, 212, 255, 0.22);
  --text:       #f0f4f8;
  --text-sub:   #8892b0;
  --text-muted: #6b7a8d;
  background: var(--bg);
  color: var(--text);
}

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(10,14,26,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.lp-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; background: linear-gradient(135deg, var(--accent2), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lp-nav-links { display: flex; gap: 24px; flex: 1; }
.lp-nav-link { color: var(--text-sub); text-decoration: none; font-size: 14px; font-weight: 500; transition: color var(--transition); }
.lp-nav-link:hover { color: var(--accent); }
.lp-nav-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; border: none; }
.lp-btn-primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #000; }
.lp-btn-primary:hover { filter: brightness(1.08); }
.lp-btn-ghost { background: transparent; color: var(--text-sub); }
.lp-btn-ghost:hover { color: var(--text); }
.lp-btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--border-mid); }
.lp-btn-outline:hover { background: var(--accent-dim); }
.lp-btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.lp-btn-full { width: 100%; margin-top: 20px; }

/* Hero section */
.lp-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  background: #080c10;
}

.lp-hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: 0;
  width: 55%;
  height: 130%;
  background-image: url('/icons/hero-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: ribbonDrift 25s ease-in-out infinite;
  mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0) 100%
  );
}

@keyframes ribbonDrift {
  0%   { transform: scale(1) rotate(0deg) translateY(0px); }
  25%  { transform: scale(1.05) rotate(1deg) translateY(-12px); }
  50%  { transform: scale(1.02) rotate(-0.8deg) translateY(8px); }
  75%  { transform: scale(1.06) rotate(1.2deg) translateY(-8px); }
  100% { transform: scale(1) rotate(0deg) translateY(0px); }
}

.lp-hero > * {
  position: relative;
  z-index: 1;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 820px;
  margin: 0 auto;
}

/* Company logo ticker */
.lp-ticker {
  overflow: hidden;
  background: rgba(8,12,16,.9);
  border-top: 1px solid rgba(0,212,255,.1);
  border-bottom: 1px solid rgba(0,212,255,.1);
  padding: 18px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.lp-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: lp-ticker-scroll 44s linear infinite;
}
.lp-ticker-track:hover { animation-play-state: paused; }
.lp-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(232,234,246,.42);
  white-space: nowrap;
  transition: color .2s;
}
.lp-ticker-item:hover { color: rgba(0,212,255,.7); }
.lp-ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(0,212,255,.28);
  flex-shrink: 0;
}
@keyframes lp-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Extension Hero Section */
.lp-ext-hero {
  padding: 80px 24px 72px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,212,255,.025) 0%, transparent 55%);
}
.lp-ext-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .lp-ext-hero-inner { grid-template-columns: 1fr; }
}
.lp-ext-hero-h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.8px;
  margin-bottom: 20px;
  color: var(--text);
}
.lp-ext-hero-sub {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}
.lp-ext-hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.lp-ext-hero-list li {
  font-size: 14px;
  color: var(--text-sub);
  padding-left: 22px;
  position: relative;
}
.lp-ext-hero-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.lp-ext-hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lp-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,.3);
  padding: 5px 12px;
  border-radius: 20px;
}

/* Browser frame mockup */
.lp-browser {
  background: #090e1c;
  border: 1px solid rgba(0,212,255,.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,212,255,.05), 0 0 80px rgba(0,80,255,.08);
}
.lp-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #101826;
  border-bottom: 1px solid rgba(0,212,255,.1);
}
.lp-browser-dots { display: flex; gap: 5px; flex-shrink: 0; }
.lp-browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.lp-browser-dots span:nth-child(1) { background: #ff5f57; }
.lp-browser-dots span:nth-child(2) { background: #febc2e; }
.lp-browser-dots span:nth-child(3) { background: #28c840; }
.lp-browser-url {
  flex: 1;
  font-size: 10px;
  color: rgba(232,234,246,.28);
  background: rgba(0,0,0,.3);
  padding: 4px 10px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-browser-body {
  display: flex;
  height: 370px;
}

/* Dimmed background page */
.lp-browser-page {
  flex: 1;
  padding: 20px 18px;
  background: #0d1117;
  opacity: .38;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.lp-page-meta { font-size: 10px; color: rgba(0,212,255,.8); font-weight: 600; letter-spacing: .5px; margin-bottom: 2px; }
.lp-page-heading { font-size: 17px; font-weight: 700; color: #e8eaf6; line-height: 1.2; margin-bottom: 2px; }
.lp-page-company { font-size: 11px; color: rgba(232,234,246,.5); margin-bottom: 10px; }
.lp-page-lines { display: flex; flex-direction: column; gap: 7px; }
.lp-page-line { height: 9px; background: rgba(255,255,255,.09); border-radius: 4px; width: 90%; }
.lp-page-line--med { width: 68%; }
.lp-page-line--short { width: 48%; }
.lp-page-apply-btn {
  margin-top: auto;
  display: inline-block;
  background: #0057ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 5px;
  width: fit-content;
}

/* Extension side panel */
.lp-side-panel {
  width: 235px;
  flex-shrink: 0;
  border-left: 1px solid rgba(0,212,255,.18);
  background: #0d1420;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 10px;
}
.lp-panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,212,255,.12);
}
.lp-panel-brand {
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #0080ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
}
.lp-panel-conn {
  font-size: 9px;
  background: rgba(0,212,255,.1);
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,.28);
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}
.lp-panel-job-info {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,212,255,.08);
}
.lp-panel-job-title { font-size: 12px; font-weight: 700; color: #e8eaf6; line-height: 1.3; }
.lp-panel-job-co { font-size: 10px; color: #00d4ff; margin-top: 3px; }
.lp-panel-job-src { font-size: 9px; color: #4a5580; margin-top: 2px; }
.lp-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.lp-panel-btn {
  font-size: 9px;
  font-weight: 700;
  padding: 8px 5px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.3;
}
.lp-panel-btn--grad { background: linear-gradient(135deg, #0080ff, #00d4ff); color: #000; }
.lp-panel-btn--dark { background: #1a2035; color: #e8eaf6; border: 1px solid rgba(0,212,255,.18); }
.lp-panel-ai-box {
  background: rgba(0,212,255,.05);
  border: 1px solid rgba(0,212,255,.18);
  border-radius: 8px;
  padding: 10px;
  flex: 1;
  overflow: hidden;
}
.lp-panel-ai-label {
  font-size: 9px;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lp-panel-ai-text {
  font-size: 9px;
  color: rgba(232,234,246,.55);
  line-height: 1.65;
}
.lp-cursor {
  display: inline-block;
  width: 1.5px;
  height: 10px;
  background: #00d4ff;
  animation: lp-blink .9s step-end infinite;
  vertical-align: middle;
  margin-left: 1px;
}
@keyframes lp-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (max-width: 640px) {
  .lp-browser-body { height: 280px; }
  .lp-side-panel { width: 165px; }
  .lp-panel-brand, .lp-panel-job-title { font-size: 10px; }
}

/* Pricing sub-heading + plan tweaks */
.lp-pricing-sub { text-align: center; font-size: 15px; color: var(--text-sub); margin: -16px 0 36px; }
.lp-plan-forever { font-size: 16px; color: var(--text-sub); margin-left: 6px; font-weight: 400; }
.lp-plan-no { color: var(--text-muted) !important; }

/* Hero content */
.lp-hero-badge { display: inline-block; padding: 4px 14px; background: var(--accent-dim); border: 1px solid var(--border-mid); border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; font-family: 'Courier New', monospace; margin-bottom: 24px; }
.lp-h1 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(36px, 6vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; background: linear-gradient(160deg, #e8eaf6 30%, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lp-hero-sub { font-size: 18px; color: var(--text-sub); line-height: 1.6; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.lp-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.lp-hero-note { font-size: 12px; color: var(--text-muted); }

/* Hero bullets */
.lp-hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 32px;
  max-width: 440px;
  text-align: left;
}
.lp-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-sub);
}
.lp-bullet-icon { font-size: 18px; flex-shrink: 0; }

/* Stats */
.lp-stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(13,17,23,.6); backdrop-filter: blur(12px); padding: 32px 24px; position: relative; z-index: 1; }
.lp-stats-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.lp-stat { text-align: center; padding: 8px 40px; }
.lp-stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--accent2), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lp-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lp-stat-sep { width: 1px; height: 40px; background: var(--border); }
@media (max-width: 600px) { .lp-stat-sep { display: none; } .lp-stat { padding: 8px 20px; } }

/* Features */
.lp-features { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.lp-section-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-family: 'Courier New', monospace; margin-bottom: 12px; }
.lp-h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -1px; margin-bottom: 48px; text-align: center; }
.lp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .lp-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-feature-grid { grid-template-columns: 1fr; } }
.lp-feature-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); }
.lp-feature-card:hover { border-color: var(--border-mid); background: var(--bg-raised); }
.lp-feature-card--accent { border-color: var(--border-mid); background: var(--accent-dim); }
.lp-feature-icon { font-size: 28px; margin-bottom: 12px; }
.lp-feature-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.lp-feature-desc { font-size: 13px; color: var(--text-sub); line-height: 1.65; }

/* Modern job seeker section */
.lp-modern { padding: 80px 24px; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-modern-inner { max-width: 900px; margin: 0 auto; }
.lp-modern-sub { font-size: 16px; color: var(--text-sub); line-height: 1.65; text-align: center; max-width: 600px; margin: -28px auto 44px; }
.lp-modern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .lp-modern-grid { grid-template-columns: 1fr; } }
.lp-modern-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.lp-modern-card--alt {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.28);
}
.lp-modern-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-modern-icon { font-size: 22px; }
.lp-modern-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lp-modern-list li {
  font-size: 14px;
  color: var(--text-sub);
  padding-left: 18px;
  position: relative;
}
.lp-modern-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #00d4ff;
  font-weight: 700;
}

/* Extension showcase */
.lp-ext-section { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 24px; }
.lp-ext-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 768px) { .lp-ext-inner { grid-template-columns: 1fr; } }
.lp-ext-desc { font-size: 15px; color: var(--text-sub); line-height: 1.7; margin-bottom: 20px; }
.lp-ext-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lp-ext-list li { font-size: 13px; color: var(--text-sub); }
.lp-ext-preview { display: flex; justify-content: center; }
.lp-ext-card { background: #0f1429; border: 1px solid rgba(0,212,255,.22); border-radius: 14px; padding: 16px; width: 280px; box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 60px rgba(0,212,255,.08); position: relative; overflow: hidden; }
.lp-ext-card::before { content:''; display:block; height:2px; background:linear-gradient(90deg,#0080ff,#00d4ff); position:absolute; top:0; left:0; right:0; }
.lp-ext-card-header { display:flex; align-items:center; gap:6px; margin-bottom:12px; }
.lp-ext-job { padding: 10px 0; border-top: 1px solid rgba(0,212,255,.08); border-bottom: 1px solid rgba(0,212,255,.08); margin-bottom: 0; }

/* Pricing */
.lp-pricing { padding: 80px 24px; max-width: 800px; margin: 0 auto; text-align: center; }
.lp-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
@media (max-width: 600px) { .lp-pricing-grid { grid-template-columns: 1fr; } }
.lp-pricing-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; text-align: left; position: relative; }
.lp-pricing-card--pro { border-color: var(--border-mid); background: linear-gradient(160deg, #0f1429 0%, rgba(0,128,255,.05) 100%); box-shadow: 0 0 60px rgba(0,212,255,.08); }
.lp-plan-badge { position: absolute; top: -1px; right: 20px; background: linear-gradient(135deg,#0080ff,#00d4ff); color: #000; font-size: 9px; font-weight: 800; letter-spacing: 1px; padding: 3px 10px; border-radius: 0 0 8px 8px; }
.lp-plan-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.lp-plan-price { margin-bottom: 6px; color: var(--text-sub); font-size: 14px; }
.lp-price-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--accent); }
.lp-plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.lp-plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lp-plan-features li { font-size: 13px; color: var(--text-sub); }

/* Footer */
.lp-footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.lp-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-footer-copy { font-size: 12px; color: var(--text-muted); flex: 1; }
.lp-footer-links { display: flex; gap: 16px; }
.lp-footer-link { font-size: 12px; color: var(--text-sub); text-decoration: none; }
.lp-footer-link:hover { color: var(--accent); }

/* Landing shell */
#landing-shell { overflow-y: auto; }

/* ─── Static Pages (FAQ / Terms / Privacy) ──────────────────── */
.sp-page { min-height: 100dvh; }

.sp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,14,26,.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.sp-back {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.sp-back:hover { color: var(--accent); }

.sp-cta { font-size: 13px; padding: 8px 16px; }

.sp-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.sp-hero {
  text-align: center;
  margin-bottom: 52px;
}

.sp-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin: 12px 0 10px;
}

.sp-lead {
  font-size: 15px;
  color: var(--text-muted);
}

/* FAQ list */
.sp-faq-list { display: flex; flex-direction: column; gap: 0; }

.sp-section-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Courier New', Courier, monospace;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sp-section-heading:first-child { margin-top: 0; }

.sp-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.sp-faq-item:last-child { border-bottom: none; }

.sp-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.sp-a {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* Prose (Terms / Privacy) */
.sp-prose { display: flex; flex-direction: column; gap: 0; }

.sp-prose-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.sp-prose-section:last-child { border-bottom: none; }

.sp-prose-section h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.sp-prose-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
}
.sp-prose-section h3:first-child { margin-top: 0; }

.sp-prose-section p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}
.sp-prose-section p:last-child { margin-bottom: 0; }

.sp-prose-section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.sp-prose-section ul li {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}
.sp-prose-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.sp-prose-section a {
  color: var(--accent);
  text-decoration: none;
}
.sp-prose-section a:hover { text-decoration: underline; }

/* Bottom nav between sibling pages */
.sp-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.sp-footer-nav-link {
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
  transition: color var(--transition);
}
.sp-footer-nav-link:hover { color: var(--accent); }
.sp-footer-nav-sep { color: var(--text-muted); }

/* ─── Accent Color Overrides ─────────────────────────────────── */
/* cyan = default (:root), no override needed */

[data-accent="purple"] {
  --accent-rgb: 180, 0, 255; --accent2-rgb: 120, 0, 200;
  --accent: #b400ff; --accent2: #7800c8; --t-fulltime: #b400ff;
}
[data-theme="light"][data-accent="purple"] {
  --accent-rgb: 120, 0, 180; --accent2-rgb: 80, 0, 140;
  --accent: #7800b4; --accent2: #50008c; --t-fulltime: #7800b4;
}

[data-accent="green"] {
  --accent-rgb: 0, 255, 128; --accent2-rgb: 0, 200, 80;
  --accent: #00ff80; --accent2: #00c850; --t-fulltime: #00ff80;
}
[data-theme="light"][data-accent="green"] {
  --accent-rgb: 0, 150, 70; --accent2-rgb: 0, 110, 50;
  --accent: #009646; --accent2: #006e32; --t-fulltime: #009646;
}

[data-accent="pink"] {
  --accent-rgb: 255, 0, 140; --accent2-rgb: 200, 0, 100;
  --accent: #ff008c; --accent2: #c80064; --t-fulltime: #ff008c;
}
[data-theme="light"][data-accent="pink"] {
  --accent-rgb: 180, 0, 100; --accent2-rgb: 140, 0, 80;
  --accent: #b40064; --accent2: #8c0050; --t-fulltime: #b40064;
}

[data-accent="red"] {
  --accent-rgb: 255, 60, 60; --accent2-rgb: 200, 0, 0;
  --accent: #ff3c3c; --accent2: #c80000; --t-fulltime: #ff3c3c;
}
[data-theme="light"][data-accent="red"] {
  --accent-rgb: 180, 0, 0; --accent2-rgb: 140, 0, 0;
  --accent: #b40000; --accent2: #8c0000; --t-fulltime: #b40000;
}

[data-accent="orange"] {
  --accent-rgb: 255, 160, 0; --accent2-rgb: 200, 100, 0;
  --accent: #ffa000; --accent2: #c86400; --t-fulltime: #ffa000;
}
[data-theme="light"][data-accent="orange"] {
  --accent-rgb: 180, 90, 0; --accent2-rgb: 140, 60, 0;
  --accent: #b45a00; --accent2: #8c3c00; --t-fulltime: #b45a00;
}

/* ─── Accent Picker UI ───────────────────────────────────────── */
.sidebar-accent-picker {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
}

.accent-picker-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 8px;
}

.accent-swatches {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.accent-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch-color);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
  box-shadow: 0 0 0 0 var(--swatch-color);
  flex-shrink: 0;
}

.accent-swatch:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--swatch-color);
}

.accent-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 10px var(--swatch-color);
  transform: scale(1.15);
}

[data-theme="light"] .accent-swatch.active {
  border-color: var(--text);
}

/* Mobile accent picker row */
.mobile-accent-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-accent-picker .accent-swatches {
  gap: 6px;
  flex-wrap: nowrap;
}

/* ─── Resume Builder ─────────────────────────────────────────── */

.rb-resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.rb-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
  min-width: 36px;
}

.rb-score-none {
  background: var(--bg-raised);
  color: var(--text-muted);
  border-color: var(--border);
}

.rb-editor-wrap { max-width: 800px; }

.rb-section-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  margin-bottom: 0;
}

.rb-section-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-mid);
  color: var(--text);
}

.rb-toggle-chevron {
  margin-left: auto;
  transition: transform var(--transition);
  opacity: 0.6;
}

.rb-section-toggle.open .rb-toggle-chevron { transform: rotate(180deg); }

.rb-structured-inner { padding-top: 24px; }

.rb-repeat-group {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.rb-repeat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rb-repeat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.rb-add-row-btn { margin-top: 4px; }

.rb-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.rb-upload-label { cursor: pointer; margin: 0; }
.rb-upload-status { font-size: 12px; color: var(--text-muted); }

.rb-action-bar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  flex-wrap: wrap;
}

.rb-score-btn {
  font-size: 15px;
  height: 44px;
  padding: 0 24px;
}

.rb-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #ef4444;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* Score screen */
.rb-score-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.rb-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex-shrink: 0;
}

.rb-gauge-arc {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-gauge-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.rb-sections-list {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.rb-section-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.rb-section-bar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rb-section-bar-score {
  font-size: 13px;
  font-weight: 700;
}

.rb-progress-track {
  height: 5px;
  background: var(--bg-raised);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.rb-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-section-feedback {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.rb-result-block { margin-bottom: 28px; }

.rb-improvements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.rb-improve-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.rb-improve-num {
  width: 26px;
  height: 26px;
  background: var(--accent-dim);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.rb-improve-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

.rb-kw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.rb-kw-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.rb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rb-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.rb-chip-found    { background: rgba(34,197,94,0.12);  color: #22c55e; border-color: rgba(34,197,94,0.3); }
.rb-chip-missing  { background: rgba(239,68,68,0.12);  color: #ef4444; border-color: rgba(239,68,68,0.3); }
.rb-chip-rec      { background: var(--accent-dim);      color: var(--accent); border-color: var(--border-mid); }

.rb-rewrite-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-top: 12px;
}

/* Resume Builder — mobile */
@media (max-width: 768px) {
  .rb-resume-grid       { grid-template-columns: 1fr; }
  .rb-score-layout      { flex-direction: column; }
  .rb-gauge-card        { width: 100%; align-items: center; }
  .rb-sections-list     { width: 100%; }
  .rb-kw-grid           { grid-template-columns: 1fr; }
  .rb-action-bar        { justify-content: stretch; }
  .rb-action-bar .btn   { flex: 1; justify-content: center; }
}
