/* =========================================================
   Freelance Gig Platform - Modern Design System
   Modern Design System & Responsive Styles (User System & Admin Integration)
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);

  /* Settlement Cycle Colors */
  --daily-color: #f97316;
  --daily-bg: #fff7ed;
  --daily-border: #fed7aa;
  --daily-glow: rgba(249, 115, 22, 0.2);

  --weekly-color: #0284c7;
  --weekly-bg: #f0f9ff;
  --weekly-border: #bae6fd;
  --weekly-glow: rgba(2, 132, 199, 0.2);

  --monthly-color: #7c3aed;
  --monthly-bg: #f5f3ff;
  --monthly-border: #ddd6fe;
  --monthly-glow: rgba(124, 58, 237, 0.2);

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: 'Inter', 'Noto Sans Khmer', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[lang="km"], body.lang-km {
  font-family: 'Noto Sans Khmer', 'Inter', sans-serif;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for mobile nav */
}

/* Background ambient glow effect */
.bg-decor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: radial-gradient(circle at 50% -20%, #dbeafe 0%, rgba(241, 245, 249, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 20px;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-info h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #0f172a, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  font-size: 11px;
  color: var(--text-muted);
}

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

/* User Login Status Bar */
.user-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.user-avatar-tag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.user-balance-pill {
  color: #16a34a;
  font-weight: 700;
  font-size: 12px;
}

.btn-header {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

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

.btn-header-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-header-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  transform: translateY(-1px);
}

.btn-header-admin {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-header-admin:hover {
  background: #0f172a;
  color: #fff;
}

/* Language Switcher Component */
.lang-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 10px;
  font-size: 13px;
  transition: var(--transition);
  cursor: pointer;
}

.lang-switcher-wrap:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.lang-globe-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.lang-select {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  padding-right: 4px;
}

/* User Status Bar Component */
.user-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.user-status-box:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-avatar-tag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-balance-pill {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
}

/* =========================================================
   Hero Banner Section
   ========================================================= */
.hero-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.25);
  margin-bottom: 24px;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-banner h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-banner p {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Settlement Feature Cards */
.settle-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
}

.highlight-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.highlight-card.daily { border-left: 3px solid var(--daily-color); }
.highlight-card.weekly { border-left: 3px solid var(--weekly-color); }
.highlight-card.monthly { border-left: 3px solid var(--monthly-color); }

.hl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hl-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.hl-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.highlight-card.daily .hl-badge { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.highlight-card.weekly .hl-badge { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }
.highlight-card.monthly .hl-badge { background: rgba(124, 58, 237, 0.2); color: #c084fc; }

.hl-desc {
  font-size: 12px;
  color: #94a3b8;
}

/* =========================================================
   Statistics Bar
   ========================================================= */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.orange { background: #ffedd5; color: #c2410c; }
.stat-icon.purple { background: #ede9fe; color: #6d28d9; }
.stat-icon.green { background: #d1fae5; color: #047857; }

.stat-data h4 {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-data .stat-num {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-top: 2px;
}

/* =========================================================
   Main Navigation Tabs
   ========================================================= */
.nav-tabs {
  display: flex;
  gap: 8px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

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

.tab-btn .badge-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* =========================================================
   Search & Filter Section
   ========================================================= */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-input-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  font-size: 16px;
}

.search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: #f8fafc;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.category-select {
  padding: 11px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

/* Settlement Pills Filter */
.settle-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

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

.pill-btn {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  background: #f1f5f9;
}

.pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.pill-btn.daily.active {
  background: var(--daily-color);
  border-color: var(--daily-color);
  color: #fff;
  box-shadow: 0 2px 8px var(--daily-glow);
}

.pill-btn.weekly.active {
  background: var(--weekly-color);
  border-color: var(--weekly-color);
  color: #fff;
  box-shadow: 0 2px 8px var(--weekly-glow);
}

.pill-btn.monthly.active {
  background: var(--monthly-color);
  border-color: var(--monthly-color);
  color: #fff;
  box-shadow: 0 2px 8px var(--monthly-glow);
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  outline: none;
}

/* =========================================================
   Task Grid & Cards
   ========================================================= */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

/* Pinned Task Highlight */
.task-card.is-pinned {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.task-card.is-pinned::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.task-card.is-pinned:hover {
  border-color: #d97706;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.22);
}

.pinned-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #fef3c7, #fee2e2);
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid #fde68a;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.task-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* Settlement Badge */
.settle-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.settle-badge.daily {
  background: var(--daily-bg);
  color: var(--daily-color);
  border: 1px solid var(--daily-border);
}

.settle-badge.weekly {
  background: var(--weekly-bg);
  color: var(--weekly-color);
  border: 1px solid var(--weekly-border);
}

.settle-badge.monthly {
  background: var(--monthly-bg);
  color: var(--monthly-color);
  border: 1px solid var(--monthly-border);
}

/* Compensation Highlight */
.task-salary-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.salary-symbol {
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
}

.salary-amount {
  font-size: 26px;
  font-weight: 800;
  color: #dc2626;
  line-height: 1;
}

.salary-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.task-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-item {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Progress & Publisher Info */
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.meta-publisher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-quota {
  font-weight: 600;
}

.quota-highlight {
  color: var(--primary);
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn-detail {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.btn-detail:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-accept {
  flex: 1.5;
  padding: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-accept:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.btn-accept.disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================================================
   My Orders View
   ========================================================= */
.orders-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.order-id-wrap {
  font-size: 12px;
  color: var(--text-subtle);
}

.order-status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.order-status-badge.in_progress {
  background: #fef3c7;
  color: #b45309;
}

.order-status-badge.submitted {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-badge.settled {
  background: #d1fae5;
  color: #047857;
}

.order-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-main-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.order-meta-text {
  font-size: 13px;
  color: var(--text-muted);
}

.order-salary-box {
  text-align: right;
}

.order-salary-val {
  font-size: 22px;
  font-weight: 800;
  color: #dc2626;
}

.order-salary-cycle {
  font-size: 12px;
  color: var(--text-muted);
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
}

.order-proof-note {
  color: var(--text-muted);
}

.btn-submit-proof {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-proof:hover {
  background: var(--primary-hover);
}

/* =========================================================
   Post Gig Form View
   ========================================================= */
.publish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-title-bar {
  margin-bottom: 24px;
}

.form-title-bar h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-title-bar p {
  font-size: 13px;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.col-full {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: #f8fafc;
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.btn-publish-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-publish-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

/* =========================================================
   Earnings Wallet View
   ========================================================= */
.wallet-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.wallet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.wallet-head span {
  font-size: 13px;
  color: #94a3b8;
}

.wallet-total-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #38bdf8;
  margin-bottom: 20px;
}

.wallet-sub-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.wallet-sub-col h5 {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 4px;
}

.wallet-sub-col p {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* Settlement Rules Card */
.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.rule-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 8px;
  flex-shrink: 0;
}

/* =========================================================
   Modal System
   ========================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-subtle);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: var(--transition);
}

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

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Support Contact Styles */
.contact-item-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.btn-copy {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--primary);
  color: #ffffff;
}

/* =========================================================
   User Auth Tabs
   ========================================================= */
.auth-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 16px;
}

.auth-tab-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

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

.quick-accounts-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

.quick-accounts-box h5 {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quick-acc-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-quick-fill {
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-fill:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================================
   Compliance & Safety Notice
   ========================================================= */
.security-alert {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.security-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.security-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 4px;
}

.security-text p {
  font-size: 12px;
  color: #3b82f6;
  line-height: 1.6;
}

/* =========================================================
   Mobile Bottom Navigation
   ========================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 99;
  justify-content: space-around;
  align-items: center;
}

.nav-item-m {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  flex: 1;
  height: 100%;
}

.nav-item-m.active {
  color: var(--primary);
}

.nav-icon-m {
  font-size: 18px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 768px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .settle-highlights {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-column: 1fr;
    grid-template-columns: 1fr;
  }
  .form-group.col-full {
    grid-column: span 1;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .nav-tabs {
    display: none; /* In mobile, bottom nav replaces it */
  }
  .hero-banner h2 {
    font-size: 20px;
  }
  .search-row {
    flex-direction: column;
  }
}

/* =========================================================
   Contact Form Fields & Direct Clickable Links
   ========================================================= */
.contact-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 680px) {
  .contact-tri-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.contact-direct-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.contact-btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 136, 204, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.contact-btn-tg:hover {
  background: linear-gradient(135deg, #0099e6 0%, #0088cc 100%);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  transform: translateY(-1px);
}

.contact-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.contact-btn-wa:hover {
  background: linear-gradient(135deg, #2ae06c 0%, #1fa855 100%);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.contact-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
}

/* =========================================================
   Order Contacts Panel & 3-Card Grid
   ========================================================= */
.order-contacts-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.order-contacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.order-contacts-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.badge-unlocked-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.order-contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .order-contacts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.order-contact-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.order-contact-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.order-contact-item.item-phone {
  border-top: 4px solid #2563eb;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.order-contact-item.item-tg {
  border-top: 4px solid #0088cc;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.order-contact-item.item-wa {
  border-top: 4px solid #25D366;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.order-contact-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-icon-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-right: 6px;
}
.contact-icon-bubble.phone-bubble { background: #dbeafe; }
.contact-icon-bubble.tg-bubble { background: #e0f2fe; }
.contact-icon-bubble.wa-bubble { background: #dcfce7; }

.order-contact-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
}
.order-contact-type.phone-type { color: #1d4ed8; }
.order-contact-type.tg-type { color: #0284c7; }
.order-contact-type.wa-type { color: #15803d; }

.order-contact-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  word-break: break-all;
  min-height: 22px;
  display: flex;
  align-items: center;
}

.order-contact-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: -4px;
  margin-bottom: 2px;
}

.order-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  margin-top: 4px;
  text-align: center;
}

.order-contact-btn.phone {
  background: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.order-contact-btn.phone:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.order-contact-btn.tg {
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
}
.order-contact-btn.tg:hover {
  background: linear-gradient(135deg, #0099e6 0%, #0088cc 100%);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.45);
  transform: translateY(-1px);
}

.order-contact-btn.wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}
.order-contact-btn.wa:hover {
  background: linear-gradient(135deg, #2ae06c 0%, #1fa855 100%);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

.order-contact-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #cbd5e1;
  color: #64748b !important;
  box-shadow: none;
}

/* =========================================================
   Earnings Leaderboard (Top Earners) Styles
   ========================================================= */
.leaderboard-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.leaderboard-hero::before {
  content: '🏆';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 110px;
  opacity: 0.12;
  pointer-events: none;
}

.leaderboard-hero-left h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-hero-left p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  max-width: 520px;
  line-height: 1.5;
}

.leaderboard-period-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.leaderboard-period-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-period-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Podium (Top 3) */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  align-items: end;
  gap: 16px;
  margin: 24px 0 28px 0;
}

@media (max-width: 768px) {
  .podium-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.podium-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.podium-card.rank-1 {
  order: 2;
  border-color: #eab308;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 16px 36px -8px rgba(234, 179, 8, 0.35);
  padding: 30px 20px;
}

.podium-card.rank-2 {
  order: 1;
  border-color: #94a3b8;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.podium-card.rank-3 {
  order: 3;
  border-color: #f97316;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

@media (max-width: 768px) {
  .podium-card.rank-1 { order: 1; }
  .podium-card.rank-2 { order: 2; }
  .podium-card.rank-3 { order: 3; }
}

.podium-crown {
  font-size: 32px;
  margin-bottom: -10px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.podium-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.podium-medal-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 20px;
  background: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.podium-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 2px 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-city {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.podium-skill-tag {
  font-size: 11px;
  background: #eff6ff;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.podium-salary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  width: 100%;
  margin-bottom: 12px;
}

.podium-salary-val {
  font-size: 22px;
  font-weight: 900;
  color: #10b981;
}

.podium-card.rank-1 .podium-salary-val {
  font-size: 26px;
  color: #059669;
}

.podium-salary-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.podium-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #0088cc;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.podium-tg-btn:hover {
  background: #0077b5;
  transform: translateY(-1px);
}

/* Ranks 4 to 10 Table */
.leaderboard-list-wrap {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.leaderboard-list-head {
  display: grid;
  grid-template-columns: 60px 1fr 130px 120px 110px;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .leaderboard-list-head {
    display: none;
  }
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr 130px 120px 110px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

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

.leaderboard-row:hover {
  background: #f8fafc;
}

@media (max-width: 768px) {
  .leaderboard-row {
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    padding: 12px 14px;
  }
  .leaderboard-col-city {
    display: none;
  }
  .leaderboard-col-gigs {
    display: none;
  }
}

.rank-badge-num {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
}

.leaderboard-worker-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-avatar-small {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leaderboard-worker-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.leaderboard-worker-skill {
  font-size: 12px;
  color: #64748b;
}

.leaderboard-col-salary {
  font-size: 15px;
  font-weight: 800;
  color: #10b981;
}

/* My Standing Banner */
.leaderboard-my-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Spotlight banner on view-hall */
.leaderboard-spotlight-bar {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.leaderboard-spotlight-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

/* =========================================================
   Universal Pagination Component
   ========================================================= */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 36px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

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

.pagination-size-select:focus {
  border-color: var(--primary);
}

@media (max-width: 640px) {
  .pagination-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================================
   Employer Hub Tabs & Published Gigs Management Styles
   ========================================================= */
.employer-hub-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
}

.emp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.emp-tab-btn:hover {
  background: #f8fafc;
  color: var(--text-main);
}

.emp-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.emp-tab-btn .badge-pill {
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

.emp-gig-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emp-gig-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.emp-gig-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.emp-gig-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.emp-gig-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.emp-gig-quota-box {
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.emp-quota-bar-wrap {
  flex: 1;
  min-width: 140px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.emp-quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.emp-gig-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.btn-edit-gig {
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-edit-gig:hover {
  background: #1d4ed8;
}

.btn-delete-gig {
  padding: 8px 14px;
  background: #fff;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete-gig:hover {
  background: #fef2f2;
}

/* =========================================================
   Standalone Job Detail Page Styles (.task-detail-page)
   ========================================================= */

.detail-page-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 48px;
}

.detail-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.detail-breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.detail-breadcrumbs a:hover {
  text-decoration: underline;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-back-link:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.detail-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.detail-main-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.detail-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-title-h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 20px;
}

.detail-salary-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.detail-salary-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-salary-label {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-salary-val {
  font-size: 32px;
  font-weight: 800;
  color: #059669;
  line-height: 1;
}

.detail-salary-val small {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.detail-salary-right {
  text-align: right;
}

.detail-payout-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #86efac;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
}

.detail-block {
  margin-bottom: 26px;
}

.detail-block-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-block-p {
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  white-space: pre-line;
}

.detail-sidebar-box {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-apply-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.btn-detail-apply {
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  text-decoration: none;
}

.btn-detail-apply:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.btn-detail-apply.disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-share-link {
  width: 100%;
  padding: 11px 16px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-share-link:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.url-copy-badge {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 11px;
  color: #64748b;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 860px) {
  .detail-layout-grid {
    grid-template-columns: 1fr;
  }
  .detail-sidebar-box {
    position: static;
  }
  .detail-title-h1 {
    font-size: 20px;
  }
  .detail-main-card {
    padding: 20px;
  }
  .detail-salary-val {
    font-size: 28px;
  }
}

/* =========================================================
   Image Upload & Gallery Preview System
   For Job Description & Worker Requirements
   ========================================================= */
.image-upload-zone {
  margin-top: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  transition: var(--transition);
}

.image-upload-zone:hover {
  border-color: #3b82f6;
  background: #f0fdf4;
}

.image-upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-upload-photos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-upload-photos:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.upload-tip-text {
  font-size: 11.5px;
  color: #64748b;
}

.image-previews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-previews-grid:empty {
  margin-top: 0;
}

.image-preview-item {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-preview-item .btn-del-preview {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.image-preview-item .btn-del-preview:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.image-preview-uploading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 10px;
  color: #64748b;
  gap: 4px;
}

/* Detail Page & Modal Gallery */
.detail-images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-img-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-img-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: #93c5fd;
}

.gallery-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-img-card:hover img {
  transform: scale(1.05);
}

.gallery-zoom-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Lightbox Modal */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lightboxFadeIn 0.2s ease-out;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  cursor: default;
  animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

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

@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

