/* =====================================================================
   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');

:root {
  --primary: #0f9d6c;
  --primary-dark: #0b7d55;
  --primary-light: #e7f6f0;
  --accent: #f59e0b;
  --dark: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --bg: #f6f8fb;
  --white: #ffffff;
  --border: #e2e8f0;
  --danger: #dc2626;
  --success: #16a34a;
  --info: #2563eb;
  --warning: #d97706;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 6px 24px rgba(15, 23, 42, .09);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, .16);
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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; }
a:hover { color: var(--primary-dark); }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }

.section { padding: 64px 0; }
.section-sm { padding: 32px 0; }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--primary-light) 100%); }

.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; }

/* --------------------------------------------- headings helpers */
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.section-subtitle { color: var(--muted); max-width: 620px; margin: 0 auto; }
.eyebrow { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }

/* --------------------------------------------- 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: 1px solid transparent;
  cursor: pointer; transition: all .2s ease; line-height: 1.3; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.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); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: var(--radius-sm); }
.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); }

/* --------------------------------------------- badges & alerts */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; 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; }

.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: 11px 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 .2s, box-shadow .2s; outline: none;
}
.form-control:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 157, 108, .12);
}
.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,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.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), #0b7d55); display: grid; place-items: center; color: #fff; font-size: 18px; }
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a { padding: 9px 14px; border-radius: var(--radius-sm); color: var(--slate); font-weight: 500; font-size: 14.5px; }
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); 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 10px 6px 6px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; }
.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: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 14px 20px; display: none; box-shadow: var(--shadow);
  }
  .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: 84px 0 110px; position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(4px); opacity: .35;
}
.hero::before { width: 420px; height: 420px; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 70%); top: -140px; right: -90px; }
.hero::after { width: 340px; height: 340px; background: radial-gradient(circle, rgba(15,157,108,.5), transparent 70%); bottom: -160px; left: 8%; }
.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,.12); border: 1px solid rgba(255,255,255,.2); padding: 8px 18px; border-radius: 999px; font-size: 13.5px; margin-bottom: 22px; backdrop-filter: blur(4px); }
.hero-title { font-size: 46px; font-weight: 800; line-height: 1.12; margin-bottom: 16px; color: #fff; }
.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 30px; }
.hero-search {
  display: flex; background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto; gap: 8px;
}
.hero-search .hs-input { flex: 1; border: 0; padding: 14px 16px; font-size: 15px; outline: none; background: transparent; color: var(--dark); }
.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: 10px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 44px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 26px; font-weight: 800; font-family: var(--font-head); }
.hero-stat span { font-size: 13.5px; opacity: .75; }
@media (max-width: 700px) {
  .hero { padding: 60px 0 84px; }
  .hero-title { font-size: 32px; }
  .hero-search { flex-direction: column; border-radius: 14px; }
  .hero-search .hs-select { width: 100%; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* --------------------------------------------- category grid */
.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: 22px 14px;
  text-align: center; transition: all .2s ease; display: block; color: var(--slate);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--primary); }
.cat-card .cc-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 22px; }
.cat-card strong { font-size: 14px; color: var(--dark); }
.cat-card small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }

/* --------------------------------------------- service cards */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: all .22s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(15,157,108,.4); }
.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; }
.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: 13px; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.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; }
.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); padding-top: 14px; }
.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(230px, 1fr)); gap: 22px; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; position: relative; transition: all .2s; }
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-num { width: 44px; height: 44px; margin: 0 auto 16px; 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: 18px; }
.step-card h4 { margin-bottom: 8px; font-size: 17px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* --------------------------------------------- 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); }
.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; }

/* --------------------------------------------- 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 .2s; 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); }

/* --------------------------------------------- dashboard layout */
.dash { display: grid; grid-template-columns: 255px 1fr; gap: 24px; align-items: start; padding: 30px 0 60px; }
.dash-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; }
.dash-side .ds-head { padding: 22px 20px; background: linear-gradient(135deg, #0f172a, #133b2e); color: #fff; text-align: center; }
.dash-side .ds-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid rgba(255,255,255,.25); }
.dash-side .ds-head .img-placeholder { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(135deg,#34d399,#0f9d6c); }
.dash-side .ds-head strong { display: block; font-size: 16px; }
.dash-side .ds-head span { font-size: 12.5px; opacity: .8; }
.dash-side nav a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: var(--slate); font-weight: 500; font-size: 14px; border-left: 3px solid transparent; transition: all .15s; }
.dash-side nav a i { width: 20px; text-align: center; color: var(--muted); }
.dash-side nav a:hover { background: var(--bg); color: var(--primary); }
.dash-side nav a.active { background: var(--primary-light); color: var(--primary-dark); border-left-color: var(--primary); font-weight: 600; }
.dash-side nav a.active i { color: var(--primary); }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}

.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: 20px; display: flex; align-items: center; gap: 16px; }
.stat-card .st-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.stat-card .st-num { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--dark); line-height: 1.1; }
.stat-card .st-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; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.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; }
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active span { background: var(--primary); border-color: var(--primary); color: #fff; }

/* --------------------------------------------- footer */
.footer { background: #0f172a; color: #94a3b8; padding: 56px 0 0; margin-top: 0; }
.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; }
.footer a:hover { color: #fff; }
.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), #0b7d55); display: grid; place-items: center; font-size: 16px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
@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; }
.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); }
.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; }
.tabs button.active, .tabs a.active { color: var(--primary); border-bottom-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); }
.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; }
.attachment-btn:hover { border-color: var(--primary); color: var(--primary); }

/* review stars input */
.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; }
.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: slideIn .25s ease; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

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

/* chat bubbles */
.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); }

/* key-value rows */
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 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; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }



/* --- seller map (front page) --- */
#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; }
.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); }
.seller-pin i { transform: rotate(45deg); font-size: 14px; }
.leaflet-marker-icon.seller-pin-wrap:hover .seller-pin, .leaflet-marker-icon.seller-pin-wrap:hover .seller-pin { background: var(--dark); }
