/* =========================================================
   OBIZIFY - E-commerce Service Website
   Color Theme: Carrot Orange + Green
   ========================================================= */

:root {
  --carrot: #ed7e18;
  --carrot-dark: #d96a0a;
  --carrot-light: #fdeede;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #e5f7ec;
  --dark: #111827;
  --gray: #4b5563;
  --light: #f8fafc;
  --border: #e5e7eb;
  --white: #ffffff;
  --grad-btn: linear-gradient(90deg, var(--carrot) 0%, var(--green) 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }

/* Bigger, wider layout */
.container { max-width: 1560px; }
.container-fluid { padding-left: 2rem; padding-right: 2rem; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
  margin: 0;
  padding-top: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; }

/* ---------- Utility ---------- */
.carrot { color: var(--carrot); }
.green { color: var(--green); }
.text-muted2 { color: var(--gray); }
.bg-light-soft { background: var(--light); }
.bg-carrot-light { background: var(--carrot-light); }
.bg-green-light { background: var(--green-light); }

.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .25rem; }
.section-subtitle { color: var(--gray); margin-bottom: 1.6rem; }
.divider {
  width: 64px; height: 4px; border-radius: 4px;
  background: var(--grad-btn);
  margin: .5rem 0 1.25rem;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- Header (autobongo-style: top bar / main header / nav) ---------- */
.topbar { background: var(--green-dark); color: #eafff1; font-size: .8rem; }
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .2rem 1.2rem; min-height: 38px; padding-top: .3rem; padding-bottom: .3rem;
}
.topbar-left, .topbar-right { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.1rem; }
.topbar-brand { font-weight: 700; color: #fff; }
.topbar-brand i, .topbar-stat i, .topbar-clock i { margin-right: .25rem; color: var(--green-light); }
.topbar-stat b { color: #fff; font-weight: 700; }

.site-header {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #fff; padding: .9rem 0;
}
.site-header-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; }
.logo-block { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.logo-block-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo-block-text b { font-size: 1.25rem; color: #fff; letter-spacing: -.4px; }
.logo-block-text b .carrot { color: var(--green-light); }
.logo-block-text small { font-size: .7rem; color: #94a3b8; }

.hs-form { width: 100%; }
.hs-bar { display: flex; align-items: stretch; background: #fff; border-radius: 50px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.hs-select { border: none; background: #eef2f6; color: var(--dark); padding: .68rem .95rem; font-size: .85rem; min-width: 150px; max-width: 200px; cursor: pointer; outline: none; }
.hs-bar input { flex: 1; min-width: 0; border: none; padding: .68rem .95rem; font-size: .9rem; outline: none; }
.hs-btn { background: var(--grad-btn); color: #fff; border: none; padding: 0 1.4rem; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: filter .2s; }
.hs-btn:hover { filter: brightness(1.06); }

.hs-actions { display: flex; align-items: center; gap: 1rem; }
.ha-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; color: #cbd5e1; font-size: .73rem; transition: color .2s; }
.ha-item i { font-size: 1.25rem; color: #fff; transition: color .2s, transform .2s; }
.ha-item:hover { color: #fff; }
.ha-item:hover i { color: var(--green-light); transform: translateY(-2px); }
.ha-badge { position: absolute; top: -5px; right: -9px; background: var(--carrot); color: #fff; font-size: .62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.auth-actions { display: flex; align-items: center; gap: .55rem; }
.hg-btn { display: flex; align-items: center; justify-content: center; gap: .45rem; background: var(--grad-btn); color: #fff; border: 2px solid transparent; height: 40px; padding: 0 1.1rem; border-radius: 50px; font-weight: 600; font-size: .85rem; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.hg-btn i { font-size: 1rem; }
.hg-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.3); color: #fff; }
.hg-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.hg-outline:hover { background: #fff; border-color: #fff; color: var(--green-dark); }

.site-nav { background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%); box-shadow: 0 4px 14px rgba(22, 163, 74, .25); }
.site-nav-inner { display: flex; align-items: center; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.site-nav-inner::-webkit-scrollbar { display: none; }
.snav-link { display: flex; align-items: center; gap: .45rem; padding: .62rem .95rem; color: rgba(255,255,255,.93); font-weight: 600; font-size: .9rem; border-radius: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.snav-link i { font-size: 1.05rem; }
.snav-link:hover { background: rgba(255,255,255,.16); color: #fff; }
.snav-active { background: rgba(255,255,255,.22); color: #fff; }

.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-btn);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem;
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-logo-lg {
  width: 54px; height: 54px; border-radius: 14px; overflow: hidden;
  background: var(--grad-btn); display: inline-grid; place-items: center;
}
.brand-logo-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn-obizify {
  background: var(--grad-btn); color: #fff; border: none;
  font-weight: 600; padding: .55rem 1.35rem; border-radius: 50px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-obizify:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(237,126,24,.4); color: #fff; }
.btn-outline-obizify {
  background: transparent; color: var(--carrot);
  border: 2px solid var(--carrot); font-weight: 600;
  padding: .5rem 1.25rem; border-radius: 50px; transition: all .2s;
}
.btn-outline-obizify:hover { background: var(--carrot); color: #fff; }
.btn-green {
  background: var(--green); color: #fff; border: none;
  font-weight: 600; padding: .3rem .8rem; border-radius: 8px; transition: transform .2s;
}
.btn-green:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--carrot-light), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, var(--green-light), transparent 55%),
    linear-gradient(180deg, #fff, var(--light));
  padding: 4rem 0;
  overflow: hidden;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.hero .lead { color: var(--gray); font-size: 1.1rem; }
.hero-search {
  background: #fff; border: 1px solid var(--border); border-radius: 50px;
  padding: .35rem; box-shadow: var(--shadow-md); display: flex;
}
.hero-search input {
  flex: 1; border: none; outline: none; padding: .6rem 1rem; background: transparent;
  font-size: 1rem;
}
.hero-search .btn { border-radius: 50px; padding: .6rem 1.5rem; }
.search-select {
  border: none; background: transparent; padding: .5rem; color: var(--gray); outline: none;
  border-right: 1px solid var(--border); margin-right: .25rem; max-width: 150px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-size: 1.6rem; color: var(--carrot); }
.hero-stat span { color: var(--gray); }

.hero-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero-card img { width: 100%; height: 320px; object-fit: cover; }
.hero-card .tag {
  position: absolute; top: 14px; left: 14px; background: var(--carrot); color: #fff;
  padding: .3rem .8rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.floating-card {
  position: absolute; right: -14px; bottom: 20px; background: #fff;
  border-radius: 12px; box-shadow: var(--shadow-md); padding: .8rem 1rem; display: flex; gap: .6rem; align-items: center;
}

/* ---------- Feature strip ---------- */
.feature-strip { background: var(--white); border-radius: 10px; box-shadow: var(--shadow-sm); padding: .5rem .8rem; }
.feature-item { display: flex; gap: .45rem; align-items: center; }
.feature-item .icon {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  display: grid; place-items: center; font-size: .85rem;
}
.feature-item h6 { margin: 0; font-weight: 600; font-size: .75rem; }
.feature-item p { margin: 0; color: var(--gray); font-size: .68rem; }

/* ---------- Category cards ---------- */
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1rem;
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--carrot); }
.cat-card .cat-icon {
  width: 60px; height: 60px; margin: 0 auto .9rem; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.7rem; color: #fff;
}
.cat-card h6 { margin-bottom: .15rem; font-weight: 700; }
.cat-card small { color: var(--gray); }
.cat-cell-icon.carrot { background: linear-gradient(135deg, var(--carrot), #ffb35e); }
.cat-cell-icon.green { background: linear-gradient(135deg, var(--green), #4ade80); }

/* ---------- Shop by Category sidebar (Alibaba-style dropdowns) ---------- */
.cat-sidebar {
  border: 1px solid #e4e5ee; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-sm); overflow: hidden;
  position: sticky; top: 1rem;
}
.cat-sidebar-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .95rem 1.1rem; color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
}
.cat-sidebar-list { padding: .4rem 0; }
.cat-side-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem 1.1rem; cursor: pointer;
  border-left: 3px solid transparent; transition: background .15s, color .15s;
}
.cat-side-item:hover { background: var(--green-light); }
.cat-side-item.active { background: var(--green-light); border-left-color: var(--green); }
.cat-side-item.open .csi-arrow i { transform: rotate(180deg); }
.csi-icon {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  display: grid; place-items: center; font-size: .95rem; color: #fff;
}
.csi-icon.carrot { background: linear-gradient(135deg, var(--carrot), #ffb35e); }
.csi-icon.green { background: linear-gradient(135deg, var(--green), #4ade80); }
.csi-name {
  flex: 1; font-size: .86rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.csi-count { font-size: .72rem; color: var(--gray); background: var(--light); border-radius: 20px; padding: .1rem .5rem; }
.csi-arrow { color: var(--gray); }
.csi-arrow i { transition: transform .2s; }
.cat-drop {
  display: none; background: #f8fafc;
  border-top: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6;
}
.cat-drop.open { display: block; animation: catDropIn .18s ease; }
@keyframes catDropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cat-drop-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem .5rem 44px; font-size: .82rem; color: #475569;
  cursor: pointer; border-left: 3px solid transparent;
}
.cat-drop-item:hover { background: var(--green-light); color: var(--dark); }
.cat-drop-item.active { background: var(--green-light); border-left-color: var(--green); color: var(--green-dark); font-weight: 600; }

/* ---------- Subcategory chips ---------- */
.sub-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--border); color: var(--dark);
  padding: .45rem .95rem; border-radius: 50px; font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.sub-chip:hover { border-color: var(--carrot); color: var(--carrot); background: var(--carrot-light); }
.sub-chip.active { background: var(--carrot); border-color: var(--carrot); color: #fff; }

/* ---------- Service / Product cards ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s; height: 100%; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .img-wrap { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f3f4f6; }
.service-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .img-wrap img { transform: scale(1.06); }
.service-card .badge-promo {
  position: absolute; top: 12px; left: 12px; background: var(--carrot); color: #fff;
  padding: .25rem .7rem; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.service-card .fav-btn {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  background: rgba(255,255,255,.9); border: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; transition: all .2s;
}
.service-card .fav-btn:hover { background: var(--carrot); color: #fff; }
.service-card .body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.service-card .provider { color: var(--gray); font-size: .8rem; margin-bottom: .3rem; }
.service-card .title { font-weight: 600; margin-bottom: .6rem; font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .price { font-size: 1.25rem; font-weight: 800; color: var(--carrot); }
.service-card .price small { font-size: .75rem; color: var(--gray); font-weight: 500; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--carrot) 0%, var(--green) 100%);
  border-radius: var(--radius); color: #fff; padding: 3rem;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.1); top: -120px; right: -80px;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .btn-light { border-radius: 50px; padding: .6rem 1.6rem; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.cta-banner .btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }

/* ---------- Footer ---------- */
footer { background: #0b1220; color: #cbd5e1; }
footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
footer a { color: #cbd5e1; display: block; padding: .2rem 0; transition: color .2s; }
footer a:hover { color: var(--carrot); }
.footer-brand { display: flex; gap: .6rem; align-items: center; font-weight: 800; color: #fff; font-size: 1.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .85rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; transition: all .2s;
}
.social-btn:hover { background: var(--carrot); }

/* ---------- Spinner / Loader ---------- */
.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; color: var(--gray); }
.spinner-border.text-obizify { color: var(--carrot) !important; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 3rem; color: var(--gray); }
.empty-state .icon { font-size: 3rem; margin-bottom: .5rem; }

/* ---------- Auth pages ---------- */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative;
  background:
    radial-gradient(900px 400px at 5% 0%, var(--carrot-light), transparent 55%),
    radial-gradient(800px 400px at 100% 100%, var(--green-light), transparent 55%),
    var(--light);
}
.auth-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 2.5rem; max-width: 440px; width: 100%;
}
.auth-card .brand-logo { width: 54px; height: 54px; font-size: 1.5rem; margin: 0 auto 1rem; }
.auth-input {
  border-radius: 12px; padding: .8rem 1rem; border: 1.5px solid var(--border);
  width: 100%; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus { outline: none; border-color: var(--carrot); box-shadow: 0 0 0 3px var(--carrot-light); }
.auth-label { font-weight: 600; font-size: .85rem; margin-bottom: .4rem; display: block; }
.auth-pw-field { position: relative; }
.auth-pw-field .auth-input { padding-right: 2.8rem; }
.auth-pw-field .form-text { margin-top: .35rem; }
.auth-pw-toggle {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: #9aa0a6; font-size: 1.1rem;
  padding: .35rem; line-height: 1; cursor: pointer; border-radius: 8px;
}
.auth-pw-toggle:hover { color: var(--carrot); }
.auth-pw-toggle:focus-visible { outline: 2px solid var(--carrot); outline-offset: 2px; }
.alert-obiz { border-radius: 12px; font-size: .85rem; }

/* ---------- Service detail ---------- */
.detail-img { border-radius: var(--radius); object-fit: cover; width: 100%; }
.thumb-img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 10px;
  border: 2px solid var(--border); cursor: pointer; transition: border-color .2s;
}
.thumb-img.active, .thumb-img:hover { border-color: var(--carrot); }
.price-box { font-size: 2rem; font-weight: 800; color: var(--carrot); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: var(--grad-btn); color: #fff;
  display: none; place-items: center; cursor: pointer; z-index: 1050;
  box-shadow: var(--shadow-md);
}

/* ---------- Toast container ---------- */
.toast-container { z-index: 1080; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-page { background: var(--white); box-shadow: var(--shadow-sm); padding: .8rem 0; }

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
  #catSidebarRow.collapse { display: flex !important; }
  #catSidebarRow.collapsing { display: flex !important; }
}
@media (max-width: 991px) {
  .site-header-grid { grid-template-columns: 1fr auto; }
  .logo-block { grid-column: 1; }
  .hs-actions { grid-column: 2; grid-row: 1; }
  .hs-form { grid-column: 1 / -1; grid-row: 2; }
  .hero { padding: 2.5rem 0; }
  .hero-card img { height: 240px; }
  .cat-card { padding: 1rem .75rem; }
  .cta-banner { padding: 2rem 1.5rem; }
}
@media (max-width: 576px) {
  .topbar-stat-hide { display: none; }
  .topbar-right { display: none; }
  .site-header { padding: .7rem 0; }
  .logo-block-text small { display: none; }
  .hs-select { display: none; }
  .hs-btn { padding: 0 1rem; }
  .hs-btn-text { display: none; }
  .ha-label { display: none; }
  .ha-item i { font-size: 1.35rem; }
  .auth-actions { gap: .45rem; }
  .hg-btn { width: 42px; height: 42px; padding: 0; }
  .hg-btn .ha-label { display: none; }
  .hero-search { flex-wrap: wrap; }
  .search-select { max-width: 100%; border-right: none; border-bottom: 1px solid var(--border); margin-bottom: .25rem; }
}

/* =========================================================
   PROVIDER DASHBOARD (Alibaba-style)
   ========================================================= */
.dash-page {
  padding-top: 0;
  background: #f1f5f9;
}

.dash-layout { display: flex; min-height: 100vh; }

.dash-sidebar {
  width: 250px; flex-shrink: 0;
  background: linear-gradient(180deg, #111827, #0b1220);
  color: #cbd5e1;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  z-index: 1040; transition: transform .25s ease;
}

.dash-brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.2rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 800; font-size: 1.25rem; color: #fff;
}
.dash-brand span > span { color: var(--carrot); }

.dash-nav { flex: 1; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .25rem; }
.dash-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: 10px;
  color: #cbd5e1; font-weight: 500; cursor: pointer;
  transition: background .2s, color .2s;
}
.dash-nav a i { font-size: 1.1rem; width: 22px; text-align: center; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav a.active {
  background: linear-gradient(90deg, var(--carrot), var(--green));
  color: #fff; box-shadow: var(--shadow-md);
}

.dash-sidebar-bottom { padding: 1rem .75rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .25rem; }
.dash-sidebar-bottom a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-radius: 10px; color: #cbd5e1; font-weight: 500; cursor: pointer; transition: all .2s;
}
.dash-sidebar-bottom a i { width: 22px; text-align: center; }
.dash-sidebar-bottom a:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Main area */
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.dash-topbar {
  background: #fff; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1030;
}
.dash-topbar h5 { font-weight: 700; }
.dash-toggle { border: none; background: var(--light); width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; }
.dash-avatar-mini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.dash-content { padding: 1.5rem; }

.dash-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); overflow: hidden;
}
.dash-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.dash-card-body { padding: 1.25rem; }

.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm); height: 100%;
}
.stat-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
}
.stat-card b { font-size: 1.5rem; color: var(--dark); display: block; line-height: 1.1; }
.stat-card span { color: var(--gray); font-size: .85rem; }

.quick-action {
  width: 100%; border: 1.5px dashed var(--border); background: var(--light);
  border-radius: 12px; padding: 1.1rem .75rem; color: var(--dark);
  font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  transition: all .2s; cursor: pointer;
}
.quick-action i { font-size: 1.5rem; color: var(--carrot); }
.quick-action:hover { border-color: var(--carrot); background: var(--carrot-light); transform: translateY(-2px); }

.dash-avatar-box {
  width: 140px; height: 140px; margin: 0 auto;
  border-radius: 50%; overflow: hidden; border: 4px solid var(--carrot-light);
  background: #e5e7eb; box-shadow: var(--shadow-md);
}
.dash-avatar-box img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar responsive */
.dash-toggle { display: inline-grid; place-items: center; }

@media (max-width: 991px) {
  .dash-sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-content { padding: 1rem; }
}

/* ---------- Pagination ---------- */
.pager-wrap { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 1.6rem; }
.pager-info { color: #64748b; font-size: .85rem; }
.pager-info b { color: var(--dark); }
.pager-btns { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 .6rem;
  border: 1px solid #e2e8f0; background: #fff; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: #334155; transition: all .2s; cursor: pointer;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.page-dots { color: #94a3b8; padding: 0 .2rem; font-weight: 600; }

/* ---------- Chat ---------- */
.provider-chat-link { color: var(--green); font-weight: 600; text-decoration: none; }
.provider-chat-link:hover { color: var(--carrot); text-decoration: underline; }
.chat-cta { border-color: #0ea5e9 !important; color: #0284c7 !important; }
.chat-cta:hover { background: #0ea5e9 !important; color: #fff !important; }
.chat-btn { left: 12px; right: auto; }
.service-card .fav-btn.chat-btn:hover { background: #0ea5e9; color: #fff; }

.chat-panel { display: grid; grid-template-columns: 340px 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); height: 72vh; min-height: 420px; background: #fff; }
.chat-sidebar { border-right: 1px solid var(--border); display: flex; flex-direction: column; background: var(--light); }
.chat-sidebar-head { padding: .9rem 1rem; font-weight: 700; border-bottom: 1px solid var(--border); background: var(--green); color: #fff; display: flex; align-items: center; gap: .5rem; }
.chat-list { overflow-y: auto; flex: 1; }
.chat-item { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,.04); transition: background .15s; }
.chat-item:hover { background: var(--green-light); }
.chat-item.active { background: var(--green-light); border-left: 3px solid var(--green); }
.chat-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e5e7eb; }
.chat-item-body { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.chat-item-top b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: .68rem; color: var(--gray); flex-shrink: 0; }
.chat-item-msg { font-size: .76rem; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread { background: var(--carrot); color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; flex-shrink: 0; }

.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-main-head { padding: .9rem 1rem; font-weight: 700; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .5rem; background: #fff; }
.chat-thread { flex: 1; overflow-y: auto; padding: 1.2rem; background: #f1f5f9; }
.bubble-row { display: flex; margin-bottom: .6rem; }
.bubble-row.mine { justify-content: flex-end; }
.bubble-row.theirs { justify-content: flex-start; }
.chat-bubble { max-width: 72%; padding: .55rem .85rem; border-radius: 14px; font-size: .88rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.chat-bubble.mine { background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { background: #fff; color: var(--dark); border-bottom-left-radius: 4px; }
.bubble-name { font-size: .68rem; font-weight: 700; color: var(--carrot); margin-bottom: .15rem; }
.bubble-time { font-size: .66rem; margin-top: .3rem; opacity: .75; text-align: right; }
.chat-composer { display: flex; gap: .6rem; padding: .8rem 1rem; border-top: 1px solid var(--border); background: #fff; }
.chat-composer input { flex: 1; border: 1px solid var(--border); border-radius: 24px; padding: .55rem 1.1rem; outline: none; font-size: .9rem; }
.chat-composer input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.chat-send { border-radius: 50% !important; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex-shrink: 0; }

@media (max-width: 991px) {
  .chat-panel { grid-template-columns: 1fr; height: 80vh; }
  .chat-sidebar { max-height: 40%; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-thread { min-height: 200px; }
}
