/* ============================================================
   GigWorker — Design System & Stylesheet
   ============================================================ */

/* ── Google Fonts loaded via layout ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --primary:       #6c63ff;
  --primary-dark:  #5148e0;
  --primary-light: #8b85ff;
  --accent:        #f6a623;
  --accent-dark:   #e08c0a;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;

  --bg:            #0d0d1a;
  --bg-2:          #13132a;
  --bg-3:          #1a1a35;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);

  --text:          #e2e8f0;
  --text-soft:     #94a3b8;
  --text-muted:    #64748b;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow:    0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.6);
  --shadow-glow: 0 0 30px rgba(108,99,255,.25);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --navbar-h: 70px;
  --sidebar-w: 260px;
}

[data-theme="light"] {
  --bg:            #f8fafc;
  --bg-2:          #ffffff;
  --bg-3:          #f1f5f9;
  --surface:       rgba(0,0,0,0.02);
  --surface-hover: rgba(0,0,0,0.05);
  --border:        rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.14);

  --text:          #0f172a;
  --text-soft:     #475569;
  --text-muted:    #64748b;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 10px 15px -3px rgba(0,0,0,.06), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
  --shadow-glow: 0 0 30px rgba(108,99,255,.1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm  { max-width: 560px;  margin: 0 auto; padding: 0 20px; }
.container-md  { max-width: 800px;  margin: 0 auto; padding: 0 20px; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: var(--bg);
  opacity: .96;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.brand-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: #fff;
}
.brand-name {
  background: linear-gradient(90deg, var(--text) 40%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.theme-toggle-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  margin-left: 10px;
}
.theme-toggle-btn:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }

/* Sun/Moon visibility - Show sun in dark (to switch to light), moon in light (to switch to dark) */
html[data-theme="light"] .sun-icon { display: none; }
html:not([data-theme="light"]) .moon-icon { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface-hover); }
.nav-icon { padding: 8px 12px; font-size: 1.1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── User Dropdown ─────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .875rem; font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.nav-avatar-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.avatar-img   { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-letters {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff;
}

.dropdown-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 220px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: dropIn .15s ease;
}
.dropdown-panel.open { display: block; }

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

.dropdown-header {
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.role-pill {
  font-size: .7rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: rgba(108,99,255,.2); color: var(--primary-light);
}
.drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text-soft);
  transition: background var(--transition), color var(--transition);
}
.drop-item i { width: 16px; text-align: center; }
.drop-item:hover { background: var(--surface-hover); color: var(--text); }
.drop-item.danger { color: var(--danger); }
.drop-item.danger:hover { background: rgba(239,68,68,.1); }
.drop-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  transition: all var(--transition);
  cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(108,99,255,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,99,255,.5); }
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(246,166,35,.3);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(246,166,35,.45); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: rgba(108,99,255,.1); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

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

.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .82rem; font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,.15);
  background: rgba(255,255,255,.06);
}
.form-control:invalid:not(:placeholder-shown) { border-color: var(--danger); }

select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }
select.form-control option { background-color: var(--bg-2); color: var(--text); }
[data-theme="light"] select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(0,0,0,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }

.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

/* Radio/role cards */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card input[type="radio"] { display: none; }
.role-card label {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.role-card label i { font-size: 2rem; color: var(--text-muted); transition: color var(--transition); }
.role-card label strong { font-size: .95rem; }
.role-card label small { font-size: .78rem; color: var(--text-muted); }
.role-card input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: rgba(108,99,255,.1);
}
.role-card input[type="radio"]:checked + label i { color: var(--primary-light); }

/* ── Flash Messages ─────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  font-size: .9rem; font-weight: 500;
  animation: slideDown .3s ease;
  position: relative;
}
.flash-success  { background: rgba(16,185,129,.12); border-bottom: 2px solid var(--success); color: #6ee7b7; }
.flash-error    { background: rgba(239,68,68,.12);  border-bottom: 2px solid var(--danger);  color: #fca5a5; }
.flash-warning  { background: rgba(245,158,11,.12); border-bottom: 2px solid var(--warning); color: #fcd34d; }
.flash-info     { background: rgba(59,130,246,.12); border-bottom: 2px solid var(--info);    color: #93c5fd; }
.flash-close {
  margin-left: auto; font-size: 1.2rem;
  color: inherit; opacity: .6;
  padding: 0 4px;
}
.flash-close:hover { opacity: 1; }

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card-hover:hover { transform: translateY(-3px); }
.card-glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}
.badge-primary { background: rgba(108,99,255,.2); color: var(--primary-light); }
.badge-success { background: rgba(16,185,129,.2); color: #34d399; }
.badge-danger  { background: rgba(239,68,68,.2);  color: #f87171; }
.badge-warning { background: rgba(245,158,11,.2); color: #fbbf24; }
.badge-muted   { background: var(--surface-hover); color: var(--text-soft); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-h));
  display: flex; align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(108,99,255,.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(246,166,35,.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(108,99,255,.15);
  border: 1px solid rgba(108,99,255,.3);
  font-size: .8rem; font-weight: 600; color: var(--primary-light);
  margin-bottom: 24px;
}
.hero-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-soft); margin-bottom: 36px; line-height: 1.7;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -1px;
  color: var(--text);
}
.hero-stat-lbl { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* Hero visual */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-card-stack { position: relative; width: 340px; height: 400px; }
.floating-card {
  position: absolute;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.floating-card:nth-child(1) { top: 0; right: 20px; width: 220px; animation: float1 4s ease-in-out infinite; }
.floating-card:nth-child(2) { top: 120px; left: 0; width: 200px; animation: float2 5s ease-in-out infinite; }
.floating-card:nth-child(3) { bottom: 0; right: 0; width: 230px; animation: float3 4.5s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.fc-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.fc-value { font-size: 1.3rem; font-weight: 800; margin: 4px 0; }
.fc-sub { font-size: .78rem; color: var(--text-soft); }
.fc-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--accent)); display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:#fff;margin-bottom:10px; }
.fc-stars { color: var(--accent); font-size: .8rem; margin-top: 6px; }
.fc-tag { display: inline-block; padding: 3px 8px; border-radius: var(--radius-full); background: rgba(108,99,255,.2); color: var(--primary-light); font-size: .7rem; font-weight: 600; margin-top: 6px; }

/* ── Section styles ─────────────────────────────────────────── */
section { padding: 80px 0; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary-light); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-sub { color: var(--text-soft); font-size: 1rem; max-width: 560px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .section-sub { margin: 0 auto; }

/* ── Category Grid ──────────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.cat-card:hover { border-color: var(--primary); background: rgba(108,99,255,.06); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.cat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(108,99,255,.2), rgba(246,166,35,.1));
  border: 1px solid rgba(108,99,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary-light);
  transition: all var(--transition);
}
.cat-card:hover .cat-icon { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }
.cat-name { font-weight: 700; font-size: 1rem; }
.cat-count { font-size: .8rem; color: var(--text-muted); }
.cat-arrow { margin-left: auto; color: var(--text-muted); font-size: .85rem; transition: transform var(--transition); }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--primary-light); }

/* ── Freelancer Cards ───────────────────────────────────────── */
.freelancer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.freelancer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.freelancer-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.fc-photo {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin: 0 auto 14px;
  object-fit: cover;
}
.fc-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.fc-title { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.fc-rating { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .83rem; margin-bottom: 12px; }
.fc-rating .stars { color: var(--accent); }
.fc-rate { font-size: .85rem; color: var(--text-soft); }
.fc-skills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.skill-tag { padding: 3px 8px; border-radius: var(--radius-full); background: var(--surface-hover); font-size: .7rem; color: var(--text-soft); }

/* ── How It Works ───────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute; top: 28px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: .4;
}
.step-card { text-align: center; padding: 32px 24px; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px rgba(108,99,255,.4);
}
.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: .88rem; color: var(--text-soft); line-height: 1.7; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(108,99,255,.15), rgba(246,166,35,.08));
  border: 1px solid rgba(108,99,255,.2);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,.15), transparent 70%);
  pointer-events: none;
}

/* ── Dashboard Layout ───────────────────────────────────────── */
.dash-layout { display: flex; min-height: calc(100vh - var(--navbar-h)); }
.dash-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 28px 16px;
  position: sticky; top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
}
.dash-main { flex: 1; padding: 32px; overflow: hidden; }
.dash-header { margin-bottom: 32px; }
.dash-header h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; }
.dash-header p  { color: var(--text-soft); margin-top: 4px; }

.sidebar-user {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.sidebar-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-name { font-weight: 600; font-size: .9rem; }
.sidebar-role { font-size: .75rem; color: var(--text-muted); }

.sidebar-nav-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); padding: 6px 12px; margin-top: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text-soft); font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link i { width: 18px; text-align: center; }
.sidebar-link:hover   { background: var(--surface-hover); color: var(--text); }
.sidebar-link.active  { background: rgba(108,99,255,.15); color: var(--primary-light); font-weight: 600; }
.sidebar-link.danger  { color: var(--danger); }
.sidebar-link.danger:hover { background: rgba(239,68,68,.1); }

/* ── KPI Cards ──────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative; overflow: hidden;
}
.kpi-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 12px 12px 0 0;
}
.kpi-card.kpi-purple::after { background: linear-gradient(90deg,var(--primary),var(--primary-light)); }
.kpi-card.kpi-green::after  { background: linear-gradient(90deg,var(--success),#34d399); }
.kpi-card.kpi-amber::after  { background: linear-gradient(90deg,var(--warning),var(--accent)); }
.kpi-card.kpi-red::after    { background: linear-gradient(90deg,var(--danger),#f87171); }

.kpi-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 14px;
}
.kpi-purple .kpi-icon { background: rgba(108,99,255,.15); color: var(--primary-light); }
.kpi-green  .kpi-icon { background: rgba(16,185,129,.15);  color: #34d399; }
.kpi-amber  .kpi-icon { background: rgba(245,158,11,.15);  color: #fbbf24; }
.kpi-red    .kpi-icon { background: rgba(239,68,68,.15);   color: #f87171; }

.kpi-value { font-size: 1.9rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.kpi-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ── Data Table ─────────────────────────────────────────────── */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.table-card-header h3 { font-size: 1rem; font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 12px 20px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 20px;
  font-size: .875rem; color: var(--text-soft);
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-hover); color: var(--text); }
.data-table td strong { color: var(--text); font-weight: 600; }

/* Auth pages */
.auth-page {
  min-height: calc(100vh - var(--navbar-h));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  background:
    radial-gradient(ellipse 60% 60% at 20% 40%, rgba(108,99,255,.12), transparent 55%),
    radial-gradient(ellipse 40% 50% at 80% 70%, rgba(246,166,35,.07), transparent 50%);
}
.auth-card {
  width: 100%; max-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; text-align: center; }
.auth-sub { font-size: .88rem; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: .875rem; color: var(--text-soft); }
.auth-footer a { color: var(--primary-light); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Error pages ────────────────────────────────────────────── */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 8rem; font-weight: 900; letter-spacing: -4px; line-height: 1; background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.error-msg { font-size: 1.3rem; font-weight: 600; margin: 16px 0 10px; }
.error-sub { color: var(--text-muted); margin-bottom: 32px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-tagline { font-size: .88rem; color: var(--text-muted); margin: 14px 0 20px; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text-soft);
  transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-soft); margin-bottom: 16px; }
.footer-link { display: block; font-size: .875rem; color: var(--text-muted); margin-bottom: 10px; transition: color var(--transition); }
.footer-link:hover { color: var(--text); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: var(--text-muted);
}

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-soft   { color: var(--text-soft); }
.text-primary { color: var(--primary-light); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-accent  { color: var(--accent); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.d-sm-none { display: inline; }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: static; padding: 16px; }
  .dash-main { padding: 20px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; position: absolute; top: var(--navbar-h); left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .category-grid { grid-template-columns: 1fr; }
  .freelancer-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .auth-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 24px; }
  .d-sm-none { display: none; }
  .role-cards { grid-template-columns: 1fr; }
  .data-table thead { display: none; }
  .data-table tr { display: block; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .data-table td { display: flex; justify-content: space-between; padding: 5px 0; border: none; }
  .data-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-soft); font-size: .75rem; text-transform: uppercase; }
}
