/* ========================================
   SmartHire247 — Global Design System
   ======================================== */

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

/* ── Design Tokens ── */
/* ── PERFORMANCE OPTIMIZATIONS ── */
.animate-in {
  animation: pageSlideIn 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  will-change: transform, opacity;
}
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hover-lift {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root {
  /* Colors - Deepened Palette */
  --clr-bg: hsl(225, 25%, 5%);
  --clr-bg-2: hsl(225, 20%, 8%);
  --clr-bg-3: hsl(225, 18%, 11%);
  --clr-surface: hsl(225, 20%, 10%);
  --clr-border: hsla(225, 20%, 25%, 0.4);
  --clr-border-glow: hsla(270, 80%, 60%, 0.5);

  --clr-primary: hsl(265, 85%, 60%);
  --clr-primary-lt: hsl(265, 85%, 75%);
  --clr-primary-dk: hsl(265, 85%, 45%);
  --clr-accent: hsl(190, 85%, 55%);
  --clr-accent-2: hsl(210, 95%, 65%);

  --clr-success: hsl(150, 70%, 45%);
  --clr-warning: hsl(42, 95%, 55%);
  --clr-danger: hsl(355, 85%, 60%);
  --clr-info: hsl(215, 90%, 60%);

  --clr-text: hsl(220, 20%, 96%);
  --clr-text-muted: hsl(220, 15%, 70%);
  --clr-text-dim: hsl(220, 12%, 45%);

  /* Gradients - More Dynamic */
  --grad-primary: linear-gradient(135deg, hsl(265, 85%, 55%), hsl(190, 85%, 50%));
  --grad-hero: radial-gradient(circle at top right, hsla(265, 85%, 20%, 0.15), transparent), radial-gradient(circle at bottom left, hsla(190, 85%, 20%, 0.1), var(--clr-bg));
  --grad-card: linear-gradient(165deg, hsla(225, 20%, 15%, 0.7), hsla(225, 20%, 10%, 0.9));
  --grad-badge: linear-gradient(135deg, hsl(150, 70%, 40%), hsl(190, 85%, 45%));

  /* Emerald Green for Verified/Trust states */
  --clr-emerald: hsl(152, 65%, 42%);
  --clr-emerald-lt: hsl(152, 65%, 55%);
  --grad-emerald: linear-gradient(135deg, hsl(152, 65%, 42%), hsl(162, 70%, 50%));

  /* Glass - Refined */
  --glass- bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  --glass-radius: 16px;

  /* Typography - Precise */
  --font-primary: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Radii - Smoother */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows - Layered */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px hsla(265, 85%, 60%, 0.35);

  /* Transitions */
  --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-mid: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sidebar */
  --sidebar-w: 260px;
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--clr-primary-lt);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--clr-accent);
}

img {
  max-width: 100%;
  display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--clr-text-muted);
  font-weight: 450;
  letter-spacing: 0.01em;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 10px 22px;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.1), transparent);
  transform: translateX(-100%);
  transition: 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--grad-primary);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 4px 20px hsla(265, 85%, 60%, 0.3);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px hsla(265, 85%, 60%, 0.45);
}

.btn-secondary {
  background: var(--clr-bg-3);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  border-color: var(--clr-primary-lt);
  background: hsla(265, 85%, 60%, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px hsla(0, 0%, 0%, 0.2);
}

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  color: var(--clr-text);
}

.btn-glass:hover {
  background: hsla(0, 0%, 100%, 0.1);
  border-color: hsla(0, 0%, 100%, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary-lt);
  border: 1px solid var(--clr-primary);
}

.btn-outline:hover {
  background: hsla(265, 85%, 60%, 0.1);
  border-color: var(--clr-primary-lt);
}

.btn-danger {
  background: hsla(355, 85%, 60%, 0.1);
  color: var(--clr-danger);
  border: 1px solid hsla(355, 85%, 60%, 0.2);
}

.btn-danger:hover {
  background: hsla(355, 85%, 60%, 0.2);
}

.btn-success {
  background: hsla(150, 70%, 45%, 0.1);
  color: var(--clr-success);
  border: 1px solid hsla(150, 70%, 45%, 0.2);
}

.btn-success:hover {
  background: hsla(150, 70%, 45%, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 16px;
}

.btn-icon {
  padding: 12px;
  border-radius: var(--r-md);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Cards ── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  transition: all var(--t-mid);
}

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

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-primary {
  background: hsla(270, 78%, 60%, 0.2);
  color: var(--clr-primary-lt);
  border: 1px solid hsla(270, 78%, 60%, 0.3);
}

.badge-success {
  background: hsla(145, 65%, 45%, 0.15);
  color: var(--clr-success);
  border: 1px solid hsla(145, 65%, 45%, 0.3);
}

.badge-warning {
  background: hsla(38, 95%, 55%, 0.15);
  color: var(--clr-warning);
  border: 1px solid hsla(38, 95%, 55%, 0.3);
}

.badge-danger {
  background: hsla(0, 72%, 58%, 0.15);
  color: var(--clr-danger);
  border: 1px solid hsla(0, 72%, 58%, 0.3);
}

.badge-info {
  background: hsla(210, 85%, 60%, 0.15);
  color: var(--clr-info);
  border: 1px solid hsla(210, 85%, 60%, 0.3);
}

.verified-badge {
  background: var(--grad-badge);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 12px hsla(145, 65%, 45%, 0.4);
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 2px 12px hsla(145, 65%, 45%, 0.4);
  }

  50% {
    box-shadow: 0 2px 24px hsla(145, 65%, 45%, 0.7);
  }
}

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  letter-spacing: 0.02em;
}

.form-control {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 11px 16px;
  color: var(--clr-text);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all var(--t-fast);
  width: 100%;
  outline: none;
}

.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px hsla(270, 78%, 60%, 0.15);
}

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

select.form-control {
  cursor: pointer;
}

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

/* ── Stat Card ── */
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  transition: all var(--t-mid);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border-glow);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-info .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-info .stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Avatar ── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

.avatar-md {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
}

.avatar-xl {
  width: 100px;
  height: 100px;
  font-size: 2.2rem;
}

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: hsla(270, 78%, 60%, 0.1);
  border: 1px solid hsla(270, 78%, 60%, 0.25);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clr-primary-lt);
  transition: all var(--t-fast);
}

.tag:hover {
  background: hsla(270, 78%, 60%, 0.2);
}

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--clr-bg-3);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody tr {
  border-top: 1px solid var(--clr-border);
  transition: background var(--t-fast);
}

tbody tr:hover {
  background: hsla(270, 78%, 60%, 0.04);
}

tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-primary);
  border-radius: var(--r-md);
  padding: 12px 14px 12px 16px;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
}

.toast-message {
  flex: 1;
  line-height: 1.45;
  word-break: break-word;
}

.toast-close {
  border: none;
  background: transparent;
  color: var(--clr-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-text);
  outline: none;
}

.toast.success {
  border-left-color: var(--clr-success);
}

.toast.error {
  border-left-color: var(--clr-danger);
}

.toast.warning {
  border-left-color: var(--clr-warning);
}

@keyframes toastIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(225, 25%, 4%, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-mid);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  width: min(560px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: all var(--t-mid);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
}

.modal-close {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  transition: color var(--t-fast);
  padding: 4px;
}

.modal-close:hover {
  color: var(--clr-danger);
}

/* ── Utilities ── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-sm {
  gap: var(--sp-sm);
}

.gap-md {
  gap: var(--sp-md);
}

.gap-lg {
  gap: var(--sp-lg);
}

.grid {
  display: grid;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--clr-text-muted);
}

.text-sm {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.75rem;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 600;
}

.mt-sm {
  margin-top: var(--sp-sm);
}

.mt-md {
  margin-top: var(--sp-md);
}

.mt-lg {
  margin-top: var(--sp-lg);
}

.mb-md {
  margin-bottom: var(--sp-md);
}

.mb-lg {
  margin-bottom: var(--sp-lg);
}

.p-md {
  padding: var(--sp-md);
}

.p-lg {
  padding: var(--sp-lg);
}

.hidden {
  display: none !important;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  from {
    background-position: -200% center;
  }

  to {
    background-position: 200% center;
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease both;
}

.animate-fade {
  animation: fadeIn 0.4s ease both;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .hide-mobile {
    display: none !important;
  }
}

/* -- Breadcrumbs -- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--clr-primary);
}

/* -- Global Footer -- */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 80px 20px 40px;
  background: rgba(15, 23, 42, 0.5);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #f8fafc;
}

.footer-links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--clr-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 0.8rem;
}

/* ── Global Loading Spinner ── */
.global-loader {
  position: fixed;
  inset: 0;
  background: hsla(225, 25%, 5%, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ── Premium Glassmorphism Utilities ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.glass-surface {
  background: linear-gradient(135deg, hsla(225, 20%, 15%, 0.5), hsla(225, 20%, 10%, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(0, 0%, 100%, 0.06);
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #f6d365, #fda085);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Smooth Animations ── */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Premium Badge ── */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--r-full);
}

/* ── Glow Effects ── */
.glow-primary {
  box-shadow: 0 0 20px hsla(265, 85%, 60%, 0.3), 0 0 60px hsla(265, 85%, 60%, 0.1);
}

.glow-accent {
  box-shadow: 0 0 20px hsla(190, 85%, 55%, 0.3), 0 0 60px hsla(190, 85%, 55%, 0.1);
}

/* ── Responsive Container ── */
.container-responsive {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

@media (max-width: 768px) {
  :root {
    --sp-xl: 24px;
    --sp-2xl: 40px;
    --sp-3xl: 56px;
  }
}

/* ═══════════════════════════════════════════════════════
   Theme Toggle Button & Light Mode — extracted from theme.js
═══════════════════════════════════════════════════════ */
.theme-toggle-btn {
    position: fixed; top: 14px; right: 20px; z-index: 99998;
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.theme-toggle-btn span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.4);
}
.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--clr-primary-lt);
    outline-offset: 2px;
}
@media (max-width: 1100px) {
    .theme-toggle-btn {
        top: 82px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
@media (max-width: 600px) {
    .theme-toggle-btn { top: 80px; right: 12px; width: 34px; height: 34px; font-size: 15px; }
}

/* ── Light Theme Override ── */
[data-theme="light"] {
    --clr-bg: #ffffff;
    --clr-bg-2: #f8f9fb;
    --clr-bg-3: #f0f1f5;
    --clr-surface: #ffffff;
    --clr-border: rgba(0, 0, 0, 0.1);
    --clr-border-glow: hsla(265, 70%, 55%, 0.2);
    --clr-text: #1a1a2e;
    --clr-text-muted: #555770;
    --clr-text-dim: #888a9e;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --grad-card: linear-gradient(165deg, #ffffff, #f8f9fb);
    --grad-hero: linear-gradient(135deg, #f8f9fb, #eef0f7);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px hsla(265, 70%, 55%, 0.1);
}
[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Landing page ── */
[data-theme="light"] .landing-nav {
    background: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
}
[data-theme="light"] .nav-name {
    -webkit-text-fill-color: initial !important;
    color: var(--clr-primary) !important;
}
[data-theme="light"] .landing-nav a,
[data-theme="light"] .landing-nav .nav-link,
[data-theme="light"] .nav-links a { color: #333 !important; }
[data-theme="light"] .hero-section,
[data-theme="light"] .hero { background: linear-gradient(135deg, #f5f3ff, #eef2ff, #f0f9ff) !important; }
[data-theme="light"] .hero h1,
[data-theme="light"] .hero-section h1,
[data-theme="light"] .hero-title { color: #1a1a2e !important; -webkit-text-fill-color: #1a1a2e !important; }
[data-theme="light"] .hero p,
[data-theme="light"] .hero-section p,
[data-theme="light"] .hero-subtitle { color: #555770 !important; }
[data-theme="light"] section,
[data-theme="light"] .section { background-color: #ffffff; }
[data-theme="light"] .section-label,
[data-theme="light"] .section-tag { color: var(--clr-primary) !important; }
[data-theme="light"] .section-title,
[data-theme="light"] section h2 { color: #1a1a2e !important; -webkit-text-fill-color: initial !important; }
[data-theme="light"] .section-subtitle,
[data-theme="light"] section p { color: #555770 !important; }
[data-theme="light"] .feature-card,
[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .glass-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .feature-card h3,
[data-theme="light"] .card h3,
[data-theme="light"] .stat-card h3 { color: #1a1a2e !important; }
[data-theme="light"] .feature-card p,
[data-theme="light"] .card p,
[data-theme="light"] .stat-card p { color: #555770 !important; }
[data-theme="light"] .stat-value,
[data-theme="light"] .stat-number { color: var(--clr-primary) !important; -webkit-text-fill-color: initial !important; }
[data-theme="light"] .stat-label { color: #555770 !important; }
[data-theme="light"] footer,
[data-theme="light"] .footer { background: #1a1a2e !important; color: #ccc !important; }
[data-theme="light"] footer a { color: #aaa !important; }

/* ── Sidebar (dashboards) ── */
[data-theme="light"] .sidebar,
[data-theme="light"] aside.sidebar { background: #ffffff !important; border-right: 1px solid rgba(0,0,0,0.08) !important; }
[data-theme="light"] .sidebar a,
[data-theme="light"] .sidebar .sidebar-link,
[data-theme="light"] .sidebar-links a,
[data-theme="light"] .sidebar nav a { color: #333 !important; }
[data-theme="light"] .sidebar a:hover,
[data-theme="light"] .sidebar a.active { background: #f0f0ff !important; color: var(--clr-primary) !important; }
[data-theme="light"] .sidebar-brand,
[data-theme="light"] .sidebar-header { background: linear-gradient(135deg, #6c47c9, #5a3db5) !important; color: #fff !important; }
[data-theme="light"] .sidebar-brand *,
[data-theme="light"] .sidebar-header * { color: #fff !important; }
[data-theme="light"] .sidebar-section-title,
[data-theme="light"] .sidebar-label { color: #888 !important; }
[data-theme="light"] .sidebar-user { border-top: 1px solid rgba(0,0,0,0.08) !important; }
[data-theme="light"] .sidebar-user .user-name { color: #333 !important; }
[data-theme="light"] .sidebar-user .user-role { color: #888 !important; }

/* ── Top header bar (dashboards) ── */
[data-theme="light"] .topbar,
[data-theme="light"] header.topbar {
    background: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    backdrop-filter: blur(12px) !important;
    color: #333 !important;
}
[data-theme="light"] .topbar *:not(button):not(.btn):not([class*="badge"]) { color: #333 !important; }
[data-theme="light"] .top-bar,
[data-theme="light"] header.top-bar,
[data-theme="light"] .breadcrumb-bar { background: #ffffff !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; color: #333 !important; }
[data-theme="light"] .page-title,
[data-theme="light"] .breadcrumb-bar .page-title { color: #1a1a2e !important; }

/* ── Dashboard main content ── */
[data-theme="light"] main,
[data-theme="light"] .main-content,
[data-theme="light"] .page-content { background: #f8f9fb !important; }
[data-theme="light"] .welcome-text,
[data-theme="light"] .welcome-section h2,
[data-theme="light"] .page-content h2 { color: #1a1a2e !important; }
[data-theme="light"] .welcome-section p,
[data-theme="light"] .page-content > p { color: #555770 !important; }

/* ── Stats grid ── */
[data-theme="light"] .stats-grid .stat-card,
[data-theme="light"] .stats-grid > div,
[data-theme="light"] .kpi-card,
[data-theme="light"] .metric-card { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.08) !important; }
[data-theme="light"] .stats-grid h3,
[data-theme="light"] .stats-grid .stat-title,
[data-theme="light"] .kpi-card h3 { color: #555770 !important; }
[data-theme="light"] .stats-grid .stat-value,
[data-theme="light"] .stats-grid .stat-number,
[data-theme="light"] .kpi-card .value { color: #1a1a2e !important; }

/* ── Notifications / Banners ── */
[data-theme="light"] .notification-bar,
[data-theme="light"] .promo-bar,
[data-theme="light"] .alert-bar,
[data-theme="light"] .notif-card { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.08) !important; color: #333 !important; }
[data-theme="light"] .notification-bar h4,
[data-theme="light"] .notif-card h4 { color: #1a1a2e !important; }
[data-theme="light"] .notification-bar p,
[data-theme="light"] .notif-card p { color: #555770 !important; }

/* ── Tables ── */
[data-theme="light"] table { background: #fff !important; }
[data-theme="light"] th { background: #f0f1f5 !important; color: #333 !important; border-bottom: 1px solid rgba(0,0,0,0.1) !important; }
[data-theme="light"] td { color: #333 !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; }
[data-theme="light"] tr:hover td { background: #f8f9fb !important; }

/* ── Modals ── */
[data-theme="light"] .modal-content,
[data-theme="light"] .modal-body,
[data-theme="light"] .dialog { background: #ffffff !important; color: #333 !important; border: 1px solid rgba(0,0,0,0.1) !important; }
[data-theme="light"] .modal-content h2,
[data-theme="light"] .modal-content h3 { color: #1a1a2e !important; }
[data-theme="light"] .modal-content p,
[data-theme="light"] .modal-content label { color: #555770 !important; }
[data-theme="light"] .modal { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.1) !important; box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important; }
[data-theme="light"] .modal-header { border-bottom: 1px solid rgba(0,0,0,0.08) !important; }
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.3) !important; }

/* ── Forms ── */
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not(.ln-search input),
[data-theme="light"] select,
[data-theme="light"] textarea { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.15) !important; color: #333 !important; }
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #999 !important; }
[data-theme="light"] label { color: #555770; }

/* ── Badges / Tags ── */
[data-theme="light"] .badge,
[data-theme="light"] .tag,
[data-theme="light"] .chip { background: #f0f1f5 !important; color: #333 !important; border: 1px solid rgba(0,0,0,0.08) !important; }

/* ── Tabs / Pipelines ── */
[data-theme="light"] .tab,
[data-theme="light"] .pipeline-col { background: #f8f9fb !important; }
[data-theme="light"] .tab.active { background: #fff !important; border-bottom-color: var(--clr-primary) !important; }

/* ── Search box ── */
[data-theme="light"] .search-box { background: #f0f1f5 !important; border-color: rgba(0,0,0,0.1) !important; }
[data-theme="light"] .search-box input { color: #333 !important; }

/* ── Fix gradient text (invisible in light mode) ── */
[data-theme="light"] .gradient-text,
[data-theme="light"] .gradient-text-gold,
[data-theme="light"] [style*="background-clip: text"],
[data-theme="light"] [style*="-webkit-text-fill-color: transparent"],
[data-theme="light"] [style*="background-clip:text"],
[data-theme="light"] [style*="-webkit-text-fill-color:transparent"] {
    -webkit-text-fill-color: #1a1a2e !important;
    color: #1a1a2e !important;
    background: none !important;
}
[data-theme="light"] .stat-card .gradient-text,
[data-theme="light"] .stat-value.gradient-text {
    -webkit-text-fill-color: var(--clr-primary) !important;
    color: var(--clr-primary) !important;
}

/* ── Dashboard panels ── */
[data-theme="light"] .panel { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.08) !important; }
[data-theme="light"] .panel-header { background: #f0f1f5 !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; }
[data-theme="light"] .panel-header h3 { color: #1a1a2e !important; }
[data-theme="light"] .panel-body { color: #333 !important; }
[data-theme="light"] .job-card { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.08) !important; }
[data-theme="light"] .job-card h4,
[data-theme="light"] .job-card .job-title { color: #1a1a2e !important; }
[data-theme="light"] .job-card p,
[data-theme="light"] .job-card .job-meta { color: #555 !important; }

/* ── Onboarding card ── */
[data-theme="light"] .onboarding-card { background: rgba(255,255,255,0.97) !important; border: 1px solid rgba(0,0,0,0.12) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important; }
[data-theme="light"] .onboarding-title { color: #1a1a2e !important; }
[data-theme="light"] .onboarding-body { color: #555 !important; }
[data-theme="light"] .onboarding-close { background: rgba(0,0,0,0.06) !important; color: #333 !important; }
[data-theme="light"] .onboarding-overlay.active {
    background: radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), transparent 100px, rgba(0,0,0,0.25) 200px) !important;
}

/* ── Catch-all text visibility ── */
[data-theme="light"] h1, [data-theme="light"] h2,
[data-theme="light"] h3, [data-theme="light"] h4,
[data-theme="light"] h5, [data-theme="light"] h6 { color: #1a1a2e !important; -webkit-text-fill-color: #1a1a2e !important; }
[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] label { color: inherit; }
[data-theme="light"] a:not(.btn):not(.offer-banner-cta):not(.sidebar-brand):not(.sidebar-brand *) { color: var(--clr-primary); }

/* ── Scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-track { background: #f0f1f5; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c0c4d0; }

/* ── Landing page specific ── */
[data-theme="light"] .landing-hero,
[data-theme="light"] [class*="hero"] { background: linear-gradient(135deg, #f5f3ff, #eef2ff, #f0f9ff) !important; }
[data-theme="light"] .ticker-bar,
[data-theme="light"] .marquee-bar { background: #f0f1f5 !important; color: #555 !important; }
[data-theme="light"] .cta-section { background: linear-gradient(135deg, #f5f3ff, #eef2ff) !important; }
[data-theme="light"] .cta-section h2,
[data-theme="light"] .cta-section p { color: #1a1a2e !important; -webkit-text-fill-color: #1a1a2e !important; }
[data-theme="light"] .testimonial-card { background: #fff !important; border: 1px solid rgba(0,0,0,0.08) !important; }
[data-theme="light"] .pricing-card { background: #fff !important; border: 1px solid rgba(0,0,0,0.1) !important; }
[data-theme="light"] .pricing-card h3,
[data-theme="light"] .pricing-card .price { color: #1a1a2e !important; }
[data-theme="light"] .pricing-card li { color: #555 !important; }

/* ── Offer Banner — extracted from theme.js ── */
.offer-banner {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 99990;
    width: min(920px, calc(100vw - 32px));
    padding: 14px 18px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px; font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    animation: offerSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
@keyframes offerSlideDown {
    from { opacity: 0; transform: translate(-50%, -22px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.offer-banner-text { flex: 1; min-width: 0; line-height: 1.45; padding-right: 8px; }
.offer-banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.offer-banner-cta {
    padding: 6px 18px; border-radius: 20px; border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15); color: white; font-weight: 700;
    text-decoration: none; font-size: 13px; transition: all 0.2s; white-space: nowrap;
}
.offer-banner-cta:hover { background: rgba(255,255,255,0.3); }
.offer-banner-close {
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24);
    color: white; font-size: 20px; cursor: pointer; opacity: 0.95;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
    padding: 0; width: 34px; height: 34px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.offer-banner-close:hover,
.offer-banner-close:focus-visible { opacity: 1; background: rgba(255,255,255,0.24); transform: scale(1.05); outline: none; }
@media (max-width: 600px) {
    .offer-banner { top: 12px; width: calc(100vw - 20px); padding: 12px 14px; font-size: 12px; gap: 10px; flex-wrap: wrap; }
    .offer-banner-text { padding-right: 0; }
    .offer-banner-actions { width: 100%; justify-content: space-between; }
}
