/* ============================================================
   InternFlare Jobs — main.css
   Mobile-first | Orange-Grey Theme | Dark/Light Mode
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Brand */
  --orange:        #E8610A;
  --orange-light:  #FF8C3A;
  --orange-pale:   #FFF3EB;
  --orange-dark:   #BF4E08;

  /* Light mode */
  --bg:            #F7F6F3;
  --bg-card:       #FFFFFF;
  --bg-sidebar:    #FFFFFF;
  --text:          #1A1A1A;
  --text-secondary:#6B7280;
  --text-muted:    #9CA3AF;
  --border:        #E5E7EB;
  --border-focus:  #E8610A;
  --shadow:        0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --nav-bg:        #FFFFFF;
  --nav-border:    #F0EFED;
  --badge-bg:      #F3F4F6;
  --badge-text:    #374151;
  --input-bg:      #FFFFFF;
  --intern-badge:  #EEF2FF;
  --intern-text:   #4338CA;
  --remote-badge:  #F0FDF4;
  --remote-text:   #15803D;
  --overlay:       rgba(255,255,255,.85);
}

[data-theme="dark"] {
  --bg:            #111113;
  --bg-card:       #1C1C1E;
  --bg-sidebar:    #1C1C1E;
  --text:          #F2F2F2;
  --text-secondary:#A1A1AA;
  --text-muted:    #6B7280;
  --border:        #2A2A2E;
  --border-focus:  #E8610A;
  --shadow:        0 1px 4px rgba(0,0,0,.3), 0 2px 12px rgba(0,0,0,.3);
  --shadow-md:     0 4px 20px rgba(0,0,0,.5);
  --nav-bg:        #1C1C1E;
  --nav-border:    #2A2A2E;
  --badge-bg:      #2A2A2E;
  --badge-text:    #D1D5DB;
  --input-bg:      #2A2A2E;
  --intern-badge:  #1E1B4B;
  --intern-text:   #A5B4FC;
  --remote-badge:  #052E16;
  --remote-text:   #86EFAC;
  --overlay:       rgba(17,17,19,.85);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Layout ───────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Mobile bottom nav offset */
.main-content { padding-bottom: 72px; }

/* ── Top Navbar ───────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  height: 56px;
  display: flex;
  align-items: center;
}

.topnav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg { width: 16px; height: 16px; color: #fff; }

.brand-text span { color: var(--orange); }

/* Desktop nav links (hidden on mobile) */
.nav-links {
  display: none;
  gap: 4px;
  margin-left: 12px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .15s;
}

.nav-link:hover, .nav-link.active {
  background: var(--orange-pale);
  color: var(--orange);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(232,97,10,.15);
  color: var(--orange-light);
}

/* Search bar (desktop) */
.nav-search {
  flex: 1;
  max-width: 320px;
  display: none;
}

.nav-search-input {
  width: 100%;
  height: 36px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 16px 0 38px;
  font-size: 13px;
  transition: border .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}

.nav-search-input:focus { outline: none; border-color: var(--orange); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
}

.btn-icon:hover { background: var(--badge-bg); color: var(--text); }
.btn-icon svg { width: 18px; height: 18px; }

/* Notification badge */
.notif-wrap { position: relative; }
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--nav-bg);
}

.avatar-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Bottom Mobile Nav ────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-top: 1px solid var(--nav-border);
  display: flex;
  height: 62px;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  border: none;
  background: transparent;
  transition: color .15s;
  text-decoration: none;
  padding: 6px 0 4px;
}

.bottom-nav-item svg { width: 22px; height: 22px; }

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

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1A0A00 0%, #2D1100 50%, #1A0A00 100%);
  padding: 40px 16px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,97,10,.3) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,97,10,.15);
  border: 1px solid rgba(232,97,10,.3);
  color: var(--orange-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero h1 span { color: var(--orange-light); }

.hero p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: block;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
}

/* Hero Search */
.hero-search {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

[data-theme="dark"] .hero-search { background: #1C1C1E; }

.hero-search-row { display: flex; gap: 8px; }

.hero-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  transition: border .2s;
}

[data-theme="dark"] .hero-search-field { background: #2A2A2E; }

.hero-search-field:focus-within { border-color: var(--orange); }
.hero-search-field svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.hero-search-field input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 100%;
}

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

.btn-search {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .15s, transform .1s;
}

.btn-search:hover { opacity: .9; transform: translateY(-1px); }

/* Quick filters */
.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.hero-quick-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}

.hero-quick-btn:hover {
  background: rgba(232,97,10,.25);
  border-color: var(--orange);
  color: #fff;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title svg { width: 18px; height: 18px; color: var(--orange); }

.section-link {
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
}

/* ── Internship Banner ────────────────────────────────────── */
.intern-banner {
  background: linear-gradient(135deg, var(--intern-badge), rgba(99,102,241,.05));
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.intern-banner-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, #4338CA, #6366F1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.intern-banner-icon svg { width: 22px; height: 22px; color: #fff; }
.intern-banner h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--text); }
.intern-banner p { margin: 0; font-size: 12px; color: var(--text-secondary); }

/* ── Job Cards ────────────────────────────────────────────── */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  transition: box-shadow .15s, border-color .15s, transform .1s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(232,97,10,.3);
  transform: translateY(-1px);
}

.job-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.company-logo {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
}

.company-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.job-card-info { flex: 1; min-width: 0; }

.job-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-company {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.job-meta-item svg { width: 13px; height: 13px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-intern {
  background: var(--intern-badge);
  color: var(--intern-text);
}

.badge-remote {
  background: var(--remote-badge);
  color: var(--remote-text);
}

.badge-orange {
  background: var(--orange-pale);
  color: var(--orange-dark);
}

[data-theme="dark"] .badge-orange {
  background: rgba(232,97,10,.15);
  color: var(--orange-light);
}

.badge-grey {
  background: var(--badge-bg);
  color: var(--badge-text);
}

.badge-new {
  background: #FEF3C7;
  color: #92400E;
}

[data-theme="dark"] .badge-new {
  background: #1C1507;
  color: #FCD34D;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-time { font-size: 11px; color: var(--text-muted); }

.btn-save {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--badge-bg);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .15s;
}

.btn-save.saved { color: var(--orange); background: var(--orange-pale); }
[data-theme="dark"] .btn-save.saved { background: rgba(232,97,10,.15); }
.btn-save svg { width: 15px; height: 15px; }

/* Salary */
.job-salary {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
}

.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

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

.btn-ghost:hover { background: var(--border); }

.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }

/* ── Filter Chips ─────────────────────────────────────────── */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}

.chip.active, .chip:hover {
  border-color: var(--orange);
  background: var(--orange-pale);
  color: var(--orange);
}

[data-theme="dark"] .chip.active,
[data-theme="dark"] .chip:hover {
  background: rgba(232,97,10,.15);
  color: var(--orange-light);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 13px;
  transition: border .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,97,10,.1);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 11px; color: #EF4444; margin-top: 4px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

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

.card-title { font-size: 14px; font-weight: 700; margin: 0; }

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}

.auth-logo-icon svg { width: 26px; height: 26px; color: #fff; }

.auth-logo h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
}

.auth-logo p { font-size: 13px; color: var(--text-secondary); margin: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

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

.auth-divider span { font-size: 12px; color: var(--text-muted); }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-switch a { color: var(--orange); font-weight: 600; }

/* ── Profile Page ─────────────────────────────────────────── */
.profile-header {
  background: linear-gradient(135deg, #1A0A00, #2D1100);
  padding: 24px 16px 56px;
  text-align: center;
  position: relative;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  overflow: hidden;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.profile-headline { font-size: 12px; color: rgba(255,255,255,.6); margin: 0; }

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: -28px 12px 12px;
  position: relative;
  z-index: 2;
  padding: 14px;
}

/* ── Experience/Education Items ───────────────────────────── */
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--orange-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}

[data-theme="dark"] .timeline-icon { background: rgba(232,97,10,.15); }
.timeline-icon svg { width: 18px; height: 18px; }

.timeline-content { flex: 1; }
.timeline-title { font-size: 13px; font-weight: 700; margin: 0 0 2px; }
.timeline-sub { font-size: 12px; color: var(--text-secondary); margin: 0 0 4px; }
.timeline-date { font-size: 11px; color: var(--text-muted); }
.timeline-desc { font-size: 12px; color: var(--text-secondary); margin: 6px 0 0; }

/* ── Skill Tags ───────────────────────────────────────────── */
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  padding: 4px 12px;
  background: var(--badge-bg);
  border-radius: 20px;
  font-size: 12px;
  color: var(--badge-text);
  font-weight: 500;
}

.skill-tag.removable { padding-right: 8px; display: flex; align-items: center; gap: 6px; }
.skill-tag.removable button {
  background: none; border: none; padding: 0;
  color: var(--text-muted); display: flex;
}

.skill-tag.removable button svg { width: 12px; height: 12px; }

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

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

.tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* ── Job Detail Page ──────────────────────────────────────── */
.job-detail-header {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.job-detail-company {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.job-detail-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--badge-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--orange);
}

.job-detail-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; line-height: 1.3; }
.job-detail-company-name { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

.job-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.job-detail-section { margin-bottom: 20px; }
.job-detail-section h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.job-detail-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.job-detail-body ul { padding-left: 18px; margin: 8px 0; }
.job-detail-body li { margin-bottom: 4px; }

/* ── Employer Portal ──────────────────────────────────────── */
.employer-header {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  padding: 20px 16px;
  color: #fff;
}

.employer-header h2 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.employer-header p { font-size: 12px; opacity: .75; margin: 0; }

/* ── Admin Dashboard ──────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.admin-content {
  flex: 1;
  padding: 20px 16px;
  padding-bottom: 80px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.stat-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

.stat-card-icon svg { width: 20px; height: 20px; color: #fff; }

.stat-card-num { font-size: 22px; font-weight: 800; margin: 0 0 2px; }
.stat-card-label { font-size: 11px; color: var(--text-secondary); }

/* ── Application Status ───────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.status-applied     { background: #EFF6FF; color: #1D4ED8; }
.status-under_review{ background: #FEF3C7; color: #92400E; }
.status-shortlisted { background: #F0FDF4; color: #15803D; }
.status-interview   { background: #F5F3FF; color: #6D28D9; }
.status-offer       { background: #ECFDF5; color: #065F46; }
.status-rejected    { background: #FEF2F2; color: #991B1B; }

[data-theme="dark"] .status-applied      { background: #1E3A5F; color: #93C5FD; }
[data-theme="dark"] .status-under_review { background: #1C1507; color: #FCD34D; }
[data-theme="dark"] .status-shortlisted  { background: #052E16; color: #86EFAC; }
[data-theme="dark"] .status-interview    { background: #1E1B4B; color: #A5B4FC; }
[data-theme="dark"] .status-offer        { background: #022C22; color: #6EE7B7; }
[data-theme="dark"] .status-rejected     { background: #3B0000; color: #FCA5A5; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  width: 100%; max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}

.modal-backdrop.open .modal { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
  width: calc(100% - 32px);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: #1A1A1A;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  animation: toast-in .3s ease, toast-out .3s ease 2.7s forwards;
  pointer-events: all;
}

.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast-success { border-left: 3px solid #22C55E; }
.toast-error   { border-left: 3px solid #EF4444; }
.toast-info    { border-left: 3px solid var(--orange); }

@keyframes toast-in  { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes toast-out { to   { opacity:0; transform:translateY(16px); } }

/* ── Flash ────────────────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin: 12px 0;
  display: flex; align-items: center; gap: 8px;
}

.flash-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.flash-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
[data-theme="dark"] .flash-success { background: #052E16; color: #86EFAC; border-color: #15803D; }
[data-theme="dark"] .flash-error   { background: #3B0000; color: #FCA5A5; border-color: #991B1B; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
}

.page-btn {
  min-width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s;
}

.page-btn:hover, .page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 56px; height: 56px;
  color: var(--border);
  margin-bottom: 16px;
}

.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.empty-state p  { font-size: 13px; margin: 0 0 20px; }

/* ── Loading Skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--badge-bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Table ────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--badge-bg); }

/* ── Scrollable Table ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

/* ── Company Page ─────────────────────────────────────────── */
.company-banner {
  height: 120px;
  background: linear-gradient(135deg, #1A0A00, var(--orange));
  border-radius: 14px 14px 0 0;
  position: relative;
}

.company-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -30px;
  padding-bottom: 16px;
}

.company-profile-logo {
  width: 60px; height: 60px;
  border-radius: 14px;
  border: 3px solid var(--bg-card);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 10px;
}

/* ── Settings / Profile Edit ──────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Search Results Header ────────────────────────────────── */
.results-header {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.results-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.results-count strong { color: var(--text); }

.sort-select {
  padding: 7px 28px 7px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  -webkit-appearance: none;
}

/* ── Dropdown ─────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  display: none;
}

.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background .1s;
  border: none; background: transparent; width: 100%; text-align: left;
}

.dropdown-item:hover { background: var(--badge-bg); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-item.danger { color: #EF4444; }
.dropdown-item.danger svg { color: #EF4444; }
.dropdown-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Category Cards ───────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}

.category-icon svg { width: 22px; height: 22px; color: #fff; }
.category-name { font-size: 12px; font-weight: 700; color: var(--text); margin: 0 0 2px; }
.category-count { font-size: 11px; color: var(--text-muted); }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 3px;
  transition: width .5s ease;
}

/* ── Internship Section Tags ──────────────────────────────── */
.intern-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--intern-badge);
  color: var(--intern-text);
}

.intern-tag svg { width: 12px; height: 12px; }

/* ── Responsive: Tablet+ ──────────────────────────────────── */
@media (min-width: 640px) {
  html { font-size: 14px; }
  .hero h1 { font-size: 32px; }
  .hero-search { padding: 14px; }
  .hero-search-row { flex-direction: row; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Responsive: Desktop ──────────────────────────────────── */
@media (min-width: 1024px) {
  html { font-size: 15px; }
  .main-content { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .nav-links { display: flex; }
  .nav-search { display: block; }
  .topnav-inner { padding: 0 32px; }

  .admin-sidebar { display: flex; }
  .admin-content { margin-left: 220px; padding: 28px 32px; }

  .hero { padding: 60px 24px 72px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }

  .two-col {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
  }

  .three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .category-grid { grid-template-columns: repeat(6, 1fr); }

  .modal-backdrop { align-items: center; }
  .modal { border-radius: 20px; max-width: 560px; }
  .modal-backdrop.open .modal { transform: none; }

  .job-card { flex-direction: row; gap: 16px; align-items: flex-start; }
  .job-card-info { flex: 1; }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.font-bold   { font-weight: 700; }
.mt-8        { margin-top: 8px; }
.mt-12       { margin-top: 12px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.mb-8        { margin-bottom: 8px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.gap-8       { gap: 8px; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.w-full      { width: 100%; }
.hidden      { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
