/* =====================================================================
   CuciNow.my v2 — Design System
   Direction: modern indigo (#4F46E5) on dark navy (#0F172A), premium
   SaaS marketplace feel — minimal, rounded cards, soft shadows, no
   gradient overload. Mobile-first with an app-like bottom nav + PWA.
   ===================================================================== */

:root {
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --indigo: #4F46E5;
  --indigo-dark: #4338CA;
  --indigo-soft: #EEF2FF;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --border: rgba(15, 23, 42, 0.08);
  --ink: #0F172A;
  --muted: #64748B;
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #D97706;
  --warning-bg: #FEF3C7;
  --danger: #DC2626;
  --danger-bg: #FEE2E2;
  --info-bg: #DBEAFE;
  --info-fg: #1D4ED8;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.12);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --r-pill: 999px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #121C2B;
  --surface-alt: #0F172A;
  --border: rgba(148, 163, 184, 0.15);
  --ink: #E2E8F0;
  --muted: #94A3B8;
  --indigo-soft: rgba(99, 102, 241, 0.18);
  --shadow-sm: 0 4px 20px rgba(2, 6, 23, 0.35);
  --shadow-md: 0 16px 44px rgba(2, 6, 23, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0 0 12px; color: var(--muted); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.9rem;
  border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Header — Desktop
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; gap: 26px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--indigo);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
}
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { font-weight: 600; font-size: 0.92rem; color: var(--muted); padding: 8px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--indigo); }

.location-pill {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.location-pill i { color: var(--indigo); }

.header-search { flex: 1; max-width: 200px; position: relative; }
.header-search input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--bg); font-family: inherit; font-size: 0.88rem;
}
.header-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.82rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); position: relative;
}
.icon-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.theme-toggle { overflow: hidden; }
.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon { position: absolute; transition: opacity .2s ease, transform .2s ease; }
.theme-toggle .theme-icon-sun { opacity: 0; transform: rotate(-30deg) scale(.8); }
.theme-toggle .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { opacity: 0; transform: rotate(30deg) scale(.8); }
.icon-btn .badge {
  position: absolute; top: -3px; right: -3px; background: var(--indigo); color: #fff; font-size: 0.62rem; font-weight: 800;
  width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.user-chip {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.86rem;
}
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.78rem;
}

/* ---------------------------------------------------------------------
   Mobile app header (curved, sticky) — hidden on desktop
   --------------------------------------------------------------------- */
.mobile-app-header { display: none; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { position: relative; padding: 60px 0 36px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(560px 320px at 82% -10%, rgba(79,70,229,0.14), transparent 70%),
    radial-gradient(420px 260px at 100% 30%, rgba(15,23,42,0.06), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 620px; }
.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 8px; background: var(--indigo-soft); color: var(--indigo-dark);
  padding: 6px 14px; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: 2.9rem; line-height: 1.08; margin-bottom: 16px; }
.hero h1 span { color: var(--indigo); }
.hero p.lead { font-size: 1.05rem; max-width: 480px; margin-bottom: 26px; }

.search-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 8px; box-shadow: var(--shadow-sm); display: flex; gap: 8px; max-width: 600px; flex-wrap: wrap;
}
.search-panel input {
  flex: 1; min-width: 160px; border: none; background: transparent; padding: 12px 16px;
  font-family: inherit; font-size: 0.94rem; outline: none;
}
.search-panel .divider { width: 1px; background: var(--border); margin: 8px 0; }
.search-panel button { border-radius: var(--r-md); }
.use-location-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--indigo);
  margin-top: 12px; background: none; border: none; padding: 0;
}

/* ---------------------------------------------------------------------
   Category chips
   --------------------------------------------------------------------- */
.category-row { display: flex; gap: 10px; padding: 22px 0 6px; overflow-x: auto; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.86rem; white-space: nowrap;
}
.cat-chip i { color: var(--indigo); }
.cat-chip.active, .cat-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-chip.active i, .cat-chip:hover i { color: #A5B4FC; }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding: 32px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.4rem; margin: 0; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filter-bar select, .filter-bar input {
  padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 0.83rem; font-weight: 600;
}

/* ---------------------------------------------------------------------
   Cleaner / Service cards
   --------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }

.cleaner-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.cleaner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--indigo-soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.verified-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(15,23,42,0.85); color: #fff; backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; gap: 4px;
}
.verified-badge i { color: #34D399; }
.distance-badge {
  position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,0.92);
  padding: 5px 10px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 0.72rem; font-weight: 700; color: var(--indigo); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.card-title { font-size: 1.02rem; margin-bottom: 4px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.rating-chip { display: flex; align-items: center; gap: 4px; color: var(--warning); font-weight: 700; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.price-tag { font-weight: 800; font-size: 1rem; }
.price-tag small { font-weight: 500; color: var(--muted); font-size: 0.75rem; }

/* ---------------------------------------------------------------------
   Panels
   --------------------------------------------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------------
   Status badges
   --------------------------------------------------------------------- */
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.status-pending_payment, .status-pending { background: var(--warning-bg); color: var(--warning); }
.status-paid, .status-confirmed, .status-accepted { background: var(--info-bg); color: var(--info-fg); }
.status-in_progress { background: #EDE9FE; color: #6D28D9; }
.status-completed { background: var(--success-bg); color: var(--success); }
.status-cancelled, .status-rejected, .status-expired { background: var(--danger-bg); color: var(--danger); }
.status-refund_requested, .status-disputed { background: #FFE4E6; color: #BE123C; }
.status-refunded { background: #E2E8F0; color: #475569; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.84rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border);
  font-family: inherit; font-size: 0.92rem; background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.field-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; }
.checkbox-row input { width: auto; }

.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 0.9rem; font-weight: 600; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info { background: var(--info-bg); color: var(--info-fg); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }

/* ---------------------------------------------------------------------
   Tables (admin)
   --------------------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--border); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.data-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg); }

/* ---------------------------------------------------------------------
   KPI cards / admin tabs
   --------------------------------------------------------------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.kpi-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kpi-value { font-size: 1.6rem; font-weight: 800; margin-top: 6px; }
.kpi-sub { font-size: 0.76rem; color: var(--muted); }

.tab-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab-bar a {
  padding: 10px 16px; font-weight: 700; font-size: 0.86rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-bar a.active { color: var(--indigo); border-color: var(--indigo); }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.admin-sidebar { background: var(--navy); border-radius: var(--r-lg); padding: 18px 12px; position: sticky; top: 92px; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: rgba(255,255,255,0.68);
  font-weight: 600; font-size: 0.85rem; margin-bottom: 2px;
}
.admin-sidebar a i { width: 16px; text-align: center; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar .grp-label { color: rgba(255,255,255,0.35); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; padding: 14px 12px 6px; }

/* ---------------------------------------------------------------------
   Premium homepage sections
   --------------------------------------------------------------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 18px; box-shadow: var(--shadow-sm);
}
.feature-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 14px; background: var(--indigo-soft); color: var(--indigo-dark); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature-card p { margin: 0; }

.promo-banner {
  margin-top: 24px; background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(15,23,42,0.03)); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.promo-banner h3 { margin-bottom: 6px; }

/* ---------------------------------------------------------------------
   Footer (desktop)
   --------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 52px 0 26px; margin-top: 56px; }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid a { display: block; padding: 5px 0; font-size: 0.86rem; color: rgba(255,255,255,0.62); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 0.78rem; flex-wrap: wrap; gap: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 10px; }

/* ---------------------------------------------------------------------
   Mobile floating nav dock — hidden on desktop
   --------------------------------------------------------------------- */
.mobile-nav { display: none; }

/* Empty states */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state .bubble-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; background: var(--indigo-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--indigo);
}

/* Utility */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* =====================================================================
   RESPONSIVE — mobile app shell (< 860px)
   ===================================================================== */
@media (max-width: 860px) {
  .site-header { display: none; }

  .mobile-app-header {
    display: block; position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px); border-radius: 0 0 24px 24px; padding: 14px 18px 16px; box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  }
  .mobile-app-header .row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .mobile-app-header .loc { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
  .mobile-app-header .loc i { color: var(--indigo); }
  .mobile-app-header .icons { display: flex; gap: 10px; }
  .mobile-app-header .icons a, .mobile-app-header .icons button { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; position: relative; border: 1px solid var(--border); color: var(--ink); }
  .mobile-app-header .icons a .badge {
    position: absolute; top: -3px; right: -3px; background: var(--indigo); color: #fff; font-size: 0.58rem; width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
  }
  .mobile-app-header form { position: relative; }
  .mobile-app-header input { width: 100%; padding: 12px 16px 12px 40px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg); font-family: inherit; font-size: 0.88rem; }
  
  .mobile-app-header {
  transition: padding .28s ease, border-radius .28s ease, box-shadow .28s ease;
}
.mobile-id { display: flex; align-items: center; gap: 10px; }
.mobile-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; flex: 0 0 42px;
  transition: width .28s ease, height .28s ease, font-size .28s ease;
}
.mobile-id-text { display: flex; flex-direction: column; justify-content: center; }
.mobile-id-text .greet-line { font-size: 0.7rem; color: var(--muted); font-weight: 600; transition: opacity .2s ease, height .2s ease; }
.mobile-id-text strong { font-size: 0.95rem; color: var(--ink); line-height: 1.2; }
.mobile-app-header .loc {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; margin-top: 1px; background: none; border: none;
  font-size: 0.76rem; color: var(--muted); font-weight: 600; transition: opacity .2s ease, height .2s ease;
}
.mobile-app-header .loc i.fa-location-dot { color: var(--indigo); font-size: 0.7rem; }

.icons { display: flex; gap: 10px; align-items: center; }
.mobile-app-header .icons a { position: relative; }
.logout-icon { color: var(--danger) !important; }

/* ---- Slider ---- */
.headline-slider {
  margin: 16px 0 14px; border-radius: var(--r-lg); overflow: hidden; position: relative;
  max-height: 320px; opacity: 1; transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}
.slider-track { display: flex; transition: transform .45s ease; }
.slide { flex: 0 0 100%; aspect-ratio: 686 / 320; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slider-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: width .25s ease, background .25s ease;
}
.slider-dots span.active { width: 18px; border-radius: 4px; background: #fff; }

/* ---- Compact / scrolled state: everything collapses to one slim row ---- */
.mobile-app-header.is-scrolled { padding: 10px 18px 12px; border-radius: 0 0 20px 20px; box-shadow: 0 4px 14px rgba(15,23,42,0.08); }
.mobile-app-header.is-scrolled .row1 { margin-bottom: 0; }
.mobile-app-header.is-scrolled .mobile-avatar { width: 32px; height: 32px; font-size: 0.78rem; }
.mobile-app-header.is-scrolled .greet-line { opacity: 0; height: 0; overflow: hidden; }
.mobile-app-header.is-scrolled .loc { opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.mobile-app-header.is-scrolled .headline-slider { max-height: 0; opacity: 0; margin: 0; }
  
  

  .mobile-app-header form i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

  .hero { display: none; }
  .container { padding: 0 16px; }
  .section { padding: 18px 0; }
  .section-head h2 { font-size: 1.15rem; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 11px; }
  .card-title { font-size: 0.9rem; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .admin-sidebar .grp-label { display: none; }
  .admin-sidebar a { white-space: nowrap; }

  .footer-grid { display: none; }
  .site-footer { display: none; }
  body { padding-bottom: 92px; }

  .mobile-nav {
    display: flex; justify-content: space-around; align-items: center;
    position: fixed; left: 14px; right: 14px; bottom: 16px; z-index: 60;
    background: rgba(15,23,42,0.94); backdrop-filter: blur(14px);
    border-radius: var(--r-pill); padding: 9px 6px; box-shadow: 0 16px 32px rgba(15,23,42,0.3);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,0.5); font-size: 0.6rem; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); position: relative; }
  .mobile-nav a i { font-size: 1.02rem; }
  .mobile-nav a.active { background: var(--indigo); color: #fff; }
  .mobile-nav a .dot { position: absolute; top: 2px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #F87171; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

/* Message Policy Warning */
.message-policy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    margin-bottom: 20px;
    background: #fff5f5;
    border: 1px solid #f5b5b5;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
    color: #842029;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.message-policy i {
    color: #dc3545;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.message-policy strong {
    color: #721c24;
    font-weight: 700;
}

@media (max-width: 576px) {
    .message-policy {
        padding: 13px 14px;
        font-size: 13px;
        gap: 9px;
    }

    .message-policy i {
        font-size: 16px;
    }
}


/* How CuciNow Works */
.how-section { padding: 38px 0 42px; }

.how-eyebrow {
  display: block; margin-bottom: 6px; color: var(--indigo);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
}

.how-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}

.how-card {
  padding: 18px; min-height: 185px; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: .2s ease;
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,70,229,.25);
  box-shadow: var(--shadow-md);
}

.how-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}

.how-top span {
  color: var(--muted); font-size: .7rem; font-weight: 800;
}

.how-top i {
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; border-radius: 13px;
  background: var(--indigo-soft); color: var(--indigo);
}

.how-card h3 { font-size: 1rem; margin-bottom: 6px; }
.how-card p { margin: 0; font-size: .8rem; line-height: 1.6; }

@media (max-width: 1000px) {
  .how-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .how-section { padding: 24px 0 28px; }
  .how-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .how-card { min-height: 165px; padding: 14px; border-radius: 15px; }
  .how-top { margin-bottom: 14px; }
  .how-top i { width: 38px; height: 38px; border-radius: 11px; }
  .how-top span { font-size: .64rem; }
  .how-card h3 { font-size: .88rem; }
  .how-card p { font-size: .72rem; line-height: 1.5; }
}

/* CuciNow refreshed marketplace and app dashboard experience */
:root {
  --navy: #171936;
  --navy-soft: #25284A;
  --indigo: #5B5CE2;
  --indigo-dark: #4546C5;
  --indigo-soft: #EFEEFF;
  --bg: #F3F4FA;
  --surface: #FFFFFF;
  --surface-alt: #F8F9FD;
  --border: rgba(30, 35, 75, .1);
  --ink: #171936;
  --muted: #70758F;
  --shadow-sm: 0 8px 24px rgba(38, 41, 86, .07);
  --shadow-md: 0 22px 50px rgba(38, 41, 86, .14);
}
:root[data-theme="dark"] {
  --bg: #10111F;
  --surface: #191B2E;
  --surface-alt: #202239;
  --border: rgba(191, 195, 255, .13);
  --ink: #F3F3FF;
  --muted: #A4A7BF;
  --indigo-soft: rgba(112, 113, 245, .18);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .22);
  --shadow-md: 0 24px 55px rgba(0, 0, 0, .35);
}
body {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(102, 103, 235, .075), transparent 30rem),
    radial-gradient(ellipse at 95% 16%, rgba(88, 206, 195, .055), transparent 26rem),
    var(--bg);
}
.site-header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
:root[data-theme="dark"] .site-header { background: rgba(25, 27, 46, .9); }
.logo .mark { box-shadow: 0 7px 16px rgba(91, 92, 226, .3); }
.btn { box-shadow: 0 4px 12px rgba(30, 35, 75, .06); }
.btn-primary { background: linear-gradient(135deg, #6F70F1, #5152D7); box-shadow: 0 8px 18px rgba(81, 82, 215, .24); }
.btn-primary:hover { background: linear-gradient(135deg, #5D5EE0, #4445C3); }
.btn-danger { background: linear-gradient(135deg, #F06477, #D83C59); }
.btn-outline { border-color: var(--border); color: var(--ink); }
.panel, .kpi-card, .feature-card, .how-card, .summary-card {
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--indigo-soft)));
  border: 1px solid var(--border);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .62) inset, var(--shadow-sm);
}
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .kpi-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .how-card,
:root[data-theme="dark"] .summary-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset, var(--shadow-sm);
}
.panel { border-radius: 22px; }
.cleaner-card, .feature-card, .how-card, .kpi-card, .summary-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cleaner-card:hover, .feature-card:hover, .how-card:hover, .kpi-card:hover, .summary-card:hover {
  transform: translateY(-4px) perspective(900px) rotateX(.35deg);
  border-color: rgba(91, 92, 226, .25);
  box-shadow: 0 20px 42px rgba(40, 44, 92, .13);
}
.hero {
  padding: clamp(64px, 9vw, 116px) 0 78px;
  background: linear-gradient(125deg, #191B3D 0%, #34358B 55%, #5B5CE2 100%);
  color: #fff;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 33rem; height: 33rem; right: -7rem; top: -14rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: 42% 58% 66% 34% / 43% 38% 62% 57%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 72px rgba(255,255,255,.025);
  transform: rotate(-20deg);
}
.hero-bg {
  background:
    radial-gradient(520px 300px at 78% 95%, rgba(101, 224, 211, .24), transparent 72%),
    radial-gradient(480px 320px at 12% 0%, rgba(255,255,255,.09), transparent 70%);
}
.hero .eyebrow-tag { background: rgba(255,255,255,.12); color: #E5E7FF; border: 1px solid rgba(255,255,255,.16); }
.hero h1 { max-width: 640px; font-size: clamp(2.5rem, 5.2vw, 4.3rem); letter-spacing: -.055em; }
.hero h1 span { color: #8FE5D9; }
.hero p.lead, .hero .use-location-btn { color: rgba(255,255,255,.78); }
.search-panel { padding: 9px; border-radius: 20px; border-color: rgba(255,255,255,.4); box-shadow: 0 22px 45px rgba(12, 14, 43, .22); }
.search-panel input { color: var(--ink); }
.category-row { padding-top: 10px; }
.cat-chip { background: var(--surface); box-shadow: 0 4px 14px rgba(30, 35, 75, .055); }
.admin-page { padding-top: 34px; padding-bottom: 74px; }
.admin-page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin: 4px 0 22px; }
.admin-page-heading h1, .sitemap-heading h1, .legal-heading h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.045em; }
.admin-page-heading p { margin: 4px 0 0; }
.admin-shell { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
.admin-sidebar {
  background: linear-gradient(160deg, #212344, #17182F 78%);
  border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 16px 12px;
  box-shadow: 0 20px 45px rgba(25, 27, 58, .18);
}
.admin-sidebar .grp-label { padding-top: 18px; }
.admin-sidebar a { padding: 11px 13px; border-radius: 12px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.admin-sidebar a:hover { transform: translateX(2px); }
.admin-sidebar a.active { background: linear-gradient(100deg, rgba(111,112,241,.34), rgba(111,112,241,.1)); box-shadow: inset 3px 0 #9A9BFF; }
.admin-content { min-width: 0; }
.admin-filter-panel { display:flex; gap:10px; flex-wrap:wrap; padding:14px; margin-bottom:16px; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-sm); }
.admin-filter-panel input, .admin-filter-panel select, .moderation-form input {
  min-width: 160px; min-height: 40px; padding:9px 12px; border:1px solid var(--border); border-radius:11px;
  background:var(--surface); color:var(--ink); font:inherit;
}
.admin-filter-panel input { flex:1; }
.table-panel { padding:8px 14px; }
.moderation-form { display:flex; gap:6px; flex-wrap:wrap; align-items:center; min-width: 360px; }
.moderation-form input { min-width:120px; flex:1; }
.admin-sidebar .grp-label { color:rgba(255,255,255,.52); }
.seller-review-card { background:var(--surface); }
.seller-review-card .doc-item { background:var(--surface); }
.tab-bar { gap:8px; border:0; padding:7px; border-radius:16px; background:var(--surface-alt); box-shadow:inset 0 1px 3px rgba(30,35,75,.06); }
.tab-bar a { border:0; border-radius:11px; padding:10px 15px; }
.tab-bar a.active { background:var(--surface); color:var(--indigo); box-shadow:var(--shadow-sm); }
.seller-nav-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
.seller-nav-tabs a { display:flex; align-items:center; justify-content:center; gap:7px; text-align:center; }
.seller-nav-tabs a i { font-size:.8rem; }
.status-warned, .status-pending { background:#FFF4D6; color:#A96808; }
.status-suspended, .status-blocked { background:#FEE5E9; color:#B4233D; }
.status-active, .status-verified { background:#DDF8EC; color:#087A55; }
.language-switch { display:flex; align-items:center; }
.language-switch select { border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--ink); padding:8px 10px; font:700 .75rem var(--font); cursor:pointer; }
.badge[hidden] { display:none !important; }
.mobile-profile-area { display:flex; align-items:center; gap:10px; min-width:0; }
.sitemap-page { padding-top:40px; padding-bottom:76px; }
.sitemap-heading { margin-bottom:24px; }
.sitemap-heading p { max-width:640px; }
.sitemap-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sitemap-group { padding:22px; }
.sitemap-group h2 { font-size:1.03rem; }
.sitemap-group ul { list-style:none; padding:0; margin:12px 0 0; }
.sitemap-group li + li { border-top:1px solid var(--border); }
.sitemap-group a { display:flex; justify-content:space-between; gap:12px; padding:10px 2px; color:var(--muted); font-size:.87rem; }
.sitemap-group a:hover { color:var(--indigo); }
.sitemap-group a i { font-size:.7rem; opacity:.65; }
.legal-heading { margin: 0 0 20px; }
.legal-heading small { color:var(--muted); }
.legal-section { margin-bottom:12px; padding:20px 22px; }
.legal-section h2 { font-size:1.03rem; }
.legal-section p { margin:0; line-height:1.8; }
.legal-contact { padding:14px 2px; color:var(--muted); }
.legal-contact a { color:var(--indigo); font-weight:700; }
.site-footer { background:linear-gradient(145deg,#1B1C3B,#131427); }
.footer-grid { padding:42px 0 28px; }
.footer-grid a { transition:color .18s ease, transform .18s ease; }
.footer-grid a:hover { color:#A5EDE3; transform:translateX(2px); }
.footer-bottom { border-color:rgba(255,255,255,.13); }
input, select, textarea { color:var(--ink); }
::selection { background:rgba(91,92,226,.2); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:static; display:flex; flex-wrap:nowrap; overflow:auto; gap:5px; }
  .admin-sidebar .grp-label { display:none; }
  .admin-sidebar a { flex:0 0 auto; white-space:nowrap; }
}
@media (max-width: 768px) {
  .hero { display:block; padding:38px 0 32px; }
  .hero::after { width:18rem; height:18rem; right:-10rem; top:-7rem; }
  .hero h1 { font-size:2.35rem; }
  .hero .container { padding-left:18px; padding-right:18px; }
  .search-panel { gap:4px; }
  .search-panel .divider { display:none; }
  .search-panel input { min-width:calc(50% - 8px); }
  .search-panel input[style] { max-width:none !important; }
  .admin-page { padding-top:20px; }
  .seller-nav-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .seller-nav-tabs a { padding:10px 7px; font-size:.72rem; }
  .admin-page-heading { align-items:flex-start; }
  .moderation-form { min-width:280px; }
  .moderation-form input { min-width:100%; }
  .sitemap-grid { grid-template-columns:1fr; }
  .site-footer { display:block; padding-bottom:94px; }
  .footer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 14px; padding:28px 0 20px; }
  .footer-grid > div:first-child { grid-column:1 / -1; }
  .footer-grid h4 { font-size:.82rem; }
  .footer-grid a { font-size:.76rem; }
  .footer-bottom { display:grid; gap:7px; font-size:.7rem; padding:14px 0 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size:2rem; }
  .hero p.lead { font-size:.92rem; }
  .search-panel { display:grid; grid-template-columns:1fr; }
  .search-panel input { min-width:0; width:100%; }
  .search-panel button { width:100%; }
  .metric-card { padding:12px 8px; }
  .metric-card strong { font-size:1.2rem; }
  .metric-card span { font-size:.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

/* Mobile home and confidence section: use one compact app header, then content. */
@media (max-width: 860px) {
  .hero { display:block; padding:36px 0 32px; }
  .mobile-app-header {
    display:block; padding:10px 14px; border-radius:0; background:var(--surface);
    border-bottom:1px solid var(--border); box-shadow:0 3px 12px rgba(30,35,75,.06);
  }
  .mobile-app-header .row1 { margin:0; min-height:44px; }
  .mobile-brand { gap:9px; text-decoration:none; min-width:0; }
  .mobile-brand .mobile-avatar { width:38px; height:38px; flex-basis:38px; border-radius:12px; background:var(--indigo); color:#fff; font-size:.88rem; }
  .mobile-brand .mobile-id-text { min-width:0; }
  .mobile-brand .mobile-id-text .greet-line { max-width:165px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.64rem; }
  .mobile-brand .mobile-id-text strong { font-size:.9rem; }
  .mobile-app-header .icons { gap:7px; }
  .mobile-app-header .icons a,
  .mobile-app-header .icons button { width:38px; height:38px; flex:0 0 38px; }
  .mobile-app-header .icons .language-switch select { min-height:36px; }
  .mobile-nav { padding-bottom:max(9px, env(safe-area-inset-bottom)); }
  .mobile-nav a { flex:1 1 0; min-width:0; padding:7px 2px; line-height:1.1; text-align:center; }
  .confidence-section {
    display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:22px;
    align-items:center; padding:clamp(20px,4vw,34px); border:1px solid var(--border);
    border-radius:24px; background:var(--surface); box-shadow:var(--shadow-sm);
  }
  .confidence-intro h2 { font-size:clamp(1.4rem,3vw,2rem); line-height:1.16; margin-bottom:10px; }
  .confidence-intro p { max-width:38ch; font-size:.88rem; }
  .confidence-intro .btn { margin-top:8px; min-height:44px; }
  .confidence-points { display:grid; gap:4px; }
  .confidence-point { display:flex; align-items:flex-start; gap:12px; padding:12px 4px; }
  .confidence-point + .confidence-point { border-top:1px solid var(--border); }
  .confidence-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:12px; background:var(--indigo-soft); color:var(--indigo); }
  .confidence-point h3 { margin:1px 0 3px; font-size:.9rem; }
  .confidence-point p { margin:0; font-size:.78rem; line-height:1.5; }
  .quick-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:20px; }
  .metric-card { min-width:0; padding:12px 8px; border-radius:14px; }
  .metric-card strong { font-size:clamp(.86rem,3.7vw,1.35rem); line-height:1.15; }
  .metric-card span { display:block; font-size:clamp(.57rem,2.4vw,.72rem); line-height:1.25; }
}
@media (max-width: 600px) {
  .confidence-section { grid-template-columns:1fr; gap:10px; padding:20px 17px; border-radius:19px; }
  .confidence-intro { display:grid; grid-template-columns:1fr; }
  .confidence-intro h2 { max-width:22ch; font-size:1.45rem; }
  .confidence-intro p { font-size:.82rem; }
  .confidence-intro .btn { width:100%; }
  .confidence-points { gap:0; }
  .confidence-point { padding:11px 0; }
  .confidence-icon { flex-basis:34px; width:34px; height:34px; border-radius:10px; font-size:.83rem; }
  .confidence-point h3 { font-size:.84rem; }
  .confidence-point p { font-size:.75rem; }
  .quick-metrics { gap:6px; }
  .metric-card strong { font-size:clamp(.8rem,4vw,1.12rem); }
  .metric-card span { font-size:clamp(.54rem,2.6vw,.67rem); }
}
@media (max-width: 360px) {
  .mobile-app-header { padding-left:10px; padding-right:10px; }
  .mobile-app-header .icons { gap:4px; }
  .mobile-app-header .icons a,
  .mobile-app-header .icons button { width:34px; height:34px; flex-basis:34px; }
  .mobile-app-header .icons .logout-icon,
  .mobile-app-header .icons .mobile-message { display:none; }
  .mobile-app-header .icons .language-switch select { padding:5px; font-size:.68rem; }
  .confidence-section { padding:17px 14px; }
  .metric-card { padding:10px 5px; }
}
@media (max-width: 380px) {
  .container { padding-left:12px; padding-right:12px; }
  .card-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .mobile-nav { left:8px; right:8px; }
  .mobile-nav a { font-size:.55rem; }
  .mobile-nav a i { font-size:.95rem; }
}