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

:root {
  --bg:       #f6f7fb;
  --surface:  #ffffff;
  --border:   #e5e8f0;
  --text:     #16182a;
  --muted:    #6b7280;
  --blue:     #7489fe;
  --blue-d:   #3453fe;
  --blue-soft:#eef1ff;
  --green:    #10b981;
  --green-d:  #059669;
  --purple:   #8b5cf6;
  --amber:    #f59e0b;
  --red:      #ef4444;
  --radius:   14px;
  --shadow:   0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
}

body {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { color: var(--blue); }
.logo h1 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Groups the Gmail/Resume/Check-Now tools so they read as one cluster,
   visually separated from the account identity cluster (.user-nav) by a
   divider rather than all six controls competing on one flat row. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

/* ── User nav ── */
.user-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.user-nav a { color: var(--blue-d); text-decoration: none; font-weight: 600; }
.user-nav a:hover { text-decoration: underline; }
.user-nav .user-email { color: var(--text); font-weight: 700; }

/* ── Setup banner ── */
.setup-banner {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.setup-banner ol { margin-left: 20px; margin-top: 8px; }
.setup-banner code {
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* ── Upgrade banner ── */
.upgrade-banner {
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.upgrade-banner a {
  color: var(--blue-d);
  font-weight: 600;
  text-decoration: none;
}
.upgrade-banner a:hover { text-decoration: underline; }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  text-align: left;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
/* Colored top edge names each tile at a glance, before you even read the
   number — the number's own color did this alone before, which only reads
   once you're already looking closely. */
.stat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--text);
}
.stat-card .n { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-card .l { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
#s-total   .n { color: var(--text); }
.pending   .n { color: var(--amber); }
.applied   .n { color: var(--blue); }
.interview .n { color: var(--purple); }
.offer     .n { color: var(--green); }
.rejected  .n { color: var(--red); }
.pending::before   { background: var(--amber); }
.applied::before   { background: var(--blue); }
.interview::before { background: var(--purple); }
.offer::before     { background: var(--green); }
.rejected::before  { background: var(--red); }

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.card h2 { font-size: 16px; font-weight: 800; letter-spacing: -.005em; }

/* ── Find Jobs ── */
.find-card h2 { margin-bottom: 14px; }
.find-row { display: flex; gap: 10px; }
.find-row input:first-child { flex: 2; }
.find-row input:last-of-type { flex: 1; max-width: 200px; }
.find-row select { flex: 1; max-width: 160px; }
.find-external-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.find-external-label { font-size: 12px; color: var(--muted); }
.directory-filter-row {
  display: flex; align-items: center; gap: 7px; margin-top: 10px;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.directory-filter-row input { width: auto; }
.directory-filter-row a { color: var(--blue-d); font-weight: 600; text-decoration: none; }
.directory-filter-row a:hover { text-decoration: underline; }
.suggested-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.suggested-label { font-size: 12px; color: var(--muted); }
.suggested-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--blue-d);
  cursor: pointer;
}
.chip:hover { background: #eff6ff; border-color: var(--blue); }
.fit-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.fit-badge.fit-high { background: #dcfce7; color: var(--green-d); }
.fit-badge.fit-mid  { background: #fef3c7; color: #b45309; }
.fit-badge.fit-low  { background: var(--bg); color: var(--muted); }
.find-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.find-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background .15s;
}
.find-item:hover { background: #f8fafc; }
.find-item-main { min-width: 0; }
.find-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.find-item-acts { display: flex; gap: 8px; flex-shrink: 0; }

.find-item-locked { background: #f8fafc; }
.find-item-locked:hover { background: #f1f5f9; }
.find-item-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.find-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.find-pagination .pg-label { font-size: 12px; color: var(--muted); min-width: 90px; text-align: center; }

/* ── Add form ── */
.add-card h2 { margin-bottom: 14px; }
.add-row { display: flex; gap: 10px; }
.add-row input { flex: 1; }
.manual-fields { display: flex; gap: 10px; margin-top: 10px; }
.manual-fields input { flex: 1; }
.add-msg { margin-top: 8px; font-size: 13px; min-height: 18px; }
.add-msg.ok  { color: var(--green); }
.add-msg.err { color: var(--red); }
.add-msg.spin{ color: var(--blue); }

/* ── Inputs ── */
input[type=text], input[type=url], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, opacity .15s, border-color .15s;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover  { background: var(--blue-d); }
.btn-outline  { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.btn-outline:hover  { background: var(--bg); border-color: #d3d8e3; }
.btn-ghost-danger { background: #fee2e2; color: var(--red); border: none; }
.btn-ghost-danger:hover { background: #fecaca; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Row action toolbar ──
   All five/six per-row buttons now share one compact, uniform footprint
   (same height/radius/font) so the row reads as one uncluttered toolbar
   instead of five buttons each making their own color/size/shape choice.
   Apply is the only one that stays filled — it's the one primary action
   per row; everything else is a quiet, same-weight secondary action. */
.btn-apply, .btn-jd, .btn-conn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-apply {
  background: var(--green);
  color: #fff;
}
.btn-apply:hover { background: var(--green-d); }

.btn-jd, .btn-conn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}
.btn-jd:hover, .btn-conn:hover { background: var(--bg); border-color: #d3d8e3; color: var(--text); }
.btn-jd.disabled, .btn-conn.disabled {
  color: #c3c8d3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Table top ── */
.table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filters { display: flex; gap: 8px; }
.filters select, .filters input { width: auto; }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--bg);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfd; }

.co  { font-weight: 700; }
.ttl { color: var(--muted); font-size: 13px; margin-top: 1px; }

/* ── Badges ── */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.pill-pending   { background: #fef3c7; color: #92400e; }
.pill-applied   { background: #dbeafe; color: #1e40af; }
.pill-interview { background: #ede9fe; color: #5b21b6; }
.pill-offer     { background: #d1fae5; color: #065f46; }
.pill-rejected  { background: #fee2e2; color: #991b1b; }

.board {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.board-linkedin { background: #0a66c2; }
.board-indeed   { background: #003a9b; }
.board-naukri   { background: #4a90d9; }
.board-other    { background: var(--muted); }

.badge-gmail {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.gmail-on  { background: #d1fae5; color: #065f46; }
.gmail-off { background: #fee2e2; color: #991b1b; }

/* ── Actions cell ── */
.acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: 260px; }
.acts .btn-sm { height: 26px; padding: 0 10px; border-radius: 7px; }

/* ── Deadline alert banner ── */
.deadline-alert {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.deadline-alert-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 10px;
}
.deadline-alert-body { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}
.dl-overdue { background: #fee2e2; color: #991b1b; }
.dl-soon    { background: #fef3c7; color: #92400e; }
.dl-week    { background: #fefce8; color: #713f12; }
.dl-label   { font-style: italic; opacity: .85; }
.dl-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #92400e;
  padding: 0 2px;
  opacity: .7;
}
.dl-dismiss:hover { opacity: 1; }

/* ── Deadline cell ── */
.deadline-cell {
  font-size: 12px;
  white-space: nowrap;
  cursor: text;
  min-width: 90px;
}
.deadline-cell:hover { background: #f1f5f9; }
.deadline-cell.editing { padding: 6px 8px; }
.deadline-inline-edit {
  width: 130px;
  font-size: 12px;
  font-family: inherit;
  padding: 3px 6px;
  border: 1.5px solid var(--blue);
  border-radius: 4px;
  color: var(--text);
  background: #fff;
  outline: none;
}

/* ── Notes cell ── */
.notes-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  cursor: text;
}
.notes-cell:hover { background: #f1f5f9; }
.notes-cell.editing {
  white-space: normal;
  overflow: visible;
  max-width: 220px;
  padding: 6px 8px;
}
.notes-placeholder { color: #cbd5e1; font-style: italic; }
.notes-inline-edit {
  width: 100%;
  min-width: 160px;
  font-size: 12px;
  font-family: inherit;
  padding: 4px 6px;
  border: 1.5px solid var(--blue);
  border-radius: 4px;
  resize: vertical;
  color: var(--text);
  background: #fff;
  outline: none;
}

/* ── Empty ── */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.empty svg { margin-bottom: 12px; opacity: .35; }
.empty p { font-size: 15px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  width: 460px;
  max-width: 92vw;
}
.modal-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea { width: 100%; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }

/* ── Wide modal + compact field rows (Website Directory "Opportunity"
   popup) — lays the Company/LinkedIn fields and the HR contact fields out
   horizontally instead of stacking every field in one long column. ── */
.modal-box-wide { width: 640px; }
.fg-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fg-compact .fg { margin-bottom: 14px; }
.fg-compact label { font-size: 10.5px; margin-bottom: 4px; }
.fg-compact input { padding: 6px 9px; font-size: 12.5px; }
@media (max-width: 640px) {
  .modal-box-wide { width: 92vw; }
  .fg-row-2, .fg-row-3 { grid-template-columns: 1fr; }
}

/* ── Last check ── */
.last-check { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  header { flex-wrap: wrap; gap: 12px; }
  .table-top { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .add-row { flex-direction: column; }
  .find-row { flex-direction: column; }
  .find-row input:last-of-type { max-width: none; }
  .find-item { flex-direction: column; align-items: flex-start; }
}

/* ── Auth pages (login/register) ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  width: 380px;
  max-width: 100%;
}
.auth-card .logo { justify-content: center; margin-bottom: 22px; }
.auth-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 18px; text-align: center; }
.auth-error {
  background: #fee2e2;
  color: var(--red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-footer a { color: var(--blue-d); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-divider {
  text-align: center; font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; margin: 16px 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── Admin pages ── */
.admin-nav { display: flex; gap: 20px; margin-bottom: 22px; }
.admin-nav a {
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.admin-nav a.active, .admin-nav a:hover { color: var(--blue-d); border-color: var(--blue-d); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px 12px; border-bottom: 1px solid var(--bg); font-size: 13px; vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbfd; }
.admin-table code {
  background: var(--bg); padding: 2px 7px; border-radius: 6px; font-family: monospace; font-size: 12px;
}
.admin-inline-form { display: inline; }
.new-login-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}
.admin-create-row { display: flex; gap: 10px; margin-bottom: 20px; max-width: 460px; }
.admin-section-title { margin: 28px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ── Institution-assigned tracker row ── */
tr.institution-row td { background: #ecfdf5; }
tr.institution-row:hover td { background: #d1fae5; }

/* ── Landing page ── */
.landing-page { min-height: 100vh; }
.landing-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; max-width: 1180px; margin: 0 auto;
}
.landing-hero {
  max-width: 720px; margin: 8vh auto 0; padding: 0 24px; text-align: center;
}
.landing-hero h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
.landing-hero p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.landing-hero .hero-icon { margin: 0 auto 22px; color: var(--blue); }

.nav-menus { display: flex; align-items: center; gap: 10px; position: relative; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown-trigger:hover { background: var(--bg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border-radius: 10px; box-shadow: var(--shadow);
  border: 1px solid var(--border); min-width: 160px; overflow: hidden; z-index: 20;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 11px 16px; font-size: 13px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--bg); }
.nav-dropdown-menu a + a { border-top: 1px solid var(--border); }

/* ── Wide forms (institution/student registration) ── */
.form-card { max-width: 640px; margin: 40px auto; padding: 32px; }
.form-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.form-card .form-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amount-preview {
  background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: 13px;
  color: var(--text); margin-top: -4px; margin-bottom: 16px;
}
.amount-preview strong { font-size: 16px; }
.radio-group { display: flex; gap: 18px; margin-bottom: 4px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.radio-group input { width: auto; }
.sample-csv-link { font-size: 12px; margin-top: 6px; display: inline-block; }

/* ── Payment page ── */
.payment-card { max-width: 460px; }
.receipt {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 4px 0 20px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
}
.receipt-row.muted { font-size: 12px; font-weight: 500; color: var(--muted); }
.receipt-divider { border-top: 1px dashed var(--border); margin: 10px 0; }
.receipt-row.receipt-total { font-size: 18px; font-weight: 800; }
.payment-trust {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Pending approval page ── */
.pending-icon { color: var(--amber); margin: 0 auto 18px; display: block; }

/* ── Blog / article pages ── */
.article-page { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
.article-page .logo { margin-bottom: 28px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--blue-d); }
.article-page h1 { font-size: 30px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.article-meta { font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.article-body { font-size: 15.5px; line-height: 1.75; color: var(--text); }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 34px 0 12px; }
.article-body h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--blue-d); font-weight: 600; }
.article-body strong { font-weight: 700; }
.download-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 8px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.download-box .dl-label strong { display: block; font-size: 14.5px; }
.download-box .dl-label span { font-size: 12.5px; color: var(--muted); }
.cta-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px;
  margin: 36px 0 12px;
  text-align: center;
}
.cta-box h3 { margin: 0 0 8px; font-size: 18px; }
.cta-box p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.cta-box .btn { justify-content: center; }

/* ── Landing page: hero buttons + feature sections ── */
.hero-hello { font-size: 40px; font-weight: 800; margin: 0 0 12px; line-height: 1.15; }
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .landing-header { flex-wrap: wrap; gap: 12px; }
}

/* ── Portal shell (sidebar layout: Profile / Job Tracker / Job Search /
   Website Directory) ── */
.portal-layout { display: flex; min-height: 100vh; align-items: stretch; }
.portal-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.portal-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.portal-logo span { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.portal-nav-links { display: flex; flex-direction: column; gap: 2px; }
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.portal-nav-link svg { flex-shrink: 0; }
.portal-nav-link:hover { background: var(--bg); color: var(--text); }
.portal-nav-link.active { background: var(--blue-soft); color: var(--blue-d); }
.portal-main { flex: 1; min-width: 0; }
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.portal-page-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }

@media (max-width: 860px) {
  .portal-layout { flex-direction: column; }
  .portal-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    overflow-x: auto;
  }
  .portal-nav-links { flex-direction: row; }
}

/* ── Profile page ── */
.profile-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-photo-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.profile-photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); background: var(--bg);
}
.profile-photo-placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.profile-photo-dot {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--surface);
}
.profile-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.profile-field { display: flex; flex-direction: column; gap: 4px; }
.pf-l { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pf-v { font-size: 14.5px; font-weight: 600; }
.pf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.plan-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.plan-basic   { background: var(--bg); color: var(--muted); }
.plan-premium { background: #d1fae5; color: var(--green-d); }
.pf-edit-display { display: inline-flex; align-items: center; gap: 6px; }
.pf-edit-btn {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--muted); display: inline-flex; line-height: 0; text-decoration: none;
}
.pf-edit-btn:hover { color: var(--blue-d); }
.pf-edit-row { display: flex; gap: 8px; margin-top: 6px; max-width: 320px; }
.pf-edit-row input { flex: 1; }
.profile-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 14px; }
.profile-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .profile-fields { grid-template-columns: 1fr; }
}

/* ── Website Directory ── */
.directory-list { display: flex; flex-direction: column; gap: 10px; }
.directory-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
}
.directory-item:hover { background: #f8fafc; }
.directory-item-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.directory-remove-btn {
  background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--muted); padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
}
.directory-remove-btn:hover { color: var(--red); background: #fee2e2; }

/* ── WhatsApp floating chat button ── */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  z-index: 1000;
  transition: transform .15s, box-shadow .15s;
}
.wa-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
@media (max-width: 640px) {
  .wa-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .wa-fab svg { width: 26px; height: 26px; }
}
