:root {
  --bg: #070a12;
  --bg2: #0c1220;
  --card: #101728;
  --card2: #151f36;
  --surface: rgba(16, 23, 40, 0.78);
  --line: rgba(148, 163, 184, 0.14);
  --line2: rgba(148, 163, 184, 0.26);
  --txt: #e8eef8;
  --mut: #94a3b8;
  --mut2: #64748b;
  --accent: #6ea8fe;
  --accent2: #a78bfa;
  --rust: #ff7a45;
  --go: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --grad: linear-gradient(92deg, #6ea8fe 0%, #a78bfa 40%, #ff7a45 75%, #22d3ee 100%);
  --shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.75);
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f8fafc;
  --surface: rgba(255, 255, 255, 0.9);
  --line: rgba(15, 23, 42, 0.1);
  --line2: rgba(15, 23, 42, 0.2);
  --txt: #0f172a;
  --mut: #475569;
  --mut2: #64748b;
  --accent: #2563eb;
  --accent2: #7c3aed;
  --rust: #ea580c;
  --go: #0891b2;
  --green: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== TOP BAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 58px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  color: #070a12;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--mut);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.top-nav a,
.btn-ghost {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: 0.16s;
  font-family: inherit;
}

.top-nav a:hover,
.btn-ghost:hover {
  color: var(--txt);
  background: rgba(110, 168, 254, 0.1);
  border-color: var(--line2);
}

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

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 52px 0 34px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 280px at 12% -10%, rgba(110, 168, 254, 0.16), transparent 62%),
    radial-gradient(640px 300px at 88% 0%, rgba(255, 122, 69, 0.12), transparent 60%),
    radial-gradient(520px 300px at 50% 110%, rgba(34, 211, 238, 0.08), transparent 65%);
}

.hero-in {
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
  background: var(--card);
}

.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.07;
  max-width: 22ch;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 14px;
  max-width: 76ch;
  color: var(--mut);
  font-size: 15px;
  line-height: 1.7;
}

.hero-sub b {
  color: var(--txt);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: var(--shadow);
}

.kpi .val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.kpi .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mut);
  margin-top: 6px;
}

.kpi.c1 .val { color: var(--accent); }
.kpi.c2 .val { color: var(--green); }
.kpi.c3 .val { color: var(--amber); }
.kpi.c4 .val { color: var(--accent2); }
.kpi.c5 .val { color: var(--go); }

.progress-bar-wrap {
  margin-top: 8px;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--go));
  width: 0%;
  transition: width 0.3s ease;
}

/* ==================== PLAYBOOK ==================== */
.playbook {
  margin: 18px 0 6px;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
}

.playbook summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.playbook summary::-webkit-details-marker {
  display: none;
}

.playbook-body {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.pb-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--mut);
}

.pb-card h4 {
  color: var(--txt);
  font-size: 13px;
  margin-bottom: 5px;
}

/* ==================== FILTER TOOLBAR ==================== */
.toolbar {
  position: sticky;
  top: 58px;
  z-index: 45;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-top: 22px;
}

.tool-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.search-box {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 8px 12px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--txt);
  font-size: 13.5px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--mut2);
}

.kbd {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line2);
  color: var(--mut);
}

.ctl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 0 8px 0 10px;
}

.ctl label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mut2);
  font-weight: 700;
}

.ctl select {
  background: var(--card);
  color: var(--txt);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  background: var(--card);
  border: 1px solid var(--line2);
  color: var(--mut);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}

.pill:hover {
  color: var(--txt);
  border-color: var(--accent);
}

.pill.on {
  background: rgba(110, 168, 254, 0.16);
  border-color: var(--accent);
  color: var(--txt);
}

.result-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--mut);
  font-weight: 600;
}

/* ==================== SECTIONS & CARDS ==================== */
section.main-sec {
  padding: 28px 0 42px;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.sec-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sec-head p {
  color: var(--mut);
  font-size: 14px;
  max-width: 72ch;
  margin-top: 4px;
}

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

@media (max-width: 900px) {
  .toolbar {
    position: static;
  }
}

@media (max-width: 480px) {
  .jobs-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }
}

.job-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--line2);
  box-shadow: var(--shadow);
}

.job-card.is-applied {
  border-color: rgba(52, 211, 153, 0.45);
}

.job-card.is-applied::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), transparent 28%);
}

.card-accent {
  height: 3px;
  background: var(--track-color, var(--accent));
}

.card-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

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

.company-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.company-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.company-link:hover {
  text-decoration: underline;
}

.job-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 3px;
}

.job-title a {
  text-decoration: none;
}

.job-title a:hover {
  color: var(--accent);
}

.fit-ring {
  flex-shrink: 0;
  text-align: center;
  background: rgba(110, 168, 254, 0.1);
  border: 1px solid rgba(110, 168, 254, 0.3);
  border-radius: 11px;
  padding: 6px 10px;
  min-width: 58px;
}

.fit-ring .pct {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.fit-ring .tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mut);
}

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

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--line2);
  background: rgba(148, 163, 184, 0.08);
  color: var(--mut);
  white-space: nowrap;
}

.b-reloc {
  color: var(--green);
  background: rgba(52, 211, 153, 0.11);
  border-color: rgba(52, 211, 153, 0.32);
}

.b-priority {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.48);
}

[data-theme="light"] .b-priority {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(217, 119, 6, 0.42);
}

.b-direct {
  color: var(--go);
  background: rgba(34, 211, 238, 0.13);
  border-color: rgba(34, 211, 238, 0.4);
}

.b-size {
  color: var(--accent2);
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
}

.b-custom {
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.14);
  border-color: rgba(244, 114, 182, 0.38);
}

[data-theme="light"] .b-custom {
  color: #be185d;
}

.b-track {
  color: var(--txt);
  border-color: var(--line2);
}

.salary-box {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
}

.salary-box .sal-main {
  font-weight: 700;
  color: var(--txt);
}

.salary-box .sal-sub {
  font-size: 11.5px;
  color: var(--mut);
}

.info-block {
  font-size: 13px;
  color: var(--mut);
  line-height: 1.58;
}

.info-block strong {
  color: var(--txt);
}

.fit-box {
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.8px;
  color: var(--mut);
  line-height: 1.58;
}

.fit-box .box-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.fit-box b {
  color: var(--txt);
}

.iran-note {
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12px;
  color: var(--mut);
  line-height: 1.5;
}

.iran-note strong {
  color: var(--amber);
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  font-size: 10.5px;
  padding: 2.5px 7.5px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--line);
  color: var(--mut);
}

details.card-more {
  border-top: 1px dashed var(--line2);
  padding-top: 6px;
}

details.card-more summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  padding: 4px 0;
  user-select: none;
}

details.card-more summary:hover {
  color: var(--txt);
}

.benefits-list {
  margin: 8px 0 4px 16px;
  font-size: 12.5px;
  color: var(--mut);
  display: grid;
  gap: 4px;
}

.cv-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--mut);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
}

.cv-strip a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.cv-strip a:hover {
  text-decoration: underline;
}

/* ==================== TRACKER CONTROLS ON CARD ==================== */
.tracker-panel {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tracker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.applied-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  color: var(--txt);
  user-select: none;
  transition: 0.16s;
}

.applied-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
  cursor: pointer;
}

.applied-toggle.checked {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--green);
}

.stage-select {
  background: var(--bg2);
  color: var(--txt);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.applied-date {
  font-size: 11px;
  color: var(--mut2);
  margin-left: auto;
}

.note-wrap {
  position: relative;
}

.note-input {
  width: 100%;
  min-height: 54px;
  resize: vertical;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 9px;
  color: var(--txt);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.15s;
}

.note-input:focus {
  border-color: var(--accent);
}

.note-saved {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 10px;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.note-saved.show {
  opacity: 1;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line2);
  background: var(--bg2);
  color: var(--txt);
  font-family: inherit;
  transition: 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
  border-color: transparent;
}

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

.btn-danger {
  color: var(--rose);
  border-color: rgba(251, 113, 133, 0.35);
}

.btn-danger:hover {
  border-color: var(--rose);
  background: rgba(251, 113, 133, 0.12);
}

/* ==================== VIEW TOGGLE & COMPACT TABLE ==================== */
.view-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--mut);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}

.view-btn.on {
  background: rgba(110, 168, 254, 0.18);
  color: var(--txt);
}

.table-wrap {
  display: none;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.table-wrap.open {
  display: block;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.8px;
  min-width: 980px;
}

.jobs-table thead th {
  text-align: left;
  padding: 11px 12px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mut2);
  background: var(--bg2);
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}

.jobs-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.jobs-table tbody tr:hover {
  background: rgba(110, 168, 254, 0.05);
}

.jobs-table tbody tr.is-applied {
  background: rgba(52, 211, 153, 0.06);
}

.jobs-table td {
  padding: 10px 12px;
  vertical-align: top;
}

.tbl-note {
  width: 190px;
  min-height: 34px;
  resize: vertical;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--txt);
  padding: 5px 7px;
  font-family: inherit;
  font-size: 12px;
}

/* ==================== CUSTOM JOB MODAL FORM ==================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mut);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 9px;
  color: var(--txt);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

/* ==================== LIVE AGGREGATOR SECTION ==================== */
.live-section {
  margin-top: 24px;
  padding: 36px 0 60px;
  border-top: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(110, 168, 254, 0.04), transparent 280px);
}

.live-controls {
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.source-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.src-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  color: var(--mut);
}

.src-pill .sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mut2);
}

.src-pill.ok .sdot { background: var(--green); }
.src-pill.loading .sdot { background: var(--amber); animation: blink 1s infinite; }
.src-pill.err .sdot { background: var(--rose); }

@keyframes blink {
  50% { opacity: 0.3; }
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--mut);
  background: var(--card);
  border: 1px dashed var(--line2);
  border-radius: 14px;
  display: none;
}

/* ==================== MODAL (APPLY KIT) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 18px;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 18px;
  font-weight: 800;
}

.modal-section {
  margin-top: 14px;
}

.modal-section h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mut);
  margin-bottom: 6px;
}

.copy-box {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  color: var(--txt);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ==================== TOAST & FOOTER ==================== */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--card2);
  border: 1px solid var(--accent);
  color: var(--txt);
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  z-index: 120;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  text-align: center;
  color: var(--mut2);
  font-size: 12.5px;
}

/* ==================== RADAR SWITCHER ==================== */
.radar-switcher {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

.radar-switcher-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.radar-switcher-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}

.radar-switcher-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.radar-switcher-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--txt);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.16s ease;
}

.radar-switcher-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.radar-switcher-links a.active {
  background: var(--grad);
  border-color: transparent;
  color: #070a12;
  font-weight: 800;
}
