/* =====================================================================
   FindTradesLocal - Modern responsive design
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

body { overflow-x: clip; }

:root {
  --primary: #0f9d6c;
  --primary-dark: #0b7d55;
  --primary-light: #e7f6f0;
  --primary-glow: rgba(15, 157, 108, .18);
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --dark: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --bg: #f6f8fb;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --danger: #dc2626;
  --success: #16a34a;
  --info: #2563eb;
  --warning: #d97706;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow: 0 6px 24px rgba(15,23,42,.07);
  --shadow-md: 0 10px 30px rgba(15,23,42,.09);
  --shadow-lg: 0 18px 45px rgba(15,23,42,.12);
  --shadow-glow: 0 8px 32px rgba(15,157,108,.18);
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --transition-fast: .18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--dark); font-weight: 700; line-height: 1.25; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* --------------------------------------------- containers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 36px 0; }
.section-tint {
  background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
}

/* --------------------------------------------- utilities */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

/* --------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* --------------------------------------------- headings helpers */
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.3px; }
.section-subtitle { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 15.5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  font-weight: 600; font-size: 12.5px; padding: 6px 14px;
  border-radius: 999px; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .6px;
}
.eyebrow i { font-size: 11px; }

/* --------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--transition); line-height: 1.3; text-align: center;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(15,157,108,.25);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(15,157,108,.35); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #1e293b; color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--dark); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 12px rgba(220,38,38,.2); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

/* --------------------------------------------- badges & alerts */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-primary { background: #d1fae5; color: #047857; }
.badge-secondary { background: #e2e8f0; color: #475569; }
.badge-dark { background: #e2e8f0; color: #334155; }
.badge-light { background: #f8fafc; color: var(--slate); border: 1px solid var(--border); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* --------------------------------------------- forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 13.5px; color: var(--dark); margin-bottom: 7px; }
.form-label .req { color: var(--danger); }
.form-control, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: var(--font-body);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--slate);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast); outline: none;
}
.form-control:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.input-group { display: flex; }
.input-group .form-control { flex: 1; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form-check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.form-check input { width: 17px; height: 17px; accent-color: var(--primary); }

/* --------------------------------------------- navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,.6);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--dark); }
.navbar-brand img { height: 38px; width: auto; border-radius: 8px; }
.navbar-brand .brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.navbar-links { display: flex; align-items: center; gap: 2px; }
.navbar-links a {
  padding: 9px 14px; border-radius: var(--radius-sm);
  color: var(--slate); font-weight: 500; font-size: 14.5px;
  transition: all var(--transition-fast);
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--primary-dark); background: var(--primary-light);
}
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--dark); cursor: pointer; padding: 6px; }
.nav-user {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff;
  transition: all var(--transition-fast);
}
.nav-user:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.nav-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-user .nu-name { font-weight: 600; font-size: 13.5px; color: var(--dark); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .navbar-links {
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 14px 20px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .navbar-links.open { display: flex; }
  .navbar-actions .btn-lg { padding: 10px 16px; }
}

/* --------------------------------------------- hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #133b2e 55%, #0b7d55 100%);
  color: #fff; padding: 88px 0 116px; position: relative; overflow: hidden;
}
.hero.hero-media { background: #0f172a; }
.hero.hero-media::before, .hero.hero-media::after { opacity: .1; }
.hero.hero-media .hero-mesh { opacity: .03; }

/* floating decorative shapes */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(2px); opacity: .3;
}
.hero::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(245,158,11,.3), transparent 70%);
  top: -180px; right: -100px;
  animation: heroFloat1 12s ease-in-out infinite;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(15,157,108,.45), transparent 70%);
  bottom: -200px; left: 6%;
  animation: heroFloat2 14s ease-in-out infinite;
}
@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -15px) scale(1.08); }
}

/* mesh grid overlay — sits ABOVE video as subtle pattern */
.hero .hero-mesh {
  position: absolute; inset: 0; z-index: 1; opacity: .06;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.5) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  pointer-events: none;
}

.hero-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg-youtube {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-bg-youtube iframe {
  position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 100vh;
  min-width: 100%; min-height: 56.25vw; border: 0; pointer-events: none;
  transform: translate(-50%, -50%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px;
  margin-bottom: 24px; backdrop-filter: blur(8px);
  animation: heroBadgeIn .8s .2s ease both;
}
@keyframes heroBadgeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.hero-title {
  font-size: 48px; font-weight: 800; line-height: 1.1;
  margin-bottom: 18px; color: #fff; letter-spacing: -.5px;
  animation: heroTitleIn .8s .35s ease both;
}
@keyframes heroTitleIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-title .grad {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 17px; opacity: .85; max-width: 560px;
  margin: 0 auto 32px; line-height: 1.6;
  animation: heroTitleIn .8s .45s ease both;
}

/* hero search */
.hero-search {
  display: flex; background: #fff; border-radius: 18px;
  padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.2);
  max-width: 660px; margin: 0 auto; gap: 8px;
  animation: heroTitleIn .8s .55s ease both;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-search .hs-input {
  flex: 1; border: 0; padding: 14px 18px; font-size: 15px;
  outline: none; background: transparent; color: var(--dark);
}
.hero-search .hs-input::placeholder { color: #94a3b8; }
.hero-search .hs-select {
  border: 0; padding: 14px 12px; font-size: 14px; outline: none;
  background: var(--bg); border-radius: 10px; color: var(--slate);
}
.hero-search .btn { border-radius: 12px; padding: 14px 26px; font-size: 15px; }

.hero-stats {
  display: flex; justify-content: center; gap: 44px;
  margin-top: 48px; animation: heroTitleIn .8s .65s ease both;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 28px; font-weight: 800;
  font-family: var(--font-head);
}
.hero-stat span { font-size: 13.5px; opacity: .7; }

@media (max-width: 700px) {
  .hero { padding: 64px 0 88px; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .hero-search { flex-direction: column; border-radius: 14px; }
  .hero-search .hs-select { width: 100%; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat strong { font-size: 22px; }
}

/* --------------------------------------------- category scroll slider */
.cat-scroll {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 20px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll::after { content: ''; flex-shrink: 0; width: 1px; }

/* keep old grid for non-homepage */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }

.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--slate); scroll-snap-align: start;
  flex-shrink: 0; width: 160px; min-width: 140px;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.cat-card:hover::before { opacity: 1; }
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card .cc-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-size: 24px;
  transition: all var(--transition);
  animation: ccIconPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
}
@keyframes ccIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.cat-card:hover .cc-icon {
  background: var(--primary); color: #fff;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 6px 16px rgba(15,157,108,.3);
  animation: ccIconBounce .5s ease;
}
@keyframes ccIconBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.2) rotate(-8deg); }
  60% { transform: scale(1.08) rotate(-2deg); }
  100% { transform: scale(1.15) rotate(-5deg); }
}
.cat-card strong { font-size: 14px; color: var(--dark); }
.cat-card small { display: block; color: var(--muted); font-size: 12px; }

/* scroll indicators */
.cat-scroll-wrap { position: relative; }
.cat-scroll-wrap::before, .cat-scroll-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 20px; width: 48px; z-index: 2;
  pointer-events: none;
}
.cat-scroll-wrap::after {
  right: 0;
  background: linear-gradient(to right, transparent, var(--bg));
}
.cat-scroll-wrap::before {
  left: 0;
  background: linear-gradient(to left, transparent, var(--bg));
}

@media (max-width: 700px) {
  .cat-card { width: 130px; min-width: 120px; padding: 18px 14px; }
  .cat-card .cc-icon { width: 50px; height: 50px; font-size: 20px; }
}

/* --------------------------------------------- service cards */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 24px;
}
.service-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
  position: relative;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,23,42,.1);
  border-color: rgba(15,157,108,.3);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card .sc-media {
  position: relative; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #d1fae5, #f0fdf4); overflow: hidden;
}
.service-card .sc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.service-card:hover .sc-media img { transform: scale(1.06); }

.service-card .sc-media .img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #a7f3d0, #e7f6f0);
}

.service-card .sc-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95); color: var(--primary-dark);
  font-weight: 700; font-size: 12.5px; padding: 5px 12px;
  border-radius: 999px; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px); z-index: 1;
}
.service-card .sc-fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0;
  color: var(--muted); display: grid; place-items: center;
  cursor: pointer; font-size: 14px; z-index: 1;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}
.service-card .sc-fav:hover { transform: scale(1.15); }
.service-card .sc-fav.on { color: var(--danger); }

.service-card .sc-body {
  padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1;
}
.service-card .sc-seller { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.service-card .sc-seller img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--primary-light); }
.service-card .sc-seller .img-placeholder { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#a7f3d0,#0f9d6c); }
.service-card .sc-seller span { font-size: 13px; font-weight: 600; color: var(--muted); }
.service-card .sc-title {
  font-size: 15.5px; font-weight: 600; color: var(--dark); margin-bottom: 12px;
  line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.service-card .sc-title a { color: inherit; }
.service-card .sc-title a:hover { color: var(--primary); }
.service-card .sc-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.service-card .sc-meta .stars { color: var(--accent); font-size: 12px; }
.service-card .sc-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border-light); padding-top: 14px; margin-top: auto;
}
.service-card .sc-price { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--dark); }
.service-card .sc-price small { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* --------------------------------------------- how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; position: relative;
  transition: all var(--transition);
}
.step-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-5px);
  border-color: rgba(15,157,108,.2);
}
.step-num {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-family: var(--font-head);
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 6px 16px rgba(15,157,108,.25);
  transition: transform var(--transition);
}
.step-card:hover .step-num { transform: scale(1.1) rotate(-5deg); }
.step-card h4 { margin-bottom: 8px; font-size: 17px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------- page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #0f172a, #133b2e 65%, #0b7d55);
  color: #fff; padding: 54px 0 62px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(245,158,11,.28), transparent 70%);
  top: -150px; right: -80px;
}
.page-hero h1 { color: #fff; font-size: 34px; font-weight: 800; }
.page-hero .crumbs { font-size: 13.5px; opacity: .8; margin-bottom: 10px; }
.page-hero .crumbs a { color: #fff; opacity: .85; }
.page-hero .crumbs a:hover { opacity: 1; }

/* --------------------------------------------- layout helpers */
.two-col { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 { font-size: 17px; }
.card-body { padding: 22px; }
#dashJobMap { width: 100%; position: relative; }

/* --------------------------------------------- auth pages */
.auth-wrap {
  min-height: calc(100vh - 70px); display: grid; place-items: center;
  padding: 48px 20px;
  background: linear-gradient(160deg, #f6f8fb 0%, var(--primary-light) 100%);
}
.auth-card {
  width: 100%; max-width: 440px; background: #fff;
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 38px 34px;
}
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-role { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.auth-role label {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; text-align: center; cursor: pointer;
  transition: all var(--transition); font-weight: 600; font-size: 14px; color: var(--dark);
}
.auth-role input { display: none; }
.auth-role input:checked + label {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Social login buttons */
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 16px; color: var(--muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.social-login-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 13.5px; border: 2px solid var(--border); color: var(--dark);
  background: #fff; transition: all .2s; cursor: pointer; text-decoration: none;
}
.btn-social:hover { border-color: #ccc; background: #f9fafb; }
.btn-social i { font-size: 18px; }
.btn-facebook { color: #1877f2; border-color: #d1e3ff; background: #f0f6ff; }
.btn-facebook:hover { background: #e0edff; border-color: #1877f2; }
.btn-google { color: #ea4335; border-color: #fce0dc; background: #fff5f4; }
.btn-google:hover { background: #ffeee8; border-color: #ea4335; }

/* --------------------------------------------- dashboard layout */
.dash-layout { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; max-width: 1500px; margin: 0 auto; padding: 26px 24px 64px; }
.dash-main { min-width: 0; }

.dash-sidebar {
  position: sticky; top: 92px; background: #fff;
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 10px 34px rgba(15,23,42,.06); overflow: hidden; z-index: 40;
}
.dash-side-head {
  position: relative; padding: 26px 20px 22px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--dark) 140%);
}
.dash-side-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 55%);
}
.dash-side-head img, .dash-side-head .dash-avatar {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; display: grid; place-items: center;
  border: 3px solid rgba(255,255,255,.35); box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.dash-side-head .dash-avatar { background: rgba(255,255,255,.16); font-size: 26px; color: #fff; }
.dash-side-head strong { display: block; font-size: 15.5px; line-height: 1.3; }
.dash-side-head span { font-size: 12.5px; opacity: .85; display: block; margin-top: 3px; }
.dash-side-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 14px;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.dash-side-close:hover { background: rgba(255,255,255,.32); }

.dash-nav { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px 10px; max-height: calc(100vh - 240px); overflow-y: auto; }
.dash-nav .dash-group {
  font-family: var(--font-head); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); padding: 14px 10px 4px;
}
.dash-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; color: var(--slate); font-weight: 500; font-size: 14px;
  border-radius: 12px; text-decoration: none; transition: all var(--transition-fast);
}
.dash-nav a i { width: 22px; text-align: center; font-size: 14px; color: var(--muted); transition: color var(--transition-fast), transform var(--transition-fast); }
.dash-nav a::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 4px; height: 55%; border-radius: 4px; background: var(--primary);
  transition: transform var(--transition);
}
.dash-nav a:hover { background: #f1faf6; color: var(--primary-dark); transform: translateX(3px); }
.dash-nav a:hover i { color: var(--primary); transform: scale(1.1); }
.dash-nav a.active {
  background: linear-gradient(90deg, var(--primary-light), #ffffff 92%);
  color: var(--primary-dark); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(15,157,108,.12);
}
.dash-nav a.active i { color: var(--primary); }
.dash-nav a.active::before { transform: translateY(-50%) scaleY(1); }
.dash-nav a.dash-logout { margin-top: 8px; color: #b91c1c; }
.dash-nav a.dash-logout:hover { background: #fef2f2; color: #b91c1c; }
.dash-nav a.dash-logout i { color: #dc2626; }

/* topbar */
.dash-topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 6px 22px rgba(15,23,42,.04);
  position: sticky; top: 84px; z-index: 30; margin-bottom: 22px;
}
.dash-top-title { display: flex; align-items: center; gap: 10px; flex: 1; }
.dash-top-title i { color: var(--primary); font-size: 15px; }
.dash-top-title strong { font-family: var(--font-head); font-size: 16px; color: var(--dark); }
.dash-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--border); background: #fff; color: var(--dark);
  border-radius: 10px; font-size: 15px; cursor: pointer;
  align-items: center; justify-content: center; transition: all var(--transition-fast);
}
.dash-toggle:hover { border-color: var(--primary); color: var(--primary); }
.dash-topbar .btn span { display: inline; }

/* content */
.dash-content { display: flex; flex-direction: column; gap: 18px; }
.dash-content > * { animation: dashFadeUp .5s ease both; }
.dash-content > *:nth-child(2) { animation-delay: .05s; }
.dash-content > *:nth-child(3) { animation-delay: .1s; }
.dash-content > *:nth-child(4) { animation-delay: .15s; }
.dash-content > *:nth-child(5) { animation-delay: .2s; }
@keyframes dashFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* dashboard welcome header */
.dash-hello {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 26px 28px; border-radius: 20px;
  color: #fff; background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 45%, #1d4ed8 130%);
  box-shadow: 0 12px 30px rgba(15,157,108,.22); position: relative; overflow: hidden;
}
.dash-hello::before {
  content: ''; position: absolute; top: -60%; right: -8%; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}
.dash-hello::after {
  content: ''; position: absolute; bottom: -70%; left: 12%; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.1), transparent 60%);
  pointer-events: none;
}
.dash-hello > div, .dash-hello > form { position: relative; z-index: 1; }
.dash-hello h1 { color: #fff; font-size: 24px; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,.12); }
.dash-hello p.muted { color: rgba(255,255,255,.82); }

.dash-overlay { display: none; }

@media (max-width: 1024px) {
  .dash-layout { grid-template-columns: 1fr; padding: 20px 16px 48px; }
  .dash-toggle { display: flex; }
  .dash-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 292px; max-width: 86vw;
    border-radius: 0 20px 20px 0; z-index: 1000;
    transform: translateX(-105%); transition: transform .3s ease; overflow-y: auto;
  }
  .dash-sidebar.open { transform: translateX(0); box-shadow: 24px 0 60px rgba(15,23,42,.28); }
  .dash-side-close { display: flex; }
  .dash-sidebar .dash-nav { max-height: none; padding-bottom: 24px; }
  .dash-overlay { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); z-index: 999; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
  .dash-overlay.show { opacity: 1; visibility: visible; }
  .dash-topbar { top: 0; border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .dash-layout { padding: 14px 10px 40px; }
  .dash-topbar { padding: 12px 12px; }
  .dash-topbar .btn span { display: none; }
  .dash-top-title strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-content > *, .dash-sidebar, .reveal, .hero-title, .hero-badge, .hero-subtitle, .hero-search, .hero-stats {
    animation: none !important; transition: none !important;
  }
}

.dash-main { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-xs); transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
  transition: transform var(--transition);
}
.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-3deg); }
.stat-card .stat-num { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--dark); line-height: 1.1; }
.stat-card .stat-label { font-size: 13px; color: var(--muted); }
.stat-green { background: #dcfce7; color: #16a34a; }
.stat-blue { background: #dbeafe; color: #2563eb; }
.stat-amber { background: #fef3c7; color: #f59e0b; }
.stat-rose { background: #fce7f3; color: #db2777; }
.stat-violet { background: #ede9fe; color: #7c3aed; }

/* --------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted); font-weight: 600;
  padding: 12px 16px; border-bottom: 2px solid var(--border); white-space: nowrap;
}
.table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover { background: #f8fafc; }
.table .t-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.table .img-placeholder { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#a7f3d0,#0f9d6c); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --------------------------------------------- pagination */
.pagination-wrap { display: flex; justify-content: center; margin-top: 36px; }
.pagination { display: flex; gap: 6px; list-style: none; }
.pagination li a, .pagination li span {
  display: grid; place-items: center; min-width: 38px; height: 38px;
  padding: 0 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  color: var(--slate); font-weight: 600; font-size: 14px;
  transition: all var(--transition-fast);
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination li.active span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(15,157,108,.25); }

/* --------------------------------------------- footer */
.footer {
  background: var(--dark); color: #94a3b8; padding: 56px 0 0; margin-top: 0;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: #94a3b8; display: block; padding: 4px 0; font-size: 14px; transition: all var(--transition-fast); }
.footer a:hover { color: #fff; transform: translateX(3px); }
.footer .f-brand {
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.footer .f-brand .brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; font-size: 16px; color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; text-align: center; font-size: 13px;
}
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); display: grid; place-items: center;
  padding: 0; transition: all var(--transition-fast);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------- service detail */
.service-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
@media (max-width: 980px) { .service-layout { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); aspect-ratio: 16/9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#a7f3d0,#0f9d6c); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; padding: 0; background: #fff; aspect-ratio: 4/3; transition: border-color var(--transition-fast); }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.order-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.order-box .ob-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.order-box .ob-price strong { font-size: 34px; font-weight: 800; font-family: var(--font-head); color: var(--dark); }
.order-box .ob-rows { margin: 20px 0; border-top: 1px dashed var(--border); }
.order-box .ob-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.order-box .ob-row span:last-child { font-weight: 600; color: var(--dark); }
.seller-mini { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--bg); border-radius: var(--radius-sm); margin-top: 18px; }
.seller-mini img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.seller-mini .img-placeholder { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,#34d399,#0f9d6c); }

.feature-list { list-style: none; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.feature-list i { color: var(--primary); margin-top: 3px; }
.review-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-item .img-placeholder { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#a7f3d0,#0f9d6c); }
.review-item .rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-item .rv-head strong { font-size: 14.5px; color: var(--dark); }
.review-item .rv-head .stars { color: var(--accent); font-size: 12px; }

/* --------------------------------------------- filter sidebar */
.filter-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.filter-panel h4 { font-size: 15px; margin-bottom: 14px; }
.filter-group { margin-bottom: 20px; }
.filter-group .fg-title { font-weight: 600; font-size: 13.5px; color: var(--dark); margin-bottom: 10px; }
.filter-list { list-style: none; display: grid; gap: 7px; }
.filter-list a { font-size: 14px; color: var(--slate); display: flex; justify-content: space-between; padding: 6px 10px; border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.filter-list a:hover, .filter-list a.active { background: var(--primary-light); color: var(--primary-dark); }
.filter-list a span { color: var(--muted); font-size: 12px; }

/* --------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tabs button, .tabs a {
  background: none; border: 0; padding: 10px 16px; font-weight: 600;
  font-size: 14px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition-fast);
}
.tabs button.active, .tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs button:hover, .tabs a:hover { color: var(--primary); }

/* --------------------------------------------- misc */
.avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.img-placeholder { background: linear-gradient(135deg, #a7f3d0, #0f9d6c); display: grid; place-items: center; color: #fff; font-weight: 700; text-transform: uppercase; }
.stars { color: var(--accent); display: inline-flex; gap: 1px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 52px; color: #cbd5e1; display: block; margin-bottom: 14px; }
.empty-state h3 { color: var(--dark); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

.attachment-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); color: var(--muted);
  font-size: 14px; cursor: pointer; background: #fff;
  transition: all var(--transition-fast);
}
.attachment-btn:hover { border-color: var(--primary); color: var(--primary); }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 24px; color: #cbd5e1; cursor: pointer; transition: color var(--transition-fast); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }

.breadcrumb-list { display: flex; gap: 6px; list-style: none; font-size: 13px; flex-wrap: wrap; }
.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list li + li::before { content: '/'; margin-right: 6px; color: #cbd5e1; }

.mobile-menu { display: none; }
@media (max-width: 900px) { .desktop-only { display: none !important; } }

/* toast */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 300; display: grid; gap: 10px; max-width: 360px; }
.toast {
  background: #fff; border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 14px 18px; font-size: 14px; font-weight: 500;
  animation: toastIn .3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px) scale(.96); } to { opacity: 1; transform: translateX(0) scale(1); } }

@media print { .navbar, .footer, .no-print, .dash-side { display: none !important; } .dash { display: block; padding: 0; } }

/* chat bubbles */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 520px; background: #fff; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 600px; }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--dark); transition: background var(--transition-fast); }
.chat-item:hover { background: var(--primary-light); }
.chat-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
.chat-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-window { display: flex; flex-direction: column; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--border); background: #fff; display: flex; align-items: center; gap: 10px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; max-height: 420px; }
.chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); align-items: center; background: #fff; }
.chat-input .form-control { flex: 1; }
.chat-bubble { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 14px; max-width: 80%; }
.chat-bubble.mine { background: var(--primary); color: #fff; border-color: var(--primary); margin-left: auto; }
.chat-bubble.mine .chat-time { color: rgba(255,255,255,.75); }
.chat-time { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* key-value rows */
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv-row span { color: var(--muted); }
.kv-row strong { text-align: right; }

/* admin settings tab helper */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { background: none; border: 0; padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition-fast); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* =====================================================================
   MAP STYLES
   ===================================================================== */
#seller-map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 12px 34px rgba(15,23,42,.22); padding: 0; }
#seller-map .leaflet-popup-content { margin: 0; width: 272px !important; line-height: 1.4; }
#seller-map .leaflet-popup-tip { display: none; }
#seller-map .leaflet-popup-close-button { color: #94a3b8; font-size: 18px; top: 8px; right: 8px; }
.seller-map-popup { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.seller-map-popup img, .seller-map-popup .smp-ph { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.seller-map-popup .smp-ph { background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: #fff; display: grid; place-items: center; font-size: 20px; }
.seller-map-popup .smp-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.seller-map-popup .smp-name { font-family: var(--font-head); color: var(--dark); font-size: 14.5px; line-height: 1.3; }
.seller-map-popup .smp-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.seller-map-popup .smp-meta .fa-star { color: var(--accent); }
.seller-map-popup .btn { margin-top: 7px; align-self: flex-start; }
.seller-pin-wrap { background: none; border: none; transition: transform .25s ease; }
.seller-pin { position: relative; display: grid; place-items: center; width: 38px; height: 38px; background: var(--primary); color: #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 5px 14px rgba(15,23,42,.38); transition: all var(--transition-fast); }
.seller-pin i { transform: rotate(45deg); font-size: 14px; }
.leaflet-marker-icon.seller-pin-wrap:hover .seller-pin { background: var(--dark); transform: rotate(-45deg) scale(1.12); }
.leaflet-marker-icon.seller-pin-wrap.pin-highlight { z-index: 999 !important; transform: scale(1.35); }
.leaflet-marker-icon.seller-pin-wrap.pin-highlight .seller-pin { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.35), 0 6px 20px rgba(15,23,42,.45); animation: pinPulse 1.8s ease-in-out infinite; width: 46px; height: 46px; }
.leaflet-marker-icon.seller-pin-wrap.pin-highlight .seller-pin i { font-size: 17px; }
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,.35), 0 6px 20px rgba(15,23,42,.45); }
  50% { box-shadow: 0 0 0 10px rgba(245,158,11,.15), 0 6px 24px rgba(15,23,42,.5); }
}

/* =====================================================================
   JOBS SYSTEM
   ===================================================================== */
.job-map-section { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 28px; border: 2px solid rgba(15,157,108,.12); }
.job-map-section .map-toolbar { display: flex; gap: 10px; padding: 14px 18px; background: linear-gradient(135deg,var(--primary) 0%,#1b7a56 100%); align-items: center; flex-wrap: wrap; }
.job-map-section .map-toolbar .map-search { flex: 1; min-width: 220px; padding: 10px 14px; border: none; border-radius: 10px; font-size: 14px; background: rgba(255,255,255,.95); color: var(--dark); }
.job-map-section .map-toolbar .map-search::placeholder { color: #888; }
.job-map-section .map-toolbar .map-count { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
#jobsMap, #jobPostMap { height: 420px; width: 100%; background: #e8f5e9; }

.job-pin-wrap { background: none; border: none; }
.job-pin { position: relative; display: grid; place-items: center; min-width: 44px; height: 44px; background: linear-gradient(135deg,var(--primary),#27ae60); color: #fff; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 5px 18px rgba(15,157,108,.45); font-size: 13px; font-weight: 700; padding: 0 8px; white-space: nowrap; transition: transform var(--transition-fast); }
.job-pin::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid #27ae60; }
.job-pin:hover { transform: scale(1.15); z-index: 999 !important; }
.leaflet-marker-icon.job-pin-wrap:hover .job-pin { background: linear-gradient(135deg,#e74c3c,#c0392b); }
.leaflet-marker-icon.job-pin-wrap:hover .job-pin::after { border-top-color: #c0392b; }

.job-map-popup { min-width: 260px; max-width: 320px; font-size: 13px; line-height: 1.5; }
.job-map-popup .jmp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.job-map-popup .jmp-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); flex-shrink: 0; }
.job-map-popup .jmp-avatar-placeholder { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),#27ae60); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.job-map-popup .jmp-info h4 { margin: 0; font-size: 14px; line-height: 1.3; }
.job-map-popup .jmp-info .muted { font-size: 12px; }
.job-map-popup .jmp-desc { font-size: 13px; color: #555; margin: 8px 0; line-height: 1.5; max-height: 60px; overflow: hidden; }
.job-map-popup .jmp-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.job-map-popup .jmp-meta span { font-size: 12px; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.jmp-price { background: linear-gradient(135deg,var(--primary),#27ae60); color: #fff !important; }
.jmp-cat { background: #f0fdf4; color: var(--primary); border: 1px solid #bbf7d0; }
.jmp-date { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.job-map-popup .btn { margin-top: 6px; width: 100%; text-align: center; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.job-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #f0f0f0; transition: all var(--transition); position: relative; }
.job-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.job-card-accent { height: 4px; background: linear-gradient(90deg,var(--primary),#27ae60,#2ecc71); }
.job-card-body { padding: 22px; }
.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.job-card-header h3 { margin: 0; font-size: 16px; line-height: 1.35; flex: 1; }
.job-card-header h3 a { color: var(--dark); text-decoration: none; transition: color var(--transition-fast); }
.job-card-header h3 a:hover { color: var(--primary); }
.job-card-seller { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.job-card-seller img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.job-card-desc { font-size: 14px; line-height: 1.6; color: #555; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.job-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.job-card-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.job-card-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.job-card-loc { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.map-picker-wrap { border-radius: 12px; overflow: hidden; border: 2px solid #e2e8f0; position: relative; }
.map-picker-wrap.active { border-color: var(--primary); }
.map-picker-toolbar { display: flex; gap: 8px; padding: 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.map-picker-toolbar input { flex: 1; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.map-picker-toolbar input:focus { outline: none; border-color: var(--primary); }
.map-picker-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(15,23,42,.85); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 12px; z-index: 1000; pointer-events: none; }
.map-picker-selected { padding: 10px 14px; background: #f0fdf4; border-top: 1px solid #bbf7d0; font-size: 13px; color: var(--primary); display: none; align-items: center; gap: 6px; }
.map-picker-selected.show { display: flex; }

.bid-list { display: flex; flex-direction: column; gap: 16px; }
.bid-card { background: #fff; border-radius: 16px; border: 1px solid #f0f0f0; overflow: hidden; transition: all var(--transition); }
.bid-card:hover { box-shadow: var(--shadow); }
.bid-card-header { display: flex; align-items: center; gap: 14px; padding: 20px 22px 0; }
.bid-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #f0fdf4; flex-shrink: 0; }
.bid-avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),#27ae60); display: grid; place-items: center; color: #fff; font-size: 20px; flex-shrink: 0; }
.bid-seller-info { flex: 1; }
.bid-seller-info h4 { margin: 0; font-size: 16px; }
.bid-seller-info .muted { font-size: 13px; }
.bid-seller-info .bid-rating { color: var(--accent); font-size: 13px; }
.bid-body { padding: 16px 22px; }
.bid-cover { font-size: 14px; line-height: 1.7; color: #555; white-space: pre-line; }
.bid-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: #f8fafc; border-top: 1px solid #f1f5f9; flex-wrap: wrap; gap: 10px; }
.bid-amount { font-size: 22px; font-weight: 800; color: var(--primary); }
.bid-amount small { font-size: 12px; font-weight: 400; color: var(--muted); }
.bid-actions { display: flex; gap: 8px; }
.bid-accepted { background: #f0fdf4; border-color: #bbf7d0; }
.bid-accepted .bid-footer { background: #dcfce7; }
.bid-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.bid-status-accepted { background: #dcfce7; color: #16a34a; }
.bid-status-declined { background: #fee2e2; color: #dc2626; }
.bid-status-pending { background: #fef3c7; color: #d97706; }

.job-detail-map { height: 260px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; border: 2px solid #f0f0f0; }

.job-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.job-stat { flex: 1; min-width: 100px; text-align: center; padding: 16px; background: #fff; border-radius: 12px; border: 1px solid #f0f0f0; }
.job-stat .stat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 8px; font-size: 16px; }
.job-stat .stat-val { font-size: 20px; font-weight: 800; color: var(--dark); }
.job-stat .stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-icon-green { background: #f0fdf4; color: var(--primary); }
.stat-icon-blue { background: #eff6ff; color: #3b82f6; }
.stat-icon-amber { background: #fffbeb; color: var(--accent); }
.stat-icon-purple { background: #faf5ff; color: #9333ea; }

@media (max-width: 768px) {
    .job-grid { grid-template-columns: 1fr; }
    #jobsMap, #jobPostMap { height: 300px; }
    .job-map-section .map-toolbar { flex-direction: column; }
    .job-map-section .map-toolbar .map-search { min-width: 0; width: 100%; }
    .bid-footer { flex-direction: column; align-items: flex-start; }
    .dash-hello { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------- mobile bottom navigation */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(226,232,240,.5);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(15,23,42,.06);
}
.mobile-bottom-nav .mbn-inner {
  display: flex; justify-content: space-around; align-items: center;
  max-width: 500px; margin: 0 auto;
}
.mobile-bottom-nav .mbn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; color: var(--muted); font-size: 10.5px; font-weight: 600;
  text-decoration: none; border-radius: 12px;
  transition: all var(--transition-fast); border: 0; background: none; cursor: pointer;
  position: relative;
}
.mobile-bottom-nav .mbn-item i { font-size: 20px; line-height: 1; transition: transform var(--transition-fast); }
.mobile-bottom-nav .mbn-item:hover { color: var(--primary); }
.mobile-bottom-nav .mbn-item.active { color: var(--primary); }
.mobile-bottom-nav .mbn-item.active i { transform: scale(1.1); }

/* active indicator dot */
.mobile-bottom-nav .mbn-item.active::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary);
}

/* center elevated button (post job / search jobs) */
.mobile-bottom-nav .mbn-item.mbn-post {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 50%; width: 54px; height: 54px;
  margin-top: -20px;
  box-shadow: 0 6px 20px rgba(15,157,108,.35);
  font-size: 0; padding: 0;
  transition: all var(--transition);
}
.mobile-bottom-nav .mbn-item.mbn-post i { font-size: 22px; color: #fff; margin: 0; }
.mobile-bottom-nav .mbn-item.mbn-post:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(15,157,108,.45); }
.mobile-bottom-nav .mbn-item.mbn-post::after { display: none; }

.mobile-bottom-nav .mbn-badge {
  position: absolute; top: -2px; right: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* guest login center button — amber/gold gradient */
.mobile-bottom-nav .mbn-item.mbn-post.mbn-login {
  background: linear-gradient(135deg, var(--accent), #d97706);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}
.mobile-bottom-nav .mbn-item.mbn-post.mbn-login:hover {
  box-shadow: 0 10px 30px rgba(245,158,11,.45);
}

/* customer vs trades label under center button */
.mbn-post-label {
  font-size: 8.5px !important; font-weight: 700 !important; letter-spacing: .3px;
  color: rgba(255,255,255,.85) !important; text-transform: uppercase;
  line-height: 1;
}

/* --- mobile bottom nav + overflow fix --- */
.mobile-job-cards { display: none; }
@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 76px; }
  .navbar-actions .desktop-only { display: none !important; }
  .footer { display: none; }
  .desktop-table-wrap { display: none; }
  .mobile-job-cards { display: flex; flex-direction: column; gap: 12px; }
}

/* --- mobile stacked job cards --- */
.mobile-job-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mjc-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.mjc-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--dark, #0f172a); margin: 0; line-height: 1.3;
}
.mjc-location {
  font-size: 12px; color: var(--muted, #64748b);
}
.mjc-location i { color: #e74c3c; margin-right: 4px; }
.mjc-meta {
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted, #64748b);
}
.mjc-meta i { margin-right: 3px; color: var(--primary, #0f9d6c); }
.mjc-actions {
  display: flex; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border, #e2e8f0);
}

/* --------------------------------------------- grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 18px; }

@media (max-width: 768px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .jqm-modal { width: 95vw !important; max-height: 90vh !important; }
}

/* --------------------------------------------- job quick-view modal */
.jqm-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  backdrop-filter: blur(6px); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.jqm-modal {
  background: #fff; border-radius: 18px; width: 560px; max-width: 100%;
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: jqmIn .3s cubic-bezier(.4,0,.2,1);
}
@keyframes jqmIn { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.jqm-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.jqm-head h3 { font-family: var(--font-head); font-size: 18px; color: var(--dark); margin: 0; flex: 1; padding-right: 10px; }
.jqm-close {
  width: 32px; height: 32px; border: none; background: var(--bg);
  border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  color: var(--slate); font-size: 14px; flex-shrink: 0;
  transition: all var(--transition-fast);
}
.jqm-close:hover { background: #fee2e2; color: var(--danger); }
.jqm-body { padding: 16px 22px; }
.jqm-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--slate); margin-bottom: 12px; }
.jqm-meta span { display: inline-flex; align-items: center; gap: 4px; }
.jqm-location { font-size: 13px; color: var(--slate); margin-bottom: 10px; }
.jqm-desc { font-size: 14px; line-height: 1.7; color: var(--dark); margin-bottom: 14px; max-height: 200px; overflow-y: auto; }
.jqm-buyer { font-size: 13px; color: var(--slate); padding: 10px 0; border-top: 1px solid var(--border); }
.jqm-foot { display: flex; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--border); }
.jqm-foot .btn { flex: 1; text-align: center; }

/* --------------------------------------------- CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  border-radius: var(--radius-lg); padding: 52px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; opacity: .08;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.8) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 50px 50px;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 24px; font-size: 16px; }
.cta-section .btn-light { background: #fff; color: var(--dark); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.cta-section .btn-light:hover { box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* --------------------------------------------- map search bar (homepage) */
.map-search-bar {
  display: flex; gap: 10px; max-width: 500px; margin: 0 auto 20px;
}
.map-search-bar .form-control {
  flex: 1; padding: 12px 16px; border-radius: 12px;
  border: 2px solid var(--border); font-size: 14px;
}
.map-search-bar .form-control:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow);
}
.map-search-bar .btn {
  border-radius: 12px; padding: 12px 24px;
}

@media (max-width: 700px) {
  .cta-section { padding: 36px 24px; }
  .cta-section h2 { font-size: 22px; }
}

/* =====================================================================
   MOBILE RESPONSIVE — comprehensive overrides
   ===================================================================== */

/* --- global container & section padding on mobile --- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 28px 0; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }
  .eyebrow { font-size: 11.5px; padding: 5px 12px; }
}

/* --- hero on small screens --- */
@media (max-width: 640px) {
  .hero { padding: 52px 0 72px; }
  .hero-title { font-size: 26px; line-height: 1.2; }
  .hero-subtitle { font-size: 14px; line-height: 1.6; }
  .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 18px; }
  .hero-search { flex-direction: column; gap: 10px; }
  .hero-search .hs-input,
  .hero-search .hs-select { width: 100%; }
  .hero-search .btn { width: 100%; border-radius: 12px; padding: 14px; }
  .hero-stats { gap: 14px; justify-content: center; }
  .hero-stat strong { font-size: 20px; }
  .hero-stat span { font-size: 12px; }
  .hero-bg-youtube iframe { min-width: 100%; min-height: 56.25vw; width: 100%; }
}

/* --- category cards --- */
@media (max-width: 640px) {
  .cat-scroll { gap: 10px; padding-bottom: 14px; }
  .cat-card { width: 120px; min-width: 110px; padding: 16px 12px; }
  .cat-card .cc-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .cat-card strong { font-size: 13px; }
  .cat-card small { font-size: 11px; }
}

/* --- service grid --- */
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* --- service card --- */
@media (max-width: 640px) {
  .service-card .sc-media { aspect-ratio: 16/10; }
  .service-card .sc-title { font-size: 14.5px; }
  .service-card .sc-price { font-size: 17px; }
}

/* --- steps (how it works) --- */
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step-card { padding: 24px 20px; }
}

/* --- seller grid (top trades) --- */
@media (max-width: 640px) {
  .top-sellers-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}

/* --- CTA section --- */
@media (max-width: 640px) {
  .cta-section { padding: 32px 20px; border-radius: var(--radius); }
  .cta-section h2 { font-size: 20px; margin-bottom: 8px; }
  .cta-section p { font-size: 14px; margin-bottom: 18px; }
  .cta-section .btn-lg { padding: 12px 24px; font-size: 14px; }
}

/* --- map section --- */
@media (max-width: 640px) {
  #seller-map { height: 360px !important; border-radius: 14px !important; }
  .map-search-bar { flex-direction: column; gap: 8px; }
  .map-search-bar .btn { width: 100%; }
}

/* --- navbar mobile --- */
@media (max-width: 900px) {
  .navbar { padding: 14px 0; }
  .navbar .container { padding: 0 16px; }
}
@media (max-width: 640px) {
  .navbar-brand span.nb-title { font-size: 16px; }
  .navbar-actions .btn { padding: 8px 12px; font-size: 13px; }
}

/* --- footer on mobile --- */
@media (max-width: 640px) {
  .footer { padding: 36px 0 24px; }
  .footer h4 { font-size: 14px; margin-bottom: 10px; }
  .footer a { font-size: 13px; }
  .footer-grid { gap: 20px; }
}

/* --- dashboard on mobile --- */
@media (max-width: 640px) {
  .dash { padding: 0 0 60px; }
  .dash-card { border-radius: var(--radius); padding: 18px; }
  .dash-card h3 { font-size: 16px; }
}

/* --- tables on mobile --- */
@media (max-width: 768px) {
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 10px 12px; }
}

/* --- forms on mobile --- */
@media (max-width: 640px) {
  .form-control, .form-select, .form-textarea { font-size: 16px; padding: 14px; }
  .form-label { font-size: 13px; }
  .btn { font-size: 13.5px; padding: 10px 18px; }
}

/* --- product/service detail on mobile --- */
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr !important; }
  .product-detail-grid { grid-template-columns: 1fr !important; }
}

/* --- bottom nav on mobile --- */
@media (min-width: 901px) {
  .bottom-nav { display: none !important; }
}

/* --- chat window on mobile --- */
@media (max-width: 640px) {
  .chat-layout { grid-template-columns: 1fr !important; }
  .chat-list-panel { max-height: 300px; }
}

/* --- touch-friendly tap targets --- */
@media (max-width: 640px) {
  a, button, .btn { min-height: 44px; }
  .cat-card, .service-card { -webkit-tap-highlight-color: transparent; }
}

/* ═══════════════════════════════════════════
   VoIP CALL UI
   ═══════════════════════════════════════════ */

/* ── Incoming call modal ── */
.voip-incoming-modal, .voip-active-modal, .voip-ringing-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

.voip-incoming-card, .voip-active-card, .voip-ringing-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px; padding: 40px 36px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  min-width: 300px; max-width: 360px;
}

.voip-incoming-avatar, .voip-active-avatar, .voip-ringing-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  margin: 0 auto; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  border: 3px solid rgba(255,255,255,.2);
  animation: voip-pulse 2s ease-in-out infinite;
}

@keyframes voip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.25); }
  50% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}

.voip-incoming-actions, .voip-active-actions {
  display: flex; gap: 20px; justify-content: center; margin-top: 8px;
}

.voip-btn {
  border: none; border-radius: 50%; width: 64px; height: 64px;
  font-size: 22px; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s, box-shadow .15s;
}
.voip-btn:hover { transform: scale(1.1); }
.voip-btn:active { transform: scale(.95); }
.voip-btn-accept { background: #22c55e; box-shadow: 0 4px 20px rgba(34,197,94,.4); }
.voip-btn-reject { background: #ef4444; box-shadow: 0 4px 20px rgba(239,68,68,.4); }

/* ── In-call controls ── */
.voip-ctrl-btn {
  border: none; border-radius: 50%; width: 56px; height: 56px;
  font-size: 18px; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.voip-ctrl-btn:hover { background: rgba(255,255,255,.22); }
.voip-ctrl-btn:active { transform: scale(.9); }
.voip-hangup-btn { background: #ef4444; }
.voip-hangup-btn:hover { background: #dc2626; }

.voip-call-status {
  color: rgba(255,255,255,.6); font-size: 14px; margin: 0 0 6px;
}

.voip-timer {
  font-size: 28px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums; margin-bottom: 24px;
}

/* ── Ringing dots animation ── */
.voip-ringing-dots {
  display: flex; gap: 8px; justify-content: center; margin: 16px 0;
}
.voip-ringing-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4);
  animation: voip-dot 1.4s ease-in-out infinite;
}
.voip-ringing-dots span:nth-child(2) { animation-delay: .2s; }
.voip-ringing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes voip-dot {
  0%, 80%, 100% { opacity: .3; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ── Mobile responsive ── */
@media (max-width: 640px) {
  .voip-incoming-card, .voip-active-card, .voip-ringing-card {
    min-width: 0; width: calc(100vw - 40px); padding: 30px 24px;
  }
  .voip-incoming-avatar, .voip-active-avatar, .voip-ringing-avatar {
    width: 72px; height: 72px;
  }
  .voip-btn { width: 56px; height: 56px; font-size: 20px; }
  .voip-ctrl-btn { width: 48px; height: 48px; font-size: 16px; }
  .voip-timer { font-size: 24px; }
}
