/* FundiHub — Design System
   Primary: Blue #1B4FD8 | Orange #F97316 | Gold #F59E0B
   Font: Plus Jakarta Sans
*/

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

:root {
  --blue:        #1B4FD8;
  --blue-dark:   #1440B0;
  --blue-light:  #EEF2FF;
  --orange:      #F97316;
  --orange-dark: #EA6C0A;
  --orange-light:#FFF7ED;
  --gold:        #F59E0B;
  --gold-light:  #FFFBEB;
  --text:        #1A1A2E;
  --text-2:      #4B5563;
  --text-3:      #9CA3AF;
  --bg:          #FFFFFF;
  --bg-2:        #F9FAFB;
  --bg-3:        #F3F4F6;
  --border:      #E5E7EB;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 30px rgba(0,0,0,.12);
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ── Container ────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-2); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: all .2s ease; line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--text); }
.btn-gold:hover { background: #D97706; color: var(--text); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-light); }
.btn-danger { background: #DC2626; color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.form-group label span { color: var(--orange); }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; color: var(--text);
  background: var(--bg); transition: border-color .2s;
  outline: none;
  /* Prevent iOS font-size zoom on focus (needs ≥16px): handled by explicit font-size */
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,216,.1);
}
textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.input-icon input { padding-left: 38px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.card-hover { transition: all .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.badge-blue    { background: var(--blue-light); color: var(--blue-dark); }
.badge-orange  { background: var(--orange-light); color: var(--orange-dark); }
.badge-gold    { background: var(--gold-light); color: #92400E; }
.badge-green   { background: #F0FDF4; color: #166534; }
.badge-red     { background: #FEF2F2; color: #991B1B; }
.badge-gray    { background: var(--bg-3); color: var(--text-2); }

/* ── Stars ────────────────────────────────────────────────── */
.stars { color: var(--gold); font-size: 13px; }
.stars .far { color: var(--border); }
.rating-row { display: flex; align-items: center; gap: 8px; }
.rating-row .count { font-size: 13px; color: var(--text-2); }

/* ── NAV ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.logo:hover { color: var(--text); }
.logo-icon {
  width: 38px; height: 38px; background: var(--blue);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.logo-text span { color: var(--orange); }
.main-nav { display: flex; gap: 4px; margin: 0 auto; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: all .2s; }
.main-nav a:hover { color: var(--blue); background: var(--blue-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }

/* ── Flash ────────────────────────────────────────────────── */
.flash { padding: 14px 0; font-size: 14px; font-weight: 600; }
.flash--success { background: #F0FDF4; color: #166534; border-bottom: 1px solid #BBF7D0; }
.flash--error   { background: #FEF2F2; color: #991B1B; border-bottom: 1px solid #FECACA; }
.flash--info    { background: var(--blue-light); color: var(--blue-dark); border-bottom: 1px solid #C7D2FE; }
.flash .container { display: flex; align-items: center; gap: 10px; }
.flash-close { margin-left: auto; background: none; border: none; font-size: 18px; cursor: pointer; opacity: .7; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0F2B7A 0%, #1B4FD8 60%, #2563EB 100%);
  color: #fff; padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border-radius: 99px; padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: 17px; opacity: .85; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-search { margin-top: 32px; }
.hero-search form { display: flex; background: #fff; border-radius: var(--radius-lg); padding: 6px; gap: 8px; box-shadow: var(--shadow-lg); }
.hero-search select, .hero-search input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--text); padding: 10px 14px; }
.hero-search select { max-width: 200px; border-right: 1px solid var(--border); }
.hero-search button { background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: 10px 22px; font-family: var(--font); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s; white-space: nowrap; }
.hero-search button:hover { background: var(--orange-dark); }

.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.stat { }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--gold); display: block; }
.stat-label { font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }

.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(10px);
}
.hero-card h3 { margin-bottom: 20px; font-size: 1.1rem; }
.provider-preview { display: flex; flex-direction: column; gap: 14px; }
.prov-mini { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 12px 16px; }
.prov-mini-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; }
.prov-mini-info { flex: 1; }
.prov-mini-name { font-weight: 700; font-size: 14px; }
.prov-mini-cat  { font-size: 12px; opacity: .75; }
.prov-mini-rate { font-weight: 700; color: var(--gold); font-size: 14px; }

/* ── Section headings ─────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 99px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 17px; max-width: 560px; margin: 12px auto 0; }

section.py { padding: 80px 0; }
section.py-sm { padding: 48px 0; }

/* ── Category Grid ────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 28px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); text-align: center;
  transition: all .25s ease; cursor: pointer; color: var(--text);
}
.cat-card:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--blue); transition: all .25s; }
.cat-card:hover .cat-icon { background: var(--blue); color: #fff; }
.cat-name { font-weight: 700; font-size: 13px; }

/* ── Provider Cards ───────────────────────────────────────── */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.provider-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .25s; position: relative;
}
.provider-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.provider-card.featured { border-color: var(--gold); }
.featured-badge { position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--text); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .5px; }
.pc-top { padding: 20px 20px 0; display: flex; align-items: flex-start; gap: 14px; }
.pc-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0; object-fit: cover; }
.pc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pc-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pc-cat  { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.pc-body { padding: 16px 20px; }
.pc-meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.pc-meta span { display: flex; align-items: center; gap: 5px; }
.pc-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.pc-price { font-weight: 700; color: var(--blue); font-size: 15px; }
.verified-icon { color: var(--blue); font-size: 14px; }

/* ── How It Works ─────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-card { text-align: center; padding: 32px 24px; }
.step-num { width: 56px; height: 56px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; margin: 0 auto 20px; }
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-2); font-size: 14px; }

/* ── Trust banner ─────────────────────────────────────────── */
.trust-bar { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.trust-item i { font-size: 20px; color: var(--blue); }

/* ── Browse page ──────────────────────────────────────────── */
.browse-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.filter-sidebar { position: sticky; top: 80px; height: fit-content; }
.filter-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.filter-box h4 { margin-bottom: 16px; color: var(--text); }
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-size: 14px; }
.filter-option input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.results-count { font-size: 14px; color: var(--text-2); }

/* ── Provider Profile ─────────────────────────────────────── */
.profile-hero { background: var(--blue); padding: 48px 0 80px; color: #fff; }
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: -60px; }
.profile-main { }
.profile-sidebar { }
.profile-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.quote-form-card { position: sticky; top: 90px; }
.profile-avatar-lg { width: 100px; height: 100px; border-radius: 50%; border: 4px solid rgba(255,255,255,.3); background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: #fff; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 12px 20px; background: none; border: none; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg-2); }
.auth-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-box h2 { margin-bottom: 6px; }
.auth-box .subtitle { color: var(--text-2); margin-bottom: 28px; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-3); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* ── Dashboard ────────────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0;}
.dash-sidebar { background: var(--text); color: #fff; padding: 24px 0; position: sticky; top: 0px; height: 100vh; overflow-y: auto; }
.dash-sidebar .logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; color: #fff; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.65); transition: all .2s; }
.nav-item-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-nav a > span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-nav a:hover, .dash-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.dash-nav a i { width: 18px; text-align: center; }
.dash-nav .nav-section { padding: 20px 20px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); font-weight: 700; }
.dash-content { padding: 32px; background: var(--bg-2); overflow-x: hidden; }
.dash-header { margin-bottom: 28px; }
.dash-header h2 { margin-bottom: 4px; }
.dash-header p { color: var(--text-2); font-size: 14px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.stat-card .label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-card .change { font-size: 12px; color: #16A34A; margin-top: 4px; }
.stat-card .icon-wrap { float: right; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 18px; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { padding: 12px 16px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); border-bottom: 1px solid var(--border); background: var(--bg-2); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-2); }

/* ── Status pills ─────────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-open       { background: #EFF6FF; color: #1D4ED8; }
.status-quoted     { background: #FFF7ED; color: #C2410C; }
.status-in_progress{ background: var(--gold-light); color: #92400E; }
.status-completed  { background: #F0FDF4; color: #15803D; }
.status-cancelled  { background: #FEF2F2; color: #991B1B; }

/* ── Job cards ────────────────────────────────────────────── */
.job-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 16px; transition: all .2s; }
.job-card:hover { box-shadow: var(--shadow-md); }
.job-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.job-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; flex-wrap: wrap; }
.job-meta span { display: flex; align-items: center; gap: 5px; }
.job-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.job-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ── Messages ─────────────────────────────────────────────── */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; height: 560px; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-item { padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.chat-item:hover, .chat-item.active { background: var(--blue-light); }
.chat-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.chat-preview { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-window { display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 70%; }
.msg-bubble { padding: 10px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.sent { align-self: flex-end; }
.msg.sent .msg-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.recv .msg-bubble { background: var(--bg-3); color: var(--text); border-bottom-left-radius: 4px; }
.msg-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.msg.sent .msg-time { text-align: right; }
.chat-input { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input input { flex: 1; }
.chat-input button { background: var(--blue); color: #fff; border: none; border-radius: var(--radius); padding: 10px 18px; cursor: pointer; font-size: 16px; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, #1B4FD8, #0F2B7A); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 17px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--text); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: 14px; transition: all .2s; }
.social-links a:hover { background: var(--blue); color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; display: flex; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-bottom strong { color: #fff; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .2s; }
.page-btn:hover, .page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; }
.alert-info    { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #C7D2FE; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-warning { background: var(--gold-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Utility ──────────────────────────────────────────────── */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .flex-between { justify-content: space-between; } .flex-center { justify-content: center; }
.items-center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.font-bold { font-weight: 700; } .text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.w-full { width: 100%; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-state i { font-size: 48px; color: var(--border); margin-bottom: 16px; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Responsive ───────────────────────────────────────────── */

/* ── Mobile nav drawer ────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1100;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-nav-overlay.open { opacity: 1; }

.mobile-nav-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 1;
}
.mobile-nav-close {
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--text-2); padding: 4px;
  border-radius: 8px; transition: background .15s;
}
.mobile-nav-close:hover { background: var(--bg-3); }

.mobile-nav-body { padding: 12px 0; flex: 1; }
.mobile-nav-body a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; font-size: 15px; font-weight: 600;
  color: var(--text); border-left: 3px solid transparent;
  transition: all .15s;
}
.mobile-nav-body a:hover,
.mobile-nav-body a.active {
  color: var(--blue); background: var(--blue-light);
  border-left-color: var(--blue);
}
.mobile-nav-body a i { width: 20px; text-align: center; color: var(--text-2); }
.mobile-nav-body a:hover i, .mobile-nav-body a.active i { color: var(--blue); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav-section {
  padding: 12px 20px 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3);
}
.mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}

/* ── Admin mobile sidebar ─────────────────────────────────── */
.dash-sidebar-toggle {
  display: none;
  position: fixed; bottom: 20px; right: 20px;
  width: 52px; height: 52px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.dash-sidebar-toggle:hover { background: var(--blue-dark); }

/* ── Page hero banners ────────────────────────────────────── */
.page-hero { padding: 40px 0 30px; color: #fff; }
.page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 8px; }
.page-hero p  { opacity: .8; font-size: 15px; }

/* ── Browse search bar ────────────────────────────────────── */
.browse-search-form {
  display: flex; gap: 10px; margin-top: 20px;
  flex-wrap: wrap; align-items: center;
}
.browse-search-form input,
.browse-search-form select {
  flex: 1; min-width: 140px;
  background: #fff; color: #000;
  border: 1px solid #ccc; padding: 9px 12px;
  border-radius: var(--radius); font-family: var(--font); font-size: 14px;
}
.browse-search-form select { flex: 0 1 160px; }

/* ── Home: for-providers section ──────────────────────────── */
.for-providers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

/* ── Escrow layout ────────────────────────────────────────── */
.escrow-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 36px; }
.escrow-step  { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:20px; text-align:center; }
.escrow-main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

/* ── Wallet layout ────────────────────────────────────────── */
.wallet-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

/* ── Admin overview ───────────────────────────────────────── */
.admin-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }

/* ── Provider profile hero ────────────────────────────────── */
.profile-hero-inner { display: flex; align-items: flex-start; gap: 24px; }
.profile-hero-info  { flex: 1; }

/* ── Wizard bar ───────────────────────────────────────────── */
.wizard-steps-bar { display: flex; align-items: center; gap: 0; margin-bottom: 36px; }
.wizard-step-item { display: flex; align-items: center; flex: 1; }
.wizard-step-circle {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; transition: all .3s;
}
.wizard-step-label { font-size: 12px; margin-left: 8px; font-weight: 600; white-space: nowrap; }
.wizard-step-line  { flex: 1; height: 2px; background: var(--border); margin: 0 12px; }

/* ── Urgency picker ───────────────────────────────────────── */
.urgency-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.urgency-option {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; text-align: center; transition: all .2s;
}
.urgency-option:hover { border-color: var(--blue); }

/* ── Thread list (messages page) ──────────────────────────── */
.thread-list { display: flex; flex-direction: column; gap: 2px; }
.thread-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: background .15s;
}
.thread-item:hover { background: var(--bg-2); }
.thread-item.unread { background: var(--blue-light); border-color: #bfdbfe; }
.thread-avatar { position: relative; flex-shrink: 0; }
.thread-avatar-circle {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.thread-content { flex: 1; min-width: 0; }
.thread-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.thread-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.thread-job  { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.thread-preview { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-unread-dot {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ── Chip filters ─────────────────────────────────────────── */
.chip-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.chip {
  padding: 7px 16px; border-radius: 20px; font-size: 13px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-2); transition: all .15s;
}
.chip.active, .chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Dash page container ──────────────────────────────────── */
.dash-page { padding: 36px 20px 80px; max-width: 100%; }

/* ── Quick-access bar (logged-in top bar) ─────────────────── */
.quick-bar { background: linear-gradient(90deg,#1B4FD8,#1e40af); color:#fff; padding: 0; }
.quick-bar-inner { display:flex; align-items:center; gap:16px; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; }
.quick-bar-label { font-size:12px; font-weight:600; opacity:.8; flex-shrink:0; }
.quick-bar-name  { font-size:13px; font-weight:700; }
.quick-bar-links { display:flex; gap:8px; margin-left:auto; flex-wrap:wrap; }
.quick-bar-link {
  color:#fff; font-size:12px; font-weight:600; padding:4px 12px;
  background:rgba(255,255,255,.15); border-radius:20px; text-decoration:none;
  white-space: nowrap;
}
.quick-bar-link:hover { background:rgba(255,255,255,.25); color:#fff; }
.quick-bar-link.danger { color:#fca5a5; background:rgba(239,68,68,.2); }
.quick-bar-link.danger:hover { background:rgba(239,68,68,.35); color:#fca5a5; }
.quick-bar-badge { font-size:11px; font-weight:700; padding:2px 10px; border-radius:20px; }
.quick-bar-badge.pending { background:#fef3c7; color:#92400e; }
.quick-bar-badge.rejected { background:#fee2e2; color:#991b1b; text-decoration:none; border-radius:20px; font-size:11px; font-weight:700; padding:2px 10px; }

/* ── Login dropdown ───────────────────────────────────────── */
.login-dropdown-wrap { position:relative; display:inline-block; }
.login-dropdown {
  display:none; position:absolute; top:100%; right:0;
  background:#fff; border:1px solid var(--border);
  border-radius:10px; min-width:160px;
  box-shadow:0 10px 25px rgba(0,0,0,.08); z-index:999; overflow:hidden;
}
.login-dropdown a {
  display:block; padding:10px 12px; text-decoration:none;
  color:inherit; font-size:14px; font-weight:600;
  transition:background .15s;
}
.login-dropdown a:hover { background:var(--bg-2); }
.login-dropdown a + a { border-top:1px solid var(--border); }

/* ── KYC / status banners (reusable) ─────────────────────── */
.status-banner {
  display:flex; align-items:center; gap:14px;
  border-radius:10px; padding:14px 18px; margin-bottom:20px;
}
.status-banner-icon { font-size:1.4rem; flex-shrink:0; }
.status-banner-body { flex:1; min-width:0; }
.status-banner-title { font-weight:700; }
.status-banner-desc  { font-size:13px; margin-top:2px; }
.status-banner-action { flex-shrink:0; }
.status-banner.warning { background:#fef3c7; border:1px solid #fcd34d; color:#92400e; }
.status-banner.danger  { background:#fee2e2; border:1px solid #fca5a5; color:#991b1b; }
.status-banner.info    { background:#f0f4ff; border:1px solid #a5b4fc; color:#3730a3; }
.status-banner.amber   { background:#fffbeb; border:1px solid #fcd34d; color:#92400e; }

/* ── Wallet / earnings green banner ──────────────────────── */
.earnings-banner {
  background:linear-gradient(135deg,#059669,#047857);
  border-radius:12px; padding:18px 22px; margin-bottom:24px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px; color:#fff;
}
.earnings-banner-info .title { font-weight:700; font-size:1rem; }
.earnings-banner-info .sub   { font-size:13px; opacity:.8; }

/* ── Plan cards grid ──────────────────────────────────────── */
.plan-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; margin-bottom:36px; }

/* Subscription alert with icon — wraps on mobile */
.sub-alert { display:flex; align-items:flex-start; gap:14px; }
.sub-alert-icon { font-size:1.4rem; flex-shrink:0; margin-top:2px; }
.plan-card {
  background:var(--bg); border:2px solid var(--border);
  border-radius:var(--radius-lg); padding:24px; position:relative;
  transition: box-shadow .2s;
}
.plan-card.current  { border-color:var(--blue); }
.plan-card.popular  { border-color:var(--orange); }
.plan-card-badge {
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:var(--orange); color:#fff; font-size:11px; font-weight:700;
  padding:3px 14px; border-radius:99px; white-space:nowrap;
}
.plan-card-price { font-size:2rem; font-weight:800; color:var(--blue); margin:10px 0; }
.plan-card-price span { font-size:14px; font-weight:400; color:var(--text-2); }
.plan-card-desc { font-size:13px; color:var(--text-2); margin-bottom:16px; }
.plan-card-features { list-style:none; margin-bottom:24px; display:flex; flex-direction:column; gap:8px; }
.plan-card-features li { font-size:13px; display:flex; align-items:center; gap:8px; }

/* ── Modal overlay ────────────────────────────────────────── */
.modal-overlay {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.5);
  z-index:9999; align-items:center; justify-content:center;
  padding:20px;
}
.modal-overlay.open { display:flex; }
.modal-box {
  background:#fff; border-radius:16px; padding:32px;
  max-width:420px; width:100%; position:relative;
}
.modal-close {
  position:absolute; top:14px; right:16px;
  background:none; border:none; font-size:1.3rem; cursor:pointer; color:#9ca3af;
}

/* ── Responsive overlay for mobile sidebar ────────────────── */
.dash-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.4); z-index:799;
}
.dash-overlay.open { display:block; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

/* ── Tablet: ≤1024px ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .browse-layout      { grid-template-columns: 1fr; }
  .filter-sidebar     { position: static; }
  .profile-layout     { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-card          { display: none; }
  .for-providers-grid { grid-template-columns: 1fr; gap: 36px; }
  .escrow-main-grid   { grid-template-columns: 1fr; }
  .wallet-grid        { grid-template-columns: 1fr; }
  .admin-overview-grid{ grid-template-columns: 1fr; }

  /* Dashboard: sidebar off-canvas */
  .dash-layout { grid-template-columns: 1fr; position: relative; }
  .dash-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 260px; z-index: 800;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
    height: 100vh;
  }
  .dash-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .dash-sidebar-toggle { display: flex; }
  .dash-content { padding: 24px 20px; }
  .dash-content:has(.dash-page) { padding: 0; }

  /* Filter sidebar collapse */
  .filter-sidebar.mobile-hidden { display: none; }
  .filter-toggle-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); font-family: var(--font); font-size: 14px;
    font-weight: 600; cursor: pointer; color: var(--text);
    margin-bottom: 16px; width: 100%;
  }
}

/* ── Mobile: ≤768px ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .main-nav   { display: none !important; }
  .nav-toggle { display: block; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-outline,
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 13px; }

  /* Typography */
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-sub { font-size: 15px; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-search form { flex-direction: column; gap: 6px; padding: 10px; }
  .hero-search select,
  .hero-search input { max-width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 10px; }
  .hero-search button { width: 100%; padding: 12px; border-radius: 8px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .stat-num { font-size: 1.5rem; }

  /* Trust bar */
  .trust-items { gap: 18px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .trust-item { flex-shrink: 0; }

  /* Sections */
  section.py    { padding: 48px 0; }
  section.py-sm { padding: 32px 0; }

  /* Stats */
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card .value { font-size: 1.6rem; }
  .stat-card { padding: 16px 18px; }

  /* CTA */
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 48px 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }

  /* Chat */
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { border-right: none; border-bottom: 1px solid var(--border); max-height: 220px; }
  .chat-messages { max-height: 340px; }

  /* Tables */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; }

  /* Dashboard: card header rows */
  .card > div[style*="justify-content:space-between"],
  .card > div[style*="justify-content: space-between"] {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Provider cards */
  .provider-grid { grid-template-columns: 1fr; }

  /* Tabs */
  .tabs { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-btn { flex-shrink: 0; }

  /* Profile */
  .profile-hero { padding: 32px 0 60px; }
  .profile-hero-inner { flex-direction: column; gap: 16px; }

  /* Auth */
  .auth-box { padding: 28px 20px; }

  /* Section heading */
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 15px; }

  /* Steps */
  .steps { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Dash */
  .dash-content { padding: 20px 16px; }
  .dash-content:has(.dash-page) { padding: 0; }
  .dash-header h2 { font-size: 1.4rem; }
  .dash-page { padding: 24px 16px 60px; }

  /* Job */
  .job-footer { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Page hero */
  .page-hero  { padding: 32px 0 24px; }
  .page-hero h1 { font-size: 1.6rem; }

  /* Browse */
  .browse-search-form { flex-direction: column; gap: 8px; }
  .browse-search-form input,
  .browse-search-form select { width: 100%; flex: none; }

  /* Escrow */
  .escrow-steps { grid-template-columns: 1fr; gap: 12px; }

  /* Urgency */
  .urgency-grid { grid-template-columns: 1fr; }

  /* Wizard */
  .wizard-step-label { display: none; }
  .wizard-step-line  { margin: 0 6px; }

  /* Thread list */
  .thread-item { padding: 12px 14px; }
  .thread-avatar-circle { width: 40px; height: 40px; font-size: 15px; }

  /* Quick-bar */
  .quick-bar-inner { flex-wrap: wrap; gap: 8px; }
  .quick-bar-links { flex-wrap: wrap; gap: 6px; }

  /* Status banners */
  .status-banner { flex-wrap: wrap; gap: 10px; }
  .status-banner-action { width: 100%; }
  .status-banner-action .btn { width: 100%; justify-content: center; }

  /* Earnings banner */
  .earnings-banner { flex-direction: column; align-items: flex-start; }
  .earnings-banner .btn { width: 100%; justify-content: center; }

  /* Plan grid */
  .plan-grid { grid-template-columns: 1fr; }

  /* Subscription alert icon hidden on small screens for clean layout */
  .sub-alert { gap: 10px; }
  .sub-alert-icon { font-size: 1.2rem; }

  /* Modal */
  .modal-box { padding: 24px 18px; }
}

/* ── Small mobile: ≤480px ─────────────────────────────────── */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }

  /* Subscription: plan grid single col already set, ensure cards have good padding */
  .plan-card { padding: 20px 18px; }
  .plan-card-price { font-size: 1.7rem; }

  /* Subscription: billing table — hide less critical columns on tiny screens */
  .billing-table th:nth-child(3),
  .billing-table td:nth-child(3),
  .billing-table th:nth-child(6),
  .billing-table td:nth-child(6) { display: none; }

  /* Subscription alert icon: hide on very small screens */
  .sub-alert-icon { display: none; }

  .stat-cards { grid-template-columns: 1fr; }

  /* Dashboard: ensure tables scroll horizontally, not bleed */
  .dash-page .table-wrap,
  .dash-content .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-page table,
  .dash-content table { min-width: 520px; }

  /* Dashboard: confirm-completion row full stack */
  .dash-page .card [style*="display:flex"][style*="justify-content:space-between"],
  .dash-content .card [style*="display:flex"][style*="justify-content:space-between"] {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Dashboard: quick action buttons full-width */
  .dash-page > [style*="display:flex"][style*="flex-wrap:wrap"] a,
  .dash-content > [style*="display:flex"][style*="flex-wrap:wrap"] a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 18px 8px; }
  .cat-name { font-size: 11px; }
  .cat-icon { width: 42px; height: 42px; font-size: 16px; }

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

  .hero-stats { gap: 12px; }
  .stat-num   { font-size: 1.4rem; }

  .btn-lg { padding: 12px 20px; font-size: 15px; }
  .auth-box { padding: 24px 16px; border-radius: 12px; }
  .card { padding: 16px; }

  .pc-top    { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pc-footer { flex-direction: column; gap: 10px; align-items: flex-start; }

  .msg { max-width: 88%; }

  .pagination { gap: 4px; }
  .page-btn   { padding: 7px 11px; font-size: 13px; }

  .footer-grid { gap: 20px; }
  .social-links a { width: 32px; height: 32px; }

  .results-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  .badge { font-size: 10px; padding: 2px 8px; }

  .chip-filters { gap: 6px; }
  .chip         { padding: 6px 12px; font-size: 12px; }

  .escrow-steps { grid-template-columns: 1fr; }

  /* Job detail: quote rows stack */
  .job-quote-row { flex-direction: column !important; gap: 12px !important; }

  /* Admin header row */
  .admin-header-row { flex-direction: column; align-items: flex-start !important; gap: 12px; }
  .admin-header-row .btn-group { width: 100%; }
  .admin-header-row .btn-group .btn { flex: 1; justify-content: center; }

  /* Stat card: full number */
  .stat-card .value { font-size: 1.5rem; }

  /* Quick bar stacks on xs */
  .quick-bar-links { margin-left: 0; }

  /* Thread list tighter */
  .thread-item { gap: 10px; }
  .thread-preview { display: none; }
}

/* ── Touch / pointer devices ──────────────────────────────── */
@media (hover: none) {
  .card-hover:hover    { transform: none; box-shadow: var(--shadow); }
  .provider-card:hover { transform: none; box-shadow: var(--shadow); }
  .cat-card:hover      { transform: none; }
}

/* ── Blog cards ───────────────────────────────────────────── */
.blog-card-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 480px) {
  .blog-card-grid { grid-template-columns: 1fr; }
  .blog-card-icon { display: none; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .nav-toggle,
  .mobile-nav-overlay, .mobile-nav-drawer,
  .dash-sidebar, .dash-sidebar-toggle,
  .chat-input, .btn-primary, .btn-orange { display: none !important; }
  body { font-size: 12pt; }
  .dash-content { padding: 0; background: white; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
}
