/* ============================================
   SA Solutions Services Marketplace
   Design System & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:        #0A2463;
  --primary-light:  #1B3F8B;
  --primary-dark:   #061640;
  --accent:         #FF6B35;
  --accent-light:   #FF8C5A;
  --accent-dark:    #E04A10;
  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #3B82F6;

  --bg:             #F5F7FF;
  --bg-card:        #FFFFFF;
  --bg-dark:        #0D1B3E;
  --bg-panel:       #EEF1FB;

  --text-primary:   #0D1B3E;
  --text-secondary: #4B5680;
  --text-muted:     #8B93B0;
  --text-white:     #FFFFFF;

  --border:         #D8DDF0;
  --border-focus:   #0A2463;

  --shadow-sm:   0 1px 3px rgba(10,36,99,0.08);
  --shadow-md:   0 4px 16px rgba(10,36,99,0.12);
  --shadow-lg:   0 8px 32px rgba(10,36,99,0.16);
  --shadow-xl:   0 16px 48px rgba(10,36,99,0.20);

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

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 260px;
  --header-height: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-secondary); line-height: 1.75; }

/* ── Utility Classes ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary-color { color: var(--primary); }
.fw-700 { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10,36,99,0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,36,99,0.38);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-ghost {
  background: var(--bg-panel);
  color: var(--text-primary);
}
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 7px 16px; font-size: 0.83rem; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-md); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10,36,99,0.08);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 5px; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%234B5680'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-panel); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.badge-primary { background: rgba(10,36,99,0.1); color: var(--primary); }
.badge-accent  { background: rgba(255,107,53,0.12); color: var(--accent-dark); }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: #B45309; }
.badge-danger  { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-muted   { background: var(--bg-panel); color: var(--text-muted); }

/* ── Alert ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.alert-info    { background: rgba(59,130,246,0.1);  border-left: 4px solid var(--info);    color: #1D4ED8; }
.alert-success { background: rgba(16,185,129,0.1); border-left: 4px solid var(--success); color: #065F46; }
.alert-warning { background: rgba(245,158,11,0.1); border-left: 4px solid var(--warning); color: #92400E; }
.alert-danger  { background: rgba(239,68,68,0.1);  border-left: 4px solid var(--danger);  color: #991B1B; }

/* ── Avatar ── */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm  { width: 36px;  height: 36px; }
.avatar-md  { width: 48px;  height: 48px; }
.avatar-lg  { width: 64px;  height: 64px; }
.avatar-xl  { width: 96px;  height: 96px; }
.avatar-2xl { width: 120px; height: 120px; }

/* ── Stars / Rating ── */
.stars { display: flex; gap: 2px; }
.star { color: #F59E0B; font-size: 14px; }
.star-empty { color: #D1D5DB; }

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.tag:hover, .tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Progress ── */
.progress-bar { background: var(--bg-panel); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.6s ease; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.divider-text { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: 0.85rem; }
.divider-text::before, .divider-text::after { content:''; flex:1; height:1px; background: var(--border); }

/* ── Tooltip ── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Nav ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; gap: 32px; width: 100%; }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.navbar-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--bg-panel);
  color: var(--primary);
}
.navbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* ── Sidebar Dashboard ── */
.dashboard-layout { display: flex; min-height: 100vh; padding-top: var(--header-height); }
.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  padding: 24px 0;
}
.sidebar-menu { padding: 0 12px; }
.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 12px 6px;
  margin-top: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover {
  background: var(--bg-panel);
  color: var(--primary);
}
.sidebar-link.active {
  background: rgba(10,36,99,0.08);
  color: var(--primary);
  font-weight: 600;
}
.sidebar-link .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
}

/* ── Stats Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { padding: 24px; }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-change { font-size: 0.8rem; font-weight: 600; margin-top: 8px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Connects UI ── */
.connects-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.connects-count { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }
.connects-dots { display: flex; gap: 8px; margin-top: 8px; }
.connect-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: var(--transition);
}
.connect-dot.filled { background: var(--accent); }

/* ── Job Cards ── */
.job-card { padding: 0; overflow: hidden; }
.job-card-body { padding: 22px; }
.job-card-footer { padding: 14px 22px; background: var(--bg-panel); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); display: flex; align-items: center; justify-content: space-between; }
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.job-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.job-budget { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--success); }
.job-anon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-panel);
  padding: 5px 10px;
  border-radius: var(--radius-full);
}
.job-anon .anon-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── Freelancer Cards ── */
.freelancer-card { overflow: hidden; }
.freelancer-card-cover { height: 80px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); position: relative; }
.freelancer-card-body { padding: 48px 20px 20px; position: relative; }
.freelancer-card-avatar { position: absolute; top: -36px; left: 20px; border: 4px solid #fff; border-radius: 50%; box-shadow: var(--shadow-md); }
.freelancer-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.freelancer-title { font-size: 0.85rem; color: var(--text-muted); }
.freelancer-rate { font-family: var(--font-display); font-weight: 700; color: var(--success); font-size: 1rem; }
.availability-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.availability-dot.online { background: var(--success); }
.availability-dot.busy   { background: var(--warning); }
.availability-dot.away   { background: var(--text-muted); }

/* ── Proposal Form ── */
.proposal-cost-note {
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--accent-dark);
  font-weight: 500;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-body { padding: 20px 28px; }
.modal-footer { padding: 0 28px 24px; display: flex; justify-content: flex-end; gap: 12px; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-panel);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(10,36,99,0.04); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Notifications ── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-panel); }
.notif-item.unread { background: rgba(10,36,99,0.04); }
.notif-icon { width: 42px; height: 42px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-body { flex: 1; }
.notif-title { font-weight: 600; font-size: 0.88rem; }
.notif-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }

/* ── Chat ── */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - var(--header-height) - 64px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.chat-sidebar { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.chat-sidebar-header { padding: 16px; border-bottom: 1px solid var(--border); }
.chat-list { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--border); }
.chat-item:hover, .chat-item.active { background: var(--bg-panel); }
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-weight: 600; font-size: 0.9rem; }
.chat-item-preview { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 70%; }
.msg-bubble { padding: 11px 16px; border-radius: 18px; font-size: 0.9rem; line-height: 1.5; }
.msg.received .msg-bubble { background: var(--bg-panel); color: var(--text-primary); border-bottom-left-radius: 4px; }
.msg.sent { align-self: flex-end; }
.msg.sent .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.msg.sent .msg-time { text-align: right; }
.chat-input { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.9rem; max-height: 120px; outline: none; }
.chat-input textarea:focus { border-color: var(--primary); }

/* ── Escrow / Payment ── */
.escrow-steps { display: flex; gap: 0; margin: 24px 0; }
.escrow-step { flex: 1; text-align: center; position: relative; }
.escrow-step::after { content:''; position:absolute; top:18px; left:50%; right:-50%; height:2px; background:var(--border); z-index:0; }
.escrow-step:last-child::after { display: none; }
.escrow-step-circle { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; margin: 0 auto 8px; position: relative; z-index: 1; }
.escrow-step.done .escrow-step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.escrow-step.active .escrow-step-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.escrow-step-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(10,36,99,0.6); top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(255,107,53,0.25); bottom: -100px; left: -50px; }
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), #FFB347); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; position: relative; }
.floating-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  position: absolute;
  animation: float 3s ease-in-out infinite;
}
.floating-card-1 { right: 60px; top: 60px; width: 200px; animation-delay: 0s; }
.floating-card-2 { right: 200px; bottom: 80px; width: 220px; animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ── Search Bar ── */
.search-bar {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10,36,99,0.08), var(--shadow-md); }
.search-bar input { flex: 1; border: none; padding: 14px 20px; font-size: 0.95rem; outline: none; background: transparent; }
.search-bar select { border: none; border-left: 1px solid var(--border); padding: 14px 16px; font-size: 0.9rem; background: var(--bg-panel); outline: none; min-width: 140px; }
.search-bar .btn { border-radius: 0; border-left: 1px solid var(--border); padding: 14px 24px; border-radius: 0 var(--radius-full) var(--radius-full) 0; }

/* ── Filters ── */
.filter-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: calc(var(--header-height) + 24px); }
.filter-group { margin-bottom: 24px; }
.filter-group-title { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; margin-bottom: 12px; }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 0.88rem; color: var(--text-secondary); }
.filter-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.price-range { display: flex; gap: 10px; }
.price-range input { width: 80px; }

/* ── Review ── */
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Section ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { margin-bottom: 48px; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── Footer ── */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-desc { font-size: 0.88rem; line-height: 1.75; }
.footer-heading { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-link:hover { background: var(--accent); color: #fff; }

/* ── How it works ── */
.how-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 32px; }
.how-step { text-align: center; }
.how-step-num {
  width: 60px; height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(10,36,99,0.25);
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #2B5FBD 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before { content:''; position:absolute; inset:0; background-image:radial-gradient(circle at 20% 50%, rgba(255,107,53,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%); }
.cta-section .container { position: relative; z-index: 1; }

/* ── Animations ── */
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:translateX(0)} }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.animate-fade { animation: fadeIn 0.5s ease both; }
.animate-slide { animation: slideUp 0.5s ease both; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--text-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  animation: slideIn 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--text-primary); }

/* ── Dropdown ── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  z-index: 500;
  overflow: hidden;
  animation: slideUp 0.18s ease;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--bg-panel); color: var(--primary); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.08); color: var(--danger); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ── Profile ── */
.profile-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 40px 0; color: #fff; }
.profile-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-skill-tag { padding: 6px 14px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); font-size: 0.82rem; color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.portfolio-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-panel); border: 1px solid var(--border); position: relative; }
.portfolio-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; padding: 24px 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 24px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-main { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Loading Spinner ── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Verification Badge ── */
.verified { color: var(--info); font-size: 0.9rem; }
.top-rated { color: var(--warning); }

/* ── File Upload ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(10,36,99,0.03);
}
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ── Milestone ── */
.milestone-item { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; }
.milestone-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.milestone-status.pending  { background: var(--text-muted); }
.milestone-status.active   { background: var(--warning); }
.milestone-status.done     { background: var(--success); }

/* ── Onboarding Progress ── */
.onboarding-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.onboarding-step { flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--border); }
.onboarding-step.done { background: var(--primary); }
.onboarding-step.active { background: linear-gradient(90deg, var(--primary), var(--accent)); }
