/* ============================================================
   AinsGigs — Custom Styles (Tailwind CDN supplement)
   Brand: Primary #00483C | Accent #E5FF54
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  --font-size: 16px;
  --primary: #00483C;
  --primary-fg: #E5FF54;
  --background: #ffffff;
  --foreground: #0f0f0f;
  --card: #ffffff;
  --card-fg: #0f0f0f;
  --muted: #ececf0;
  --muted-fg: #717182;
  --accent: #e9ebef;
  --border: rgba(0,0,0,0.1);
  --radius: 0.625rem;
  --input-bg: #f3f3f5;
  --destructive: #d4183d;
  --ring: #00483C;
}

.dark {
  --background: #0a0f0e;
  --foreground: #E5FF54;
  --card: #1a1f1e;
  --card-fg: #E5FF54;
  --muted: #2a3534;
  --muted-fg: #a0a8a6;
  --accent: #2a3534;
  --border: #2a3534;
  --input-bg: #2a3534;
  --ring: #E5FF54;
}

/* ── Base Resets ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size); scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.2s, color 0.2s;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Utility: Brand Colors ── */
.text-primary    { color: var(--primary) !important; }
.text-accent     { color: var(--primary-fg) !important; }
.bg-primary      { background-color: var(--primary) !important; }
.bg-accent-brand { background-color: var(--primary-fg) !important; }

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card-body { padding: 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background-color 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-accent  { background: var(--primary-fg); color: var(--primary); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--accent); }
.btn-ghost  { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); }
.btn-danger { background: var(--destructive); color: #fff; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ── Inputs ── */
.input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,72,60,0.15);
}
.dark .input:focus { box-shadow: 0 0 0 3px rgba(229,255,84,0.2); }
textarea.input { resize: vertical; min-height: 100px; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary { background: var(--primary); color: var(--primary-fg); }
.badge-accent  { background: var(--primary-fg); color: var(--primary); }
.badge-yellow  { background: #fef9c3; color: #854d0e; }
.badge-blue    { background: #dbeafe; color: #1d4ed8; }
.badge-green   { background: #dcfce7; color: #166534; }
.badge-default { background: var(--muted); color: var(--muted-fg); }

/* ── Avatar ── */
.avatar {
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.avatar-sm  { width: 1.5rem;  height: 1.5rem; }
.avatar-md  { width: 2.5rem;  height: 2.5rem; }
.avatar-lg  { width: 5rem;    height: 5rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Toast Notification ── */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideIn 0.25s ease;
}
.toast.success { border-left: 4px solid #16a34a; }
.toast.error   { border-left: 4px solid var(--destructive); }
.toast.info    { border-left: 4px solid #2563eb; }
@keyframes slideIn  { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }
@keyframes fadeOut  { from { opacity:1; max-height:200px; } to { opacity:0; max-height:0; padding:0; overflow:hidden; } }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border-radius: calc(var(--radius) * 1.5);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-title { font-size: 1.2rem; font-weight: 700; color: var(--foreground); }
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--muted-fg);
  font-size: 1.25rem;
  line-height: 1;
}
.modal-footer { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── Tabs ── */
.tabs-list {
  display: flex;
  gap: 0.25rem;
  background: var(--muted);
  border-radius: var(--radius);
  padding: 0.25rem;
}
.tab-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: background 0.15s, color 0.15s;
}
.tab-btn.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Sidebar Layout ── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 16rem;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.25s ease;
}
.sidebar.collapsed { width: 4rem; }
.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.dark .sidebar-brand { color: var(--primary-fg); }
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

.nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  cursor: pointer;
  user-select: none;
}
.nav-section-title svg { transition: transform 0.2s; }
.nav-section-title.collapsed svg { transform: rotate(-90deg); }
.nav-section-items { overflow: hidden; transition: max-height 0.25s ease; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--accent); }
.nav-item.active {
  background: var(--primary-fg);
  color: var(--primary);
  font-weight: 600;
}
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 9999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.nav-item.active .nav-badge { background: var(--primary); color: var(--primary-fg); }

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar hr { border: none; border-top: 1px solid var(--border); margin: 0.5rem 0; }

.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.page-content { flex: 1; overflow-y: auto; }

/* ── Header / Nav ── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.site-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.dark .site-brand { color: var(--primary-fg); }

.desktop-nav { display: flex; align-items: center; gap: 0.25rem; }
.desktop-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.15s;
}
.desktop-nav a:hover { background: var(--accent); }
.desktop-nav a.active { background: var(--primary-fg); color: var(--primary); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.mobile-nav a:hover { background: var(--accent); }
.mobile-nav a.active { background: var(--primary-fg); color: var(--primary); }

/* ── Theme Toggle ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
}
.theme-toggle:hover { background: var(--accent); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
.dark .theme-toggle .icon-sun  { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

/* ── Scroll To Top ── */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 500;
  transition: opacity 0.2s;
}
#scroll-top.visible { display: flex; }

/* ── Footer ── */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { font-size: 0.925rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.dark .footer-links a:hover { color: var(--primary-fg); }
.app-store-btns { display: flex; flex-direction: column; gap: 0.75rem; }
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: opacity 0.15s;
}
.app-store-btn:hover { opacity: 0.88; }
.dark .app-store-btn { background: var(--primary-fg); color: var(--primary); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-fg);
}
.footer-bottom a { color: var(--primary); }
.dark .footer-bottom a { color: var(--primary-fg); }

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, #00483C 0%, #006B54 100%);
  color: #fff;
  padding: 5rem 1.5rem;
}
.hero-inner { max-width: 80rem; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: var(--primary-fg); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.85); max-width: 38rem; margin: 0 auto 2rem; }
.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 44rem;
  margin: 0 auto;
}
.search-bar .input {
  flex: 1;
  height: 3.25rem;
  padding-left: 3rem;
  font-size: 1rem;
  background: #fff;
  color: #0f0f0f;
  border: none;
}
.search-wrap { position: relative; flex: 1; }
.search-wrap svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.trust-item { text-align: center; }
.trust-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary-fg);
  margin: 0 auto 0.75rem;
}
.trust-item h3 { font-size: 0.925rem; font-weight: 700; margin-bottom: 0.25rem; }
.trust-item p  { font-size: 0.8rem; color: rgba(255,255,255,.75); }

/* ── Section Common ── */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 80rem; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.75rem; }
.section-header p { color: var(--muted-fg); font-size: 1rem; }
.section-alt { background: #f9fafb; }
.dark .section-alt { background: #111827; }

/* ── Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.category-card {
  display: block;
  text-align: center;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.category-card .cat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
  color: var(--primary);
  transition: background 0.2s;
}
.category-card:hover .cat-icon { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.category-card .cat-icon-svg svg { stroke: var(--primary); }
.category-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.category-card p  { font-size: 0.8rem; color: var(--muted-fg); }

/* ── Gig Cards ── */
.gig-grid { display: grid; gap: 1.5rem; }
.gig-card { cursor: pointer; }
.gig-thumb {
  aspect-ratio: 16/9;
  background: var(--muted);
  overflow: hidden;
  position: relative;
}
.gig-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gig-thumb .badge { position: absolute; top: 0.75rem; right: 0.75rem; }
.gig-meta { padding: 1rem; }
.gig-seller { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.gig-seller span { font-size: 0.875rem; font-weight: 500; }
.gig-title { font-size: 0.9rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gig-footer { display: flex; align-items: center; justify-content: space-between; }
.rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; }
.rating svg { color: #facc15; }
.gig-price { font-size: 1rem; font-weight: 700; }

/* ── Freelancer Cards ── */
.freelancer-grid { display: grid; gap: 1.5rem; }
.freelancer-card .card-body { text-align: center; }
.freelancer-stats { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 0.75rem; font-size: 0.85rem; }
.verified-icon { color: #3b82f6; width: 1rem; height: 1rem; }

/* ── How It Works ── */
.steps-grid { display: grid; gap: 2rem; }
.step { text-align: center; }
.step-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-fg);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-icon svg { color: var(--primary); width: 2rem; height: 2rem; }
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { color: var(--muted-fg); font-size: 0.9rem; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(90deg, #00483C, #006B54);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Dashboard Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card .card-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stat-icon {
  padding: 0.75rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.stat-value { font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--muted-fg); }
.icon-green  { background: #dcfce7; color: #16a34a; }
.icon-yellow { background: #fef9c3; color: #ca8a04; }
.icon-blue   { background: #dbeafe; color: #2563eb; }
.icon-purple { background: #f3e8ff; color: #9333ea; }

/* ── Orders List ── */
.order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.order-item:hover { background: var(--muted); }
.order-item + .order-item { margin-top: 0.75rem; }

/* ── Message List ── */
.message-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
}
.message-item.unread { background: #eff6ff; }
.dark .message-item.unread { background: rgba(37,99,235,.12); }
.message-item + .message-item { margin-top: 0.5rem; }
.unread-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #2563eb;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* ── Alert / Info Banner ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
}
.alert-yellow {
  background: #fefce8;
  border-color: #fde047;
  color: #713f12;
}
.dark .alert-yellow {
  background: rgba(234,179,8,.1);
  border-color: rgba(234,179,8,.4);
  color: #fef08a;
}
.alert-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ── Vertical separator ── */
.separator { border: none; border-top: 1px solid var(--border); margin: 0.5rem 0; }

/* ── Overlay / Backdrop ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 49;
}
.sidebar-overlay.open { display: block; }

/* ── Toggle Switch ── */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.toggle-wrap:last-child { border-bottom: none; }
.toggle-label h4 { font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.toggle-label p  { font-size: .8rem; color: var(--muted-fg); }

.switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-track {
  position: absolute;
  inset: 0;
  background: var(--muted-fg);
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s;
}
.switch-track::after {
  content: '';
  position: absolute;
  left: .2rem;
  top: .2rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border-radius: 9999px;
  transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--primary); }
.dark .switch input:checked + .switch-track { background: var(--primary-fg); }
.switch input:checked + .switch-track::after { transform: translateX(1.25rem); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ── Account Type Toggle ── */
.account-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.account-type-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
  color: var(--foreground);
}
.account-type-btn:hover { border-color: var(--muted-fg); }
.account-type-btn.selected {
  border-color: var(--primary);
  background: rgba(229,255,84,.1);
}
.dark .account-type-btn.selected {
  border-color: var(--primary-fg);
  background: rgba(229,255,84,.08);
}
.account-type-btn .type-icon { color: #9ca3af; flex-shrink: 0; }
.account-type-btn.selected .type-icon { color: var(--primary); }
.dark .account-type-btn.selected .type-icon { color: var(--primary-fg); }
.account-type-btn strong { display: block; font-size: .9rem; }
.account-type-btn span  { font-size: .8rem; color: var(--muted-fg); }

/* ── Job Role Tags ── */
.role-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.role-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  background: var(--muted);
  border-radius: 9999px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--foreground);
}
.role-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-fg);
  padding: 0;
  display: flex;
  align-items: center;
}
.role-tag-remove:hover { color: var(--destructive); }

/* ── Portfolio Card ── */
.portfolio-grid { display: grid; gap: 1.25rem; }
.portfolio-card .card-body { padding: 1rem; }
.portfolio-card .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--muted);
}
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.portfolio-card p  { font-size: .8rem; color: var(--muted-fg); }

/* ── Gig Status Row ── */
.gig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .15s;
}
.gig-row:hover { background: var(--muted); }
.gig-row + .gig-row { margin-top: .75rem; }

/* ── Danger Zone ── */
.danger-zone {
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
}
.dark .danger-zone { border-color: #991b1b; }
.danger-zone .card-header { padding: 1.25rem; border-bottom: 1px solid #fca5a5; }
.dark .danger-zone .card-header { border-color: #991b1b; }
.danger-zone .card-title { color: #dc2626; font-size: 1rem; font-weight: 700; }
.danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
}
.dark .danger-row { background: rgba(220,38,38,.08); border-color: #991b1b; }
.danger-row p { font-size: .875rem; }
.danger-row strong { color: #991b1b; }
.dark .danger-row strong { color: #fca5a5; }

/* ── Bio char count ── */
.char-count { font-size: .75rem; color: var(--muted-fg); text-align: right; margin-top: .25rem; }

/* ── Inbox Layout ── */
.inbox-shell {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* Conversation list panel */
.conv-panel {
  width: 20rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.conv-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.conv-search .search-wrap { width: 100%; }
.conv-search .input { height: 2.5rem; font-size: .875rem; }
.conv-list { flex: 1; overflow-y: auto; padding: .5rem; }
.conv-list::-webkit-scrollbar { width: 4px; }
.conv-list::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

.conv-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--foreground);
  transition: background .15s;
  margin-bottom: .25rem;
}
.conv-item:hover { background: var(--accent); }
.conv-item.active { background: var(--accent); }

.conv-avatar-wrap { position: relative; flex-shrink: 0; }
.online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: .75rem;
  height: .75rem;
  background: #22c55e;
  border-radius: 9999px;
  border: 2px solid var(--card);
}
.conv-meta { flex: 1; min-width: 0; }
.conv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .2rem; }
.conv-name { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: .7rem; color: var(--muted-fg); flex-shrink: 0; margin-left: .5rem; }
.conv-order { font-size: .72rem; color: var(--muted-fg); margin-bottom: .2rem; }
.conv-preview { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.conv-preview p { font-size: .8rem; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.unread-count {
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 9999px;
  font-size: .65rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3rem;
  flex-shrink: 0;
}

/* Chat pane */
.chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--background);
}
.chat-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: .875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: .75rem; }
.chat-header-name { font-size: .9rem; font-weight: 700; }
.chat-header-sub { font-size: .75rem; color: var(--muted-fg); margin-top: .1rem; }

.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }
.msg-group { display: flex; margin-bottom: 1rem; }
.msg-group.me { justify-content: flex-end; }
.msg-group.them { justify-content: flex-start; }

.msg-bubble {
  max-width: 28rem;
  padding: .6rem 1rem;
  border-radius: 1rem;
  font-size: .875rem;
  line-height: 1.5;
}
.msg-bubble.me {
  background: var(--primary);
  color: var(--primary-fg);
  border-bottom-right-radius: .25rem;
}
.msg-bubble.them {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-bottom-left-radius: .25rem;
}
.msg-time { font-size: .7rem; margin-top: .3rem; opacity: .7; }
.msg-bubble.me .msg-time { color: var(--primary-fg); }
.msg-bubble.them .msg-time { color: var(--muted-fg); }

.chat-input-bar {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: .875rem 1.25rem;
  flex-shrink: 0;
}
.chat-input-wrap { display: flex; align-items: center; gap: .5rem; max-width: 56rem; margin: 0 auto; }
.chat-input-wrap .input { flex: 1; height: 2.75rem; }
.chat-send-btn {
  height: 2.75rem;
  width: 2.75rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Empty chat state */
.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  color: var(--muted-fg);
}

/* Mobile inbox: list or chat, not both */
.inbox-back-btn { display: none; }
@media (max-width: 767px) {
  .conv-panel { width: 100%; }
  .chat-pane { display: none; position: fixed; inset: 0; z-index: 60; background: var(--background); }
  .chat-pane.mobile-open { display: flex; }
  .inbox-back-btn { display: flex; }
}

/* ── Notifications ── */
.notif-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.notif-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.75rem;
  font-weight: 800;
}
.notif-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Tab bar that lives inside a card */
.notif-tabs-bar {
  padding: 1rem 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.notif-tabs-bar .tabs-list { background: none; padding: 0; border-radius: 0; gap: 0; }
.notif-tabs-bar .tab-btn {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: none;
  box-shadow: none;
  padding: .5rem .875rem;
  margin-bottom: -1px;
  color: var(--muted-fg);
  font-size: .85rem;
}
.notif-tabs-bar .tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: none;
  box-shadow: none;
}
.dark .notif-tabs-bar .tab-btn.active { color: var(--primary-fg); border-bottom-color: var(--primary-fg); }

.notif-list { padding: 0; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--accent); }
.notif-item.unread { background: rgba(37,99,235,.04); }
.dark .notif-item.unread { background: rgba(37,99,235,.08); }

.notif-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ni-message { background: #dbeafe; color: #2563eb; }
.ni-order   { background: #dcfce7; color: #16a34a; }
.ni-payment { background: #f3e8ff; color: #9333ea; }
.ni-review  { background: #fef9c3; color: #ca8a04; }
.ni-alert   { background: #fee2e2; color: #dc2626; }
.ni-promo   { background: #e0e7ff; color: #4f46e5; }
.dark .ni-message { background: rgba(37,99,235,.15); color: #93c5fd; }
.dark .ni-order   { background: rgba(22,163,74,.15); color: #86efac; }
.dark .ni-payment { background: rgba(147,51,234,.15); color: #d8b4fe; }
.dark .ni-review  { background: rgba(202,138,4,.15); color: #fde68a; }
.dark .ni-alert   { background: rgba(220,38,38,.15); color: #fca5a5; }
.dark .ni-promo   { background: rgba(79,70,229,.15); color: #a5b4fc; }

.notif-body { flex: 1; min-width: 0; }
.notif-row-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .25rem; gap: .5rem; }
.notif-row-title { font-size: .875rem; font-weight: 700; }
.notif-row-msg   { font-size: .85rem; color: var(--muted-fg); margin-bottom: .5rem; line-height: 1.5; }
.notif-row-meta  { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.notif-row-time  { font-size: .75rem; color: var(--muted-fg); }
.unread-pip {
  width: .5rem;
  height: .5rem;
  border-radius: 9999px;
  background: #2563eb;
  flex-shrink: 0;
  margin-top: .35rem;
}

.notif-empty {
  padding: 4rem 1.25rem;
  text-align: center;
  color: var(--muted-fg);
}
.notif-empty svg { margin: 0 auto .75rem; opacity: .4; }
.notif-clear-bar {
  padding: .875rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── How It Works — Step Cards ── */
.hiw-step-card .card-body { padding: 1.5rem; }
.hiw-step-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-fg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.hiw-step-icon svg { color: var(--primary); width: 1.5rem; height: 1.5rem; }
.hiw-step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.hiw-step-card p  { font-size: .9rem; color: var(--muted-fg); line-height: 1.6; }

.trust-pillar { text-align: center; }
.trust-pillar svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--primary); }
.dark .trust-pillar svg { color: var(--primary-fg); }
.trust-pillar h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.trust-pillar p  { font-size: .85rem; color: var(--muted-fg); line-height: 1.5; }

.section-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--primary-fg);
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.section-icon-badge svg { color: var(--primary); width: 2rem; height: 2rem; }

/* ── FAQ Accordion ── */
.faq-page-wrap { max-width: 50rem; margin: 0 auto; padding: 3rem 1.5rem; }
.faq-hero { text-align: center; margin-bottom: 2.5rem; }
.faq-hero svg { width: 4rem; height: 4rem; margin: 0 auto 1.25rem; color: var(--primary); }
.dark .faq-hero svg { color: var(--primary-fg); }
.faq-hero h1 { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; margin-bottom: .5rem; }
.faq-hero p  { font-size: 1rem; color: var(--muted-fg); }

.faq-search-wrap { position: relative; margin-bottom: 1.5rem; }
.faq-search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9ca3af; width: 1.1rem; height: 1.1rem; }
.faq-search-wrap .input { padding-left: 2.75rem; height: 3rem; font-size: 1rem; }

.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.faq-cat-btn {
  padding: .3rem .875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: none;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted-fg);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.faq-cat-btn:hover, .faq-cat-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.dark .faq-cat-btn:hover, .dark .faq-cat-btn.active {
  background: var(--primary-fg);
  color: var(--primary);
  border-color: var(--primary-fg);
}

.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { cursor: pointer; transition: box-shadow .15s; }
.faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.faq-item-inner { padding: 1.25rem 1.5rem; }
.faq-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.faq-item-head-left { flex: 1; }
.faq-item-cat {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--muted);
  color: var(--muted-fg);
  margin-bottom: .5rem;
}
.faq-item-q { font-size: .9rem; font-weight: 700; color: var(--foreground); line-height: 1.4; }
.faq-chevron { flex-shrink: 0; color: var(--muted-fg); transition: transform .2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item-answer {
  display: none;
  padding-top: .875rem;
  font-size: .9rem;
  color: var(--muted-fg);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: .875rem;
}
.faq-item.open .faq-item-answer { display: block; }

mark { background: rgba(229,255,84,.5); color: var(--foreground); border-radius: 2px; }
.dark mark { background: rgba(0,72,60,.6); }

.faq-empty { text-align: center; padding: 4rem 1rem; color: var(--muted-fg); display: none; }
.faq-empty.visible { display: block; }

.faq-contact-card {
  margin-top: 3rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.dark .faq-contact-card { border-color: var(--primary-fg); }
.faq-contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.faq-contact-card p  { font-size: .9rem; color: var(--muted-fg); margin-bottom: 1.25rem; }

/* ── Create Gig ── */
.form-section { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-hint  { font-size: .75rem; color: var(--muted-fg); margin-top: .25rem; }
.req-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.req-row .input { flex: 1; }

/* Image upload grid */
.img-upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: .75rem; margin-top: .75rem; }
.img-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--muted);
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 50%; width: 1.4rem; height: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
}
.img-thumb-del:hover { background: var(--destructive); }

/* ── My Gigs ── */
.my-gigs-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.gig-row-card { transition: box-shadow .15s; }
.gig-row-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.gig-row-card + .gig-row-card { margin-top: 1rem; }
.gig-row-inner { display: flex; gap: 1rem; padding: 1.25rem; }
.gig-row-thumb {
  width: 5rem; height: 5rem;
  border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0;
  background: var(--muted);
}
.gig-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gig-row-body { flex: 1; min-width: 0; }
.gig-row-title { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; line-height: 1.3; }
.gig-row-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.gig-mini-stats {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: .5rem .75rem;
  margin-bottom: .875rem;
}
.gig-mini-stat p:first-child { font-size: .72rem; color: var(--muted-fg); margin-bottom: .1rem; }
.gig-mini-stat p:last-child  { font-size: .85rem; font-weight: 700; }
.gig-row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.gig-row-price { text-align: right; flex-shrink: 0; }
.gig-row-price .price-val { font-size: 1.4rem; font-weight: 800; }
.gig-row-price .price-cur { font-size: .72rem; color: var(--muted-fg); }

.badge-active  { background: #dcfce7; color: #15803d; }
.badge-paused  { background: #fef9c3; color: #a16207; }
.badge-draft   { background: var(--muted); color: var(--muted-fg); }
.dark .badge-active { background: rgba(22,163,74,.15); color: #86efac; }
.dark .badge-paused { background: rgba(202,138,4,.15); color: #fde68a; }

/* gig tab bar (reuse .notif-tabs-bar pattern) */
.gig-tabs-bar { margin-bottom: 1.25rem; }
.gig-tabs-bar .tabs-list { background: none; padding: 0; border-radius: 0; gap: 0; border-bottom: 1px solid var(--border); }
.gig-tabs-bar .tab-btn {
  border-radius: 0; border-bottom: 2px solid transparent;
  background: none; box-shadow: none; padding: .5rem .875rem;
  margin-bottom: -1px; color: var(--muted-fg); font-size: .85rem;
}
.gig-tabs-bar .tab-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
  background: none; box-shadow: none;
}
.dark .gig-tabs-bar .tab-btn.active { color: var(--primary-fg); border-bottom-color: var(--primary-fg); }

.gig-list-empty { text-align: center; padding: 3rem 1rem; color: var(--muted-fg); }

/* ── Post Job ── */
.info-banner {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}
.dark .info-banner { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.3); }
.info-banner h3 { font-size: .9rem; font-weight: 700; color: #1e40af; margin-bottom: .6rem; }
.dark .info-banner h3 { color: #93c5fd; }
.info-banner ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.info-banner li { font-size: .85rem; color: #1d4ed8; }
.dark .info-banner li { color: #bfdbfe; }

.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; font-size: .9rem; font-weight: 500;
}
.radio-label input[type="radio"] {
  width: 1.1rem; height: 1.1rem;
  accent-color: var(--primary);
  cursor: pointer;
}
.skill-tag { background: var(--primary); color: var(--primary-fg); }
.skill-tag .role-tag-remove { color: var(--primary-fg); opacity: .75; }
.skill-tag .role-tag-remove:hover { opacity: 1; color: var(--primary-fg); }

/* ── Browse Jobs ── */
.browse-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.browse-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .35rem; }
.browse-header p  { font-size: .9rem; color: var(--muted-fg); margin-bottom: 1rem; }

.browse-layout { display: flex; gap: 1.5rem; align-items: flex-start; }

/* Filter sidebar */
.filter-sidebar {
  width: 16rem;
  flex-shrink: 0;
  position: sticky;
  top: 1rem;
}
.filter-sidebar .card-body { padding: 1rem; }
.filter-sidebar h3 { font-size: .875rem; font-weight: 700; margin-bottom: .75rem; }

.check-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .3rem 0; cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 1rem; height: 1rem;
  accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0;
}
.check-row label { font-size: .85rem; cursor: pointer; line-height: 1.3; }

/* Job cards */
.job-card { transition: box-shadow .15s; }
.job-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.job-card + .job-card { margin-top: 1rem; }
.job-card-header {
  padding: 1.25rem 1.25rem .75rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.job-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 0 1.25rem .875rem;
  font-size: .82rem; color: var(--muted-fg);
}
.job-card-meta-item { display: flex; align-items: center; gap: .35rem; }
.job-card-footer {
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; gap: .75rem;
}
.job-price { text-align: right; flex-shrink: 0; }
.job-price-val { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.dark .job-price-val { color: var(--primary-fg); }
.job-price-sub { font-size: .75rem; color: var(--muted-fg); }

.badge-gig  { background: var(--primary); color: var(--primary-fg); }
.badge-job  { background: #2563eb; color: #fff; }

.results-count { font-size: .875rem; color: var(--muted-fg); margin-bottom: 1.25rem; }

.browse-empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted-fg); }

/* Saved/bookmark toggle */
.save-btn.saved { color: var(--primary); border-color: var(--primary); }
.dark .save-btn.saved { color: var(--primary-fg); border-color: var(--primary-fg); }

/* Browse tabs bar (same underline pattern) */
.browse-tabs-bar .tabs-list {
  background: none; padding: 0; border-radius: 0; gap: 0;
  border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.browse-tabs-bar .tab-btn {
  border-radius: 0; border-bottom: 2px solid transparent;
  background: none; box-shadow: none; padding: .5rem 1rem;
  margin-bottom: -1px; color: var(--muted-fg); font-size: .875rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.browse-tabs-bar .tab-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
  background: none; box-shadow: none;
}
.dark .browse-tabs-bar .tab-btn.active { color: var(--primary-fg); border-bottom-color: var(--primary-fg); }

/* Mobile: hide filter sidebar, show toggle */
.filter-toggle-btn { display: none; }
@media (max-width: 767px) {
  .browse-layout { flex-direction: column; }
  .filter-sidebar {
    width: 100%; position: static;
    display: none;
  }
  .filter-sidebar.open { display: block; }
  .filter-toggle-btn { display: inline-flex; margin-bottom: .75rem; }
}

/* ── Gig Detail ── */
.gig-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
@media (min-width: 1024px) {
  .gig-detail-layout { grid-template-columns: 1fr 22rem; }
}

/* Gallery */
.gig-gallery { margin-bottom: 1.5rem; }
.gig-gallery-main {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
  margin-bottom: .75rem;
  cursor: pointer;
}
.gig-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gig-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gig-thumb-btn {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s, opacity .15s;
}
.gig-thumb-btn:hover { opacity: .85; }
.gig-thumb-btn.active { border-color: var(--primary); }
.dark .gig-thumb-btn.active { border-color: var(--primary-fg); }
.gig-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--muted-fg); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted-fg); transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); }
.dark .breadcrumb a:hover { color: var(--primary-fg); }
.breadcrumb span:last-child { color: var(--foreground); }

/* Gig title block */
.gig-title { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }
.gig-seller-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.gig-seller-info .seller-name { font-size: .9rem; font-weight: 700; }
.gig-seller-info .seller-meta { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted-fg); margin-top: .1rem; flex-wrap: wrap; }
.gig-seller-info .seller-meta .sep { opacity: .5; }

/* Tab-underline for gig detail */
.gig-detail-tabs { margin-bottom: 1.5rem; }
.gig-detail-tabs .tabs-list {
  background: none; padding: 0; border-radius: 0; gap: 0;
  border-bottom: 1px solid var(--border);
}
.gig-detail-tabs .tab-btn {
  border-radius: 0; border-bottom: 2px solid transparent;
  background: none; box-shadow: none; padding: .5rem 1rem;
  margin-bottom: -1px; color: var(--muted-fg); font-size: .875rem;
}
.gig-detail-tabs .tab-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
  background: none; box-shadow: none;
}
.dark .gig-detail-tabs .tab-btn.active { color: var(--primary-fg); border-bottom-color: var(--primary-fg); }

/* Description */
.gig-desc { font-size: .9rem; color: var(--muted-fg); line-height: 1.8; white-space: pre-line; }
.gig-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.gig-tag { padding: .25rem .75rem; border: 1px solid var(--border); border-radius: 9999px; font-size: .8rem; color: var(--muted-fg); }

/* Review card */
.review-card { padding: 1rem; }
.review-card + .review-card { margin-top: .75rem; }
.review-stars { display: flex; gap: 2px; margin: .3rem 0 .5rem; }
.review-star-filled { color: var(--primary); }
.dark .review-star-filled { color: var(--primary-fg); }
.review-star-empty { color: var(--border); }

/* Seller info card */
.seller-card { padding: 1.5rem; }
.seller-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.seller-stat { display: flex; align-items: flex-start; gap: .5rem; }
.seller-stat svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.dark .seller-stat svg { color: var(--primary-fg); }
.seller-stat .val { font-size: .875rem; font-weight: 700; }
.seller-stat .sub { font-size: .75rem; color: var(--muted-fg); }

/* Pricing card (sticky right column) */
.pricing-card { padding: 1.5rem; }
.pkg-tabs { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 1.25rem; }
.pkg-tab-btn {
  padding: .5rem .25rem; border: 1px solid var(--border); background: none;
  font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--muted-fg);
  transition: background .15s, color .15s; text-align: center;
}
.pkg-tab-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: none; }
.pkg-tab-btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-left: none; }
.pkg-tab-btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.dark .pkg-tab-btn.active { background: var(--primary-fg); color: var(--primary); border-color: var(--primary-fg); }

.pkg-price-val { font-size: 2rem; font-weight: 800; }
.pkg-delivery-row { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted-fg); margin-bottom: .35rem; }
.pkg-delivery-row svg { flex-shrink: 0; }
.pkg-features { margin: 1rem 0; display: flex; flex-direction: column; gap: .45rem; }
.pkg-feature { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; color: var(--muted-fg); }
.pkg-feature svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.dark .pkg-feature svg { color: var(--primary-fg); }

.trust-row { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted-fg); margin-top: .5rem; }
.trust-row svg { color: var(--primary); flex-shrink: 0; }
.dark .trust-row svg { color: var(--primary-fg); }

/* Order Modal fee breakdown */
.fee-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .3rem 0; }
.fee-row.total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); margin-top: .35rem; padding-top: .6rem; }

/* ── Browse Categories ── */
.cat-page-hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.cat-page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .5rem; }
.cat-page-hero p  { font-size: 1rem; color: var(--muted-fg); margin-bottom: 1.5rem; }

.cat-browse-wrap { max-width: 80rem; margin: 0 auto; padding: 2.5rem 1.5rem; }

.cat-search-wrap { position: relative; max-width: 42rem; margin: 0 auto; width: 100%; }
.cat-search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9ca3af; width:1.1rem; height:1.1rem; }
.cat-search-wrap .input { padding-left: 2.75rem; height: 3rem; font-size: 1rem; width: 100%; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 768px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-grid-card {
  display: block; height: 100%; cursor: pointer; transition: box-shadow .15s;
  text-decoration: none; color: inherit;
}
.cat-grid-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.cat-grid-card .card-body { padding: 1.5rem; height: 100%; display: flex; flex-direction: column; }
.cat-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .75rem; }
.cat-emoji { font-size: 3rem; line-height: 1; }
.cat-trending {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--primary-fg); color: var(--primary);
  padding: .2rem .6rem; border-radius: 9999px; font-size: .7rem; font-weight: 700;
}
.cat-grid-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.cat-grid-card p  { font-size: .82rem; color: var(--muted-fg); flex: 1; line-height: 1.5; margin-bottom: .6rem; }
.cat-count { font-size: .8rem; font-weight: 600; color: var(--muted-fg); }

.cat-empty { text-align: center; padding: 4rem 1rem; color: var(--muted-fg); }

/* ── Fees Page ── */
.fee-big-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border-radius: 1.25rem;
  padding: 2rem 3rem;
  text-align: center;
  margin-top: 2rem;
}
.fee-big-num { font-size: 4.5rem; font-weight: 900; color: var(--primary-fg); line-height: 1; }
.fee-big-label { font-size: .875rem; color: rgba(255,255,255,.75); margin-top: .4rem; }

.fee-breakdown-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .fee-breakdown-grid { grid-template-columns: 1fr 1fr; } }

.fee-feature-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.fee-feature-row svg { flex-shrink: 0; color: #16a34a; margin-top: 2px; }
.fee-feature-row p:first-child { font-weight: 700; margin-bottom: .2rem; font-size: .9rem; }
.fee-feature-row p:last-child  { font-size: .825rem; color: var(--muted-fg); }

.fee-example {
  padding: .875rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.fee-example-blue  { background: #eff6ff; color: #1d4ed8; }
.fee-example-green { background: #f0fdf4; color: #15803d; }
.dark .fee-example-blue  { background: rgba(37,99,235,.1); color: #93c5fd; }
.dark .fee-example-green { background: rgba(22,163,74,.1); color: #86efac; }

/* Comparison rows */
.compare-row { padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.compare-row.highlight {
  border: 2px solid var(--primary) !important;
  border-radius: var(--radius);
}
.dark .compare-row.highlight { border-color: var(--primary-fg) !important; }
.compare-fee { font-size: 2rem; font-weight: 900; }
.compare-badge-wrap { margin-top: .3rem; }

/* Pricing tiers */
.pricing-grid { display: grid; gap: 1.5rem; max-width: 52rem; margin: 0 auto; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.tier-card { padding: 1.75rem; display: flex; flex-direction: column; }
.tier-card.highlighted { border: 2px solid var(--primary); }
.dark .tier-card.highlighted { border-color: var(--primary-fg); }
.tier-price { font-size: 1.75rem; font-weight: 900; margin: .4rem 0 1.25rem; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; flex: 1; margin-bottom: 1.5rem; }
.tier-feature { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.tier-feature svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; }

/* ── Privacy / Legal Document ── */
.legal-wrap { max-width: 52rem; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-hero { text-align: center; margin-bottom: 2rem; }
.legal-hero svg { width: 4rem; height: 4rem; margin: 0 auto 1rem; color: var(--primary); }
.dark .legal-hero svg { color: var(--primary-fg); }
.legal-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .4rem; }
.legal-hero p  { font-size: .875rem; color: var(--muted-fg); }

/* Collapsible sections */
.legal-section { border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; }
.legal-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
  gap: 1rem;
}
.legal-section-header:hover { background: var(--accent); }
.legal-section-title { font-size: 1rem; font-weight: 700; flex: 1; }
.legal-section-chevron { flex-shrink: 0; color: var(--muted-fg); transition: transform .22s; }
.legal-section.open .legal-section-chevron { transform: rotate(180deg); }
.legal-section-body {
  padding: 0 1.5rem;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.legal-section.open .legal-section-body { padding: 0 1.5rem 1.25rem; }

.legal-prose { font-size: .9rem; color: var(--muted-fg); line-height: 1.85; }
.legal-prose p { margin-bottom: .875rem; }
.legal-prose ul { margin: .5rem 0 .875rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.legal-prose li { list-style: disc; }
.legal-prose strong { font-weight: 700; color: var(--foreground); }
.legal-prose a { color: var(--primary); }
.dark .legal-prose a { color: var(--primary-fg); }

.legal-contact-box {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted-fg);
  line-height: 1.85;
}
.legal-contact-box h2 { font-size: 1rem; font-weight: 700; color: var(--foreground); margin-bottom: .6rem; }

/* ── Wallet ── */
.wallet-balance-grid { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .wallet-balance-grid { grid-template-columns: repeat(3,1fr); } }

.balance-card { overflow: visible; }
.balance-card.green { border-color: #86efac; }
.balance-card.yellow { border-color: #fde047; }
.balance-card.gray   { border-color: var(--border); }
.dark .balance-card.green  { border-color: #166534; }
.dark .balance-card.yellow { border-color: #854d0e; }
.balance-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem .5rem;
}
.balance-card-label { font-size: .8rem; font-weight: 600; color: var(--muted-fg); }
.balance-card-body  { padding: .25rem 1.25rem 1.25rem; }
.balance-amount { font-size: 1.85rem; font-weight: 900; margin-bottom: .75rem; }

/* Verification progress banner */
.verif-banner {
  padding: 1.25rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.dark .verif-banner { background: rgba(22,163,74,.08); border-color: #166534; }
.verif-banner-top { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .875rem; }
.verif-banner h3 { font-size: .9rem; font-weight: 700; color: #15803d; margin-bottom: .25rem; }
.dark .verif-banner h3 { color: #86efac; }
.verif-banner p  { font-size: .82rem; color: #166534; }
.dark .verif-banner p  { color: #bbf7d0; }
.progress-track {
  flex: 1; height: .5rem;
  background: #bbf7d0;
  border-radius: 9999px;
  overflow: hidden;
}
.dark .progress-track { background: #166534; }
.progress-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 9999px;
  transition: width .5s ease;
}
.progress-row { display: flex; align-items: center; gap: .75rem; }
.progress-pct { font-size: .8rem; font-weight: 700; color: #15803d; flex-shrink: 0; }
.dark .progress-pct { color: #86efac; }

/* Wallet quick actions */
.wallet-actions-grid { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
@media (min-width: 640px) { .wallet-actions-grid { grid-template-columns: repeat(3,1fr); } }

/* Transaction rows */
.txn-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  transition: background .15s;
}
.txn-row:hover { background: var(--muted); }
.txn-row + .txn-row { margin-top: .75rem; }
.txn-icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.txn-icon.credit { background: #dcfce7; color: #16a34a; }
.txn-icon.debit  { background: #dbeafe; color: #2563eb; }
.txn-icon.fee    { background: #ffedd5; color: #ea580c; }
.dark .txn-icon.credit { background: rgba(22,163,74,.15); color: #86efac; }
.dark .txn-icon.debit  { background: rgba(37,99,235,.15); color: #93c5fd; }
.dark .txn-icon.fee    { background: rgba(234,88,12,.15);  color: #fdba74; }
.txn-body { flex: 1; min-width: 0; }
.txn-desc { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.txn-meta { font-size: .78rem; color: var(--muted-fg); display: flex; gap: .4rem; flex-wrap: wrap; }
.txn-meta a { color: #2563eb; }
.txn-amount { text-align: right; flex-shrink: 0; }
.txn-amount .amount { font-size: 1.1rem; font-weight: 800; }
.txn-amount .amount.credit { color: #16a34a; }
.txn-amount .amount.debit,
.txn-amount .amount.fee    { color: var(--destructive); }

/* Clearance rows */
.clr-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius);
}
.clr-row + .clr-row { margin-top: .75rem; }
.clr-title  { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.clr-meta   { font-size: .78rem; color: var(--muted-fg); display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .4rem; }
.clr-meta a { color: #2563eb; }
.clr-days   { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #ca8a04; }
.dark .clr-days { color: #fde68a; }
.clr-amount { font-size: 1.25rem; font-weight: 800; flex-shrink: 0; }

/* ── Orders ── */
.order-card { transition: box-shadow .15s; }
.order-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.order-card + .order-card { margin-top: 1.25rem; }
.order-card-inner { padding: 1.25rem; }
.order-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.order-info { flex: 1; min-width: 0; }
.order-title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.order-client { font-size: .82rem; color: var(--muted-fg); margin-bottom: .4rem; }
.order-ids { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .77rem; color: var(--muted-fg); }

/* Progress bar */
.order-progress { margin-bottom: 1rem; }
.order-progress-header { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .4rem; }
.order-progress-header span:first-child { color: var(--muted-fg); }
.order-progress-header span:last-child  { font-weight: 700; }
.order-progress-track {
  height: .5rem; background: var(--muted);
  border-radius: 9999px; overflow: hidden;
}
.order-progress-fill {
  height: 100%; border-radius: 9999px; transition: width .4s ease;
}
.order-progress-fill.complete { background: #10b981; }
.order-progress-fill.active   { background: var(--primary); }

.order-footer-row { display: flex; align-items: center; gap: 1rem; font-size: .82rem; color: var(--muted-fg); flex-wrap: wrap; }

/* Order right panel */
.order-actions { display: flex; flex-direction: column; gap: .5rem; min-width: 10rem; }
.order-value-label { font-size: .78rem; color: var(--muted-fg); margin-bottom: .2rem; }
.order-value-num   { font-size: 1.5rem; font-weight: 900; margin-bottom: .75rem; }

/* Status badges for orders */
.badge-in-progress { background: #dbeafe; color: #1d4ed8; }
.badge-pending-ord { background: #fef9c3; color: #a16207; }
.badge-completed-ord { background: #dcfce7; color: #15803d; }
.badge-cancelled-ord { background: #fee2e2; color: #b91c1c; }
.dark .badge-in-progress { background: rgba(37,99,235,.15); color: #93c5fd; }
.dark .badge-pending-ord { background: rgba(202,138,4,.15); color: #fde68a; }
.dark .badge-completed-ord { background: rgba(22,163,74,.15); color: #86efac; }
.dark .badge-cancelled-ord { background: rgba(185,28,28,.15); color: #fca5a5; }

.order-empty { text-align: center; padding: 3rem 1rem; color: var(--muted-fg); }

/* Orders tab bar */
.orders-tabs-bar .tabs-list {
  background: none; padding: 0; border-radius: 0; gap: 0;
  border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
}
.orders-tabs-bar .tab-btn {
  border-radius: 0; border-bottom: 2px solid transparent;
  background: none; box-shadow: none; padding: .5rem .875rem;
  margin-bottom: -1px; color: var(--muted-fg); font-size: .875rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.orders-tabs-bar .tab-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
  background: none; box-shadow: none;
}
.dark .orders-tabs-bar .tab-btn.active { color: var(--primary-fg); border-bottom-color: var(--primary-fg); }

/* ── Contact Page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 18rem 1fr; }
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-card { padding: 1.5rem; }
.contact-card-icon {
  width: 2.5rem; height: 2.5rem;
  color: var(--primary); margin-bottom: 1rem;
}
.dark .contact-card-icon { color: var(--primary-fg); }
.contact-card h3 { font-size: .925rem; font-weight: 700; margin-bottom: .3rem; }
.contact-card p  { font-size: .85rem; color: var(--muted-fg); margin-bottom: .35rem; }
.contact-card a  { font-size: .85rem; color: var(--primary); }
.dark .contact-card a { color: var(--primary-fg); }
.contact-card a:hover { text-decoration: underline; }

.contact-form-col { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-faq-banner {
  padding: 1.25rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
}
.dark .contact-faq-banner { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.25); }
.contact-faq-banner h3 { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.contact-faq-banner p  { font-size: .82rem; color: var(--muted-fg); margin-bottom: .875rem; }

/* message char counter */
.msg-counter { font-size: .75rem; color: var(--muted-fg); text-align: right; margin-top: .25rem; }
.msg-counter.over { color: var(--destructive); }

/* ── Safety & Trust Page ── */
.safety-kyc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 0;
}
@media (min-width: 768px) { .safety-kyc-grid { grid-template-columns: 1fr 1fr; } }

.kyc-check-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.kyc-check-row { display: flex; align-items: flex-start; gap: .75rem; }
.kyc-check-row svg { flex-shrink: 0; color: #16a34a; margin-top: 2px; }
.kyc-check-row p:first-child { font-weight: 700; margin-bottom: .2rem; font-size: .9rem; }
.kyc-check-row p:last-child  { font-size: .82rem; color: var(--muted-fg); }

.kyc-stat-card {
  padding: 2rem;
  border: 2px solid var(--primary);
  border-radius: calc(var(--radius) * 1.5);
}
.dark .kyc-stat-card { border-color: var(--primary-fg); }
.kyc-stat-inner {
  background: #f0fdf4;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.dark .kyc-stat-inner { background: rgba(22,163,74,.08); }
.kyc-stat-inner svg { width: 3rem; height: 3rem; color: #16a34a; margin: 0 auto 1rem; }
.dark .kyc-stat-inner svg { color: #86efac; }
.kyc-stat-num  { font-size: 1.75rem; font-weight: 900; color: #15803d; margin-bottom: .3rem; }
.dark .kyc-stat-num { color: #86efac; }
.kyc-stat-desc { font-size: .85rem; color: #166534; }
.dark .kyc-stat-desc { color: #bbf7d0; }

.payment-cards-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .payment-cards-grid { grid-template-columns: repeat(3,1fr); } }
.payment-card { padding: 1.5rem; }
.payment-card svg { width: 2.5rem; height: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.dark .payment-card svg { color: var(--primary-fg); }
.payment-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.payment-card p  { font-size: .85rem; color: var(--muted-fg); line-height: 1.6; }

.review-split {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 768px) { .review-split { grid-template-columns: 1fr 1fr; } }
.review-card-inner { padding: 2rem; }
.review-row { display: flex; align-items: center; gap: .75rem; font-size: .875rem; margin-bottom: .6rem; }
.review-row svg { color: var(--muted-fg); flex-shrink: 0; }

/* Dispute steps */
.dispute-steps { display: flex; flex-direction: column; gap: 1rem; max-width: 44rem; margin: 0 auto; }
.dispute-step { padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.step-num {
  width: 2.5rem; height: 2.5rem;
  background: var(--primary-fg); color: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; flex-shrink: 0;
}
.dispute-step h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.dispute-step p  { font-size: .85rem; color: var(--muted-fg); line-height: 1.6; }

/* Anti-scam grid */
.antiscam-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .antiscam-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .antiscam-grid { grid-template-columns: repeat(4,1fr); } }
.antiscam-card { padding: 1.5rem; text-align: center; }
.antiscam-card svg { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; color: var(--primary); }
.dark .antiscam-card svg { color: var(--primary-fg); }
.antiscam-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.antiscam-card p  { font-size: .82rem; color: var(--muted-fg); line-height: 1.6; }

/* ─────────────────────────────
   Responsive Breakpoints
───────────────────────────── */
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .my-gigs-stats { grid-template-columns: repeat(4,1fr); }
  .gig-mini-stats { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .gig-grid { grid-template-columns: repeat(3, 1fr); }
  .freelancer-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu-toggle { display: none !important; }
  .desktop-nav { display: flex !important; }
}
@media (max-width: 767px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-actions-desktop { display: none; }
  /* Sidebar hidden on mobile unless toggled */
  .sidebar { position: fixed; left: -16rem; top: 0; bottom: 0; z-index: 50; transition: left 0.25s ease, width 0.25s; }
  .sidebar.mobile-open { left: 0; }
  .sidebar.collapsed { width: 16rem; left: -16rem; }
  .sidebar.collapsed.mobile-open { left: 0; }
  .main-area { width: 100%; }
}
@media (min-width: 1024px) {
  .sidebar { position: relative; left: 0 !important; }
}
