/* ═══════════════════════════════════════════════════════════════
   DK Recruitment — Purple Space Design System
   Colors: Purple Space theme | Sizing: Original comfortable scale
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── 1. CSS VARIABLES ─── */
:root {
  /* DARK MODE (default) */
  --bg:         #05030f;
  --bg1:        #07051a;
  --bg2:        #0a0720;
  --surface:    rgba(255,255,255,0.04);
  --surface2:   rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.12);
  --border3:    rgba(167,139,250,0.35);
  --txt:        #f0eeff;
  --txt2:       #9d93c8;
  --txt3:       #4e4875;
  --accent:     #a78bfa;
  --accent2:    #c4b5fd;
  --accent3:    #7c3aed;
  --accentbg:   rgba(167,139,250,0.10);
  --accentbg2:  rgba(167,139,250,0.18);
  --green:      #34d399;
  --greenbg:    rgba(52,211,153,0.10);
  --red:        #f87171;
  --redbg:      rgba(248,113,113,0.10);
  --ff:         'Inter', sans-serif;
  --radius:     8px;
  --radius-lg:  16px;
  --ease:       cubic-bezier(0.4,0,0.2,1);

  /* Legacy aliases for backwards compat */
  --font-sans: var(--ff);
  --text: var(--txt);
  --text-muted: var(--txt2);
  --text-secondary: var(--txt2);
  --primary: var(--accent);
  --primary-dark: var(--accent3);
  --error: var(--red);
  --success: var(--green);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px -1px rgba(0,0,0,0.5), 0 2px 6px -2px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 24px -4px rgba(0,0,0,0.6), 0 4px 8px -4px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 40px -8px rgba(0,0,0,0.7), 0 8px 16px -6px rgba(0,0,0,0.6);
  --stage-pending: #ffd43b;
  --stage-screening: #74c0fc;
  --stage-interview: #9775fa;
  --stage-offer: #34d399;
  --stage-hired: #059669;
  --stage-rejected: #f87171;
  --bg-card: var(--surface);
  --bg-card-gradient: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --bg-popup: linear-gradient(180deg, rgba(30,30,30,0.98) 0%, rgba(18,18,18,0.98) 100%);
  --bg-input: rgba(255,255,255,0.05);
  --bg-surface: var(--bg1);
}

body.bright, body.day-mode, html[data-theme="day"] {
  --bg:         #f8f7ff;
  --bg1:        #f0eeff;
  --bg2:        #e8e4ff;
  --surface:    rgba(255,255,255,0.85);
  --surface2:   rgba(255,255,255,0.60);
  --border:     rgba(124,58,237,0.10);
  --border2:    rgba(124,58,237,0.18);
  --border3:    rgba(124,58,237,0.40);
  --txt:        #1a0f3c;
  --txt2:       #6b5fa8;
  --txt3:       #b0a8d8;
  --accent:     #7c3aed;
  --accent2:    #6d28d9;
  --accent3:    #5b21b6;
  --accentbg:   rgba(124,58,237,0.08);
  --accentbg2:  rgba(124,58,237,0.14);
  --green:      #059669;
  --greenbg:    rgba(5,150,105,0.09);
  --red:        #dc2626;
  --redbg:      rgba(220,38,38,0.08);

  --text: var(--txt); --text-muted: var(--txt2); --text-secondary: var(--txt2);
  --primary: var(--accent); --primary-dark: var(--accent3);
  --error: var(--red); --success: var(--green);
  --bg-card: var(--surface); --bg-card-gradient: var(--surface);
  --bg-popup: var(--surface); --bg-input: var(--surface); --bg-surface: var(--bg1);
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px -1px rgba(0,0,0,0.10), 0 2px 6px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px -4px rgba(0,0,0,0.12), 0 4px 8px -4px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 40px -8px rgba(0,0,0,0.14), 0 8px 16px -6px rgba(0,0,0,0.12);
}

/* ─── 2. RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── 3. SPACE BACKGROUND CANVAS ─── */
#space-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ─── 4. NEBULA BLOBS ─── */
.nebula {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
  z-index: 0; transition: opacity 0.5s;
}
.n1 { width:500px; height:380px; top:-80px; left:-100px; background: radial-gradient(ellipse, rgba(109,40,217,0.32) 0%, transparent 70%); }
.n2 { width:420px; height:300px; top:60px; right:-80px; background: radial-gradient(ellipse, rgba(167,139,250,0.18) 0%, transparent 70%); }
.n3 { width:350px; height:260px; top:45vh; left:35%; background: radial-gradient(ellipse, rgba(124,58,237,0.14) 0%, transparent 70%); }
.n4 { width:260px; height:200px; bottom:10%; right:8%; background: radial-gradient(ellipse, rgba(196,181,253,0.11) 0%, transparent 70%); }
body.bright .nebula, body.day-mode .nebula { opacity: 0.35; }

/* ─── 5. PAGE WRAPPER ─── */
.page-wrap {
  position: relative; z-index: 2;
  min-height: 100vh;
  background: transparent;
}

/* ─── 6. TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--txt); }

.hero-h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.hero-h1 .gradient {
  background: linear-gradient(135deg, #f0eeff 0%, #c4b5fd 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--txt2);
}

.label, .badge-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── 7. NAVBAR ─── */
.navbar, .top-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 64px;
  background: rgba(5,3,15,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.45s var(--ease);
  max-width: 100%;
}
body.bright .navbar, body.bright .top-nav, body.day-mode .navbar, body.day-mode .top-nav {
  background: rgba(240,238,255,0.78);
}
@media (min-width: 1024px) {
  .navbar, .top-nav { padding: 0 2rem; }
}

.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

.nav-brand, .nav-logo {
  display: flex; align-items: center; gap: 0.625rem;
  text-decoration: none;
}
.nav-brand span, .nav-logo span {
  font-size: 1.25rem; font-weight: 800; color: var(--txt);
  letter-spacing: -0.025em; text-decoration: none;
}

.nav-links {
  display: none; align-items: center; gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--txt2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--txt); }

.nav-actions {
  display: flex; align-items: center; gap: 0.75rem;
}

.mode-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 6px 12px;
  color: var(--txt2); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.mode-toggle:hover { border-color: var(--border3); color: var(--txt); }

/* ─── 8. BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  font-family: var(--ff); line-height: 1;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s ease; border: none; outline: none;
  white-space: nowrap;
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff; padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent; color: var(--txt);
  border: 2px solid var(--border2); padding: 0.75rem 1.5rem;
}
.btn-outline:hover {
  background: var(--txt); color: var(--bg);
  border-color: var(--txt);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent; color: var(--txt2);
  padding: 0.5rem; border-radius: var(--radius-md);
}
.btn-ghost:hover { color: var(--txt); background: var(--surface); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-danger {
  background: var(--redbg); color: var(--red);
  border: 1px solid rgba(248,113,113,0.2); padding: 0.75rem 1.5rem;
}
.btn-danger:hover {
  background: rgba(248,113,113,0.2);
  box-shadow: var(--shadow-md);
}

/* ─── 9. CARDS ─── */
.card {
  background: var(--bg-card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.card-static {
  background: var(--bg-card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.job-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.22s var(--ease);
}
.job-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
  transform: scaleY(0); transition: transform 0.22s var(--ease);
  transform-origin: bottom;
}
.job-card:hover { border-color: var(--border2); }
.job-card:hover::before { transform: scaleY(1); }

/* ─── 10. FORM INPUTS ─── */
input, select, textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt);
  font-family: var(--ff);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--txt2); opacity: 0.6; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  margin-bottom: 0.5rem; color: var(--txt2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt); font-size: 0.95rem;
  font-family: var(--ff);
  transition: all 0.2s ease; outline: none; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

/* ─── 11. BADGES / TAGS ─── */
.badge-purple { background: var(--accentbg); color: var(--accent2); border-radius: 4px; font-size: 11px; font-weight: 500; padding: 3px 9px; display: inline-block; }
.badge-green  { background: var(--greenbg);  color: var(--green);   border-radius: 4px; font-size: 11px; font-weight: 500; padding: 3px 9px; display: inline-block; }
.badge-red    { background: var(--redbg);    color: var(--red);     border-radius: 4px; font-size: 11px; font-weight: 500; padding: 3px 9px; display: inline-block; }
.badge-neutral{ background: var(--surface2); color: var(--txt2);    border-radius: 4px; font-size: 11px; font-weight: 500; padding: 3px 9px; display: inline-block; }

.tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--txt2);
}
.tag.active {
  background: var(--accentbg); border-color: var(--border3); color: var(--accent2);
}

/* ─── 12. STATS / METRIC NUMBERS ─── */
.stat-number {
  font-size: 28px; font-weight: 700; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--txt) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 13. CONTAINER & LAYOUT ─── */
.container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.page { padding-top: 80px; min-height: 100vh; }
.page-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
@media (min-width: 1024px) { .page-inner { padding: 2.5rem 2rem 5rem; } }

/* ─── 14. SECTION HEADER ─── */
.section-header { margin-bottom: 2.5rem; }
.section-header h1, .section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 0.5rem; line-height: 1.2;
}
.section-header p {
  color: var(--txt2); font-size: 1.05rem; max-width: 600px;
}
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ─── 15. ALERTS ─── */
.alert {
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: 0.9rem; display: none;
  border: 1px solid transparent;
}
.alert.show { display: block; }
.alert-error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.2);
  color: var(--red);
}
.alert-success {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
  color: var(--green);
}

/* ─── 16. MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 2000; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-popup);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 92%; max-width: 600px; max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 0.75rem;
}

/* ─── 17. SEARCH & FILTERS ─── */
.search-bar {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.search-bar input, .search-bar select {
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt); font-size: 0.9rem;
  font-family: var(--ff); outline: none;
  transition: all 0.2s ease;
}
.search-bar input:focus, .search-bar select:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.search-bar input::placeholder { color: var(--txt2); opacity: 0.6; }

/* ─── 18. STATUS BADGES ─── */
.status-pending { background: rgba(255, 212, 59, 0.12); color: var(--stage-pending); border: 1px solid rgba(255, 212, 59, 0.2); }
.status-screening { background: rgba(116, 192, 252, 0.12); color: var(--stage-screening); border: 1px solid rgba(116, 192, 252, 0.2); }
.status-interview { background: rgba(151, 117, 250, 0.12); color: var(--stage-interview); border: 1px solid rgba(151, 117, 250, 0.2); }
.status-offer { background: rgba(81, 207, 102, 0.12); color: var(--stage-offer); border: 1px solid rgba(81, 207, 102, 0.2); }
.status-hired { background: rgba(47, 158, 68, 0.12); color: var(--stage-hired); border: 1px solid rgba(47, 158, 68, 0.2); }
.status-rejected { background: rgba(255, 107, 107, 0.12); color: var(--stage-rejected); border: 1px solid rgba(255, 107, 107, 0.2); }

/* ─── 19. AUTH PAGES ─── */
.auth-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 6rem 1.5rem 3rem;
}
.auth-card, .auth-container {
  width: 100%; max-width: 480px;
  background: var(--bg-card-gradient);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2.5rem; position: relative; overflow: hidden;
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo img { height: 60px; width: auto; filter: drop-shadow(0 0 12px rgba(255,255,255,0.06)); }
.auth-card h2, .auth-container h2 {
  font-size: 1.5rem; font-weight: 800;
  text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.auth-subtitle {
  text-align: center; color: var(--txt2);
  font-size: 0.95rem; margin-bottom: 2rem;
}
.auth-footer {
  text-align: center; margin-top: 1.5rem;
  font-size: 0.9rem; color: var(--txt2);
}
.auth-footer a { color: var(--txt); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.divider-text {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--txt2); font-size: 0.85rem;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── 20. FILE UPLOAD ─── */
.file-upload-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.file-upload-wrapper input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; z-index: 2;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card-gradient);
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius-md);
  color: var(--txt2);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--ff);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.file-upload-wrapper:hover .file-upload-btn {
  border-color: var(--accent);
  color: var(--txt);
  background: var(--bg-input);
}
.file-upload-name {
  font-size: 0.85rem;
  color: var(--txt2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── 21. USER AVATAR ─── */
.user-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
  text-decoration: none;
}

/* ─── 22. NOTIFICATIONS ─── */
.notification-dropdown {
  position: absolute; top: 48px; right: 0;
  width: 340px; max-height: 420px; overflow-y: auto;
  background: var(--bg-popup);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 300; display: none; padding: 0.5rem 0;
}
.notification-dropdown.show { display: block; }
.notification-dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.notification-dropdown-header h4 { font-size: 0.9rem; font-weight: 700; }
.notification-dropdown-header button {
  background: none; border: none; color: var(--txt2);
  font-size: 0.75rem; cursor: pointer; font-weight: 600;
}
.notification-dropdown-header button:hover { color: var(--txt); }
.notification-item {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.2s ease;
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.notification-item:hover { background: var(--surface); }
.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: var(--surface); }
.notification-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-top: 6px; flex-shrink: 0;
}
.notification-item.read .notification-dot { background: var(--border2); }
.notification-content { flex: 1; }
.notification-content p { font-size: 0.85rem; line-height: 1.5; margin: 0; }
.notification-time { font-size: 0.75rem; color: var(--txt2); margin-top: 0.25rem; }
.notification-empty { padding: 2rem; text-align: center; color: var(--txt2); font-size: 0.85rem; }

/* ─── 23. KANBAN ─── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.kanban-column {
  background: linear-gradient(145deg, var(--surface) 0%, rgba(128,128,128,0.01) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem; min-height: 400px;
}
.kanban-column-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.kanban-column-header h3 {
  font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.kanban-count {
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.15rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
}
.kanban-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem;
  margin-bottom: 0.75rem; transition: all 0.3s ease;
}
.kanban-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ─── 24. STAR RATING ─── */
.star-rating { display: flex; gap: 0.15rem; font-size: 0.9rem; }
.star-rating .star-filled { color: #ffd43b; }
.star-rating .star-empty { color: var(--border); }

/* ─── 25. PIPELINE ─── */
.pipeline-progress { display: flex; gap: 0.25rem; margin: 1rem 0; }
.pipeline-step { flex: 1; height: 6px; border-radius: 3px; background: var(--border); transition: background 0.3s ease; }
.pipeline-step.active { background: var(--stage-pending); }
.pipeline-step.completed { background: var(--stage-offer); }

/* ─── 26. EMPTY STATE ─── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--txt2); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ─── 27. USER TYPE TOGGLE ─── */
.user-type-toggle {
  display: flex; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px; gap: 4px;
}
.user-type-toggle input { display: none; }
.user-type-toggle label {
  flex: 1; text-align: center; padding: 0.7rem;
  border-radius: 6px; cursor: pointer;
  font-size: 0.9rem; font-weight: 600;
  color: var(--txt2); transition: all 0.2s ease;
  margin-bottom: 0;
}
.user-type-toggle input:checked + label {
  background: var(--primary); color: var(--bg);
}

/* ─── 28. FOOTER ─── */
.footer {
  padding: 3rem 1.5rem; text-align: center;
  border-top: 1px solid var(--border); margin-top: 0;
  transition: border-color 0.4s ease;
}
.footer p { color: var(--txt2); font-size: 0.85rem; }
.footer .footer-logo { height: 36px; opacity: 0.4; margin-bottom: 1rem; transition: opacity 0.4s ease; }
body.bright .footer .footer-logo, body.day-mode .footer .footer-logo { opacity: 0.6; }
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem 1.25rem; margin-bottom: 1rem;
}
.footer-links a {
  color: var(--txt2); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--txt); }

/* ─── 29. MOBILE MENU ─── */
.mobile-menu-btn {
  display: flex; width: 40px; height: 40px; border-radius: var(--radius-md);
  background: transparent; border: 1px solid var(--border);
  color: var(--txt); font-size: 1.25rem; cursor: pointer;
  transition: all 0.2s ease; align-items: center; justify-content: center;
}
.mobile-menu-btn:hover { background: var(--surface); border-color: var(--border2); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Mobile navbar fixes */
@media (max-width: 767px) {
  .nav-brand span { display: none; }
  .nav-links { display: none; }
  .navbar { padding: 0 1rem; }
  .mode-toggle { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
  .mode-toggle span:last-child { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg-popup);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.show { display: block; }
.mobile-menu a {
  display: block; padding: 0.85rem 0;
  color: var(--txt2); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--txt); }
.mobile-menu .mobile-menu-section {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--txt2);
  margin-top: 0.75rem; margin-bottom: 0.25rem;
  opacity: 0.6;
}
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 98;
  background: rgba(0,0,0,0.4);
}
.mobile-menu-overlay.show { display: block; }

/* ─── 30. DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 0.35rem;
  color: var(--txt2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  background: none; border: none; cursor: pointer;
  padding: 0; font-family: var(--ff);
  transition: color 0.2s ease; white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--txt); }
.nav-dropdown-toggle svg { transition: transform 0.2s ease; }
.nav-dropdown.show .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu, .dropdown-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 50%;
  transform: translateX(-50%) scale(0.96);
  transform-origin: top center;
  background: var(--bg-popup);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px; padding: 0.5rem 0;
  opacity: 0; visibility: hidden;
  transition: all 0.2s ease;
  z-index: 300;
}
.nav-dropdown.show .nav-dropdown-menu, .dropdown-menu.show {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) scale(1);
}
.nav-dropdown-menu a, .dropdown-menu a {
  display: block; padding: 0.6rem 1rem;
  color: var(--txt2); font-size: 0.85rem;
  font-weight: 500; transition: all 0.15s ease;
}
.nav-dropdown-menu a:hover, .dropdown-menu a:hover {
  color: var(--txt); background: var(--surface);
}
.nav-dropdown-menu .dropdown-section {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--txt2);
  padding: 0.5rem 1rem 0.25rem; opacity: 0.6;
  pointer-events: none;
}

/* ─── 31. GRID ─── */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Horizontal scroll row (mobile) ─── */
.scroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    padding: 0.5rem 1rem 1.5rem;
    margin: 0 -1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(120,119,198,0.3) transparent;
  }
  .scroll-row::-webkit-scrollbar { height: 4px; }
  .scroll-row::-webkit-scrollbar-track { background: transparent; }
  .scroll-row::-webkit-scrollbar-thumb { background: rgba(120,119,198,0.3); border-radius: 4px; }
  .scroll-row > * {
    flex: 0 0 85vw;
    max-width: 320px;
    min-width: 260px;
    scroll-snap-align: start;
  }
  /* Also make regular grids scrollable on mobile where needed */
  .showcase-grid,
  .ss-grid,
  .ss-real-grid,
  .unlock-grid,
  .reg-ss-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    padding: 0.5rem 1rem 1.5rem;
    margin: 0 -1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(120,119,198,0.3) transparent;
  }
  .showcase-grid::-webkit-scrollbar,
  .ss-grid::-webkit-scrollbar,
  .ss-real-grid::-webkit-scrollbar,
  .unlock-grid::-webkit-scrollbar,
  .reg-ss-grid::-webkit-scrollbar { height: 4px; }
  .showcase-grid::-webkit-scrollbar-track,
  .ss-grid::-webkit-scrollbar-track,
  .ss-real-grid::-webkit-scrollbar-track,
  .unlock-grid::-webkit-scrollbar-track,
  .reg-ss-grid::-webkit-scrollbar-track { background: transparent; }
  .showcase-grid::-webkit-scrollbar-thumb,
  .ss-grid::-webkit-scrollbar-thumb,
  .ss-real-grid::-webkit-scrollbar-thumb,
  .unlock-grid::-webkit-scrollbar-thumb,
  .reg-ss-grid::-webkit-scrollbar-thumb { background: rgba(120,119,198,0.3); border-radius: 4px; }
  .showcase-grid > *,
  .ss-grid > *,
  .ss-real-grid > *,
  .unlock-grid > *,
  .reg-ss-grid > * {
    flex: 0 0 85vw;
    max-width: 320px;
    min-width: 260px;
    scroll-snap-align: start;
  }
  /* Hide desktop-only hover transforms on mobile */
  .dash-frame:hover, .ss-frame:hover, .ss-real-frame:hover, .reg-ss-frame:hover {
    transform: none;
  }
}

/* ─── 32. RESPONSIVE ─── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select { width: 100%; }
  .notification-dropdown {
    width: calc(100vw - 2rem); right: auto; left: 50%;
    transform: translateX(-50%); max-width: 360px;
  }
  .auth-card, .auth-container { padding: 2rem 1.5rem; }
  .page-inner { padding: 1.5rem 1rem 3rem; }
  /* Reduce vertical padding on mobile */
  .cine-section { padding: 3rem 0; }
  .hero { padding: 6rem 1rem 3rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat::after { display: none; }
  /* Disable reveal animation hiding on mobile — content always visible */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── 33. HIDE OLD ELEMENTS ─── */
.space-bg, .stars { display: none; }
