/* ── SwiftKazi — Warm Editorial Light Theme ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Figtree:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --cream:    #faf8f4;
  --cream2:   #f4f0e8;
  --cream3:   #ede8dc;
  --white:    #ffffff;
  --ink:      #1a1814;
  --ink2:     #3d3830;
  --ink3:     #7a7368;
  --ink4:     #b0a99e;
  --forest:   #1e5c3a;
  --forest2:  #2d7a50;
  --forest3:  #e8f5ee;
  --gold:     #c8922a;
  --gold2:    #fdf3e0;
  --rust:     #c0442a;
  --rust2:    #fdf0ed;
  --sky:      #2a6b9e;
  --sky2:     #eaf3fb;
  --border:   #e0d9ce;
  --border2:  #cdc5b8;
  --shadow:   0 1px 3px rgba(26,24,20,0.06), 0 4px 16px rgba(26,24,20,0.06);
  --shadow2:  0 2px 8px rgba(26,24,20,0.08), 0 12px 32px rgba(26,24,20,0.08);
  --radius:   10px;
  --radius2:  16px;
  --nav-h:    62px;
  --sidebar-w:228px;
  --font:     'Figtree', system-ui, sans-serif;
  --font2:    'Playfair Display', Georgia, serif;
  --font3:    'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font3); font-size: 13px; background: var(--cream3); padding: 2px 6px; border-radius: 4px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(12px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font2);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--forest);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.balance-pill {
  background: var(--forest3);
  border: 1px solid #b8ddc8;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: var(--font3);
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest2); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.notif-bell { position: relative; cursor: pointer; font-size: 18px; padding: 6px; color: var(--ink3); }
.notif-badge { position: absolute; top: 0; right: 0; background: var(--rust); color: #fff; border-radius: 99px; font-size: 10px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--font3); }
.avatar-menu { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); min-width: 210px; padding: 8px; display: none; z-index: 200; box-shadow: var(--shadow2); }
.dropdown.open { display: block; }
.dropdown-name { padding: 8px 10px 2px; font-weight: 600; font-size: 14px; color: var(--ink); }
.dropdown-email { padding: 0 10px 8px; font-size: 12px; color: var(--ink3); font-family: var(--font3); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 7px; font-size: 14px; color: var(--ink2); cursor: pointer; transition: background .12s; }
.dropdown-item:hover { background: var(--cream2); color: var(--ink); text-decoration: none; }

/* ── Shell & Sidebar ─────────────────────────────────────────────────────── */
.shell { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  width: var(--sidebar-w);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  background: var(--white);
}
.nav-section { font-size: 10px; font-weight: 600; color: var(--ink4); letter-spacing: .12em; text-transform: uppercase; padding: 14px 12px 6px; font-family: var(--font3); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink3); transition: all .15s; margin-bottom: 2px; cursor: pointer; text-decoration: none; }
.nav-item span { font-size: 16px; width: 20px; text-align: center; }
.nav-item:hover { background: var(--cream2); color: var(--ink); text-decoration: none; }
.nav-item.active { background: var(--forest3); color: var(--forest); font-weight: 600; }
.main-content { flex: 1; padding: 36px; max-width: 1120px; overflow-x: hidden; }

/* ── Auth ────────────────────────────────────────────────────────────────── */
.auth-shell { min-height: 100vh; background: var(--cream2); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-center { width: 100%; max-width: 460px; }
.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-logo { font-size: 40px; }
.auth-logo-text { font-family: var(--font2); font-size: 28px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.auth-tagline { color: var(--ink3); font-size: 14px; margin-top: 6px; }
.auth-card { padding: 36px !important; }
.auth-title { font-family: var(--font2); font-size: 24px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.auth-sub { color: var(--ink3); font-size: 14px; margin-bottom: 26px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink3); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; margin-bottom: 4px; color: var(--ink3); }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.step-row { display: flex; align-items: center; margin-bottom: 28px; }
.step-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; font-family: var(--font3); }
.step-dot.active { background: var(--forest); color: #fff; box-shadow: 0 0 0 4px rgba(30,92,58,.15); }
.step-dot.done { background: var(--forest); color: #fff; }
.step-dot.pending { background: var(--cream3); color: var(--ink4); border: 1px solid var(--border2); }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step-line.done { background: var(--forest); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius2); padding: 24px; box-shadow: var(--shadow); }
.card2 { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.page-title { font-family: var(--font2); font-size: 28px; font-weight: 600; margin-bottom: 4px; color: var(--ink); letter-spacing: -0.3px; }
.page-sub { color: var(--ink3); font-size: 14px; }
.section-title { font-size: 11px; font-weight: 600; color: var(--ink4); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-family: var(--font3); }

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--forest); }
.stat-label { font-size: 11px; color: var(--ink4); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; font-family: var(--font3); }
.stat-val { font-family: var(--font2); font-size: 30px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.stat-val.green { color: var(--forest); }
.stat-val.accent { color: var(--sky); }
.stat-val.amber { color: var(--gold); }
.stat-change { font-size: 12px; color: var(--ink3); }
.link { color: var(--forest); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; font-family: var(--font); transition: all .16s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,92,58,.25); }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--ink); }
.btn-ghost:hover { background: var(--cream2); }
.btn-green { background: var(--forest); color: #fff; }
.btn-green:hover { background: var(--forest2); }
.btn-danger { background: var(--rust); color: #fff; }
.btn-danger:hover { background: #a83820; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 28px; font-size: 15px; font-weight: 600; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(30,92,58,.1); background: var(--white); }
textarea.form-input { resize: vertical; }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a7368' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; background-color: var(--cream); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; font-family: var(--font3); letter-spacing: .02em; }
.badge-green { background: var(--forest3); color: var(--forest); border: 1px solid #b8ddc8; }
.badge-amber { background: var(--gold2); color: var(--gold); border: 1px solid #f0d498; }
.badge-blue { background: var(--sky2); color: var(--sky); border: 1px solid #b8d4ec; }
.badge-red { background: var(--rust2); color: var(--rust); border: 1px solid #f0c4b8; }
.badge-gray { background: var(--cream2); color: var(--ink3); border: 1px solid var(--border); }
.badge-purple { background: #f0eeff; color: #5040cc; border: 1px solid #d0c8f8; }

/* ── Job Cards ───────────────────────────────────────────────────────────── */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
  margin-bottom: 12px;
}
.job-card:hover { border-color: var(--forest); box-shadow: var(--shadow2); transform: translateX(2px); }
.job-card.applied { border-color: #b8ddc8; background: var(--forest3); }
.job-logo { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; background: var(--cream2); border: 1px solid var(--border); }
.job-info { flex: 1; min-width: 0; }
.job-title { font-family: var(--font2); font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.job-meta { font-size: 13px; color: var(--ink3); margin-bottom: 8px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.job-desc { font-size: 13px; color: var(--ink3); line-height: 1.55; margin-bottom: 8px; }
.job-salary { font-size: 14px; font-weight: 600; color: var(--forest); font-family: var(--font3); margin-top: 6px; }
.match-reasons { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.match-reason { font-size: 12px; color: var(--forest2); font-weight: 500; }
.source-tag { background: var(--cream2); border-radius: 4px; padding: 1px 6px; font-size: 11px; font-family: var(--font3); }
.job-right { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.score-ring-wrap { position: relative; width: 56px; height: 56px; }
.score-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font3); font-size: 13px; font-weight: 500; }
.score-text.high { color: var(--forest); }
.score-text.mid { color: var(--sky); }
.score-text.low { color: var(--gold); }
.score-badge { border-radius: 99px; padding: 4px 10px; font-size: 11px; font-weight: 600; font-family: var(--font3); }
.score-badge.score-high { background: var(--forest3); color: var(--forest); }
.score-badge.score-mid { background: var(--sky2); color: var(--sky); }
.score-badge.score-low { background: var(--gold2); color: var(--gold); }

/* ── AI Bar ──────────────────────────────────────────────────────────────── */
.ai-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--forest3); border: 1px solid #b8ddc8; border-radius: var(--radius); margin-bottom: 20px; }
.ai-dots { display: flex; gap: 5px; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); animation: bounce .85s infinite; }
.ai-dot:nth-child(2) { animation-delay: .15s; }
.ai-dot:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-7px)} }
.progress-bar { background: var(--cream3); border-radius: 99px; height: 5px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--forest); transition: width .45s; }

/* ── Activity ────────────────────────────────────────────────────────────── */
.activity-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; background: var(--cream2); }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,24,20,.45); z-index: 300; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius2); width: 660px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow2); }
.modal-header { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font2); font-size: 18px; font-weight: 600; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--ink3); margin-top: 3px; }
.modal-body { padding: 24px 26px; }
.modal-footer { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; background: var(--cream); border-radius: 0 0 var(--radius2) var(--radius2); }
.close-btn { width: 32px; height: 32px; background: var(--cream2); border: 1px solid var(--border); border-radius: 7px; color: var(--ink3); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background .12s; }
.close-btn:hover { background: var(--cream3); }
.fee-box { background: var(--forest3); border: 1px solid #b8ddc8; border-radius: var(--radius); padding: 14px 20px; flex-shrink: 0; }
.fee-summary { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: left; font-size: 14px; }

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

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 18px; border-radius: 8px 8px 0 0; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink3); transition: all .15s; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--forest); border-bottom-color: var(--forest); font-weight: 600; }
.tab-count { background: var(--cream2); border-radius: 99px; padding: 1px 7px; font-size: 11px; margin-left: 4px; font-family: var(--font3); }

/* ── Admin Table ─────────────────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 11px; color: var(--ink4); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; border-bottom: 2px solid var(--border); font-family: var(--font3); }
.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--ink2); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }
.rev-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rev-row:last-child { border-bottom: none; }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink3); }
.empty-icon { font-size: 48px; margin-bottom: 14px; opacity: .6; }
.skill-pill { display: inline-flex; align-items: center; background: var(--cream2); border: 1px solid var(--border2); border-radius: 99px; padding: 4px 12px; font-size: 12px; margin: 3px; color: var(--ink2); }
.alert-card { background: var(--gold2); border: 1px solid #f0d498; border-radius: var(--radius); padding: 18px; }
.alert-info { background: var(--sky2); border: 1px solid #b8d4ec; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--sky); }
.preset-btn { background: var(--cream); border: 1px solid var(--border2); border-radius: 10px; padding: 12px 8px; color: var(--ink); font-family: var(--font); font-size: 14px; cursor: pointer; transition: all .15s; font-weight: 500; }
.preset-btn:hover { background: var(--forest3); border-color: #b8ddc8; color: var(--forest); }
.app-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.flash-container { margin-bottom: 20px; }
.flash { padding: 12px 18px; border-radius: 9px; font-size: 14px; margin-bottom: 8px; }
.flash-success { background: var(--forest3); border: 1px solid #b8ddc8; color: var(--forest); }
.flash-danger { background: var(--rust2); border: 1px solid #f0c4b8; color: var(--rust); }
.flash-info { background: var(--sky2); border: 1px solid #b8d4ec; color: var(--sky); }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast { position: fixed; top: 24px; right: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; z-index: 999; min-width: 300px; transform: translateX(200%); transition: transform .3s cubic-bezier(.34,1.56,.64,1); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow2); color: var(--ink); }
.toast.show { transform: translateX(0); }

/* ── Source cards (admin) ────────────────────────────────────────────────── */
.source-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; transition: box-shadow .15s; }
.source-card:hover { box-shadow: var(--shadow); }
.source-toggle { width: 38px; height: 22px; border-radius: 99px; background: var(--border2); border: none; cursor: pointer; position: relative; transition: background .2s; flex-shrink: 0; }
.source-toggle.on { background: var(--forest); }
.source-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.source-toggle.on::after { left: 19px; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main-content { padding: 20px 16px; }
  .page-title { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE & SEO STYLES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Mobile menu button ──────────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .25s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Sidebar overlay ─────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,24,20,.5);
  z-index: 80;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── Sidebar inner scroll ────────────────────────────────────────────────── */
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Balance label hide on small screens ─────────────────────────────────── */
.balance-label { display: inline; }

/* ── Mobile bottom navigation ────────────────────────────────────────────── */






/* ── Auth flash positioning ──────────────────────────────────────────────── */
.auth-flash {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 999;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Logo text ───────────────────────────────────────────────────────────── */
.logo-text { display: inline; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (900px and below) ────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Show mobile menu button */
  .mobile-menu-btn { display: flex; }

  /* Sidebar becomes slide-in drawer */
  .sidebar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(26,24,20,.12);
    width: 260px;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Stats grid 2 columns */
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }

  /* Two col becomes single */
  .two-col { grid-template-columns: 1fr; gap: 16px; }

  /* Main content full width */
  .main-content { padding: 20px 16px 80px; }

  /* Show mobile bottom nav */
  

  /* Hide balance label on tablet */
  .balance-label { display: none; }

  /* Balance pill smaller */
  .balance-pill { padding: 5px 10px; font-size: 12px; }

  /* Page header stack */
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-header .btn { width: 100%; justify-content: center; }

  /* Job card layout */
  .job-card { flex-wrap: wrap; }
  .job-right { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 10px; }

  /* Form grid single column */
  .form-grid { grid-template-columns: 1fr; }

  /* Admin table scroll */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 600px; }

  /* Tabs scroll */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; padding-bottom: 2px; }
  .tab { flex-shrink: 0; }

  /* Filter bar stack */
  .filter-bar form { flex-direction: column; }
  .filter-bar .form-input { width: 100% !important; }

  /* Modal full screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    width: 100%;
    max-height: 95vh;
    border-radius: var(--radius2) var(--radius2) 0 0;
  }
}

/* ── Mobile (600px and below) ────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Nav */
  .nav { padding: 0 16px; }
  .logo-text { display: none; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }

  /* Stats 2 col */
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 16px; }
  .stat-card { padding: 14px; }
  .stat-val { font-size: 22px; }

  /* Main padding */
  .main-content { padding: 16px 12px 90px; }

  /* Card padding */
  .card { padding: 16px; }
  .card2 { padding: 14px; }

  /* Page title */
  .page-title { font-size: 22px; }
  .page-sub { font-size: 13px; }

  /* Section title */
  .section-title { font-size: 10px; }

  /* Job card */
  .job-card { padding: 14px; gap: 12px; }
  .job-logo { width: 38px; height: 38px; font-size: 18px; }
  .job-title { font-size: 14px; }
  .job-meta { font-size: 12px; }
  .job-desc { display: none; } /* Hide on very small screens */

  /* Score ring smaller */
  .score-ring-wrap { width: 44px; height: 44px; }
  .score-text { font-size: 11px; }

  /* Auth */
  .auth-center { max-width: 100%; padding: 0 16px; }
  .auth-card { padding: 20px !important; }
  .auth-title { font-size: 20px; }
  .auth-brand { margin-bottom: 20px; }

  /* Step row */
  .step-row { margin-bottom: 20px; }

  /* Buttons full width on mobile */
  .btn-lg { padding: 12px 20px; font-size: 14px; }

  /* Modal footer stack */
  .modal-footer { flex-direction: column; gap: 10px; }
  .fee-box { width: 100%; text-align: center; }

  /* AI bar */
  .ai-bar { padding: 12px 14px; gap: 10px; }
  .ai-bar > div:first-child { font-size: 16px; }

  /* Wallet presets */
  .preset-btn { padding: 10px 6px; font-size: 13px; }

  /* Category grid */
  #categoryGrid { grid-template-columns: 1fr 1fr !important; }

  /* Applications */
  .app-row { flex-wrap: wrap; }

  /* Admin tables */
  .admin-table th, .admin-table td { padding: 8px 10px; font-size: 12px; }

  /* Toast */
  .toast { left: 12px; right: 12px; min-width: unset; }

  /* Balance pill very small */
  .balance-pill { padding: 4px 8px; }
  .dot { width: 6px; height: 6px; }

  /* Three col */
  .three-col { grid-template-columns: 1fr; }
}

/* ── Very small (400px and below) ────────────────────────────────────────── */
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-val { font-size: 20px; }
  
  
  .mob-nav-item div { font-size: 9px; }
}

/* ── Print styles ────────────────────────────────────────────────────────── */
@media print {
  .nav, .sidebar, .mobile-bottom-nav, .toast, .modal-overlay { display: none !important; }
  .main-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Dark mode (respects system preference) ──────────────────────────────── */
@media (prefers-color-scheme: dark) {
  /* Intentionally not overriding — SwiftKazi uses light theme by design */
}

/* ── Fix mobile bottom nav horizontal layout ─────────────────────────────── */

@media (max-width: 900px) {
  
  
}

/* ── Bottom nav — desktop hidden, mobile horizontal ─────────────────────── */


@media (max-width: 900px) {
  

  

  

  .mob-nav-item div {
    font-size: 10px;
    line-height: 1.2;
  }

  

  

  /* Push main content up so it doesn't hide behind bottom nav */
  .main-content {
    padding-bottom: 80px !important;
  }
}


/* ══ BOTTOM NAV — FINAL ══════════════════════════════════════════════════ */
.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
  .mobile-bottom-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e0d9ce;
    z-index: 9999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #b0a99e;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 0;
    border: none;
    background: none;
  }
  .mob-nav-item span { font-size: 20px; line-height: 1; display: block; }
  .mob-nav-item div { font-size: 10px; line-height: 1; display: block; }
  .mob-nav-item.active { color: #1e5c3a; }
  .mob-nav-item:hover { color: #1e5c3a; text-decoration: none; }
  .main-content { padding-bottom: 80px !important; }
}
