/* ========================================
   काम Khoj.com — Global Styles
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Teko:wght@500;700&family=Noto+Sans+Devanagari:wght@600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --bg-primary: #0b1a2a;
  --bg-surface: #11263d;
  --accent: #2fbf71;
  --accent-rgb: 47, 191, 113;
  --secondary: #2b6fb3;
  --secondary-rgb: 43, 111, 179;
  --text-primary: #f4f8ff;
  --text-muted: #9db1c7;
  --success: #22C55E;
  --danger: #EF4444;
  --border: #1b324a;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-amber-glow: 0 0 24px rgba(var(--accent-rgb), 0.15);
  --shadow-lift: 0 8px 30px rgba(0, 0, 0, 0.4);
  --navbar-offset: 132px;
  --company-logo-url: url('../assets/logo/Logo.png');
}

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

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

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

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #24965a;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: #24965a; }

p { color: var(--text-muted); }

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }

.mono { font-family: var(--font-mono); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ── Glassmorphism Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 26, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-md) var(--sp-lg);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-brand .brand-icon {
  display: none;
}

.brand-text {
  display: inline-block;
  width: 330px;
  height: 104px;
  position: relative;
  background-image: var(--company-logo-url);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 6px 18px rgba(var(--accent-rgb), 0.14));
}

.brand-text > * {
  opacity: 0;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.brand-text-hero {
  width: 520px;
  height: 170px;
}

.brand-nepali {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #d6eaff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45), 0 0 14px rgba(var(--secondary-rgb), 0.28);
}

.brand-latin {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: none;
  transform: translateY(1px);
}

.navbar-brand:hover .brand-latin {
  background: linear-gradient(90deg, #5aa5e2 0%, #7ae6b0 52%, #5aa5e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.navbar-brand:hover .brand-nepali {
  color: #edf6ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.nav-link {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  position: relative;
}

.navbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.navbar-avatar:hover {
  border-color: var(--accent);
}

/* Profile Dropdown */
.profile-dropdown-wrapper {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  z-index: 100;
  overflow: hidden;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-header {
  padding: var(--sp-md);
  border-bottom: 1px solid var(--border);
}

.profile-dropdown-header .dd-name {
  font-weight: 600;
  color: var(--text-primary);
}

.profile-dropdown-header .dd-email {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
}
.profile-dropdown-item:hover,
.profile-dropdown-item:focus {
  background: rgba(var(--accent-rgb), 0.1);
}

.profile-dropdown-item.danger {
  color: var(--danger);
}

/* Logout confirmation */
.logout-confirm {
  display: none;
  padding: var(--sp-md);
  border-top: 1px solid var(--border);
  background: rgba(var(--accent-rgb), 0.05);
}
.logout-confirm.active {
  display: block;
}
.logout-confirm p {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: var(--sp-sm);
}
.logout-confirm-btns {
  display: flex;
  gap: var(--sp-sm);
}

/* Availability Toggle */
.availability-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  cursor: pointer;
  user-select: none;
}
.availability-toggle .toggle-track {
  width: 44px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--danger);
  position: relative;
  transition: background var(--transition-normal);
}
.availability-toggle .toggle-track.available {
  background: var(--success);
}
.availability-toggle .toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition-normal);
}
.availability-toggle .toggle-track.available .toggle-thumb {
  transform: translateX(20px);
}
.availability-toggle .toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-lg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: #24965a;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-sm {
  padding: var(--sp-xs) var(--sp-md);
  font-size: 0.85rem;
}

.btn-lg {
  padding: var(--sp-md) var(--sp-xl);
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* Spinner in buttons */
.btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.btn.loading .spinner {
  display: inline-block;
}
.btn.loading .btn-text {
  opacity: 0.6;
}

/* ── Cards ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  transition: all var(--transition-normal);
}

.card-hover:hover {
  box-shadow: var(--shadow-amber-glow);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-4px);
}

/* ── Forms ── */
.form-group {
  margin-bottom: var(--sp-md);
}

.form-label {
  display: block;
  margin-bottom: var(--sp-xs);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: var(--sp-xs);
  display: none;
}
.form-error.visible {
  display: block;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.char-counter.warn {
  color: var(--danger);
}

/* File input */
.file-upload-wrapper {
  position: relative;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.file-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.file-upload-wrapper input[type="file"] {
  display: none;
}

/* ── Star Rating ── */
.star-rating {
  display: inline-flex;
  gap: 2px;
  font-size: 1.3rem;
}
.star-rating .star {
  color: var(--border);
  cursor: default;
  transition: all var(--transition-fast);
}
.star-rating .star.filled {
  color: var(--accent);
}
.star-rating .star.half {
  position: relative;
  color: var(--border);
}

/* Interactive stars */
.star-rating-input {
  display: inline-flex;
  gap: 4px;
  font-size: 1.8rem;
}
.star-rating-input .star {
  cursor: pointer;
  color: var(--border);
  transition: all var(--transition-fast);
  user-select: none;
}
.star-rating-input .star:hover,
.star-rating-input .star.hovered {
  color: var(--accent);
  transform: scale(1.15);
}
.star-rating-input .star.selected {
  color: var(--accent);
}
.star-rating-input .star.bounce {
  animation: starBounce 0.3s ease;
}

@keyframes starBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
}

.badge-available {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.badge-busy {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.badge-verified {
  background: rgba(var(--secondary-rgb), 0.15);
  color: var(--secondary);
}

/* Category colors */
.badge-category { font-size: 0.75rem; padding: 2px 8px; }
.badge-construction { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.badge-housekeeper { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.badge-plumber { background: rgba(var(--secondary-rgb), 0.15); color: var(--secondary); }
.badge-electrician { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.badge-gardener { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.badge-painter { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.badge-carpenter { background: rgba(180, 83, 9, 0.15); color: #D97706; }
.badge-security { background: rgba(107, 114, 128, 0.15); color: #9CA3AF; }
.badge-driver { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.badge-other { background: rgba(156, 163, 175, 0.15); color: #9CA3AF; }

/* ── Stat Cards ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  text-align: center;
}
.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-sm);
}
.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--sp-xs);
}

/* ── Worker Cards Grid ── */
.workers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.worker-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.worker-card:hover {
  box-shadow: var(--shadow-amber-glow);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-4px);
}

.worker-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.worker-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

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

.worker-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.worker-card-city {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.worker-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-sm);
}

.worker-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.worker-card-meta-item .icon {
  font-size: 0.9rem;
}

.worker-card-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.worker-card-footer {
  margin-top: auto;
}

/* ── Search & Filters ── */
.search-filter-bar {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-wrapper .form-input {
  padding-left: 38px;
}

.filter-select {
  min-width: 160px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: var(--sp-lg);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: var(--font-display);
}

.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.3rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

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

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-md) var(--sp-lg);
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  animation: toastIn 0.3s ease forwards;
  font-size: 0.95rem;
}
.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--secondary); }

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--secondary); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ── Skeleton Loaders ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, #1e1e1e 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
}
.skeleton-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}
.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  margin-bottom: 8px;
}
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }

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

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg);
}
.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: var(--sp-md);
  opacity: 0.5;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--sp-sm);
}
.empty-state-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(var(--accent-rgb), 0.15); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

.anim-fade-in { animation: fadeIn 0.5s ease forwards; }
.anim-fade-in-up { animation: fadeInUp 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-fade-in-scale { animation: fadeInScale 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-slide-left { animation: slideInLeft 0.5s ease forwards; }
.anim-slide-right { animation: slideInRight 0.5s ease forwards; }
.anim-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
.anim-float { animation: floatY 3s ease-in-out infinite; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* ── Landing Page Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--sp-md);
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Landing Intro (2s entry animation) ── */
.landing-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.35), transparent 46%),
    radial-gradient(circle at 78% 72%, rgba(var(--secondary-rgb), 0.2), transparent 42%),
    #090909;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.landing-intro.hidden {
  opacity: 0;
  visibility: hidden;
}

.landing-intro-inner {
  text-align: center;
  padding: 24px;
}

.landing-intro-icon {
  display: none;
}

.landing-intro-name {
  display: inline-block;
  width: min(95vw, 760px);
  height: 242px;
  margin-bottom: 8px;
  background-image: var(--company-logo-url);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.landing-intro-name > * {
  opacity: 0;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.intro-nepali {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #cfeee0;
  animation: introWordReveal 0.9s ease both;
}

.intro-latin {
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  color: #8dc9ff;
  animation: introWordReveal 1.2s ease both;
}

.landing-intro p {
  color: #c3d6ee;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

@keyframes introWordReveal {
  0% { opacity: 0; transform: translateY(16px) scale(0.95); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes introIconFloat {
  0% { transform: translateY(10px) scale(0.92); opacity: 0; }
  50% { transform: translateY(-4px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

/* ── Landing Detail Sections ── */
.landing-band,
.landing-features,
.landing-journey {
  position: relative;
}

.landing-band {
  padding: var(--sp-2xl) 0 var(--sp-lg);
}

.landing-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-md);
}

.landing-band-item {
  background: linear-gradient(155deg, rgba(25, 25, 25, 0.95), rgba(11, 11, 11, 0.9));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  text-align: center;
}

.landing-band-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.landing-band-item span {
  color: #bebebe;
  font-size: 0.88rem;
}

.landing-features {
  padding: var(--sp-xl) 0;
}

.landing-section-head {
  max-width: 760px;
  margin: 0 auto var(--sp-xl);
  text-align: center;
}

.landing-section-head p {
  color: #b8b8b8;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-md);
}

.landing-feature-card {
  background: linear-gradient(165deg, rgba(18, 18, 18, 0.95), rgba(12, 12, 12, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  min-height: 180px;
}

.landing-feature-card h3 {
  margin-bottom: 6px;
  color: #f9e8c2;
}

.landing-feature-card p {
  color: #c3c3c3;
}

.landing-journey {
  padding: var(--sp-xl) 0 var(--sp-2xl);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-md);
}

.landing-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
}

.landing-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

/* ── Auth Panels ── */
.auth-section {
  padding: var(--sp-3xl) var(--sp-lg);
  max-width: 480px;
  margin: 0 auto;
  display: none;
  animation: fadeInUp 0.4s ease forwards;
}
.auth-section.active {
  display: block;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.auth-tab {
  flex: 1;
  padding: var(--sp-md);
  text-align: center;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.auth-tab.active {
  background: var(--accent);
  color: var(--bg-primary);
}
.auth-tab:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.auth-form-panel {
  display: none;
}
.auth-form-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-back-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: var(--sp-lg);
  transition: color var(--transition-fast);
}
.auth-back-btn:hover {
  color: var(--accent);
}

/* ── Footer ── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg);
}
.footer-brand {
  display: inline-block;
  width: 380px;
  height: 126px;
  margin-bottom: var(--sp-xs);
  background-image: var(--company-logo-url);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.footer-brand > * {
  opacity: 0;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-admin-link {
  display: inline-block;
  margin-top: var(--sp-sm);
  color: rgba(0, 0, 0, 0);
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-admin-link:hover {
  color: var(--accent);
}

/* ── Profile Page ── */
.profile-hero {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  animation: fadeInUp 0.5s ease forwards;
}

.profile-avatar-large {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.2);
  margin-bottom: var(--sp-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.profile-avatar-large:hover {
  transform: scale(1.05);
  box-shadow: 0 0 48px rgba(var(--accent-rgb), 0.35);
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--sp-sm);
}

.profile-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: var(--sp-md);
}

.profile-detail-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.profile-bio {
  max-width: 600px;
  margin: var(--sp-lg) auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-md);
  transition: color var(--transition-fast);
}
.back-btn:hover {
  color: var(--accent);
}

/* Review section */
.review-section {
  max-width: 700px;
  margin: var(--sp-xl) auto;
  padding: 0 var(--sp-lg);
}

.review-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.review-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.review-author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-comment {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Page wrapper (with navbar offset) ── */
.page-content {
  padding-top: var(--navbar-offset);
}

/* ── Static About/Contact Pages ── */
.static-page {
  min-height: calc(100vh - var(--navbar-offset));
  padding: calc(var(--sp-3xl) + 28px) 0 var(--sp-2xl);
}

.static-hero {
  max-width: 820px;
  margin: 0 auto var(--sp-2xl);
  text-align: center;
}

.static-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-sm);
}

.static-hero p {
  font-size: 1rem;
  color: #b8b8b8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-lg);
}

.contact-spotlight-wrap {
  margin-bottom: var(--sp-lg);
}

.contact-spotlight {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.22), transparent 34%),
    radial-gradient(circle at 86% 80%, rgba(var(--secondary-rgb), 0.14), transparent 42%),
    linear-gradient(160deg, rgba(25, 25, 25, 0.96), rgba(11, 13, 16, 0.98));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.contact-main-grid {
  margin-top: 0;
}

.contact-main-grid .info-card {
  background: linear-gradient(164deg, rgba(24, 24, 27, 0.97), rgba(12, 12, 14, 0.95));
}

.contact-hero-enhanced p {
  max-width: 860px;
  margin: 0 auto;
}

.contact-grid-enhanced {
  align-items: stretch;
}

.developer-profile {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--sp-md);
  align-items: center;
}

.developer-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--accent-rgb), 0.5);
}

.developer-role,
.contact-user-role {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: 4px;
}

.developer-name {
  font-size: 1.45rem;
}

.developer-bio {
  color: #c4c4c4;
}

.contact-user-profile {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-md);
  align-items: center;
}

.contact-user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
}

.contact-user-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #c7c7c7;
  font-size: 0.9rem;
}

.contact-user-empty h3 {
  margin-bottom: 8px;
}

.contact-user-empty p {
  margin-bottom: 14px;
}

.chat-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(var(--secondary-rgb), 0.34);
}

.chat-rule {
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.contact-chat-list {
  border: 1px solid rgba(var(--secondary-rgb), 0.28);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  min-height: 220px;
  max-height: 340px;
  overflow: auto;
  background: linear-gradient(150deg, rgba(9, 17, 30, 0.55), rgba(10, 10, 10, 0.5));
}

.contact-thread-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-thread-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.ticket-topic {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ticket-status {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: capitalize;
}

.ticket-status-open,
.ticket-status-not_replied {
  background: rgba(245, 158, 11, 0.18);
  color: #f7c56e;
}

.ticket-status-replied {
  background: rgba(59, 130, 246, 0.18);
  color: #8cc4ff;
}

.ticket-status-closed {
  background: rgba(34, 197, 94, 0.16);
  color: #7ddfa3;
}

[data-theme="light"] .navbar-right .nav-links.is-open {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.12);
}

.contact-thread-item:last-child {
  margin-bottom: 0;
}

.chat-bubble {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.chat-bubble span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 6px;
}

.chat-bubble-author {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0.85;
}

.chat-bubble-user {
  align-self: flex-end;
  background: rgba(var(--accent-rgb), 0.13);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.chat-bubble-dev {
  align-self: flex-start;
  background: rgba(var(--secondary-rgb), 0.12);
  border-color: rgba(var(--secondary-rgb), 0.35);
}

.contact-chat-form {
  margin-top: 12px;
}

.contact-chat-topic-label {
  display: block;
  font-size: 0.8rem;
  color: #bbbbbb;
  margin-bottom: 6px;
}

.contact-chat-topic {
  margin-bottom: 10px;
}

.contact-chat-form.is-disabled {
  opacity: 0.7;
}

.contact-chat-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.contact-chat-helper {
  color: #cdcdcd;
  font-size: 0.84rem;
}

.contact-chat-empty {
  color: #c2c2c2;
  font-size: 0.9rem;
}

.contact-thread-updated {
  font-size: 0.74rem;
  color: #a7a7a7;
  text-align: right;
}

.chat-read-indicator {
  margin-top: 4px;
  font-size: 0.7rem;
  opacity: 0.75;
}

.info-card {
  background: linear-gradient(160deg, rgba(31, 31, 31, 0.95), rgba(15, 15, 15, 0.95));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin-bottom: var(--sp-sm);
}

.info-list {
  display: grid;
  gap: var(--sp-sm);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}

.info-row span:first-child {
  color: var(--text-muted);
}

.founder-slider {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
}

.founder-slides {
  display: block;
  transition: transform 0.35s ease;
}

.founder-slide {
  width: 100%;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-lg);
  align-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(var(--accent-rgb), 0.2), transparent 34%),
    linear-gradient(145deg, rgba(21, 21, 21, 0.98), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
}

.founder-single {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.founder-photo {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(var(--accent-rgb), 0.35);
}

.founder-role {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.founder-name {
  margin: 6px 0;
  font-size: 1.8rem;
}

.founder-title {
  color: #c2c2c2;
  margin-bottom: var(--sp-sm);
}

.slider-controls {
  display: none;
}

.slider-btn {
  display: none;
}

.slider-dot {
  display: none;
}

.slider-dot.active {
  display: none;
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .workers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1rem; }

  .landing-band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-feature-grid,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .search-filter-bar {
    flex-direction: column;
  }
  .search-input-wrapper {
    width: 100%;
  }
  .filter-select {
    width: 100%;
  }

  .navbar-right .nav-links {
    display: none;
  }

  .navbar-right .nav-links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(14, 14, 14, 0.97);
    box-shadow: var(--shadow-lift);
    z-index: 1100;
  }

  .navbar-right .nav-links.is-open .nav-link {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
  }

  .hamburger {
    display: flex;
  }

  .modal {
    max-width: 100%;
    border-radius: var(--radius-sm);
    max-height: 100vh;
    min-height: 100vh;
  }
  .modal-overlay {
    padding: 0;
    align-items: flex-start;
  }

  /* Section tabs: horizontal scroll on mobile */
  .section-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .section-tabs::-webkit-scrollbar { display: none; }
  .section-tab {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: var(--sp-sm) var(--sp-md);
  }

  /* Assignment card header: stack on small screens */
  .assignment-card-header {
    flex-direction: column;
    gap: var(--sp-sm);
  }

  /* Time estimates: stack */
  .time-estimates {
    flex-direction: column;
    gap: var(--sp-sm);
  }
}

@media (max-width: 600px) {
  .workers-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-details {
    flex-direction: column;
    gap: var(--sp-sm);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .developer-profile,
  .contact-user-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .developer-avatar,
  .contact-user-avatar {
    margin: 0 auto;
  }

  .contact-user-grid {
    grid-template-columns: 1fr;
  }

  .contact-chat-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-chat-actions .btn {
    width: 100%;
  }

  .founder-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-photo {
    width: min(220px, 100%);
    margin: 0 auto;
  }

  /* Assignment card tighter padding on small phones */
  .assignment-card {
    padding: var(--sp-md);
  }
  .assignment-actions {
    flex-direction: column;
  }
  .assignment-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Notification banner: stack */
  .notification-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Worker Profile Card (worker dashboard) ── */
.my-profile-card {
  display: flex;
  gap: var(--sp-xl);
  align-items: flex-start;
  flex-wrap: wrap;
}

.my-profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}
.my-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.2);
  transition: transform var(--transition-normal);
}
.my-profile-avatar:hover {
  transform: scale(1.05);
}

.my-profile-info {
  flex: 1;
  min-width: 250px;
}
.my-profile-info h2 {
  margin-bottom: var(--sp-xs);
}
.my-profile-info .profile-meta {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--sp-sm);
}
.my-profile-info .profile-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.my-profile-bio {
  margin-top: var(--sp-md);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Reviews List (worker dashboard) ── */
.reviews-list {
  margin-top: var(--sp-lg);
}

/* ── Avatar Placeholder SVG ── */
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bg-primary);
  text-transform: uppercase;
  user-select: none;
}

/* ── Two-column form layout ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   LIGHT MODE VARIABLES
   ════════════════════════════════════════ */
[data-theme="light"] {
  --bg-primary: #F5F4EF;
  --bg-surface: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-muted: #606060;
  --border: #E0DDD6;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-amber-glow: 0 0 24px rgba(var(--accent-rgb), 0.12);
  --shadow-lift: 0 8px 30px rgba(0,0,0,0.10);
  --company-logo-url: url('../assets/logo/Logo.png');
}
[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}
[data-theme="light"] body::before { opacity: 0; }
[data-theme="light"] .navbar {
  background: rgba(245, 244, 239, 0.88);
}
[data-theme="light"] .contact-spotlight {
  background:
    radial-gradient(circle at 14% 20%, rgba(var(--accent-rgb), 0.18), transparent 36%),
    radial-gradient(circle at 86% 84%, rgba(var(--secondary-rgb), 0.14), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(242, 245, 249, 0.98));
  border-color: rgba(var(--accent-rgb), 0.28);
}
[data-theme="light"] .contact-main-grid .info-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.98));
}
[data-theme="light"] .founder-slide {
  background:
    radial-gradient(circle at 18% 16%, rgba(var(--accent-rgb), 0.14), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.98));
  border-color: rgba(var(--accent-rgb), 0.24);
}
[data-theme="light"] .contact-chat-list {
  background: linear-gradient(150deg, rgba(236, 245, 255, 0.7), rgba(255, 255, 255, 0.8));
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: var(--bg-surface);
  color: var(--text-primary);
}
[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23606060' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
[data-theme="light"] .modal-close:hover {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .skeleton,
[data-theme="light"] .skeleton-circle,
[data-theme="light"] .skeleton-line {
  background: linear-gradient(90deg, #e8e6e0 25%, #d8d6d0 50%, #e8e6e0 75%);
  background-size: 200% 100%;
}
[data-theme="light"] .auth-brand-panel {
  background: linear-gradient(155deg, #07162a 0%, #0f2f4a 45%, #071726 100%);
}

/* ════════════════════════════════════════
   PASSWORD SHOW / HIDE TOGGLE
   ════════════════════════════════════════ */
.password-wrapper {
  position: relative;
}
.password-wrapper .form-input {
  padding-right: 48px;
}
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  line-height: 0;
}
.pwd-toggle:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}
.pwd-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ════════════════════════════════════════
   THEME TOGGLE SWITCH
   ════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9997;
  width: 64px;
  height: 29px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(10,26,42,0.25));
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 3px 6px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
}
.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}
.theme-toggle-icon {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-normal), opacity var(--transition-normal);
}
.theme-toggle-knob {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #f4f7ff 0%, #d9e2f1 70%);
  box-shadow: 0 8px 18px rgba(5, 10, 20, 0.35), inset 0 1px 2px rgba(255,255,255,0.8);
  transform: translate(31px, -50%);
  transition: transform 0.3s ease, background var(--transition-normal);
  z-index: 3;
}
html[data-theme="light"] .theme-toggle-knob {
  transform: translate(0, -50%);
  background: radial-gradient(circle, #ffffff 0%, #e6edf7 70%);
}
html[data-theme="light"] .theme-toggle-icon.theme-toggle-sun {
  color: #2b6fb3;
  opacity: 1;
}
html:not([data-theme="light"]) .theme-toggle-icon.theme-toggle-moon {
  color: #9bd8ff;
  opacity: 1;
}
.theme-toggle:hover {
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.25);
}

.theme-toggle.theme-toggle--compact {
  position: relative;
  bottom: auto;
  right: auto;
  width: 86px;
  height: 40px;
  padding: 4px 8px;
  gap: 26px;
  box-shadow: none;
}
.theme-toggle.theme-toggle--compact::before {
  inset: 4px;
}
.theme-toggle.theme-toggle--compact .theme-toggle-knob {
  width: 26px;
  height: 26px;
  transform: translate(38px, -50%);
}
html[data-theme="light"] .theme-toggle.theme-toggle--compact .theme-toggle-knob {
  transform: translate(0, -50%);
}
.theme-toggle.theme-toggle--compact .theme-toggle-icon {
  font-size: 0.9rem;
}

.intro-active .theme-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ════════════════════════════════════════
   PAGE TRANSITION
   ════════════════════════════════════════ */
@keyframes pageFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.page-fade-out {
  animation: pageFadeOut 0.28s ease forwards;
}

/* ════════════════════════════════════════
   AUTH OVERLAY — FULL-SCREEN SPLIT PANEL
   (overrides the old .auth-section styles)
   ════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.auth-active .navbar,
.auth-active .theme-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.auth-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Brand panel (left) ── */
.auth-brand-panel {
  width: 42%;
  min-height: 100vh;
  background: linear-gradient(155deg, #1A0800 0%, #2D1600 45%, #1E0C00 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 44px;
  transform: translateX(-60px);
  opacity: 0;
  transition: transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.38s ease;
  flex-shrink: 0;
}
.auth-overlay.active .auth-brand-panel {
  transform: translateX(0);
  opacity: 1;
}

/* Decorative blobs */
.auth-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-blob-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  top: -90px; left: -90px;
  animation: blobFloat1 11s ease-in-out infinite alternate;
}
.auth-blob-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.11), transparent 70%);
  bottom: -60px; right: -60px;
  animation: blobFloat2 14s ease-in-out infinite alternate;
}
.auth-mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
}
@keyframes blobFloat1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(28px,18px) scale(1.12); }
}
@keyframes blobFloat2 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-18px,-26px) scale(1.16); }
}

.auth-brand-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 320px;
  width: 100%;
}
.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 44px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-brand-icon-wrap {
  display: none;
}

.auth-brand-logo .brand-text {
  width: 460px;
  height: 150px;
}

@media (max-width: 600px) {
  :root {
    --navbar-offset: 102px;
  }

  .brand-text {
    width: 248px;
    height: 78px;
  }

  .brand-text-hero {
    width: min(92vw, 360px);
    height: 116px;
  }

  .footer-brand {
    width: 280px;
    height: 92px;
  }

  .landing-intro-name {
    width: min(96vw, 500px);
    height: 162px;
  }

  .auth-brand-logo .brand-text {
    width: min(92vw, 340px);
    height: 110px;
  }
}
.auth-brand-heading {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.auth-brand-sub {
  color: rgba(255,255,255,0.52);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 34px;
}
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,0.78);
  font-size: 0.93rem;
}
.auth-feature-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.18);
  border: 1.5px solid rgba(var(--accent-rgb), 0.7);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Auth back button (lives in brand panel) ── */
.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.48);
  cursor: pointer;
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 8px 16px;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.auth-back-btn:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.07);
}

/* ── Form side (right) ── */
.auth-form-side {
  flex: 1;
  background: var(--bg-primary);
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 52px 52px 52px;
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) 0.07s,
              opacity 0.38s ease 0.07s;
}
.auth-overlay.active .auth-form-side {
  transform: translateX(0);
  opacity: 1;
}
.auth-form-inner {
  width: 100%;
  max-width: 400px;
  padding-top: 20px;
}

/* ── Auth tabs (pill style, overrides old border style) ── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  width: fit-content;
  overflow: visible;
}
.auth-tab {
  flex: none;
  padding: 8px 32px;
  text-align: center;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
}
.auth-tab.active {
  background: var(--accent);
  color: #0D0D0D;
  box-shadow: 0 2px 14px rgba(var(--accent-rgb), 0.35);
}
.auth-tab:hover:not(.active) {
  color: var(--text-primary);
  background: none;
}

/* ── Auth form panel animation (overrides old fadeIn) ── */
.auth-form-panel.active {
  display: block;
  animation: authPanelIn 0.32s ease forwards;
}
@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile: stack vertically ── */
@media (max-width: 768px) {
  .auth-split {
    flex-direction: column;
  }
  .auth-brand-panel {
    width: 100%;
    min-height: auto;
    padding: 32px 24px 28px;
  }
  .auth-brand-heading { font-size: 1.9rem; }
  .auth-features { display: none; }
  .auth-brand-sub { margin-bottom: 20px; }
  .auth-form-side {
    padding: 32px 24px 48px;
    align-items: flex-start;
  }
  .auth-form-inner { padding-top: 0; }
}

/* ════════════════════════════════════════
   ASSIGNMENT SYSTEM STYLES
   ════════════════════════════════════════ */

/* Assignment Cards */
.assignment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
  transition: all var(--transition-normal);
}
.assignment-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-card);
}
.assignment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.assignment-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.assignment-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--sp-md);
}
.assignment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
}
.assignment-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.assignment-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-pending { background: rgba(var(--secondary-rgb), 0.12); color: var(--secondary); }
.status-accepted,
.status-not-started { background: rgba(59,130,246,0.12); color: #3B82F6; }
.status-ongoing { background: rgba(168,85,247,0.12); color: #A855F7; }
.status-completed { background: rgba(34,197,94,0.12); color: #22C55E; }
.status-confirmed { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.status-rejected { background: rgba(239,68,68,0.12); color: #EF4444; }
.status-cancelled { background: rgba(156,163,175,0.12); color: #9CA3AF; }

/* Notification Banner */
.notification-banner {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.notification-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.notification-banner-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.notification-banner-text strong {
  color: var(--accent);
}

/* Time Estimate Display */
.time-estimates {
  display: flex;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-md);
}
.time-estimate-item {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.time-estimate-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.time-estimate-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Rejection Reason */
.rejection-reason {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-sm);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.85rem;
  color: var(--danger);
  margin-bottom: var(--sp-md);
}

/* Tabs for sections */
.section-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-lg);
}
.section-tab {
  padding: var(--sp-sm) var(--sp-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  position: relative;
  transition: color var(--transition-fast);
}
.section-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}
.section-tab:hover { color: var(--text-primary); }
.section-tab.active { color: var(--accent); }
.section-tab.active::after { transform: scaleX(1); }
.section-tab .tab-count {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 6px;
}
.section-tab .tab-count.alert {
  background: rgba(239,68,68,0.12);
  color: var(--danger);
}

/* Worker name link in cards */
.assignment-worker-info {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}
.assignment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
}

/* Time proposal form */
.time-proposal-form {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}
.time-proposal-form .form-input {
  max-width: 200px;
}

/* Light mode overrides for assignments */
[data-theme="light"] .assignment-card {
  background: var(--bg-surface);
  border-color: var(--border);
}
[data-theme="light"] .time-estimate-item {
  background: var(--bg-primary);
  border-color: var(--border);
}

/* ═══════════════════════════════════════
   PAYMENT SYSTEM STYLES
   ═══════════════════════════════════════ */

/* Payment Status Badges */
.payment-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: var(--sp-xs) 0;
}
.payment-pending {
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary);
  border: 1px solid rgba(var(--secondary-rgb), 0.25);
}
.payment-verified {
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.payment-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Payment Method Selection Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.payment-method-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-lg) var(--sp-md);
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s ease;
}
.payment-method-option:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}
.payment-method-option.selected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.payment-method-icon {
  font-size: 2rem;
}
.payment-method-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Button success override */
.btn-success {
  background: var(--success);
  color: #0D0D0D;
  font-weight: 600;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-success:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

/* Light mode payment overrides */
[data-theme="light"] .payment-pending {
  background: rgba(250, 204, 21, 0.08);
}
[data-theme="light"] .payment-verified {
  background: rgba(34, 197, 94, 0.08);
}
[data-theme="light"] .payment-rejected {
  background: rgba(239, 68, 68, 0.08);
}
