/* ==============================================================================
   Job Hunter — Executive Pure Flexbox Design System
   Human-Crafted, Responsive, High-Performance UI/UX
   ============================================================================== */

:root {
  /* Surface & Base Tokens */
  --bg: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-subtle: #f8fafc;
  --card-bg: #ffffff;
  --card-subtle: #f8fafc;

  /* Precision Slate / Neutral Palette */
  --text-main: #090d16;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Dividers */
  --border: #e2e8f0;
  --border-muted: #edf2f7;
  --border-hover: #cbd5e1;
  --border-active: #818cf8;

  /* Primary Executive Sapphire / Indigo */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-active: #3730a3;
  --primary-light: #eef2ff;
  --primary-subtle: #f5f7ff;
  --primary-border: #c7d2fe;
  --primary-glow: rgba(79, 70, 229, 0.14);

  /* Functional Status Tokens */
  --success: #059669;
  --success-hover: #047857;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;

  --warning: #d97706;
  --warning-hover: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --danger: #e11d48;
  --danger-hover: #be123c;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;

  /* Elevation Shadows (Tactile & Clean) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:
    0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:
    0 4px 14px -2px rgba(15, 23, 42, 0.08),
    0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg:
    0 12px 28px -4px rgba(15, 23, 42, 0.12),
    0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-modal:
    0 24px 48px -8px rgba(15, 23, 42, 0.2),
    0 8px 16px -4px rgba(15, 23, 42, 0.08);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Fluid Motion */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==============================================================================
   1. Base Reset & Fluid Typography
   ============================================================================== */

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

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  padding: clamp(12px, 2.2vw, 24px) clamp(12px, 2vw, 24px);
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}

img,
svg,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
.brand-title,
.section-title,
.card-title,
.modal-title,
.job-title,
.tab-btn,
.metric-val,
.btn,
.stat-num,
.auth-card-title,
.wizard-title {
  font-family:
    "Plus Jakarta Sans",
    "Inter",
    -apple-system,
    sans-serif;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

code,
pre,
.console,
.cover-box,
.monospace {
  font-family:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
}

/* Focus Outlines */
:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--primary-glow),
    0 0 0 1px var(--primary);
}

/* Minimal Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==============================================================================
   2. Global Navigation Bar (Pure Flexbox)
   ============================================================================== */

.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  padding: 10px 16px;
  width: 100%;
  position: sticky;
  top: 12px;
  z-index: 100;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

/* Brand Cluster */
.nav-brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo-frame {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  margin-right: 12px;
  flex-shrink: 0;
  color: var(--primary);
  overflow: hidden;
  box-sizing: border-box;
}

.brand-logo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.brand-fallback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

/* Universal Logo Containers: Guaranteed Margins & Padding to Prevent Any Overlaps or Touching */
.brand-logo-frame,
.digest-logo-container,
.digest-logo-frame,
.empty-logo-frame,
.dashboard-logo-frame,
.landing-footer-logo-frame {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-right: 12px !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
}

.digest-footer-logo-frame,
.dashboard-footer-logo-frame {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-right: 10px !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
}

/* Universal Logo Visibility & Aspect-Ratio Guard (Prevents Any Container from Squishing or Hiding Logos) */
.brand-logo-frame,
.brand-logo,
.brand-fallback-icon,
.digest-logo-container,
.digest-logo-frame,
.empty-logo-frame,
.digest-footer-logo-frame,
.dashboard-logo-frame,
.dashboard-footer-logo-frame,
.landing-footer-logo-frame,
.digest-logo-img,
.empty-logo-img,
.digest-footer-logo {
  flex-shrink: 0 !important;
  min-width: fit-content;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Live Sync Status Pill */
.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.sync-indicator:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background: #ffffff;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.sync-indicator.syncing .status-dot {
  background: var(--warning);
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
}

.sync-indicator.offline .status-dot {
  background: var(--danger);
}

/* Landing Navigation Links & CTA */
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-muted);
}

.landing-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dashboard Action & Metrics Cluster */
.nav-actions-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metrics-bar {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  gap: 8px;
}

.metric-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.metric-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
}

.nav-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-nav-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-export-csv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

/* User Profile Pill */
.user-auth-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 8px 3px 4px;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.user-auth-pill:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.user-avatar:hover {
  transform: scale(1.05);
}

.user-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 140px;
  overflow: hidden;
  cursor: pointer;
}

.user-email {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-auth-signout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-auth-signout:hover {
  background: var(--danger);
  color: #ffffff;
}

/* ==============================================================================
   3. Buttons & Form Controls (Reusable Component System)
   ============================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.btn-inactive {
  opacity: 0.65;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:disabled,
.btn-primary.btn-inactive {
  background: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.btn-primary:hover:not(:disabled):not(.btn-inactive) {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-hover);
  color: var(--text-main);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-applied {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
  font-weight: 700;
}

.btn-applied:hover {
  background: #dcfce7;
  border-color: var(--success);
  color: var(--success);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.btn-danger:hover {
  background: #ffe4e6;
  border-color: var(--danger);
  color: var(--danger-hover);
}

.btn-group-dual {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-group-dual .btn {
  flex: 1 1 0%;
}

/* Form Elements */
.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* Responsive 2-Column Flex Form Row */
.form-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.form-grid-2 > .form-group {
  flex: 1 1 220px;
  min-width: 0;
  margin-bottom: 0;
}

/* Responsive 3-Column Flex Form Row */
.form-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.form-grid-3 > .form-group {
  flex: 1 1 180px;
  min-width: 0;
  margin-bottom: 0;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
  line-height: 1.5;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Switch Toggle Component */
.toggle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  gap: 14px;
  width: 100%;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.toggle-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: var(--transition-fast);
  border-radius: var(--radius-pill);
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: var(--transition-fast);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider::before {
  transform: translateX(18px);
}

/* Spinner Loader */
.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.btn-secondary .spinner {
  border-color: rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================================================================
   4. Landing Page View (Pure Flexbox Architecture)
   ============================================================================== */

.landing-view {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
  width: 100%;
  animation: fadeIn 0.3s ease-out;
}

/* Hero Flex Container */
.landing-hero-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  padding-top: 8px;
}

.landing-hero-copy {
  flex: 1 1 480px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.landing-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.landing-hero-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}

.landing-hero-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.landing-hero-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

.landing-hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.hero-feat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.feat-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feat-content strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.feat-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Hero Auth Card */
.landing-auth-card {
  flex: 1 1 380px;
  max-width: 440px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card-inner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.auth-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-card-title {
  font-size: 18px;
  font-weight: 800;
}

.auth-card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  background: var(--bg-muted);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 3px;
}

.auth-tab-btn {
  flex: 1 1 0%;
  padding: 7px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.auth-form .btn {
  width: 100%;
  padding: 10px;
  font-size: 13.5px;
}

.auth-forgot-link {
  font-size: 11.5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  gap: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.btn-social-auth {
  width: 100%;
  padding: 9px;
  font-size: 13px;
  gap: 8px;
}

.auth-feedback {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.45;
}

.auth-feedback.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-hover);
}

.auth-feedback.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-hover);
}

/* Landing Sections */
.landing-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* 4-Stage Pipeline Flex Cards */
.pipeline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.pipeline-card {
  flex: 1 1 calc(25% - 12px);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-normal);
}

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

.pipeline-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pipeline-step-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipeline-icon {
  color: var(--primary);
}

.pipeline-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.pipeline-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Supported ATS Platforms Flex Cards */
.ats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.ats-card {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}

.ats-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.ats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.ats-logo-tag {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.ats-status-live {
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.ats-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Landing Footer */
.landing-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 12px;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-title {
  font-weight: 800;
  color: var(--text-main);
}

.footer-brand-sep {
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Universal View State Isolation */
.app-view-hidden,
[style*="display: none"].app-view-hidden,
[style*="display:none"].app-view-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dashboard-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.sidebar-pane {
  flex: 0 0 340px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-viewport-pane {
  flex: 1 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Dashboard Cards */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.card-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Candidate Profile Summary Card */
.card-studio-summary {
  background: #ffffff;
}

.studio-summary-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-profile-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.studio-profile-title {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.studio-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

.studio-skill-tag {
  font-size: 11px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

/* Placeholder tag shown in sidebar when profile has no skills yet */
.studio-skill-tag.studio-skill-placeholder {
  color: var(--text-muted);
  border-style: dashed;
  font-weight: 400;
  font-style: italic;
  background: transparent;
}

/* Muted label shown for name/title when profile is incomplete */
.profile-incomplete-label {
  color: var(--text-muted) !important;
  font-style: italic;
  font-weight: 400 !important;
}

.studio-notif-status {
  margin-top: 2px;
}

.notif-badge-on {
  color: var(--success);
  font-weight: 700;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.2;
}

.notif-badge-off {
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.2;
}

.studio-btn-manage {
  width: 100%;
  margin-top: 14px;
}

#btn-run {
  width: 100%;
  margin-bottom: 12px;
  padding: 11px 16px;
}

/* Terminal Console Output */
.console {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 11.5px;
  color: #38bdf8;
  margin-top: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

/* Tools Card (Mark Applied & Add Job) */
.card-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tool-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-divider {
  height: 1px;
  background: var(--border);
  width: 100%;
  margin: 4px 0;
}

.tool-status-msg {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==============================================================================
   6. Main Viewport & Interactive Board
   ============================================================================== */

/* Viewport Tabs */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  width: 100%;
}

.tab-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Digest Viewport Frame */
.digest-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.digest-header-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.digest-preview-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-live-sync {
  font-size: 11px;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.digest-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.viewport-frame {
  width: 100%;
  min-height: 540px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle, #f8fafc);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.viewport-frame:hover {
  border-color: var(--border-hover);
}

.viewport-frame iframe {
  width: 100%;
  min-height: 680px;
  flex: 1 1 auto;
  border: none;
  display: block;
}

/* Interactive Search & Filter Toolbar */
.tracker-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
  width: 100%;
}

.tracker-controls-row {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 2 1 240px;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.tracker-search {
  padding-left: 36px;
  padding-right: 56px;
  width: 100%;
}

.search-clear-btn {
  position: absolute;
  right: 32px;
  background: var(--bg-muted);
  border: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: var(--text-main);
}

.search-kbd-hint {
  position: absolute;
  right: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  pointer-events: none;
}

.tracker-select {
  flex: 1 1 140px;
  min-width: 120px;
}

/* Filter Status Pills & View Toggle Row */
.filter-pills-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 auto;
}

.pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.pill-count {
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.highlight-match {
  background: #fef08a;
  color: #854d0e;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 700;
}

/* Job Cards List */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.job-list-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
}

.job-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  width: 100%;
}

.job-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.job-item-new {
  animation: slideInTop 0.3s ease;
  border-color: var(--primary);
  box-shadow:
    0 0 0 1px var(--primary-border),
    var(--shadow-sm);
}

.job-item.removing {
  opacity: 0 !important;
  transform: scale(0.96) translateY(-8px) !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: none !important;
  pointer-events: none !important;
  transition: all var(--transition-normal) !important;
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.job-meta {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.job-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.ats-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  letter-spacing: 0.04em;
}

.job-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.job-sub-company {
  color: var(--text-main);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-sub-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-sub-id {
  font-size: 11px;
  color: var(--text-subtle);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.job-reason {
  font-size: 12px;
  color: var(--text-body);
  background: var(--bg-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 2px;
  line-height: 1.5;
}

.job-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.job-score-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.job-action-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.score-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  min-width: 44px;
  text-align: center;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-high {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.score-mid {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.score-low {
  background: var(--bg-muted);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 20px;
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  gap: 10px;
  width: 100%;
}

.empty-state-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.5;
}

/* Auth Required Placeholder */
.auth-required-placeholder {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.auth-lock-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-required-placeholder h3 {
  font-size: 17px;
  font-weight: 800;
}

.auth-required-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
}

/* ==============================================================================
   7. Modals, Wizard & Resume Studio
   ============================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.22s ease;
}

.modal-content-studio {
  max-width: 720px;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
}

.modal-content-wizard {
  max-width: 660px;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.modal-content-studio .modal-header {
  padding: 18px 22px 14px;
  margin-bottom: 0;
}

.modal-header-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.modal-close {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #cbd5e1;
  color: var(--text-main);
}

/* Wizard Header & Stepper */
.wizard-header {
  background: var(--bg-subtle);
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.wizard-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.wizard-title {
  font-size: 18px;
  font-weight: 800;
}

.wizard-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.step-node.active .step-circle {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.step-node.completed .step-circle {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.step-node:not(.active):not(.completed) .step-label {
  color: var(--text-muted);
}

.step-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.step-connector {
  flex: 1 1 auto;
  height: 2px;
  background: var(--border);
  border-radius: var(--radius-pill);
  min-width: 16px;
}

.step-connector.active {
  background: var(--primary);
}

.wizard-body {
  padding: 20px 24px;
  max-height: calc(90vh - 170px);
  overflow-y: auto;
}

.wizard-section-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Resume Dropzone */
.resume-dropzone {
  border: 2px dashed #cbd5e1;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.resume-dropzone:hover,
.resume-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone-icon {
  color: var(--primary);
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-studio-action {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
}

.studio-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-top: 12px;
}

.studio-alert.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-hover);
}

.studio-alert.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-hover);
}

/* Onboarding Parsed Resume Preview Card */
.onboarding-preview-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 1-Click Role Presets */
.role-presets-cluster {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.role-presets-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.role-presets-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-preset-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-preset-chip:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-preset-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Notification Mode Selector Cards (Pure Responsive Flexbox) */
.notification-modes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

.mode-card {
  flex: 1 1 200px;
  min-width: 0;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
}

.mode-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-subtle);
}

.mode-card.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 1px var(--primary);
}

.mode-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.mode-card-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.mode-card.active .mode-card-badge {
  color: var(--primary);
}

.mode-card-radio {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 800;
}

.mode-card.active .mode-card-radio {
  color: var(--primary);
}

.mode-card-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.preview-card-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-badge-status {
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.preview-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.preview-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-meta-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.preview-meta-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.preview-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.preview-tag {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* Wizard Navigation Actions */
.wizard-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.btn-wizard-next,
.btn-wizard-finish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Studio Tabs & Form Layout */
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 22px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.studio-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-tab-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.studio-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.modal-body-studio {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.studio-section-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.studio-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.studio-form-grid .form-group {
  flex: 1 1 calc(50% - 6px);
  min-width: 220px;
}

/* Application Kit Modal Details */
.kit-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.kit-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.kit-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cover-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-muted);
  border-color: var(--border-hover);
  color: var(--primary);
}

/* ==============================================================================
   8. Toast Notification Portal
   ============================================================================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
}

.toast-success {
  border-left-color: var(--success);
}
.toast-error {
  border-left-color: var(--danger);
}
.toast-info {
  border-left-color: var(--primary);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================================================
   9. Comprehensive Responsive Breakpoints (Desktop, Laptop, Tablet, Mobile)
   ============================================================================== */

/* Laptops & Tablets Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .dashboard-layout {
    flex-direction: column;
    gap: 18px;
  }

  .sidebar-pane {
    width: 100%;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .sidebar-pane .card {
    flex: 1 1 calc(50% - 7px);
    min-width: 260px;
  }

  .main-viewport-pane {
    flex: 1 1 100%;
  }

  .landing-hero-copy {
    flex: 1 1 100%;
  }

  .landing-auth-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .pipeline-card {
    flex: 1 1 calc(50% - 8px);
  }

  .ats-card {
    flex: 1 1 calc(50% - 7px);
  }
}

/* Portrait Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  body {
    padding: 10px;
    gap: 14px;
  }

  .navbar {
    top: 6px;
    padding: 8px 12px;
  }

  .navbar-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-brand-cluster {
    justify-content: space-between;
    width: 100%;
  }

  .landing-nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .landing-nav-links .nav-link {
    display: none;
  }

  .landing-nav-btns {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .landing-nav-btns .btn {
    flex: 1 1 0%;
  }

  .nav-actions-cluster {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .metrics-bar {
    width: 100%;
    justify-content: space-around;
  }

  .nav-btn-group {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .nav-btn-group .btn {
    flex: 1 1 0%;
  }

  .user-auth-pill {
    width: 100%;
    justify-content: space-between;
    padding: 5px 10px;
  }

  .user-info-text {
    max-width: none;
    flex: 1;
    margin-left: 4px;
  }

  .sidebar-pane .card {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .tracker-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-input-wrapper,
  .tracker-select {
    width: 100%;
    flex: 1 1 100%;
  }

  .filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
  }

  .filter-pills .pill {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
  }

  .job-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .job-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    gap: 8px;
  }

  .job-score-row {
    justify-content: flex-start;
  }

  .job-action-btn-row {
    width: 100%;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .job-action-btn-row .btn,
  .job-action-btn-row a.btn {
    flex: 1 1 calc(50% - 3px);
    text-align: center;
    justify-content: center;
  }

  .viewport-frame {
    min-height: 480px;
    height: auto;
  }

  .modal-content-studio {
    width: 96%;
    max-height: 92vh;
  }

  .studio-tabs {
    padding: 8px 12px;
    gap: 4px;
  }

  .studio-tab-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .modal-body-studio {
    padding: 14px;
  }

  .studio-form-grid .form-group {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .toggle-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .resume-dropzone {
    padding: 20px 12px;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  body {
    padding: 6px;
    gap: 10px;
  }

  .navbar {
    padding: 8px 10px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-badge {
    font-size: 9px;
  }

  .sync-indicator {
    padding: 3px 7px;
    font-size: 10px;
  }

  .pipeline-card {
    flex: 1 1 100%;
  }

  .ats-card {
    flex: 1 1 100%;
  }

  .card {
    padding: 14px 12px;
  }

  .auth-card-inner {
    padding: 16px 12px;
  }

  .filter-pills .pill {
    flex: 1 1 auto;
    min-width: 0;
  }

  .job-action-btn-row .btn,
  .job-action-btn-row a.btn {
    flex: 1 1 100%;
  }

  .toast-container {
    bottom: 8px;
    right: 8px;
    left: 8px;
    max-width: none;
  }

  .toast {
    width: 100%;
    font-size: 12px;
    padding: 10px 12px;
  }

  .wizard-stepper {
    padding: 8px 12px;
  }

  .step-sub {
    display: none;
  }

  .wizard-body {
    padding: 14px 12px;
  }

  .wizard-header {
    padding: 14px 12px 10px;
  }

  .wizard-actions-row {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .wizard-actions-row button {
    width: 100%;
    justify-content: center;
  }

  .landing-footer {
    padding-top: 16px;
    margin-top: 10px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 11.5px;
  }

  .digest-tab-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =============================================================================
   Profile Step Wizard — Progress Bar & Step Navigation
   ============================================================================= */

.wizard-progress-bar {
  display: flex;
  align-items: center;
  padding: 14px 28px 0;
  gap: 0;
}

.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.wizard-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-muted);
  transition: all 0.22s ease;
}

.wizard-step-node.active .wizard-step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.wizard-step-node.completed .wizard-step-circle {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.wizard-step-node.active .wizard-step-label {
  color: var(--primary);
}

.wizard-step-node.completed .wizard-step-label {
  color: var(--success);
}

.wizard-step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 20px;
  border-radius: 2px;
  transition: background 0.25s ease;
}

.wizard-step-connector.active {
  background: var(--primary);
}

/* Step content wrapper */
.studio-wizard-step {
  animation: stepFadeIn 0.18s ease;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step footer: Previous / Next / Save */
.wizard-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-muted);
  gap: 10px;
}

.wizard-step-footer .btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Inline form label hints */
.form-hint-inline {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Studio resume preview card (shown after auto-parse) */
.studio-preview-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}

.studio-preview-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.studio-preview-row {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-muted);
  font-size: 12.5px;
  align-items: baseline;
}

.studio-preview-row:last-child {
  border-bottom: none;
}

.preview-label {
  color: var(--text-muted);
  font-weight: 600;
  min-width: 72px;
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.preview-value {
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .wizard-progress-bar {
    padding: 10px 14px 0;
  }

  .wizard-step-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .wizard-step-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================================================================
   10. Interactive Job Board Table & Pagination Design System
   ============================================================================== */

/* Cloud Radar Background Action Banner */
.cloud-radar-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
  animation: pulseGlow 2.5s infinite ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.25);
    border-color: #c7d2fe;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.08);
    border-color: #818cf8;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.25);
    border-color: #c7d2fe;
  }
}

.cloud-radar-spinner-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e0e7ff;
  border-radius: 50%;
  border: 1px solid #c7d2fe;
}

.cloud-radar-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(79, 70, 229, 0.25);
  border-top-color: var(--primary, #4f46e5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0 !important;
}

.cloud-radar-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cloud-radar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #3730a3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cloud-radar-sub {
  font-size: 12px;
  color: #4338ca;
  line-height: 1.45;
}

/* Table / Card List Container */
.jobs-table-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  width: 100%;
}

/* Application Stage Dropdown Selector */
.job-stage-select {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.job-stage-select:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.job-stage-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Tracker Summary Badge */
.tracker-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--border);
}

.summary-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success-border);
}

/* Pagination Bar (Pure Responsive Flexbox) */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  width: 100%;
}

.pagination-info {
  font-size: 12.5px;
  color: var(--text-muted);
}

.pagination-info strong {
  color: var(--text-main);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-pages-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--bg-muted);
  border-color: var(--border-muted);
}

.pagination-nav-btn {
  gap: 4px;
  padding: 0 10px;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  font-size: 12px;
  color: var(--text-subtle);
}

.pagination-size-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-size-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.pagination-size-select {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

.pagination-size-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Modal Custom Job */
.modal-content-custom-job {
  max-width: 620px;
}

/* India-First UI Components */
.job-type-chips,
.exp-level-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip-toggle,
.chip-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg-muted);
  transition: all 0.2s ease;
  user-select: none;
}

.chip-toggle input,
.chip-radio input {
  display: none;
}

.chip-toggle:hover,
.chip-radio:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-toggle.active,
.chip-radio.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}

.location-pref-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option input {
  display: none;
}

.radio-option:hover {
  border-color: var(--primary);
}

.radio-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* India-First Hub Preset Chips */
.tech-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hub-chip {
  background: var(--bg-muted, #f1f5f9);
  color: var(--text-body, #334155);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.hub-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: var(--text-heading, #0f172a);
}

.hub-chip.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #3b82f6;
  font-weight: 700;
}

/* India Eligibility & LPA Compensation Card Badges */
.badge-india-pill {
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 9999px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-salary-pill {
  font-size: 11px;
  font-weight: 700;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 9999px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  vertical-align: middle;
}

.kit-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Copy Button */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--bg-muted);
  border-color: var(--text-body);
}

.btn-copy svg {
  flex-shrink: 0;
}

.modal-content-medium {
  max-width: 620px;
  width: 95%;
}

.btn-add-job-trigger {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-add-company-trigger {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-followup-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.btn-followup-badge:hover {
  background: #fde68a;
  color: #78350f;
  transform: translateY(-1px);
}

.add-company-detected-card {
  background: var(--bg-muted, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 12px;
}

.custom-company-chip {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.custom-company-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ==============================================================================
   11. Mail Mode Selector & Preference Cards (Pure Flexbox)
   ============================================================================== */

.mail-mode-selector {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.mail-mode-card {
  border: 1.5px solid var(--border);
  background: var(--card-bg, #ffffff);
  border-radius: var(--radius-sm, 8px);
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast, 0.15s ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 0;
  box-sizing: border-box;
}

.mail-mode-card:hover {
  border-color: var(--primary);
  background: var(--bg-subtle, #f8fafc);
}

.mail-mode-card.active,
.mail-mode-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: var(--primary-light, #eef2ff);
}

.mail-mode-card input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
  accent-color: var(--primary);
}

.mail-mode-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 4px;
  padding-right: 24px;
  line-height: 1.3;
}

.mail-mode-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==============================================================================
   12. Universal Mobile Responsive Engine (Down to 300px Width)
   ============================================================================== */

/* --- 12.1 Small Mobile (<= 480px) --- */
@media (max-width: 480px) {
  body {
    padding: 6px;
    gap: 10px;
  }

  .mail-mode-selector {
    flex-direction: column;
    gap: 8px;
  }

  .mail-mode-card {
    flex: 1 1 100%;
    width: 100%;
    padding: 12px;
  }

  .form-grid-2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .modal-overlay {
    padding: 6px !important;
  }

  .modal-content,
  .modal-content-studio,
  .modal-content-wizard,
  .modal-content-medium,
  .modal-content-custom-job {
    width: calc(100vw - 12px) !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    max-height: 94vh !important;
    padding: 14px 12px !important;
  }

  .modal-header {
    padding: 10px 12px !important;
  }

  .modal-body,
  .modal-body-studio {
    padding: 12px 10px !important;
  }
}

/* --- 12.2 Compact Mobile & Foldables (<= 380px) --- */
@media (max-width: 380px) {
  body {
    padding: 5px !important;
    gap: 8px !important;
  }

  .navbar {
    padding: 8px !important;
  }

  .brand-title {
    font-size: 14.5px !important;
  }

  .brand-badge {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
  }

  .sync-indicator {
    padding: 2px 6px !important;
    font-size: 9.5px !important;
  }

  .landing-hero-title {
    font-size: 19px !important;
  }

  .landing-hero-desc {
    font-size: 12.5px !important;
  }

  .pipeline-card,
  .ats-card {
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px !important;
  }

  *,
  *::before,
  *::after {
    min-width: 0 !important;
  }

  .brand-logo-frame,
  .brand-logo,
  .brand-fallback-icon,
  .digest-logo-img,
  .empty-logo-img,
  .digest-footer-logo {
    min-width: fit-content !important;
    flex-shrink: 0 !important;
  }

  .search-input-wrapper {
    min-width: 0 !important;
    width: 100% !important;
  }

  .tracker-select {
    min-width: 0 !important;
    width: 100% !important;
  }

  .studio-form-grid .form-group {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .tracker-controls-row .form-input,
  .tracker-controls-row .tracker-select,
  .tracker-controls-row .btn {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .modal-content,
  .modal-content-studio,
  .modal-content-wizard,
  .modal-content-medium,
  .modal-content-custom-job {
    width: calc(100vw - 8px) !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    padding: 12px 8px !important;
  }
}

/* --- 12.3 Ultra-Narrow Screens & Foldables (<= 340px down to 300px) --- */
@media (max-width: 340px) {
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    padding: 4px 4px 16px !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  /* Universal Component Padding & Bounds */
  *,
  *::before,
  *::after {
    min-width: 0 !important;
  }

  .brand-logo-frame,
  .brand-logo,
  .brand-fallback-icon,
  .digest-logo-img,
  .empty-logo-img,
  .digest-footer-logo {
    min-width: fit-content !important;
    flex-shrink: 0 !important;
  }

  /* 1. Header / Navbar */
  .navbar {
    padding: 6px 6px !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .navbar-container {
    gap: 4px !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .nav-brand-cluster {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .brand-link {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .brand-logo-frame {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 1px !important;
    margin-right: 8px !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
  }

  .brand-title {
    font-size: 13px !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
  }

  .brand-badge {
    display: none !important;
  }

  .sync-indicator {
    padding: 2px 5px !important;
    font-size: 8.5px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .sync-indicator .status-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .landing-nav-links {
    width: 100% !important;
    margin-top: 2px !important;
  }

  .landing-nav-btns {
    display: flex !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .landing-nav-btns .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 5px 3px !important;
    font-size: 10.5px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .landing-nav-btns svg {
    display: none !important;
  }

  /* Authenticated Header Cluster */
  .nav-actions-cluster:not(.app-view-hidden),
  #header-metrics:not(.app-view-hidden) {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .metrics-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 2px !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
  }

  .metric-divider {
    display: none !important;
  }

  .metric-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .metric-lbl {
    font-size: 9.5px !important;
  }

  .metric-val {
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .nav-btn-group {
    width: 100% !important;
  }

  .btn-nav-settings {
    width: 100% !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    padding: 5px 8px !important;
  }

  .user-auth-pill {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
  }

  .user-avatar {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 10px !important;
  }

  .user-info-text {
    width: 100% !important;
    margin: 0 !important;
  }

  .user-email {
    font-size: 10px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .user-status-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
  }

  .btn-auth-signout {
    width: 100% !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    padding: 4px 6px !important;
  }

  /* 2. Landing View Hero */
  .landing-view {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .landing-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .landing-hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  .landing-tag {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
    max-width: 100% !important;
  }

  .landing-hero-title {
    font-size: 16.5px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .landing-hero-desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }

  .landing-hero-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .hero-feat-card {
    padding: 7px 6px !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    border-radius: 6px !important;
  }

  .feat-icon-box {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  .feat-icon-box svg {
    width: 12px !important;
    height: 12px !important;
  }

  .feat-content strong {
    font-size: 11px !important;
  }

  .feat-content p {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
  }

  .landing-auth-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .auth-card-inner {
    padding: 10px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
  }

  .auth-card-title {
    font-size: 13.5px !important;
  }

  .auth-card-subtitle {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .auth-tabs {
    display: flex !important;
    gap: 3px !important;
    width: 100% !important;
  }

  .auth-tab-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    font-size: 10px !important;
    padding: 5px 2px !important;
    text-align: center !important;
  }

  .form-group {
    margin-bottom: 7px !important;
    width: 100% !important;
  }

  .form-label {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }

  .form-label-row {
    flex-wrap: wrap !important;
    gap: 2px !important;
  }

  .auth-forgot-link {
    font-size: 9.5px !important;
  }

  .form-input {
    font-size: 11px !important;
    padding: 5px 7px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-submit {
    font-size: 11px !important;
    padding: 6px 8px !important;
    width: 100% !important;
  }

  .auth-divider {
    margin: 7px 0 !important;
    font-size: 9px !important;
  }

  .btn-social-auth {
    font-size: 10px !important;
    padding: 5px 6px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .pipeline-grid,
  .ats-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .pipeline-card,
  .ats-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 8px !important;
    border-radius: 6px !important;
  }

  .pipeline-card h3 {
    font-size: 12.5px !important;
  }

  .pipeline-card p {
    font-size: 10.5px !important;
  }

  .ats-header {
    gap: 5px !important;
  }

  .ats-name {
    font-size: 11.5px !important;
  }

  .ats-count {
    font-size: 9px !important;
  }

  /* 3. Dashboard Layout & Sidebar */
  .dashboard-layout:not(.app-view-hidden) {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  .sidebar-pane {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .card-studio-summary {
    padding: 8px 6px !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-title {
    font-size: 11.5px !important;
    gap: 5px !important;
  }

  .studio-profile-name {
    font-size: 12px !important;
    word-break: break-word !important;
  }

  .studio-profile-title {
    font-size: 10.5px !important;
    word-break: break-word !important;
  }

  .studio-tags-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
  }

  .studio-skill-tag {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
    max-width: 100% !important;
  }

  .studio-notif-status {
    margin-top: 3px !important;
  }

  .notif-badge-off,
  .notif-badge-on {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
  }

  .studio-btn-manage {
    width: 100% !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
    justify-content: center !important;
  }

  #btn-run {
    width: 100% !important;
    font-size: 11px !important;
    padding: 6px 8px !important;
    justify-content: center !important;
  }

  .console {
    font-size: 9px !important;
    padding: 6px !important;
    max-height: 110px !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .main-viewport-pane {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* 4. Tab Navigation */
  .tab-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
  }

  .tab-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 11px !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
  }

  /* 5. Digest Viewport */
  .digest-header-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .digest-header-title-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
  }

  .digest-preview-label {
    font-size: 10px !important;
    word-break: break-word !important;
  }

  .badge-live-sync {
    font-size: 8px !important;
    padding: 1px 3px !important;
  }

  .digest-header-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
  }

  .viewport-frame {
    min-height: 280px !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }

  /* 6. Tracker Board & Search Controls */
  .tracker-bar {
    padding: 6px !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tracker-controls-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .search-input-wrapper {
    width: 100% !important;
    min-width: 0 !important;
  }

  .tracker-search {
    width: 100% !important;
    font-size: 11px !important;
    padding: 5px 6px 5px 24px !important;
    box-sizing: border-box !important;
  }

  .search-icon {
    left: 6px !important;
    width: 11px !important;
    height: 11px !important;
  }

  .search-kbd-hint {
    display: none !important;
  }

  .search-clear-btn {
    right: 5px !important;
    width: 15px !important;
    height: 15px !important;
    font-size: 8px !important;
  }

  .tracker-select {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 10.5px !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
  }

  #btn-add-company-board,
  #btn-add-opportunity {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    padding: 5px 6px !important;
  }

  .filter-pills-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .filter-pills {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
  }

  .filter-pills .pill {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 8px !important;
    font-size: 10.5px !important;
    border-radius: 5px !important;
  }

  .tracker-summary-badge {
    width: 100% !important;
    justify-content: center !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
  }

  /* 7. Pagination Bar (Ultra-Compact) */
  .pagination-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  .pagination-info {
    font-size: 10.5px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .pagination-controls {
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .pagination-pages-group {
    gap: 2px !important;
  }

  .pagination-btn {
    min-width: 26px !important;
    height: 26px !important;
    font-size: 10.5px !important;
    padding: 0 4px !important;
  }

  .pagination-nav-btn {
    padding: 0 6px !important;
  }

  .pagination-size-wrapper {
    justify-content: center !important;
    width: 100% !important;
  }

  .pagination-size-select {
    font-size: 10.5px !important;
    padding: 2px 4px !important;
  }

  .job-stage-select {
    font-size: 10.5px !important;
    padding: 2px 6px !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* 8. Table List View */
  .job-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 7px 6px !important;
    border-radius: 6px !important;
    gap: 5px !important;
  }

  .job-item-main {
    width: 100% !important;
    min-width: 0 !important;
  }

  .job-title-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    width: 100% !important;
  }

  .job-title {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .job-company {
    font-size: 10.5px !important;
    word-break: break-word !important;
  }

  .job-meta {
    font-size: 9.5px !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
  }

  .job-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
  }

  .badge-score,
  .badge-ats,
  .badge-queue {
    font-size: 8.5px !important;
    padding: 1px 3px !important;
  }

  .job-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    border-top: 1px solid var(--border);
    padding-top: 4px !important;
  }

  .job-action-btn-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 3px !important;
  }

  .job-action-btn-row .btn,
  .job-action-btn-row a.btn {
    width: 100% !important;
    flex: 1 1 100% !important;
    justify-content: center !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
  }

  .job-notes-row {
    width: 100% !important;
  }

  .job-notes-input {
    width: 100% !important;
    font-size: 10px !important;
    padding: 3px 5px !important;
    box-sizing: border-box !important;
  }

  /* 9. All Modals & Dialog Windows */
  .modal-overlay {
    padding: 2px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-content,
  .modal-content-studio,
  .modal-content-wizard,
  .modal-content-medium,
  .modal-content-custom-job {
    width: calc(100vw - 4px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 6px !important;
    padding: 8px 6px !important;
    max-height: 96vh !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .modal-header {
    padding: 6px 4px !important;
    margin-bottom: 6px !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .modal-header-info {
    width: 100% !important;
    min-width: 0 !important;
  }

  .modal-title {
    font-size: 13px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  .modal-subtitle {
    font-size: 10px !important;
    word-break: break-word !important;
  }

  .modal-header-actions {
    width: 100% !important;
    justify-content: space-between !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 2px !important;
  }

  .modal-close {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 13px !important;
  }

  .form-grid-2 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .studio-form-grid .form-group {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  .modal-actions-row,
  .wizard-actions-row {
    display: flex !important;
    flex-direction: column-reverse !important;
    width: 100% !important;
    gap: 4px !important;
    margin-top: 6px !important;
  }

  .modal-actions-row button,
  .modal-actions-row .btn,
  .wizard-actions-row button,
  .wizard-actions-row .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    padding: 5px 6px !important;
  }

  /* 10. Setup Wizard Steppers & Role Presets */
  .wizard-stepper {
    padding: 3px 2px !important;
    width: 100% !important;
    gap: 2px !important;
    justify-content: space-between !important;
  }

  .step-node {
    gap: 3px !important;
  }

  .step-circle {
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
  }

  .step-label {
    font-size: 8.5px !important;
  }

  .step-sub {
    display: none !important;
  }

  .step-connector {
    flex: 1 1 4px !important;
    min-width: 4px !important;
    height: 1px !important;
  }

  .wizard-progress-bar {
    padding: 3px 2px 0 !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .wizard-step-node {
    gap: 2px !important;
  }

  .wizard-step-circle {
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
  }

  .wizard-step-label {
    font-size: 8px !important;
  }

  .wizard-step-connector {
    flex: 1 1 4px !important;
    min-width: 4px !important;
    margin: 0 1px 8px !important;
  }

  .role-presets-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    width: 100% !important;
  }

  .btn-preset-chip {
    font-size: 9px !important;
    padding: 2px 4px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .resume-dropzone {
    padding: 8px 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dropzone-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .dropzone-text {
    font-size: 10px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .dropzone-sub {
    font-size: 8.5px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  /* 11. Application Kit Details */
  .kit-modal-body {
    gap: 8px !important;
    width: 100% !important;
  }

  .kit-section {
    width: 100% !important;
    word-break: break-word !important;
  }

  .kit-label {
    font-size: 9.5px !important;
  }

  .kit-content-card,
  .cover-box,
  pre,
  code {
    padding: 6px 6px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  .tailored-bullets-list {
    padding-left: 10px !important;
    width: 100% !important;
  }

  .tailored-bullet-item {
    font-size: 10px !important;
    line-height: 1.35 !important;
    margin-bottom: 3px !important;
    word-break: break-word !important;
  }

  #modal-applied-toggle-btn {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  /* 12. Notification Modes Grid */
  .notification-modes-grid,
  .mail-mode-selector {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 5px !important;
  }

  .mail-mode-card {
    width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  .mail-mode-title {
    font-size: 11px !important;
    padding-right: 18px !important;
  }

  .mail-mode-desc {
    font-size: 9.5px !important;
  }

  /* 13. Toast Portal Notifications */
  .toast-container {
    left: 2px !important;
    right: 2px !important;
    bottom: 2px !important;
    width: calc(100vw - 4px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
  }

  .toast {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 10.5px !important;
    padding: 6px 8px !important;
    word-break: break-word !important;
    border-radius: 5px !important;
  }

  /* 14. Buttons & Badges Micro Sizes */
  .btn {
    font-size: 10.5px !important;
    padding: 5px 8px !important;
  }

  .btn-sm {
    font-size: 9.5px !important;
    padding: 3px 6px !important;
  }

  /* 15. Landing Footer & Brand Link Responsive */
  .landing-footer {
    padding-top: 14px !important;
    margin-top: 8px !important;
  }

  .footer-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 10.5px !important;
  }

  .footer-brand {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .footer-brand-title {
    font-size: 11.5px !important;
  }

  .footer-links {
    flex-wrap: wrap !important;
    gap: 4px 6px !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    word-break: break-all !important;
  }

  /* 16. Dashboard Digest Viewport Footer & Tab Bar */
  .digest-tab-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 8px 6px !important;
    font-size: 10.5px !important;
  }

  .digest-tab-footer > div {
    max-width: 100% !important;
    word-break: break-all !important;
  }

  /* 17. Wizard Step Action Rows Nested Containers */
  .wizard-step-footer > div,
  .wizard-actions-row > div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .wizard-step-footer > div .btn,
  .wizard-actions-row > div .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* --- 12.4 Minimum Ultra-Narrow Viewport Support (<= 300px) --- */
@media (max-width: 300px) {
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    padding: 3px 2px 12px !important;
    gap: 4px !important;
  }

  .navbar {
    padding: 4px 4px !important;
  }

  .brand-title {
    font-size: 11.5px !important;
  }

  .brand-logo-frame {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .landing-hero-title {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .landing-hero-desc {
    font-size: 10px !important;
  }

  .btn {
    font-size: 9.5px !important;
    padding: 4px 6px !important;
  }

  .btn-sm {
    font-size: 8.5px !important;
    padding: 2px 5px !important;
  }

  .tab-btn {
    font-size: 9.5px !important;
    padding: 4px 6px !important;
  }

  .modal-content,
  .modal-content-studio,
  .modal-content-wizard,
  .modal-content-medium,
  .modal-content-custom-job {
    width: calc(100vw - 2px) !important;
    padding: 6px 4px !important;
  }
}

/* ==============================================================================
   Interactive Subtle User Guide & Workflow Banner
   ============================================================================== */
.workflow-guide-banner {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid var(--primary, #4f46e5);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.guide-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.guide-banner-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light, #e0e7ff);
  color: var(--primary, #4f46e5);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.guide-banner-dismiss {
  background: transparent;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.guide-banner-dismiss:hover {
  background: var(--bg-hover, #f1f5f9);
  color: var(--text-main, #0f172a);
}

.guide-banner-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-step-item {
  flex: 1 1 200px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-hover, #f8fafc);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light, #f1f5f9);
}

.guide-step-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.guide-step-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin-bottom: 2px;
}

.guide-step-item p {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.btn-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-guide-tip {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--bg-hover, #f8fafc);
  border: 1px dashed var(--border, #cbd5e1);
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
}

.sidebar-tip-icon {
  font-size: 13px;
  flex-shrink: 0;
}

/* ==============================================================================
   Universal View State Isolation — Maximum Precedence Guard
   Guarantees authenticated components never leak on unauthenticated clients,
   and landing view remains cleanly isolated across all screen sizes and media queries.
   ============================================================================== */
html body .app-view-hidden,
html body [style*="display: none"].app-view-hidden,
html body [style*="display:none"].app-view-hidden,
#dashboard-view.app-view-hidden,
#landing-view.app-view-hidden,
#header-metrics.app-view-hidden,
#landing-nav-links.app-view-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
