/* ==========================================================
   NSHTGHL - MODERN EXECUTIVE CAREER DESIGN SYSTEM
   Theme: Next-Gen Talent & Jobs Platform (2026 Edition)
   Colors: Executive Royal Blue (#2563eb), Tech Indigo (#4f46e5),
   Hiring Emerald (#10b981), ATS Cyan (#0ea5e9), Champagne Gold (#f59e0b)
   RTL/LTR Native, Glassmorphic Surfaces & High-Contrast Typography
   ========================================================== */

:root {
  /* Canvas & Glassmorphic Surfaces (Modern Obsidian Midnight) */
  --bg-base: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(17, 24, 39, 0.82);
  --bg-card-hover: rgba(30, 41, 59, 0.92);
  --bg-glass: rgba(11, 15, 25, 0.85);
  --bg-input: #0f172a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(37, 99, 235, 0.65);
  --border-glow: rgba(37, 99, 235, 0.28);

  /* Primary Brand: Executive Royal Blue to Tech Indigo */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-active: #1e40af;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(79, 70, 229, 0.12) 100%);
  --primary-glow: rgba(37, 99, 235, 0.35);
  --primary-light: rgba(37, 99, 235, 0.12);
  --primary-subtle: rgba(37, 99, 235, 0.05);

  /* Career & Job Platform Specialized Accents */
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-gold-light: rgba(245, 158, 11, 0.15);

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-emerald-light: rgba(16, 185, 129, 0.14);

  --accent-cyan: #0ea5e9;
  --accent-cyan-light: rgba(14, 165, 233, 0.14);
  --accent-indigo: #4f46e5;
  --accent-purple: #8b5cf6;
  --accent-danger: #ef4444;
  --accent-warning: #f59e0b;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #8391a7;
  --text-inverted: #0f172a;

  /* Elevation & Multi-Layer Atmospheric Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 20px -2px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 36px -4px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.3);
  --shadow-glow-purple: 0 0 24px rgba(139, 92, 246, 0.25);

  /* Dimensions & Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  /* Modern Corporate Typography: Alexandria for Geometric Excellence, Cairo for Readability */
  --font-arabic: 'Alexandria', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Accessible text-on-surface accent tokens (WCAG AA in both themes) */
  --tx-primary: #60a5fa;
  --tx-indigo: #a5b4fc;
  --tx-emerald: #34d399;
  --tx-gold: #fbbf24;
  --tx-danger: #fca5a5;
  --tx-cyan: #38bdf8;
  --tx-purple: #c4b5fd;
  --tx-orange: #fb923c;
  --text-soft: #cbd5e1;
}

/* Light Theme Overrides (Crisp Executive Clean) */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-input: #ffffff;
  --border-subtle: #e2e8f0;
  --border-active: #2563eb;
  --border-glow: rgba(37, 99, 235, 0.18);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;
  --text-inverted: #ffffff;
  --tx-primary: #1d4ed8;
  --text-soft: #334155;
  --tx-indigo: #4338ca;
  --tx-emerald: #065f46;
  --tx-gold: #92400e;
  --tx-danger: #b91c1c;
  --tx-cyan: #0369a1;
  --tx-purple: #6d28d9;
  --tx-orange: #9a3412;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 32px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 4px 14px rgba(37, 99, 235, 0.15);
  --shadow-glow-purple: 0 4px 14px rgba(139, 92, 246, 0.14);
}

[data-theme="light"] body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(14, 165, 233, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.02) 0%, transparent 55%);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] .form-select:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .modal-dialog {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .modal-header {
  border-bottom-color: #f1f5f9;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-arabic);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 5%, rgba(37, 99, 235, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(79, 70, 229, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* LTR Specific overrides when English is active */
[dir="ltr"] {
  font-family: var(--font-latin);
}

[dir="ltr"] .flip-rtl {
  transform: rotate(180deg);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Global Modern Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Modern Selection Highlight */
::selection {
  background: rgba(37, 99, 235, 0.25);
  color: inherit;
}

/* Utility Layout Classes */
.hidden { display: none !important; }
.text-success { color: var(--tx-emerald) !important; }
.text-warning { color: var(--tx-gold) !important; }
.text-danger { color: var(--tx-danger) !important; }
.text-primary { color: var(--tx-primary) !important; }
.text-gold { color: var(--tx-gold) !important; }
.mt-3 { margin-top: 1rem; }
.full-width { width: 100%; }

/* ==========================================================
   GLOBAL LUCIDE ICON SYSTEM & VECTOR ENGINE
   ========================================================== */
svg.lucide,
i[data-lucide],
.lucide {
  display: inline-block;
  vertical-align: middle;
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

/* Ensure icons inside buttons, badges, links scale and align */
button svg.lucide,
button i[data-lucide],
.btn svg.lucide,
.btn i[data-lucide],
.subnav-link svg.lucide,
.subnav-link i[data-lucide],
.menu-item-btn svg.lucide,
.menu-item-btn i[data-lucide] {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2px;
}

/* Specific icon size utilities */
.icon-xs, svg.icon-xs { width: 12px !important; height: 12px !important; }
.icon-sm, svg.icon-sm { width: 15px !important; height: 15px !important; }
.icon-md, svg.icon-md { width: 18px !important; height: 18px !important; }
.icon-lg, svg.icon-lg { width: 22px !important; height: 22px !important; }
.icon-xl, svg.icon-xl { width: 32px !important; height: 32px !important; }

/* App Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================
   TOP NAVIGATION BAR (SLEEK SINGLE-TIER EXECUTIVE HEADER)
   ========================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  height: 64px;
  display: flex;
  align-items: center;
}

[data-theme="light"] .top-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 100%;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-sub-rail {
  display: none !important;
}

/* ==========================================================
   SIDE NAVIGATION DRAWER & HAMBURGER (FORASNA STYLE)
   ========================================================== */
.side-menu-trigger-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-inline-end: 0.35rem;
}

.side-menu-trigger-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
  color: var(--tx-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .side-menu-trigger-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .side-menu-trigger-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--tx-primary);
}

.side-menu-trigger-btn i,
.side-menu-trigger-btn svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.2px;
}

/* Side Drawer Backdrop */
.side-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Side Drawer Panel */
.side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 360px;
  max-width: 86vw;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -14px 0 45px rgba(0, 0, 0, 0.6);
}

[dir="ltr"] .side-drawer,
body[dir="ltr"] .side-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  box-shadow: 14px 0 45px rgba(0, 0, 0, 0.6);
}

.side-drawer.open {
  transform: translateX(0) !important;
}

[data-theme="light"] .side-drawer {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"][dir="ltr"] .side-drawer,
[data-theme="light"] body[dir="ltr"] .side-drawer {
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.12);
}

/* Drawer Header */
.drawer-header {
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .drawer-header {
  border-bottom-color: #f1f5f9;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-icon-wrap-sm {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.logo-icon-wrap-sm i,
.logo-icon-wrap-sm svg {
  width: 18px !important;
  height: 18px !important;
}

.drawer-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.2;
}

.drawer-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--tx-danger);
}

[data-theme="light"] .drawer-close-btn {
  background: #f1f5f9;
  color: var(--text-muted);
}

/* Quick Auth Card inside Drawer */
.drawer-auth-card {
  padding: 1rem 1.25rem;
  background: rgba(37, 99, 235, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .drawer-auth-card {
  background: #f8fafc;
  border-bottom-color: #f1f5f9;
}

.drawer-auth-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem 0;
  line-height: 1.4;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.drawer-user-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-indigo));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.drawer-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.drawer-user-meta strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.drawer-user-meta span {
  font-size: 0.72rem;
  color: var(--tx-gold);
  font-weight: 600;
}

/* Drawer Nav Body & Links */
.drawer-nav-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.9rem;
  scrollbar-width: thin;
}

.drawer-nav-container::-webkit-scrollbar {
  width: 4px;
}

.drawer-nav-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.drawer-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.65rem 0.35rem;
}

[data-theme="light"] .drawer-section-title {
  color: var(--text-muted);
}

.drawer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-nav-item {
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  text-align: start;
  transition: all 0.18s ease;
}

.side-nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-main) !important;
  transform: translateX(-2px);
}

[dir="ltr"] .side-nav-item:hover,
body[dir="ltr"] .side-nav-item:hover {
  transform: translateX(2px);
}

[data-theme="light"] .side-nav-item {
  color: #475569 !important;
}

[data-theme="light"] .side-nav-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.side-nav-item.active {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: var(--tx-primary) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .side-nav-item.active {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: var(--tx-primary) !important;
}

.side-nav-item i,
.side-nav-item svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.2px;
  flex-shrink: 0;
  opacity: 0.85;
}

.side-nav-item.active i,
.side-nav-item.active svg {
  color: var(--tx-primary) !important;
  opacity: 1;
}

[data-theme="light"] .side-nav-item.active i,
[data-theme="light"] .side-nav-item.active svg {
  color: var(--tx-primary) !important;
}

.side-nav-item.vip-item i,
.side-nav-item.vip-item svg {
  color: var(--tx-gold) !important;
}

/* Drawer Footer */
.drawer-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .drawer-footer {
  border-top-color: #f1f5f9;
  background: #f8fafc;
}

.drawer-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.drawer-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--primary-glow);
  color: #fff;
  flex-shrink: 0;
}

.logo-icon {
  width: 20px;
  height: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .logo-title {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
}

.portal-indicator-badge svg,
.portal-indicator-badge i {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 2.3px;
}

/* Seeker Indicator */
.portal-indicator-badge.seeker-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--tx-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .portal-indicator-badge.seeker-badge {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

/* Recruiter Indicator */
.portal-indicator-badge.recruiter-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--tx-indigo);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .portal-indicator-badge.recruiter-badge {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.12);
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-top: 1px;
}

/* Role Switcher Pill (Job Seeker <-> Super Admin) */
.role-switcher-wrap {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  display: flex;
  align-items: center;
}

.role-pill {
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.role-btn i {
  width: 15px;
  height: 15px;
}

.role-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.role-btn[data-role="admin"].active {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--accent-gold);
  color: var(--tx-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.admin-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--tx-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Nav Actions Right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn, .icon-btn-text {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn {
  width: 36px;
  height: 36px;
}

.icon-btn-text {
  padding: 0.35rem 0.75rem;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.icon-btn:hover, .icon-btn-text:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.icon-btn i, .icon-btn-text i {
  width: 16px;
  height: 16px;
}

.user-chip-menu {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.user-chip-menu:hover {
  border-color: var(--border-active);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

.user-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: start;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.user-tier {
  font-size: 0.68rem;
  color: var(--tx-gold);
  font-weight: 600;
}

.chevron-sm {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* ==========================================================
   CENTER APP NAVIGATION TABS (UNCLIPPED FULL-WIDTH RAIL)
   ========================================================== */
/* ==========================================================
   CENTER APP NAVIGATION TABS (CLEAN, SPACIOUS & UNCLUTTERED)
   ========================================================== */
.nav-center-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  flex-wrap: nowrap;
}

.nav-center-tabs::-webkit-scrollbar {
  display: none;
}

[data-theme="light"] .nav-center-tabs {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.subnav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.18s ease;
  text-decoration: none;
}

[data-theme="light"] .subnav-link {
  background: transparent;
  border-color: transparent;
  color: #475569;
}

.subnav-link i,
.subnav-link svg,
.subnav-link svg.lucide {
  width: 16px;
  height: 16px;
  stroke-width: 2.2px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

.subnav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.subnav-link:hover i,
.subnav-link:hover svg {
  opacity: 1;
}

[data-theme="light"] .subnav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.subnav-link.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--tx-primary) !important;
  border-color: rgba(37, 99, 235, 0.25);
  font-weight: 700;
}

.subnav-link.active i,
.subnav-link.active svg {
  opacity: 1;
  color: var(--tx-primary) !important;
}

[data-theme="light"] .subnav-link.active {
  background: #eff6ff;
  color: var(--tx-primary) !important;
  border-color: #bfdbfe;
}

[data-theme="light"] .subnav-link.active i,
[data-theme="light"] .subnav-link.active svg {
  color: var(--tx-primary) !important;
}

.subnav-highlight-cta {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--tx-emerald) !important;
  font-weight: 700;
  border-radius: 8px;
}

[data-theme="light"] .subnav-highlight-cta {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46 !important;
}

.subnav-highlight-cta:hover {
  background: rgba(16, 185, 129, 0.2);
  color: var(--text-main) !important;
}

[data-theme="light"] .subnav-highlight-cta:hover {
  background: #d1fae5;
  color: #047857 !important;
}

/* ==========================================================
   MORE TOOLS DROPDOWN MENU
   ========================================================== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.nav-dropdown-trigger i,
.nav-dropdown-trigger svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

[data-theme="light"] .nav-dropdown-trigger {
  color: #475569;
}

[data-theme="light"] .nav-dropdown-trigger:hover,
[data-theme="light"] .nav-dropdown.open .nav-dropdown-trigger {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-dropdown-trigger.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--tx-primary) !important;
  border-color: rgba(37, 99, 235, 0.25);
  font-weight: 700;
}

[data-theme="light"] .nav-dropdown-trigger.active {
  background: #eff6ff;
  color: var(--tx-primary) !important;
  border-color: #bfdbfe;
}

.dropdown-chevron {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: min(320px, calc(100vw - 24px));
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}


.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.dropdown-group {
  padding: 0.25rem 0;
}

.dropdown-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem 0.2rem;
}

[data-theme="light"] .dropdown-group-title {
  color: var(--text-muted);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.35rem 0;
}

[data-theme="light"] .dropdown-divider {
  background: #f1f5f9;
}

.dropdown-item {
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem !important;
  border-radius: 8px !important;
  text-align: start;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  color: var(--text-main) !important;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="light"] .dropdown-item:hover {
  background: #f8fafc !important;
}

.dropdown-item.active {
  background: rgba(37, 99, 235, 0.12) !important;
  color: var(--tx-primary) !important;
}

[data-theme="light"] .dropdown-item.active {
  background: #eff6ff !important;
  color: var(--tx-primary) !important;
}

.dropdown-item i,
.dropdown-item svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  color: var(--tx-primary);
}

[data-theme="light"] .dropdown-item i,
[data-theme="light"] .dropdown-item svg {
  color: var(--tx-primary);
}

.dropdown-item.vip-item i,
.dropdown-item.vip-item svg {
  color: var(--tx-gold);
}

.dropdown-item .item-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dropdown-item .item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

[data-theme="light"] .dropdown-item .item-title {
  color: #1e293b;
}

.dropdown-item .item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.vip-tag {
  background: rgba(245, 158, 11, 0.2);
  color: var(--tx-gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.subnav-link.active .vip-tag {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.ai-pulse {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.38rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Counter Badge */
.badge-counter {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.badge-counter.warning {
  background: var(--accent-gold);
  color: #1e1b4b;
}

/* ==========================================================
   MAIN CONTENT & PAGE VIEWS
   ========================================================== */
.main-content {
  flex: 1;
  padding: 1.5rem 0 3rem;
}

.page-view {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.container-standard,
.view-container { /* .view-container (mock interview, outreach, affiliate) had no rules: content touched the edges */
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-admin {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header Typography */
.section-intro-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.65rem;
  line-height: 1.25;
}

.page-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================
   BUTTONS & FORM CONTROLS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn i {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--primary-glow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.btn-outline-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-outline-sm:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.btn-success-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  background: #047857;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.btn-success-sm:hover {
  opacity: 0.9;
}

.btn-ai-gradient {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: var(--transition);
}

.btn-ai-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-ai-large {
  background: linear-gradient(135deg, #4338ca, #1d4ed8, #0369a1);
  background-size: 200% 200%;
  color: #fff;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-ai-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.btn-gold-large {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  transition: var(--transition);
}

.btn-gold-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px var(--accent-gold-glow);
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--tx-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-text-action:hover {
  text-decoration: underline;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group-tight {
  margin-bottom: 0.85rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

[data-theme="light"] .form-label {
  color: #0f172a !important;
}

[data-theme="dark"] .form-label {
  color: var(--text-main) !important;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: #131c2e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: var(--text-muted) !important;
}

.form-select-sm {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus, .form-select-sm:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 1px 2px rgba(0, 0, 0, 0.05);
  background: var(--bg-surface);
}

.form-textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.form-grid-2 .full-width {
  grid-column: span 2;
}

.hint-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: block;
  line-height: 1.45;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ats-badge-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--tx-emerald);
  font-weight: 600;
}

.ats-badge-tip i {
  width: 14px;
  height: 14px;
}

/* ==========================================================
   VIEW 1: ATS RESUME BUILDER (SPLIT WIZARD + PREVIEW)
   ========================================================== */
.builder-layout {
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 1.5rem;
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: calc(100vh - 84px);
}

.builder-editor-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.editor-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(to bottom, var(--bg-card), var(--bg-surface));
}

.editor-title-wrap {
  flex: 1;
}

.editor-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.status-pill-ats {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tx-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-pill-ats i {
  width: 13px;
  height: 13px;
}

.status-pill-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tx-primary);
  background: var(--primary-light);
  border: 1px solid var(--border-glow);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-pill-ai i {
  width: 13px;
  height: 13px;
}

.editor-title-wrap .page-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.editor-title-wrap .page-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-sample-chip {
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-card);
  border-color: var(--border-subtle);
  transition: var(--transition);
}

.btn-sample-chip:hover {
  border-color: var(--primary);
  color: var(--tx-primary);
  transform: translateY(-1px);
}

.btn-clear-chip {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--border-subtle);
}

.btn-clear-chip:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Stepper Tabs - Modern Segmented Capsule Rail */
.wizard-stepper {
  display: flex;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 0.75rem;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.wizard-stepper::-webkit-scrollbar {
  display: none;
}

[data-theme="light"] .wizard-stepper {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.step-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  padding: 0.55rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

[data-theme="light"] .step-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

.step-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

[data-theme="light"] .step-num {
  background: rgba(0, 0, 0, 0.06);
}

.step-num i,
.step-num svg,
.step-num svg.lucide {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 2.3px;
}

.step-btn.active .step-num {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.step-label {
  font-weight: 700;
  font-size: 0.8rem;
}

/* Wizard Content */
.wizard-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.section-title i {
  width: 18px;
  height: 18px;
  color: var(--tx-primary);
}

.pane-header-actions, .pane-header-ai {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.ai-button-cluster {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.divider-line {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.5rem 0;
}

/* Dynamic Item Cards (Experience, Education, etc.) */
.dynamic-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dynamic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: var(--transition);
  position: relative;
}

.dynamic-card:hover {
  border-color: var(--border-active);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.card-drag-title {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-actions-mini {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-icon-danger {
  background: none;
  border: none;
  color: var(--tx-danger);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Skills Input Section */
.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.suggested-skills-bar {
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.suggest-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.suggest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-tag {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.quick-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.skills-group-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.skill-category-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.category-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.category-title i {
  width: 15px;
  height: 15px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 28px;
}

.skill-badge {
  background: var(--primary-light);
  border: 1px solid var(--primary-glow);
  color: var(--tx-primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="light"] .skill-badge {
  color: var(--tx-primary);
}

.skill-badge .remove-tag {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.7;
}

.skill-badge .remove-tag:hover {
  opacity: 1;
  color: var(--tx-danger);
}

/* Wizard Footer - Modern Studio Navigation Dock */
.wizard-footer {
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
}

.step-progress-wrapper {
  flex: 1;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-percent-text {
  color: var(--tx-primary);
  font-weight: 800;
}

.step-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .step-progress-track {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.step-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-indigo));
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-prev-step {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
}

.btn-next-step {
  padding: 0.55rem 1.45rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.btn-next-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* ==========================================================
   BUILDER PREVIEW PANEL (RIGHT SIDE - STUDIO WORKSTATION)
   ========================================================== */
.builder-preview-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-toolbar {
  padding: 0.8rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.toolbar-selectors-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.template-selector-group, .font-selector-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toolbar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.toolbar-label i {
  width: 14px;
  height: 14px;
}

.pill-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="light"] .pill-select {
  background: #ffffff;
  border-color: #e2e8f0;
}

.pill-select:hover {
  border-color: var(--border-active);
}

/* Live ATS Compliance Pill */
.ats-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--tx-emerald);
  font-size: 0.8rem;
  cursor: default;
  transition: var(--transition);
}

[data-theme="dark"] .ats-pill-badge {
  color: var(--tx-emerald);
}

.ats-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #047857;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ats-pill-score {
  font-weight: 800;
  font-size: 0.86rem;
}

.ats-pill-label {
  font-weight: 600;
  font-size: 0.78rem;
}

.export-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-glow-pdf {
  background: linear-gradient(135deg, #065f46, #047857);
  border: none;
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
}

.btn-glow-pdf:hover {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-word-export {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  transition: var(--transition);
}

.btn-word-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-print-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border-color: var(--border-subtle);
}

/* ATS Health Check Mini Strip */
.ats-compliance-badge-bar {
  padding: 0.45rem 1.25rem;
  background: rgba(16, 185, 129, 0.05);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ats-badges-scroll {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ats-badges-scroll::-webkit-scrollbar {
  display: none;
}

.ats-badge-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tx-emerald);
  white-space: nowrap;
}

[data-theme="dark"] .ats-badge-item {
  color: var(--tx-emerald);
}

.ats-badge-item i {
  width: 13px;
  height: 13px;
}

/* Resume Studio Desk Canvas */
.resume-sheet-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #090d16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

[data-theme="light"] .resume-sheet-wrapper {
  background-color: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

/* Realistic Luxury Paper Layout */
.resume-paper {
  width: 100%;
  max-width: 820px;
  min-height: 1122px;
  height: auto;
  background: #ffffff !important;
  color: #111827;
  padding: 44px 50px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 20px 35px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 13.5px;
  line-height: 1.5;
  transition: font-family 0.2s ease;
  box-sizing: border-box;
  overflow: visible;
}

/* ==========================================================
   VIEW 2: ATS CHECKER & JOB MATCHER
   ========================================================== */
.matcher-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.matcher-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.matcher-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon-title i,
.card-icon-title svg,
.card-icon-title svg.lucide {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.3px;
  color: var(--tx-primary);
}

.card-icon-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

[data-theme="light"] .matcher-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.file-drop-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

[data-theme="light"] .file-drop-zone {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.file-drop-zone:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.04);
}

[data-theme="light"] .file-drop-zone:hover {
  background: #eef2ff;
  border-color: #6366f1;
}

.drop-icon,
svg.drop-icon {
  width: 42px !important;
  height: 42px !important;
  stroke-width: 2px;
  color: var(--tx-primary);
  margin-bottom: 0.5rem;
}

.file-drop-zone h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.file-drop-zone p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.file-uploaded-name {
  display: inline-block;
  margin-top: 0.65rem;
  background: var(--accent-emerald-light);
  color: var(--tx-emerald);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
}

.or-separator {
  text-align: center;
  position: relative;
  margin: 0.5rem 0 1rem;
}

.or-separator span {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0 0.75rem;
}

.action-center-wrap {
  text-align: center;
  margin: 1.5rem 0 2.5rem;
}

/* Scanning Radar Loader */
.scanning-loader-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-glow);
}

.pulse-radar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--primary);
  margin: 0 auto 1.5rem;
  animation: radarPulse 1.6s infinite ease-out;
}

@keyframes radarPulse {
  0% { transform: scale(0.8); opacity: 0.8; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 24px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.8); opacity: 0.8; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.loader-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.progress-bar-wrap {
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto 1rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-emerald));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.loader-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Analysis Results Dashboard */
.analysis-results-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.results-score-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

/* Radial Gauge */
.score-radial-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-inline-end: 1px solid var(--border-subtle);
  padding-inline-end: 1.5rem;
}

.radial-gauge {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    var(--accent-emerald) calc(var(--score-pct) * 1%),
    var(--bg-input) 0
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.radial-gauge::before {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
}

.score-number {
  position: relative;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  position: relative;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.score-verdict .verdict-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

.score-verdict .verdict-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Metric Breakdown Grid */
.metric-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--tx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-details {
  display: flex;
  flex-direction: column;
}

.tile-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tile-val {
  font-size: 1.25rem;
  font-weight: 800;
}

/* Details Breakdown Grid */
.analysis-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.detail-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.detail-box.full-span {
  grid-column: span 2;
}

.detail-box-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.header-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-box .header-icon {
  background: var(--accent-gold-light);
  color: var(--tx-gold);
}

.success-box .header-icon {
  background: var(--accent-emerald-light);
  color: var(--tx-emerald);
}

.action-plan-box .header-icon {
  background: var(--primary-light);
  color: var(--tx-primary);
}

.detail-box-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-box-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.missing-tags-wrap, .matched-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.kw-badge {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.kw-badge.missing {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--tx-danger);
  cursor: pointer;
  transition: var(--transition);
}

.kw-badge.missing:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.kw-badge.matched {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--tx-emerald);
}

.quick-tip-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.strengths-weaknesses-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.side-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.analysis-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.analysis-checklist li {
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.analysis-checklist li i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Recommendations Stepper */
.recommendations-stepper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rec-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rec-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-step-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.rec-step-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-scan-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* ==========================================================
   VIEW 3: AI COVER LETTER GENERATOR
   ========================================================== */
.cover-letter-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 1.75rem;
  align-items: flex-start;
}

.cl-form-card, .cl-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card-inner-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cl-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cl-preview-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cl-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cl-paper-sheet {
  background: #ffffff;
  color: #1f2937;
  border-radius: var(--radius-sm);
  padding: 36px 40px;
  min-height: 520px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.7;
}

.cl-text-content {
  white-space: pre-wrap;
}

.cl-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  color: var(--text-muted);
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.cl-empty-placeholder h4 {
  color: #475569;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.cl-empty-placeholder p {
  max-width: 320px;
  font-size: 0.85rem;
}

/* ==========================================================
   VIEW 4: VIP HUMAN HR REVIEW
   ========================================================== */
.vip-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 27, 75, 0.6));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.gold-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
}

.vip-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.vip-perk-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.vip-perk-item i {
  width: 17px;
  height: 17px;
}

.vip-hero-badge-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guarantee-seal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--tx-gold);
}

.guarantee-seal i {
  width: 36px;
  height: 36px;
}

.seal-text {
  text-align: start;
  line-height: 1.2;
}

.seal-text strong {
  display: block;
  font-size: 1.05rem;
}

.seal-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.delivery-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
}

/* VIP Tabs */
.vip-tabs-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.vip-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition);
}

.vip-tab-btn.active {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  color: var(--tx-gold);
}

.vip-tab-pane {
  display: none;
}

.vip-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

.vip-order-form-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.75rem;
  align-items: flex-start;
}

.vip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.vip-cv-source-choice {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Checkout Box */
.vip-plan-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.summary-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-name-gold {
  font-size: 1.15rem;
  color: var(--tx-gold);
  font-weight: 800;
}

.plan-desc-sm {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.plan-price-tag {
  display: flex;
  align-items: baseline;
}

.currency-sym {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tx-gold);
}

.price-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--tx-gold);
  line-height: 1;
}

.price-cycle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-inline-start: 4px;
}

.vip-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.feature-item i {
  width: 15px;
  height: 15px;
  color: var(--tx-emerald);
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}

.coupon-success-msg {
  color: var(--tx-emerald);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1rem;
  font-weight: 700;
}

.total-price {
  font-size: 1.6rem;
  color: var(--tx-gold);
}

.secure-badges {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.secure-badges i {
  width: 14px;
  height: 14px;
}

/* User's Existing Orders Tracking Card */
.order-tracking-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.order-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.order-code-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Status Progression Bar */
.order-progression-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.75rem 0 2rem;
}

.order-progression-bar::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--border-subtle);
  z-index: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 0.45rem;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-step.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}

.progress-step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px var(--primary-glow);
}

.step-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-step.active .step-caption {
  color: var(--tx-primary);
}

/* Deliverable Audit Box */
.audit-report-box {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.audit-report-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.audit-report-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--tx-gold);
}

.audit-notes-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-input);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  white-space: pre-line;
}

.deliverables-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Interactive Candidate-HR Chat */
.order-chat-accordion {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.chat-thread-box {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
}

.chat-bubble.hr-expert {
  align-self: flex-start;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-main);
}

.chat-bubble.candidate {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
}

.bubble-meta {
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 3px;
  display: flex;
  justify-content: flex-end;
}

.chat-input-bar {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================
   VIEW 5: PRICING CARDS
   ========================================================== */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1120px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, var(--bg-surface) 100%);
  box-shadow: 0 0 30px var(--primary-glow);
}

.pricing-card.vip {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-surface) 100%);
}

.featured-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-card-header {
  margin-bottom: 1.5rem;
}

.tier-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.tier-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tier-price-row {
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
}

.tier-price-num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.tier-features li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-features li i {
  width: 16px;
  height: 16px;
  color: var(--tx-emerald);
  flex-shrink: 0;
}

/* ==========================================================
   VIEW 6: BLOG & GUIDES
   ========================================================== */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.blog-thumb-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumb {
  transform: scale(1.05);
}

.blog-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tx-primary);
}

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--tx-primary);
}

/* ==========================================================
   MODALS & TOAST STACK
   ========================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-in-out;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sm { max-width: 480px; }
.modal-md { max-width: 680px; }
.modal-lg { max-width: 960px; }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-input);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.order-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.client-notes-quote {
  font-size: 0.85rem;
  font-style: italic;
  background: var(--bg-input);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.attached-cv-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.cv-file-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.cv-file-meta i {
  color: var(--tx-primary);
}

/* Toast Notifications */
.toast-stack {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: min(280px, calc(100vw - 48px));
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.success { border-color: var(--accent-emerald); }
.toast.success i { color: var(--tx-emerald); }
.toast.warning { border-color: var(--accent-gold); }
.toast.warning i { color: var(--tx-gold); }
.toast.error { border-color: var(--accent-danger); }
.toast.error i { color: var(--tx-danger); }

/* Toggle Switch */
.form-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.85rem 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================== */
@media (max-width: 1200px) {
  .builder-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pricing-cards-grid, .blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .matcher-inputs-grid, .cover-letter-grid, .vip-order-form-grid, .modal-order-grid {
    grid-template-columns: 1fr;
  }
  .results-score-banner {
    grid-template-columns: 1fr;
  }
  .score-radial-wrap {
    border-inline-end: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.5rem;
    padding-inline-end: 0;
  }
  .analysis-details-grid {
    grid-template-columns: 1fr;
  }
  .detail-box.full-span {
    grid-column: span 1;
  }
  .strengths-weaknesses-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .role-switcher-wrap {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .role-pill {
    width: 100%;
  }
  .role-btn {
    flex: 1;
    justify-content: center;
  }
  .pricing-cards-grid, .blog-cards-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid-2 .full-width {
    grid-column: span 1;
  }
}

/* ==========================================================
   UTILITY: Admin Login & Shared Helpers
   ========================================================== */

/* Shake animation for wrong password */
@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  30%       { transform: translateX(8px); }
  45%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
  75%       { transform: translateX(-4px); }
  90%       { transform: translateX(4px); }
}

.shake-error {
  animation: shakeInput 0.55s cubic-bezier(.36,.07,.19,.97) both;
  border-color: var(--accent-danger) !important;
}

/* Spinning loader icon */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Gold CTA button (large) */
.btn-gold-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #111827;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-gold-large:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309, #d97706);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.btn-gold-large:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Input + icon button side-by-side */
.input-with-button {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.input-with-button .form-input {
  flex: 1;
  min-width: 0;
}

/* Small outline button next to an input (password eye toggle, copy, upload) */
.input-with-button > .btn-outline-sm {
  flex-shrink: 0;
  transition: all 0.18s ease;
}

/* Ensure hidden role button truly hides */
.role-btn.hidden {
  display: none !important;
}

/* ==========================================================
   MOBILE APP DOCKED BOTTOM NAVIGATION (REMOVED - USE SIDE DRAWER)
   ========================================================== */
.app-bottom-nav {
  display: none !important;
}

.bottom-nav-item.vip-item.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
  border-color: rgba(245, 158, 11, 0.45);
  color: #fef3c7;
}

.bottom-nav-item.vip-item.active i {
  color: var(--tx-gold);
}

/* ==========================================================
   MOBILE BUILDER VIEW SEGMENTED TOGGLE
   ========================================================== */
.builder-mobile-toggle {
  display: none;
  margin: 0 0 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.toggle-segment-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.toggle-segment-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

@media (max-width: 900px) {
  .app-bottom-nav {
    display: none !important;
  }
  .app-layout {
    padding-bottom: 0 !important;
  }
  .sub-nav {
    display: none; /* In mobile, side drawer handles all nav items */
  }
  .builder-mobile-toggle {
    display: flex;
  }
  .builder-layout {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1rem;
    padding: 0 0.75rem;
  }
  /* In mobile view, toggle between editor and preview when requested */
  .builder-layout.show-editor .builder-editor-panel {
    display: flex !important;
  }
  .builder-layout.show-editor .builder-preview-panel {
    display: none !important;
  }
  .builder-layout.show-preview .builder-editor-panel {
    display: none !important;
  }
  .builder-layout.show-preview .builder-preview-panel {
    display: block !important;
  }

  .editor-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .editor-header-actions {
    justify-content: flex-end;
  }
  .wizard-stepper {
    justify-content: flex-start;
  }
  .wizard-content {
    padding: 1rem;
  }
}

.admin-portal-link {
  display: none !important;
}

/* ==========================================================
   JOBS MARKET (WUZZUF & LINKEDIN AGGREGATOR) STYLES
   ========================================================== */
.jobs-hero-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.jobs-hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 55%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

[data-theme="light"] .jobs-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 32px -4px rgba(37, 99, 235, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.hero-clean-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--tx-primary);
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .hero-clean-tag {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--tx-primary);
}

.hero-clean-tag svg,
.hero-clean-tag i {
  width: 15px !important;
  height: 15px !important;
  color: var(--tx-primary);
}

[data-theme="light"] .hero-clean-tag svg,
[data-theme="light"] .hero-clean-tag i {
  color: var(--tx-primary);
}

.job-auto-refresh-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  padding: 0.35rem 0.95rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--tx-emerald);
}

[data-theme="light"] .job-auto-refresh-clean {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.refresh-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #047857;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-ring 2s infinite;
}

.refresh-action-btn {
  background: transparent;
  border: none;
  color: var(--tx-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="light"] .refresh-action-btn {
  color: var(--tx-cyan);
}

.refresh-action-btn:hover {
  color: var(--tx-cyan);
}

.jobs-hero-stats {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.job-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.job-stat-box strong {
  font-size: 1.15rem;
  color: var(--tx-primary);
}

.job-stat-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.job-stat-box.highlight {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.job-stat-box.highlight strong {
  color: var(--tx-gold);
}

/* Filter Toolbar */
.jobs-filter-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .jobs-filter-toolbar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

.jobs-search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.jobs-search-box .search-icon {
  position: absolute;
  right: 0.95rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

[dir="ltr"] .jobs-search-box .search-icon {
  right: auto;
  left: 0.95rem;
}

.jobs-search-box .search-input {
  padding-right: 2.8rem;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: var(--transition);
}

[data-theme="light"] .jobs-search-box .search-input {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .jobs-search-box .search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

[dir="ltr"] .jobs-search-box .search-input {
  padding-right: 1rem;
  padding-left: 2.8rem;
}

.jobs-filter-dropdowns-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.job-source-filter-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.job-source-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.job-source-filter-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.job-source-filter-btn.source-li.active {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 2px 10px rgba(10, 102, 194, 0.4);
}

.filter-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.filter-select-wrap .select-icon {
  position: absolute;
  right: 0.75rem;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

[dir="ltr"] .filter-select-wrap .select-icon {
  right: auto;
  left: 0.75rem;
}

.filter-select-wrap .pill-select {
  padding-right: 2.2rem;
  padding-left: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  height: 36px;
  cursor: pointer;
  transition: var(--transition);
}

[dir="ltr"] .filter-select-wrap .pill-select {
  padding-right: 1.25rem;
  padding-left: 2.2rem;
}

.filter-select-wrap .pill-select:hover,
.filter-select-wrap .pill-select:focus {
  border-color: #0a66c2;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.15);
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  height: 36px;
}

/* Direct LinkedIn Hint Banner */
.jobs-linkedin-hint-banner {
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.12) 0%, rgba(30, 58, 138, 0.1) 100%);
  border: 1px solid rgba(10, 102, 194, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 10px rgba(10, 102, 194, 0.08);
}

.hint-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #0a66c2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.35);
}

.hint-text-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.35;
}

.hint-text-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Subtabs */
.jobs-subtabs-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.jobs-subtab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.jobs-subtab-btn i {
  width: 16px;
  height: 16px;
}

.jobs-subtab-btn.active {
  color: var(--tx-primary);
  background: var(--primary-light);
}

.jobs-tab-content {
  display: none;
}

.jobs-tab-content.active {
  display: block;
}

/* Job Cards Grid */
.jobs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .jobs-cards-grid {
    grid-template-columns: 1fr;
  }
}

.job-card-premium {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
}

.job-card-premium:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px -4px var(--primary-glow), 0 0 0 1px var(--primary);
}

[data-theme="light"] .job-card-premium {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .job-card-premium:hover {
  border-color: #2563eb;
  box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
}

.job-card-premium.source-linkedin-card {
  border-right: 4px solid #0a66c2;
}

[dir="ltr"] .job-card-premium.source-linkedin-card {
  border-right: 1px solid var(--border-subtle);
  border-left: 4px solid #0a66c2;
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.job-card-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.job-company-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.job-company-avatar.wz-bg {
  background: linear-gradient(135deg, #0056b3, #1e40af);
}

.job-company-avatar.li-bg {
  background: linear-gradient(135deg, #0a66c2, #0284c7);
}

.li-in-letter {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
}

.job-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.job-title-link:hover .job-title-text {
  color: var(--tx-primary);
  text-decoration: underline;
}

.title-ext-icon {
  width: 15px;
  height: 15px;
  color: var(--tx-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.job-title-link:hover .title-ext-icon {
  transform: translate(-2px, -2px);
}

.job-title-text {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
  color: var(--text-main);
}

.job-company-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.job-company-name-row .company-name {
  font-weight: 600;
  color: var(--text-main);
}

.job-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.job-location i {
  width: 12px;
  height: 12px;
}

.job-source-tag-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.job-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.job-source-tag.tag-wuzzuf {
  background: rgba(0, 86, 179, 0.1);
  color: var(--tx-primary);
  border: 1px solid rgba(0, 86, 179, 0.2);
}

.job-source-tag.tag-linkedin {
  background: rgba(10, 102, 194, 0.12);
  color: #0a66c2;
  border: 1px solid rgba(10, 102, 194, 0.3);
}

.badge-week-fresh {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: var(--tx-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
}

.badge-week-fresh i {
  width: 11px;
  height: 11px;
}

.job-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-input);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.meta-pill i {
  width: 12px;
  height: 12px;
}

.meta-pill.date-pill {
  color: var(--tx-gold);
  background: rgba(245, 158, 11, 0.1);
  font-weight: 700;
}

.meta-pill.salary-pill {
  color: var(--tx-emerald);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 700;
}

/* ATS Match Chip */
.job-ats-match-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-inline-start: auto;
}

.job-ats-match-chip i {
  width: 12px;
  height: 12px;
}

.job-ats-match-chip.match-high {
  background: rgba(16, 185, 129, 0.15);
  color: var(--tx-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.job-ats-match-chip.match-good {
  background: rgba(59, 130, 246, 0.15);
  color: var(--tx-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.job-desc-snippet {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.job-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.job-skill-chip {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-main);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* DIRECT LINKEDIN BUTTON */
.btn-linkedin-direct {
  background: #0a66c2;
  color: #fff !important;
  border: none;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(10, 102, 194, 0.35);
  transition: all 0.2s ease;
}

.btn-linkedin-direct:hover {
  background: #004182;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(10, 102, 194, 0.5);
  color: #fff !important;
}

.btn-li-logo {
  background: #fff;
  color: #0a66c2;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  line-height: 1;
}

.btn-easy-apply {
  background: transparent;
  color: var(--tx-primary);
  border: 1px solid var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-easy-apply:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-applied-disabled {
  background: rgba(16, 185, 129, 0.15);
  color: var(--tx-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-applied-disabled i {
  width: 14px;
  height: 14px;
}

.btn-applied-disabled i {
  width: 14px;
  height: 14px;
}

/* User Popover Menu */
.user-dropdown-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 1.5rem;
  width: 270px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.user-dropdown-popover.active {
  display: block;
}

.popover-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.popover-avatar-sm img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.popover-user-meta strong {
  display: block;
  font-size: 0.88rem;
}

.popover-user-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.popover-subscription-status {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

.sub-status-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.status-indicator-dot.active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #047857;
  box-shadow: 0 0 6px #10b981;
}

.renewal-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.popover-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.menu-item-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: start;
  transition: var(--transition);
}

.menu-item-btn:hover {
  background: var(--bg-input);
}

.menu-item-btn i {
  width: 15px;
  height: 15px;
}

/* Modals Auth & Quick Apply */
.modal-auth-box {
  max-width: 520px;
}

.auth-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.auth-badge-50 {
  font-size: 0.72rem;
  color: var(--tx-gold);
  font-weight: 700;
}

.auth-tabs-segmented {
  display: flex;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.auth-form-pane {
  display: none;
}

.auth-form-pane.active {
  display: block;
}

.sub-pricing-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.15rem;
}

.sub-plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tx-gold);
  margin-bottom: 0.25rem;
}

.sub-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.sub-plan-price-row .currency {
  font-size: 0.9rem;
  font-weight: 700;
}

.sub-plan-price-row .amount {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
}

.sub-plan-price-row .period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sub-features-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sub-features-check-list li {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main);
}

.sub-features-check-list li i {
  width: 14px;
  height: 14px;
  color: var(--tx-emerald);
}

/* Payment Methods Grid */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.method-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  flex-shrink: 0;
}

.payment-method-card.selected .method-radio {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--bg-surface);
}

.method-content strong {
  display: block;
  font-size: 0.82rem;
}

.method-content span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.payment-instructions-box {
  background: var(--bg-input);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1.15rem;
}

.cash-number {
  color: var(--tx-gold);
  font-weight: 800;
  direction: ltr;
  display: inline-block;
}

/* Receipt Upload Dropzone & Preview */
.receipt-upload-section {
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.receipt-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.receipt-dropzone:hover, .receipt-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.receipt-dropzone.has-error {
  border-color: var(--accent-rose);
  background: rgba(239, 68, 68, 0.05);
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.dropzone-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  color: var(--tx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.dropzone-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.receipt-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: right;
}

.receipt-preview-card.hidden {
  display: none !important;
}

.receipt-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.receipt-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.receipt-file-info strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-file-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.receipt-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Quick Apply Modal */
.modal-apply-box {
  max-width: 480px;
}

.apply-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.apply-modal-title .icon-send {
  color: var(--tx-primary);
  width: 24px;
  height: 24px;
}

.apply-modal-title .sub-info {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.apply-resume-preview-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.resume-icon-chip {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--tx-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resume-meta strong {
  display: block;
  font-size: 0.88rem;
}

.resume-meta span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.verified-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem !important;
  color: var(--tx-emerald) !important;
  font-weight: 600;
  margin-top: 0.2rem;
}

.verified-tag i {
  width: 12px;
  height: 12px;
}

.apply-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.apply-guarantee-note i {
  width: 14px;
  height: 14px;
  color: var(--tx-primary);
  flex-shrink: 0;
}

/* ==========================================================
   MODAL CORE COMPONENT STYLES (HIDDEN BY DEFAULT)
   ========================================================== */
.modal-backdrop {
  display: none !important;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-backdrop.active {
  display: flex !important;
  animation: modalFadeIn 0.2s ease forwards;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin: auto;
  position: relative;
  z-index: 10000;
  animation: modalScaleUp 0.2s ease forwards;
}

.modal-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-body {
  padding: 1.4rem;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-card);
}

.btn-close-modal {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--tx-danger);
  border-color: rgba(239, 68, 68, 0.3);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================
   AUTH & ONBOARDING GATEWAY (50 EGP SUBSCRIPTION & LOGIN)
   ========================================================== */
.modal-auth-box {
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(59, 130, 246, 0.12);
}

.auth-header-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.auth-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}

.auth-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.auth-badge-50 {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.auth-notice-banner {
  background: rgba(99, 102, 241, 0.12);
  border-left: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  font-size: 0.84rem;
  color: var(--tx-indigo);
  line-height: 1.5;
  border-radius: var(--radius-sm);
}

[data-theme="light"] .auth-notice-banner {
  background: #eef2ff;
  color: #312e81;
  border-color: #6366f1;
  font-weight: 600;
}

.auth-notice-banner.hidden {
  display: none;
}

/* Segmented Tabs Switcher */
.auth-tabs-segmented {
  display: flex;
  background: var(--bg-card);
  padding: 0.35rem;
  margin: 1rem 1.4rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 0.35rem;
}

[data-theme="light"] .auth-tabs-segmented {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.auth-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .auth-tab-btn {
  color: #475569;
}

.auth-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .auth-tab-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

.auth-tab-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.auth-form-pane {
  display: none;
}

.auth-form-pane.active {
  display: block;
  animation: fadeIn 0.2s ease forwards;
}

/* Login Welcome Banner & Controls */
.login-welcome-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .login-welcome-banner {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.login-welcome-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.login-welcome-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

[data-theme="light"] .login-welcome-text strong {
  color: #1e1b4b;
}

.login-welcome-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

[data-theme="light"] .login-welcome-text span {
  color: #4338ca;
}

/* 50 EGP Subscription Plan Banner */
.sub-pricing-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  color: #f8fafc;
}

.sub-pricing-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sub-plan-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  color: var(--tx-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.sub-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.sub-plan-price-row .currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx-gold);
}

.sub-plan-price-row .amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.sub-plan-price-row .period {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.sub-features-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sub-features-check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-main);
}

.sub-features-check-list li i {
  color: var(--tx-emerald);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Light Theme Overrides for Pricing Banner */
[data-theme="light"] .sub-pricing-banner {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
  color: #1e293b;
}

[data-theme="light"] .sub-pricing-banner .sub-plan-badge {
  background: #fde68a;
  color: #92400e;
  border-color: #f59e0b;
}

[data-theme="light"] .sub-pricing-banner .sub-plan-price-row .currency {
  color: #b45309;
}

[data-theme="light"] .sub-pricing-banner .sub-plan-price-row .amount {
  color: #78350f !important;
}

[data-theme="light"] .sub-pricing-banner .sub-plan-price-row .period {
  color: #92400e !important;
}

[data-theme="light"] .sub-pricing-banner .sub-features-check-list li {
  color: #1e293b !important;
  font-weight: 600;
}

[data-theme="light"] .sub-pricing-banner .sub-features-check-list li i {
  color: var(--tx-emerald);
}

/* Egyptian Payment Methods Selection */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (max-width: 580px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

.payment-method-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.payment-method-card.selected {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .payment-method-card {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme="light"] .payment-method-card:hover {
  background: #f8fafc;
  border-color: var(--primary);
}

[data-theme="light"] .payment-method-card.selected {
  background: #eef2ff;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.method-radio {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-subtle);
  margin-top: 0.15rem;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.payment-method-card.selected .method-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.payment-method-card.selected .method-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: var(--radius-full);
}

.method-content strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.25;
}

[data-theme="light"] .method-content strong {
  color: #0f172a;
}

[data-theme="light"] .payment-method-card.selected .method-content strong {
  color: #3730a3;
}

.method-content span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

[data-theme="light"] .method-content span {
  color: var(--text-muted);
}

.payment-instructions-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-active);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .payment-instructions-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .inst-alert strong {
  color: #0f172a;
}

[data-theme="light"] .inst-alert p {
  color: #475569;
}

[data-theme="light"] .cash-number {
  color: #b45309;
  background: #fef3c7;
}

.inst-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-main);
}

.inst-alert i {
  color: var(--tx-gold);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.inst-alert strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.inst-alert p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.cash-number {
  color: var(--tx-gold);
  font-weight: 800;
  background: rgba(245, 158, 11, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  direction: ltr;
  display: inline-block;
}

/* Auth features micro tags & switch link */
.auth-features-preview-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.preview-tag i {
  width: 13px;
  height: 13px;
  color: var(--tx-emerald);
}

.auth-switch-helper {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.link-switch-sub {
  color: var(--tx-gold);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.link-switch-sub:hover {
  opacity: 0.8;
}

/* Guest Banner Box */
.guest-banner-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.guest-banner-box i {
  color: var(--tx-purple);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.guest-banner-box strong {
  display: block;
  color: var(--text-main);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.guest-banner-box p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* User Avatar Initials Badge */
.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.popover-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Payment Instructions Chips & Alerts */
.cash-number-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin: 0 0.25rem;
}

.cash-number {
  font-family: monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tx-gold);
}

.btn-copy-chip {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--text-main);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.btn-copy-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-copy-chip i {
  width: 12px;
  height: 12px;
}

.holder-name-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.holder-name-hint i {
  width: 14px;
  height: 14px;
  color: var(--tx-emerald);
}

.pay-note-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem !important;
}

.vodafone-alert {
  border-inline-start: 4px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}
.vodafone-alert > i {
  color: var(--tx-danger) !important;
}

.instapay-alert {
  border-inline-start: 4px solid #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.08) !important;
}
.instapay-alert > i {
  color: var(--tx-purple) !important;
}

.bank-alert {
  border-inline-start: 4px solid #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}
.bank-alert > i {
  color: var(--tx-emerald) !important;
}

/* ==========================================================
   EGYPTIAN & ARAB JOB PORTALS STYLING (12 PLATFORMS)
   ========================================================== */

.jobs-sources-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.jobs-sources-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}

.jobs-sources-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.jobs-sources-scroll-wrap .job-source-filter-group {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: max-content;
}

/* Platform Filter Buttons Active & Brand Colors */
.job-source-filter-btn.source-forasna.active {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}
.job-source-filter-btn.source-bayt.active {
  background: #1e3a8a;
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.4);
}
.job-source-filter-btn.source-tanqeeb.active {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}
.job-source-filter-btn.source-shaghalni.active {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.4);
}
.job-source-filter-btn.source-dubizzle.active {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}
.job-source-filter-btn.source-dubizzle-ae.active {
  background: #be123c;
  color: #fff;
  box-shadow: 0 2px 10px rgba(190, 18, 60, 0.4);
}
.job-source-filter-btn.source-indeed.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}
.job-source-filter-btn.source-tawzeef.active {
  background: #065f46;
  color: #fff;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
}
.job-source-filter-btn.source-naukri.active {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}
.job-source-filter-btn.source-dubai.active {
  background: #d97706;
  color: #fff;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}
.job-source-filter-btn.source-wz.active {
  background: #1e40af;
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.4);
}

/* Source Icon Badges */
.source-icon-badge.forasna { background: #c2410c; color: #fff; }
.source-icon-badge.bayt { background: #1e3a8a; color: #fff; }
.source-icon-badge.tanqeeb { background: #0369a1; color: #fff; }
.source-icon-badge.shaghalni { background: #15803d; color: #fff; }
.source-icon-badge.dubizzle { background: #e11d48; color: #fff; }
.source-icon-badge.dubizzle-ae { background: #be123c; color: #fff; }
.source-icon-badge.indeed { background: #2563eb; color: #fff; }
.source-icon-badge.tawzeef { background: #065f46; color: #fff; }
.source-icon-badge.naukri { background: #4f46e5; color: #fff; }
.source-icon-badge.dubai { background: #b45309; color: #fff; }

/* Company Avatars for Each Portal */
.job-company-avatar.forasna-bg { background: linear-gradient(135deg, #ea580c, #c2410c); }
.job-company-avatar.bayt-bg { background: linear-gradient(135deg, #1e3a8a, #0f172a); }
.job-company-avatar.tanqeeb-bg { background: linear-gradient(135deg, #0284c7, #0369a1); }
.job-company-avatar.shaghalni-bg { background: linear-gradient(135deg, #16a34a, #15803d); }
.job-company-avatar.dubizzle-bg { background: linear-gradient(135deg, #e11d48, #be123c); }
.job-company-avatar.indeed-bg { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.job-company-avatar.tawzeefmasr-bg { background: linear-gradient(135deg, #065f46, #047857); }
.job-company-avatar.naukri-bg { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.job-company-avatar.dubai-bg { background: linear-gradient(135deg, #d97706, #b45309); }

/* Card Border Accents per Platform */
.job-card-premium.source-forasna-card { border-right: 4px solid #ea580c; }
.job-card-premium.source-bayt-card { border-right: 4px solid #1e3a8a; }
.job-card-premium.source-tanqeeb-card { border-right: 4px solid #0284c7; }
.job-card-premium.source-shaghalni-card { border-right: 4px solid #16a34a; }
.job-card-premium.source-dubizzle-card { border-right: 4px solid #e11d48; }
.job-card-premium.source-indeed-card { border-right: 4px solid #2563eb; }
.job-card-premium.source-tawzeefmasr-card { border-right: 4px solid #059669; }
.job-card-premium.source-naukrigulf-card { border-right: 4px solid #4f46e5; }
.job-card-premium.source-dubaicareers-card { border-right: 4px solid #d97706; }

[dir="ltr"] .job-card-premium.source-forasna-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #ea580c; }
[dir="ltr"] .job-card-premium.source-bayt-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #1e3a8a; }
[dir="ltr"] .job-card-premium.source-tanqeeb-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #0284c7; }
[dir="ltr"] .job-card-premium.source-shaghalni-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #16a34a; }
[dir="ltr"] .job-card-premium.source-dubizzle-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #e11d48; }
[dir="ltr"] .job-card-premium.source-indeed-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #2563eb; }
[dir="ltr"] .job-card-premium.source-tawzeefmasr-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #059669; }
[dir="ltr"] .job-card-premium.source-naukrigulf-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #4f46e5; }
[dir="ltr"] .job-card-premium.source-dubaicareers-card { border-right: 1px solid var(--border-subtle); border-left: 4px solid #d97706; }

/* Platform Tags on Cards */
.job-source-tag.tag-forasna { background: rgba(234, 88, 12, 0.12); color: var(--tx-orange); border: 1px solid rgba(234, 88, 12, 0.3); }
.job-source-tag.tag-bayt { background: rgba(30, 58, 138, 0.12); color: var(--tx-primary); border: 1px solid rgba(30, 58, 138, 0.3); }
.job-source-tag.tag-tanqeeb { background: rgba(2, 132, 199, 0.12); color: var(--tx-cyan); border: 1px solid rgba(2, 132, 199, 0.3); }
.job-source-tag.tag-shaghalni { background: rgba(22, 163, 74, 0.12); color: var(--tx-emerald); border: 1px solid rgba(22, 163, 74, 0.3); }
.job-source-tag.tag-dubizzle { background: rgba(225, 29, 72, 0.12); color: var(--tx-rose); border: 1px solid rgba(225, 29, 72, 0.3); }
.job-source-tag.tag-indeed { background: rgba(37, 99, 235, 0.12); color: var(--tx-primary); border: 1px solid rgba(37, 99, 235, 0.3); }
.job-source-tag.tag-tawzeefmasr { background: rgba(5, 150, 105, 0.12); color: var(--tx-emerald); border: 1px solid rgba(5, 150, 105, 0.3); }
.job-source-tag.tag-naukrigulf { background: rgba(79, 70, 229, 0.12); color: var(--tx-indigo); border: 1px solid rgba(79, 70, 229, 0.3); }
.job-source-tag.tag-dubaicareers { background: rgba(217, 119, 6, 0.12); color: var(--tx-gold); border: 1px solid rgba(217, 119, 6, 0.3); }

/* Direct Redirection Button per Platform */
.btn-portal-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-gradient);
  border: 1px solid transparent;
  color: #fff !important;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-portal-direct:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px var(--primary-glow);
  color: #fff !important;
}

[data-theme="light"] .btn-portal-direct {
  background: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .btn-portal-direct:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

/* 1-Click Tailor CV for Job Button */
.btn-tailor-job-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--tx-purple);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tailor-job-cv:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(99, 102, 241, 0.28));
  border-color: #8b5cf6;
  color: var(--tx-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .btn-tailor-job-cv {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #c4b5fd;
  color: #6d28d9;
}

[data-theme="light"] .btn-tailor-job-cv:hover {
  background: #ddd6fe;
  color: #5b21b6;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.18);
  transform: translateY(-2px);
}

/* ==========================================================
   LOCKED GATED TEASER BANNERS (TIER RESTRICTIONS)
   ========================================================== */

.jobs-lock-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px dashed rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.12);
  margin-top: 1rem;
}

.jobs-lock-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.lock-banner-icon {
  width: 58px;
  height: 58px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--tx-gold);
}

.lock-banner-icon i {
  width: 28px;
  height: 28px;
}

.jobs-lock-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.jobs-lock-banner p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.lock-banner-perks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.lock-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.lock-perk-item i {
  color: var(--tx-emerald);
  width: 15px;
  height: 15px;
}

/* ATS Gated Teaser Badges */
.kw-badge.locked-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--tx-gold);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.kw-badge.locked-badge:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.rec-step-card.locked-step-card {
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rec-step-card.locked-step-card:hover {
  background: rgba(245, 158, 11, 0.12);
}

.rec-step-card.locked-step-card .rec-step-num {
  background: rgba(245, 158, 11, 0.2);
  color: var(--tx-gold);
}

.btn-admin-shortcut {
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: var(--tx-gold) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.btn-admin-shortcut:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: #f59e0b !important;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

/* ==========================================================
   PHASE 1: DENSITY, PAGE BREAKS & RTL/LTR FOUNDATIONS
   ========================================================== */

/* Density Popover & Smart Controls */
.toolbar-smart-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.density-dropdown-wrap {
  position: relative;
}

.density-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg), 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 100;
  backdrop-filter: blur(16px);
}

.density-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.btn-close-popover {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
}

.density-slider-row {
  margin-bottom: 0.9rem;
}

.density-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.val-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--tx-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.density-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-fit-single-page {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  justify-content: center;
}

/* Strict RTL / LTR Canvas Engine */
.resume-paper {
  position: relative;
  box-sizing: border-box;
  background: #ffffff !important;
  min-height: 1122px;
  height: auto;
  overflow: visible;
  padding: var(--cv-margin, 44px) calc(var(--cv-margin, 44px) * 1.15) !important;
  font-size: calc(13.5px * var(--cv-font-scale, 1)) !important;
  line-height: var(--cv-line-height, 1.5) !important;
  transition: font-family 0.2s ease, padding 0.15s ease, font-size 0.15s ease, line-height 0.15s ease;
}

.resume-paper[dir="rtl"] {
  direction: rtl !important;
  text-align: right !important;
}

.resume-paper[dir="rtl"] .cv-item-header {
  flex-direction: row !important;
}

.resume-paper[dir="rtl"] .cv-item-bullets {
  padding-right: 18px !important;
  padding-left: 0 !important;
}

.resume-paper[dir="rtl"] .cv-heading {
  text-align: right !important;
}

.resume-paper[dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
}

.resume-paper[dir="ltr"] .cv-item-header {
  flex-direction: row !important;
}

.resume-paper[dir="ltr"] .cv-item-bullets {
  padding-left: 18px !important;
  padding-right: 0 !important;
}

.resume-paper[dir="ltr"] .cv-heading {
  text-align: left !important;
}

.resume-paper[dir="ltr"] .cv-contact-row {
  flex-direction: row !important;
}

/* Page Break Line Indicators (Visual A4 Guide at 1122px) */
.cv-page-break-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed #64748b;
  pointer-events: none;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding-inline-end: 16px;
}

@media print {
  header, nav, footer,
  .top-nav, .sub-nav, .app-footer, .preview-toolbar, .ats-compliance-badge-bar,
  .toast-stack, .modal-backdrop, .modal, .no-print,
  .builder-mobile-toggle, #builderMobileToggle,
  .cv-page-break-line, .cv-page-break-pill,
  .wizard-footer, .editor-header, .wizard-stepper, #builderStepper,
  .density-popover, .card-actions-mini, .divider-line {
    display: none !important;
    visibility: hidden !important;
  }

  .builder-editor-panel,
  .builder-layout.show-editor .builder-editor-panel,
  .builder-layout.show-preview .builder-editor-panel,
  .builder-layout .builder-editor-panel,
  #builderLayout .builder-editor-panel {
    display: none !important;
    visibility: hidden !important;
  }
}

.cv-page-break-pill {
  transform: translateY(-50%);
  background: #334155;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid #475569;
  letter-spacing: 0.02em;
}

/* Prevent Orphan Headings & Broken Bullets */
.cv-heading, .cv-item-header {
  break-after: avoid !important;
  page-break-after: avoid !important;
}

.cv-item, .cv-item-bullets li, .cv-skill-line {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

.cv-section {
  break-inside: auto !important;
  page-break-inside: auto !important;
}

/* Header & QR Badge */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.cv-header-text {
  flex: 1;
}

.cv-header-qr-badge {
  flex-shrink: 0;
  margin-inline-start: 16px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
}

.cv-header-qr-badge svg, .cv-header-qr-badge img {
  width: 72px;
  height: 72px;
  display: block;
}

.cv-header-qr-badge span {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mobile & Tablet Toggle Enhancement */
@media (max-width: 1024px) {
  .builder-mobile-toggle {
    display: flex !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 1rem;
    gap: 4px;
  }

  .toggle-segment-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .toggle-segment-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
  }

  .builder-layout.show-editor .builder-editor-panel {
    display: flex !important;
  }
  .builder-layout.show-editor .builder-preview-panel {
    display: none !important;
  }

  .builder-layout.show-preview .builder-editor-panel {
    display: none !important;
  }
  .builder-layout.show-preview .builder-preview-panel {
    display: block !important;
  }
}

/* ==========================================================
   PHASE 2: AI CORE TOOLS & HEALTH ANALYZER STYLING
   ========================================================== */

/* STAR AI Rewrite Button in Experience */
.card-actions-cluster {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-ai-star {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--tx-purple);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-ai-star:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(59, 130, 246, 0.3));
  border-color: #a855f7;
  color: var(--text-main);
  transform: translateY(-1px);
}

/* JD Matcher Modal Results */
.jd-results-container {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.jd-score-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.jd-circle-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--tx-primary);
  display: block;
}

.jd-circle-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.jd-radial-box {
  text-align: center;
  min-width: 90px;
}

.jd-summary-info h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.jd-summary-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.jd-keywords-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.jd-keywords-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.jd-keywords-block h5 {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jd-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill-interactive {
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: var(--tx-gold);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-pill-interactive:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.tag-pill-matched {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d178;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
}

/* Resume Health Analyzer */
.health-overall-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 78, 59, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.health-score-dial {
  text-align: center;
  min-width: 80px;
}

.health-dial-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--tx-emerald);
}

.health-dial-max {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.health-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.health-pillar-item .pillar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pillar-pct {
  font-weight: 700;
  color: var(--tx-primary);
}

.pillar-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.pillar-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #047857);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.health-recommendations-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.health-recommendations-box strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.health-recommendations-box ul {
  padding-inline-start: 1.2rem;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================
   PHASE 3: JOB APPLICATION KANBAN TRACKER & QR STYLING
   ========================================================== */

.kanban-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .kanban-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban-add-action {
    grid-column: span 2;
  }
}

.kanban-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.kanban-stat-card .stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
}

.kanban-stat-card .stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.text-blue { color: var(--tx-primary) !important; }
.text-purple { color: var(--tx-purple) !important; }
.text-green { color: var(--tx-emerald) !important; }

.kanban-board-container {
  overflow-x: auto;
  padding-bottom: 1.5rem;
}

.kanban-columns-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
  min-width: 1200px;
}

.kanban-column {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

[data-theme="light"] .kanban-column {
  background: #f8fafc;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.column-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.column-title-group h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-gray { background: #94a3b8; }
.dot-blue { background: #2563eb; }
.dot-purple { background: #a855f7; }
.dot-green { background: #047857; }
.dot-red { background: #dc2626; }

.col-count-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.column-cards-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kanban-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.kanban-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kanban-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.kanban-card-company {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.kanban-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.kanban-salary-pill {
  background: rgba(16, 185, 129, 0.12);
  color: var(--tx-emerald);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.kanban-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
}

.stage-select-sm {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.share-qr-preview-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 600px) {
  .share-qr-preview-box {
    flex-direction: column;
  }
}

.qr-code-graphic {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  min-height: 140px;
}

.toggle-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-top: 1rem;
  cursor: pointer;
}

/* Backend Dev Status Badge Base (Desktop) */
#backendStatusBadge, .backend-status-pill {
  position: fixed;
  bottom: 16px;
  inset-inline-end: 16px;
  z-index: 9999;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.74rem;
  padding: 6px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================
   MOBILE APP EXPERIENCE & RESPONSIVE PERFECTION (< 768px & < 480px)
   Engineered for iOS / Android Web App, Touch Targets, Fluid Scale
   ========================================================== */
@media (max-width: 768px) {
  /* 1. Viewport & Base Typography */
  html, body {
    overflow-x: hidden;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
  }

  /* Prevent iOS zoom on inputs while keeping clean appearance */
  .form-input, .form-select, .form-textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    font-size: 16px !important;
    min-height: 44px;
    border-radius: var(--radius-md);
  }

  .main-content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 16px)) !important;
  }

  /* 2. Top Navigation */
  .top-nav {
    padding: 0.4rem 0.75rem;
    height: auto;
    min-height: 54px;
  }
  .nav-container {
    gap: 0.5rem;
  }
  .brand-logo .logo-tagline {
    display: none;
  }
  .brand-logo .logo-title {
    font-size: 1.05rem;
  }
  .nav-center-tabs {
    display: none; /* Managed by Sleek Fixed Bottom Dock Bar */
  }
  .nav-actions {
    gap: 0.35rem !important;
  }
  .btn-admin-shortcut {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
  .btn-admin-shortcut span {
    display: none !important;
  }
  .btn-sub-50 {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }
  .icon-btn-text span {
    display: none !important;
  }
  .icon-btn, .icon-btn-text {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .user-chip-menu {
    padding: 0.25rem 0.45rem !important;
  }
  .user-chip-info {
    display: none !important;
  }

  /* 3. Wizard Stepper on Mobile (Smooth Horizontal Swipe) */
  .wizard-stepper {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.4rem !important;
    padding: 0.4rem 0.25rem 0.6rem !important;
    justify-content: flex-start !important;
  }
  .wizard-stepper::-webkit-scrollbar {
    display: none;
  }
  .step-btn {
    flex-shrink: 0 !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
  }

  /* 4. Wizard Content & Navigation Footer */
  .wizard-content {
    padding: 0.85rem !important;
  }
  .wizard-footer {
    padding: 0.75rem 0.5rem !important;
    gap: 0.5rem !important;
  }
  .wizard-footer .btn {
    min-height: 44px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.88rem !important;
  }
  .step-progress-wrapper {
    flex: 1;
    min-width: 0;
  }
  .step-indicator-text, .step-percent-text {
    font-size: 0.74rem !important;
  }

  /* 5. Resume Preview Canvas on Mobile Screen */
  .resume-sheet-wrapper {
    padding: 0.5rem 0.25rem !important;
    background-size: 16px 16px !important;
  }
  .resume-paper {
    padding: 16px 12px !important;
    max-width: 100% !important;
    min-height: auto !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
  }
  .template-classic .cv-header,
  .template-tech .cv-header,
  .template-corporate .cv-header {
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
  }
  .template-classic .cv-name,
  .template-tech .cv-name,
  .template-corporate .cv-name {
    font-size: 1.18rem !important;
    line-height: 1.25 !important;
  }
  .template-classic .cv-title,
  .template-tech .cv-title,
  .template-corporate .cv-title {
    font-size: 0.84rem !important;
    margin-bottom: 4px !important;
  }
  .template-classic .cv-contact-row,
  .template-tech .cv-contact-row,
  .template-corporate .cv-contact-row {
    flex-wrap: wrap !important;
    gap: 3px 6px !important;
    font-size: 0.72rem !important;
    justify-content: center !important;
  }
  .cv-section-title {
    font-size: 0.85rem !important;
    margin: 8px 0 4px !important;
    padding-bottom: 2px !important;
  }
  .exp-header-row, .edu-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
  }
  .exp-role, .edu-degree {
    font-size: 0.82rem !important;
  }
  .exp-dates, .edu-dates {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
  }
  .cv-bullet-list {
    padding-inline-start: 14px !important;
    margin: 3px 0 !important;
  }
  .cv-bullet-list li {
    font-size: 0.74rem !important;
    margin-bottom: 2px !important;
    line-height: 1.35 !important;
  }

  /* 6. Studio Preview Toolbar */
  .preview-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    padding: 0.75rem !important;
  }
  .toolbar-selectors-cluster {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }
  .toolbar-selectors-cluster .form-select-sm {
    width: 100% !important;
    min-height: 38px !important;
  }
  .ats-pill-badge {
    align-self: center !important;
    margin: 0.2rem 0 !important;
  }
  .export-actions-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }
  .export-actions-group .btn {
    min-height: 42px !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
  }
  .btn-print-icon {
    display: none !important;
  }

  /* 7. Mobile Navigation Dock Bar (Disabled - Replaced by Executive Side Drawer) */
  .app-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .app-layout {
    padding-bottom: 0 !important;
  }

  /* Backend Dev Status Badge on Mobile: anchored cleanly to bottom-left corner */
  #backendStatusBadge, .backend-status-pill {
    bottom: 12px !important;
    display: none !important;
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
    z-index: 998 !important;
  }

  /* 8. Modals Mobile Native Bottom Sheet Presentation */
  .modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 100000 !important;
  }
  .modal-window, .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: 28px 28px 0 0 !important;
    margin: 0 !important;
    border: 1px solid var(--border-subtle) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    background: var(--bg-surface) !important;
    color: var(--text-main) !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.7) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    animation: modalSlideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
  .modal-dialog::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    margin: 10px auto 4px;
  }
  .modal-header {
    padding: 0.85rem 1.15rem !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    background: var(--bg-surface) !important;
  }
  [data-theme="light"] .modal-window,
  [data-theme="light"] .modal-dialog {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.15) !important;
  }
  [data-theme="light"] .modal-header {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
  }
  [data-theme="light"] .modal-dialog::before {
    background: rgba(0, 0, 0, 0.2) !important;
  }
  [data-theme="light"] .auth-header-title h3 {
    color: #0f172a !important;
  }
  [data-theme="light"] .auth-badge-50 {
    color: #475569 !important;
  }
  [data-theme="light"] .btn-close-modal {
    color: var(--text-muted) !important;
    border-color: #e2e8f0 !important;
  }
  [data-theme="light"] .btn-close-modal:hover {
    background: #fee2e2 !important;
    color: var(--tx-danger) !important;
  }
  .modal-body {
    padding: 1rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(88vh - 110px) !important;
    overflow-y: auto !important;
  }
  .modal-footer {
    padding: 0.85rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .modal-footer .btn, .modal-footer button, .modal-footer a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
    border-radius: var(--radius-md) !important;
  }

  .auth-tabs-segmented {
    margin: 0.65rem 0.85rem !important;
    padding: 3px !important;
  }
  .auth-tab-btn {
    padding: 0.5rem 0.35rem !important;
    font-size: 0.76rem !important;
  }
  .sub-pricing-banner {
    padding: 0.85rem 0.95rem !important;
    margin-bottom: 0.85rem !important;
  }
  .sub-plan-badge {
    font-size: 0.68rem !important;
    padding: 0.15rem 0.5rem !important;
  }
  .sub-plan-price-row .amount {
    font-size: 1.8rem !important;
  }
  .sub-features-check-list li {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }
  [data-theme="light"] .sub-features-check-list li {
    color: #1e293b !important;
  }
  [data-theme="dark"] .sub-features-check-list li {
    color: var(--text-main) !important;
  }
  [data-theme="light"] .form-label {
    color: #0f172a !important;
  }
  [data-theme="dark"] .form-label {
    color: var(--text-main) !important;
  }
  [data-theme="light"] .auth-notice-banner {
    color: #312e81 !important;
    background: #eef2ff !important;
  }
  [data-theme="dark"] .auth-notice-banner {
    color: var(--tx-indigo) !important;
    background: rgba(99, 102, 241, 0.15) !important;
  }
  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  /* 9. Jobs Market Mobile Perfect Flow */
  .jobs-hero-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.25rem 1rem !important;
    gap: 1.15rem !important;
    width: 100% !important;
  }
  .jobs-hero-content {
    width: 100% !important;
    min-width: 0 !important;
  }
  .hero-clean-tag {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  .job-auto-refresh-clean {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.75rem !important;
    flex-wrap: wrap !important;
  }
  .jobs-hero-content .page-title {
    font-size: 1.25rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.5rem !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
  }
  .jobs-hero-content .page-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  .jobs-hero-stats {
    width: 100% !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
  }
  .job-stat-box {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
  }
  .job-card-premium {
    padding: 1rem 0.85rem !important;
    border-radius: 16px !important;
  }
  .job-card-top {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }
  .job-source-tag-group {
    align-self: flex-start !important;
  }
  .job-meta-row {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }
  .job-card-footer {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }
  .job-footer-left, .job-footer-right {
    width: 100% !important;
  }
  .btn-portal-direct, .btn-easy-apply {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* 10. Tables Horizontal Scroll */
  .table-card, .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .table-responsive table, .table-container table, .affiliate-table-wrap table {
    min-width: 580px !important;
  }
}

@keyframes modalSlideUpSheet {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================
   CV IMPORTER & AUTO-PARSER STYLES
   ========================================================== */
.cv-import-card {
  transition: all 0.25s ease;
}
.cv-import-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.12);
}
.cv-dropzone:hover {
  border-color: var(--primary) !important;
  background: rgba(99, 102, 241, 0.04) !important;
}
.btn-import-chip {
  background: rgba(99, 102, 241, 0.1);
  color: var(--tx-primary);
  border-color: rgba(99, 102, 241, 0.3);
}
.btn-import-chip:hover {
  background: var(--primary);
  color: #fff;
}
.spin {
  animation: spinLoader 1s linear infinite;
}
@keyframes spinLoader {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}





/* 15-Minute Auto-Refresh Dynamic Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 0.8s linear infinite !important;
  display: inline-block;
}
.badge-week-fresh.pulse-glow {
  background: rgba(16, 185, 129, 0.22) !important;
  border: 1px solid #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45) !important;
  color: var(--tx-emerald) !important;
  animation: pulse-ring 2s infinite;
}

/* ==========================================================
   RESPONSIVE / RTL SAFETY LAYER (mobile 360-430, tablet 768-1024)
   ========================================================== */
img, video, canvas, svg { max-width: 100%; }
img, video { height: auto; }

.card, .glass-card, .job-card-premium, .candidate-card, .settings-card,
.modal-body, .toast, .meta-pill, .drawer-user-meta span, .popover-user-meta span {
  overflow-wrap: anywhere;
}

/* Modals: never clip content on short / landscape screens */
.modal-window {
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal-window > .modal-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

@media (max-width: 768px) {
  /* Readable base size on phones (was 14px) */
  html, body { font-size: 16px; }

  /* Nothing below 12px on mobile */
  #backendStatusBadge, .backend-status-pill,
  .step-indicator-text, .step-percent-text, .sub-features-check-list li, .sub-plan-badge,
  .admin-drawer-brand-text span, .admin-drawer-user-meta span, .admin-login-secure-note,
  .ai-pulse, .apply-guarantee-note, .ats-badge-item, .ats-score-lbl, .auth-badge-50,
  .badge-pill, .badge-week-fresh, .blog-category-tag, .btn-copy-chip, .btn-li-logo,
  .bubble-meta, .drawer-section-title, .drawer-subtitle, .drawer-user-meta span,
  .dropdown-group-title, .dropdown-item .item-desc, .gateway-badge-popular,
  .job-ats-match-chip, .job-skill-chip, .kanban-interview-badge, .logo-tagline,
  .meta-pill, .method-content span, .popover-user-meta span, .portal-indicator-badge,
  .preview-tag, .renewal-hint, .score-label, .secure-badges, .stat-badge-tag,
  .status-pill-ai, .status-pill-ats, .step-num, .user-tier, .vip-tag, .whatsapp-btn-chip,
  .btn-admin-shortcut, .btn-sub-50 {
    font-size: max(0.75rem, 12px) !important;
  }

  /* Touch targets >= 44x44 */
  .icon-btn, .icon-btn-text {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .btn-admin-shortcut, .btn-sub-50 {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Bottom sheet: dynamic viewport + safe area */
  .modal-window, .modal-dialog {
    max-height: 88vh !important;
    max-height: 88dvh !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  /* Dev badge hidden on phones */
  #backendStatusBadge, .backend-status-pill { display: none !important; }

  /* Popovers / drawers never wider than the viewport */
  .user-dropdown-popover { width: min(270px, calc(100vw - 24px)); }
  .toast-stack { inset-inline: 12px; }
  .toast { min-width: 0; }
}

/* Resume paper: render at A4 width and scale down on small screens (screen only) */
@media screen and (max-width: 768px) {
  .resume-paper {
    width: 794px !important;
    max-width: none !important;
    min-width: 794px;
    zoom: 0.76;
    margin-inline: auto;
  }
}
@media screen and (max-width: 640px) { .resume-paper { zoom: 0.61; } }
@media screen and (max-width: 520px) { .resume-paper { zoom: 0.5; } }
@media screen and (max-width: 430px) { .resume-paper { zoom: 0.44; } }
@media screen and (max-width: 380px) { .resume-paper { zoom: 0.4; } }
@supports not (zoom: 0.5) {
  @media screen and (max-width: 768px) {
    .resume-paper { transform-origin: top right; transform: scale(0.76); margin-bottom: calc(-1122px * 0.24); }
    [dir="ltr"] .resume-paper { transform-origin: top left; }
  }
  @media screen and (max-width: 640px) { .resume-paper { transform: scale(0.61); margin-bottom: calc(-1122px * 0.39); } }
  @media screen and (max-width: 520px) { .resume-paper { transform: scale(0.5); margin-bottom: calc(-1122px * 0.5); } }
  @media screen and (max-width: 430px) { .resume-paper { transform: scale(0.44); margin-bottom: calc(-1122px * 0.56); } }
  @media screen and (max-width: 380px) { .resume-paper { transform: scale(0.4); margin-bottom: calc(-1122px * 0.6); } }
}
@media print {
  .resume-paper { zoom: 1 !important; transform: none !important; }
}

/* Free plan = preview only: browser print (Ctrl+P) outputs a subscribe notice instead of the content */
@media print {
  body.trial-export-locked > * { display: none !important; }
  body.trial-export-locked::before {
    content: "الباقة المجانية للتجربة والمعاينة فقط — اشترك لتصدير وطباعة أعمالك.";
    display: block !important;
    padding: 40mm 15mm;
    text-align: center;
    font-size: 18pt;
    font-weight: 700;
    color: #000;
    direction: rtl;
  }
}

/* PDF export clone: never apply the mobile preview zoom/scale */
.resume-paper.pdf-export {
  zoom: 1 !important;
  transform: none !important;
  width: 730px !important;
  max-width: 730px !important;
  min-width: 730px !important;
  margin: 0 !important;
}

/* Small phones: keep the header brand inside the viewport (the portal badge was clipped off-screen)
   and let the "import CV" banner wrap instead of squeezing its text column. */
@media screen and (max-width: 520px) {
  .brand-group { min-width: 0; }
  #brandLogoBtn, .logo-text, .logo-title-row { min-width: 0; flex-shrink: 1; }
  .portal-indicator-badge { display: none !important; }
  .direct-import-banner { flex-wrap: wrap; }
  .direct-import-banner > .btn { margin-inline-start: auto; }
}

/* Phones: single-column grids must not grow to their content's intrinsic width (long Arabic labels,
   <select> options, nowrap buttons pushed cards outside the viewport where body overflow clipped them). */
@media screen and (max-width: 600px) {
  .salary-grid-layout, .cover-letter-grid, .interview-setup-grid, .vip-order-form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .salary-grid-layout > *, .cover-letter-grid > *, .interview-setup-grid > *, .vip-order-form-grid > *,
  #analysisResultsBox, #analysisResultsBox > *, .score-radial-wrap, .metric-breakdown-grid { min-width: 0; max-width: 100%; }
  .jobs-filter-dropdowns-row { width: 100%; }
  .jobs-filter-dropdowns-row .filter-select-wrap { flex: 1 1 100%; min-width: 0; }
  .filter-select-wrap .pill-select { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
  .vip-hero-banner { flex-wrap: wrap; }
  .vip-hero-badge-card { max-width: 100%; }
  .post-scan-actions, .salary-action-cta-row { flex-wrap: wrap; }
  .salary-action-cta-row .btn, .salary-action-cta-row .btn span { white-space: normal; max-width: 100%; }
  .salary-action-cta-row .btn { height: auto; min-height: 44px; flex: 1 1 100%; justify-content: center; }
  .metric-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-tile { min-width: 0; overflow-wrap: anywhere; }
  #btnRunAtsScan, #btnApplyAllFixesToResume, #btnRequestVipFromScan,
  #btnRunAtsScan span, #btnApplyAllFixesToResume span, #btnRequestVipFromScan span { white-space: normal; max-width: 100%; }
  #btnRunAtsScan, #btnApplyAllFixesToResume, #btnRequestVipFromScan { height: auto; min-height: 44px; }
}
/* ==========================================================
   THEME CONSISTENCY: light-mode versions of dark-only surfaces
   ========================================================== */
:root { --tx-whatsapp: #4ade80; --tx-telegram: #38bdf8; --tx-linkedin: #60a5fa; --tx-rose: #fb7185; }
[data-theme="light"] { --tx-whatsapp: #166534; --tx-telegram: #0369a1; --tx-linkedin: #004182; --tx-rose: #be123c; }
[data-theme="light"] .vip-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(255, 255, 255, 0.95));
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .jobs-lock-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.12), 0 0 20px rgba(245, 158, 11, 0.10);
}
[data-theme="light"] .lock-perk-item { background: #f8fafc; }
.cl-empty-placeholder p { color: #64748b; }
[data-theme="light"] .badge-week-fresh { color: #064e3b; }
.vip-hero-banner .page-desc { color: var(--text-soft); }
[data-theme="light"] .badge-week-fresh.pulse-glow { color: #064e3b !important; }

/* ==========================================================
   BUTTON SIZE SCALE (normalization pass 2026.11.11.3)
   lucide swaps <i data-lucide> for <svg class="lucide">, so size the svg too.
   ========================================================== */
.btn { min-height: 40px; line-height: 1.2; }
.btn > svg, .btn > i[data-lucide], .btn svg.lucide { width: 16px; height: 16px; flex-shrink: 0; }
.btn.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; gap: 0.4rem; border-radius: var(--radius-sm); }
.btn.btn-sm, .btn-primary-sm, .btn-outline-sm, .btn-success-sm { min-height: 34px; line-height: 1.2; justify-content: center; }
.btn-success-sm { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; }
.editor-header-actions { flex-wrap: wrap; }
.btn.btn-sm svg, .btn-primary-sm svg, .btn-outline-sm svg, .btn-success-sm svg,
.btn.btn-sm i[data-lucide], .btn-primary-sm i[data-lucide], .btn-outline-sm i[data-lucide], .btn-success-sm i[data-lucide] { width: 15px; height: 15px; flex-shrink: 0; }
.btn.btn-lg { min-height: 48px; padding: 0.8rem 1.6rem; font-size: 1rem; }
.btn.btn-lg svg { width: 18px; height: 18px; }
.icon-btn svg, .icon-btn-text svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-icon-sm, .btn-icon-danger {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; min-width: 28px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text-muted); cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-icon-danger { color: var(--tx-danger); }
.btn-icon-sm:hover { background: var(--bg-card-hover); border-color: var(--border-subtle); color: var(--text-main); }
.btn-icon-sm svg, .btn-icon-danger svg, .btn-icon-sm i[data-lucide], .btn-icon-danger i[data-lucide] { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 768px) {
  .btn, .btn.btn-sm, .btn-primary-sm, .btn-outline-sm, .btn-success-sm { min-height: 40px; }
  .btn.btn-lg { min-height: 48px; }
  .btn-icon-sm, .btn-icon-danger { width: 40px; height: 40px; min-width: 40px; }
}
.auth-tabs-segmented { min-width: 0; max-width: 100%; box-sizing: border-box; }
.auth-tab-btn { min-width: 0; min-height: 40px; }
@media (max-width: 480px) {
  .auth-tab-btn { white-space: normal; text-align: center; line-height: 1.2; gap: 0.3rem; }
  .auth-tab-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
}

/* ==========================================================
   BUTTON TEXT FIT PASS (2026.11.12.1)
   Arabic labels are long: buttons wrap onto extra lines and grow in height
   instead of overflowing their card / the viewport. Never hide label text.
   ========================================================== */
.btn, .btn-ai-large, .btn-gold-large, .btn-primary-sm, .btn-outline-sm, .btn-success-sm,
.vip-tab-btn, .btn-recruiter-action {
  white-space: normal; max-width: 100%; height: auto; text-align: center; overflow-wrap: break-word;
}
.btn > span, .btn-ai-large > span, .btn-gold-large > span, .btn-recruiter-action > span { min-width: 0; }
.matcher-card-header, .vip-tabs-bar, .modal-footer, .modal-actions, .form-actions { flex-wrap: wrap; gap: 0.6rem; }
.matcher-card-header .card-icon-title { min-width: 0; flex: 1 1 12rem; }
.vip-tab-btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
.portal-role-desc { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.portal-role-info { min-width: 0; }
.modal-footer > div, .modal-footer > .footer-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; justify-content: flex-end; }
.cl-preview-header, .cl-actions-group { flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.cl-preview-title { min-width: 0; }
@media (max-width: 480px) {
  .btn-ai-large, .btn-gold-large { padding: 0.85rem 1rem; font-size: 0.98rem; gap: 0.5rem; }
  .btn.btn-lg { padding: 0.75rem 1rem; }
}
.modal-body p.legal-full-links a { color: var(--tx-primary); }

/* Job market: real feed sources (App\Services\JobFeedSync) */
.source-icon-badge.himalayas { background: #4f46e5; color: #fff; }
.source-icon-badge.jobicy { background: #0f766e; color: #fff; }
.source-icon-badge.jooble { background: #2563eb; color: #fff; }
.source-icon-badge.recruiter_direct { background: #b45309; color: #fff; }
.job-company-avatar.himalayas-bg { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.job-company-avatar.jobicy-bg { background: linear-gradient(135deg, #0d9488, #0f766e); }
.job-company-avatar.jooble-bg { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.job-company-avatar.recruiter_direct-bg { background: linear-gradient(135deg, #d97706, #b45309); }
.job-company-avatar { overflow: hidden; }
.job-card-premium.source-himalayas-card { border-right: 4px solid #4f46e5; }
.job-card-premium.source-jobicy-card { border-right: 4px solid #0d9488; }
.job-card-premium.source-jooble-card { border-right: 4px solid #2563eb; }
.job-card-premium.source-recruiter_direct-card { border-right: 4px solid #d97706; }
[dir="ltr"] .job-card-premium.source-himalayas-card,
[dir="ltr"] .job-card-premium.source-jobicy-card,
[dir="ltr"] .job-card-premium.source-jooble-card,
[dir="ltr"] .job-card-premium.source-recruiter_direct-card { border-right: 1px solid var(--border-subtle); border-left-width: 4px; border-left-style: solid; }
.job-source-tag.tag-himalayas { background: rgba(79, 70, 229, 0.12); color: #4f46e5; border: 1px solid rgba(79, 70, 229, 0.3); }
.job-source-tag.tag-jobicy { background: rgba(13, 148, 136, 0.12); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.3); }
.job-source-tag.tag-jooble { background: rgba(37, 99, 235, 0.12); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.3); }
.job-source-tag.tag-recruiter_direct { background: rgba(217, 119, 6, 0.12); color: #92400e; border: 1px solid rgba(217, 119, 6, 0.3); }
[data-theme="dark"] .job-source-tag.tag-recruiter_direct { color: #fbbf24; }
.job-source-filter-btn.source-himalayas.active { background: #4f46e5; color: #fff; }
.job-source-filter-btn.source-jobicy.active { background: #0d9488; color: #fff; }
.job-source-filter-btn.source-jooble.active { background: #2563eb; color: #fff; }
.job-source-filter-btn.source-recruiter_direct.active { background: #d97706; color: #fff; }
