/* Kaam Chowk — Mobile App Styles */

/* ── CSS Variables ── */
:root {
  --app-vw: 100vw;
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-2: #f3ecdc;
  --surface-3: #ece2cd;
  --ink: #0f1729;
  --ink-2: #1f2a44;
  --text: #14213d;
  --subtext: #5b6478;
  --muted: #8a93a6;
  --border: #ece2cd;
  --border-2: #d6c9ad;
  --accent: #e63946;
  --accent-2: #f4a261;
  --accent-3: #2a9d8f;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .06);
  --shadow: 0 6px 22px -6px rgba(15, 23, 41, .14), 0 2px 6px rgba(15, 23, 41, .06);
  --shadow-lg: 0 18px 50px -16px rgba(15, 23, 41, .25);
  --grad-saffron: linear-gradient(135deg, #f4a261 0%, #e63946 100%);
  --grad-cream: linear-gradient(180deg, #fff8ea 0%, #faf2df 100%);
  --topbar-h: 56px;
  --bottom-nav-h: 64px;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%; min-width: 100%; max-width: 100%;
  height: 100%; overflow-x: hidden; overscroll-behavior: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  width: 100%; min-width: 100%; max-width: 100%;
  margin: 0 !important;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; color: var(--text); font-size: 15px; }
a { color: var(--accent); text-decoration: none; }
select { appearance: none; background: var(--surface); }

/* ── SPLASH ── */
#splashScreen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}

#splashScreen.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

.splash-logo {
  width: 112px; height: auto;
  margin-bottom: 8px;
}

.splash-sub {
  font-size: 13px; color: #8a93a6; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px;
}

.splash-spinner { display: flex; gap: 8px; }

.splash-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #e63946;
  animation: splashPulse 1.2s ease-in-out infinite;
}

.splash-dot:nth-child(2) { animation-delay: .2s; background: #f4a261; }
.splash-dot:nth-child(3) { animation-delay: .4s; background: #2a9d8f; }

@keyframes splashPulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── AUTH ── */
.auth-screen {
  position: fixed; inset: 0;
  background: var(--grad-cream);
  display: flex; flex-direction: column;
  padding: 28px 22px 32px;
  overflow-y: auto; z-index: 50;
}

.auth-hero {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; margin-top: 14px;
}

.auth-hero img {
  width: 84px; height: 84px; border-radius: 22px;
  box-shadow: var(--shadow);
}

.auth-hero h1 { margin-top: 16px; font-size: 22px; }

.auth-hero p {
  color: var(--subtext); margin-top: 6px;
  font-size: 13.5px; max-width: 280px; line-height: 1.5;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 24px; padding: 18px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex; background: var(--surface-2);
  border-radius: 999px; padding: 4px; margin-bottom: 16px;
}

.auth-tab {
  flex: 1; border: none; background: none;
  padding: 10px 0; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--subtext);
  transition: all .2s;
}

.auth-tab.active {
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-sm);
}

.auth-error {
  background: #fef2f2; color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px;
}

/* ── FIELDS ── */
.field {
  display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px;
}

.field label {
  font-size: 12.5px; color: var(--subtext); font-weight: 600;
}

.field input, .field textarea, .field select {
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: 15px;
  background: var(--surface-2);
  outline: none; transition: border-color .15s;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); background: #fff;
}

.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; border-radius: 999px;
  padding: 13px 20px; font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: all .18s; letter-spacing: .01em;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: #c0313d; }
.btn-black { background: var(--ink) !important; color: #fff !important; }
.btn-black:active { background: var(--ink-2) !important; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border-2); }
.btn-outline:active { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-full { width: 100%; margin-top: 4px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── TOPBAR ── */
#app {
  width: 100%; min-width: 100%; max-width: 100%;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center;
  padding: 0 14px; gap: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 41, .06);
}

.topbar-btn {
  width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .15s; flex-shrink: 0;
}

.topbar-btn:hover { background: var(--surface-2); }

.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  flex: 1; text-decoration: none;
}

.topbar-brand-img {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
}

.topbar-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 13px; color: var(--ink);
  letter-spacing: .01em; line-height: 1.2;
}

.topbar-brand-sub {
  font-size: 11px; color: var(--subtext);
  font-weight: 500; margin-top: 1px;
}

.topbar-menu-btn {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .15s; flex-shrink: 0;
}

.topbar-menu-btn:hover { background: var(--surface-2); }

/* ── VIEWS ── */
.views-wrap {
  flex: 1; overflow-y: auto;
  padding-bottom: calc(var(--bottom-nav-h) + 8px);
}

.view {
  display: none; padding: 0;
  animation: fadeUp .25s ease;
}

.view.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── HOME ── */
.home-greeting-section {
  padding: 22px 18px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.home-greet {
  font-size: 20px; font-weight: 800; color: var(--ink);
  font-family: 'Poppins', sans-serif; margin-bottom: 6px;
}

.home-subtitle {
  font-size: 13.5px; color: var(--subtext);
  line-height: 1.55; margin-bottom: 16px; font-weight: 400;
}

.home-search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: 999px; padding: 11px 16px; color: var(--subtext);
}

.home-search-wrap input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px; flex: 1;
}

.home-search-wrap input::placeholder { color: var(--muted); }

/* ── WHY GRID ── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow .18s;
}

.why-card:hover { box-shadow: var(--shadow); }
.why-icon { font-size: 24px; margin-bottom: 4px; }
.why-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.why-desc { font-size: 12px; color: var(--subtext); line-height: 1.4; }

/* ── SECTIONS ── */
.section { padding: 20px 16px 0; }

.section-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}

.section-head h3 { font-size: 17px; }

.see-all {
  font-size: 13px; color: var(--accent);
  font-weight: 600; background: none; border: none; cursor: pointer;
}

/* ── SERVICE CARDS ── */
.svc-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 16px 16px;
}

.svc-card {
  display: flex; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s;
  position: relative;
}

.svc-card .thumb {
  width: 92px; height: auto; align-self: stretch;
  min-height: 92px; object-fit: cover;
  flex-shrink: 0; cursor: pointer;
}

.svc-card .body {
  flex: 1; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}

.svc-card h4 {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
  padding-right: 42px;
}
.svc-card h4 .vendor-name-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}

.svc-card .meta { font-size: 12px; color: var(--subtext); }

.svc-card .price-row {
  display: flex; align-items: center; margin-top: 2px;
}

.svc-card .price {
  font-size: 13px; font-weight: 700; color: var(--accent-3);
}

.svc-card .price small {
  font-weight: 500; font-size: 11px; color: var(--muted); margin-left: 3px;
}

.book-btn {
  margin-top: auto; align-self: flex-start;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 600;
  border: none; cursor: pointer; transition: background .15s;
}

.book-btn:active { background: #c0313d; }

/* ── BROWSE ── */
.browse-search-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 999px; padding: 10px 16px; color: var(--subtext);
}

.browse-search-wrap input {
  background: transparent; border: none; outline: none;
  flex: 1; font-size: 14px; color: var(--text);
}

.services-filter-tabs {
  display: flex; gap: 6px; padding: 4px 16px 12px;
}

.svc-filter-tab {
  flex: 1; padding: 10px 0; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--subtext);
  border: 1.5px solid var(--border-2); transition: all .15s;
}

.svc-filter-tab.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.vendor-filter-tabs {
  display: flex; gap: 6px; padding: 0 16px 12px;
  overflow-x: auto;
}

.vendor-filter-tabs::-webkit-scrollbar { display: none; }

.vf-tab {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--subtext);
  border: 1.5px solid var(--border-2); transition: all .15s;
}

.vf-tab.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.heart-btn {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--subtext);
  transition: all .15s; z-index: 5; padding: 0;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(15, 23, 41, .12);
}

@media (hover: hover) and (pointer: fine) {
  .heart-btn:hover {
    border-color: var(--accent); color: var(--accent);
    transform: scale(1.08);
  }
}

.heart-btn:active { transform: scale(0.94); }

.heart-btn.saved {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.cat-chips {
  display: flex; gap: 8px; padding: 0 16px 14px;
  overflow-x: auto;
}

.cat-chips::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0; background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--subtext);
  cursor: pointer; transition: all .15s;
}

.cat-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ── VENDOR DETAIL ── */
.vd-body { padding: 18px 18px 90px; }

.vd-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; font-size: 14px; color: var(--subtext);
}

.vd-section {
  margin-bottom: 16px;
}

.vd-section-row {
  display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.vd-section-row .vd-section {
  flex: 1 1 140px; min-width: 140px; margin-bottom: 0;
}

.vd-section h4 {
  font-size: 14px; margin-bottom: 6px; color: var(--ink);
}

.vd-section p {
  font-size: 14px; color: var(--subtext); line-height: 1.6;
}

.vd-contact {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px; margin-top: 16px;
}

.vd-contact.locked {
  background: #fef3c7; border: 1px solid #fde68a;
}

.vd-contact p { font-size: 14px; color: var(--subtext); margin-bottom: 6px; }
.vd-contact p strong { color: var(--ink); }

.vd-unlock-hint {
  font-size: 12px; color: var(--muted) !important; margin-top: 6px;
}

/* ── PAGINATION ── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 16px;
}

.pag-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--subtext);
  background: var(--surface);
  cursor: pointer; transition: all .15s;
}

.pag-btn.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.pag-btn:hover:not(.active) { background: var(--surface-2); }

/* ── VENDOR CARDS ── */
.vendor-card .book-btn {
  background: var(--accent-3);
}

/* ── BOOKING FORM ── */
.book-svc-info {
  background: var(--surface-2);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.book-svc-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.book-svc-cat { font-size: 13px; color: var(--subtext); margin-top: 2px; }
.book-form { padding: 16px 18px; }

.use-profile-btn {
  width: 100%; margin-bottom: 16px;
  background: var(--surface-2);
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-sm); padding: 11px;
  font-size: 13.5px; font-weight: 600; color: var(--accent-3);
  cursor: pointer;
}

.book-disclaimer {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 12.5px; color: var(--subtext);
  margin-bottom: 14px; line-height: 1.5;
}

/* ── SUCCESS ── */
.success-wrap { padding: 40px 24px; text-align: center; }

.success-icon {
  width: 72px; height: 72px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
}

.success-wrap h2 { margin-bottom: 10px; }

.success-wrap p {
  color: var(--subtext); font-size: 14.5px;
  line-height: 1.6; margin-bottom: 24px;
}

.success-actions { display: flex; flex-direction: column; gap: 10px; }

/* ── BOOKINGS ── */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 16px 12px;
  box-shadow: var(--shadow-sm);
}

.booking-card:first-child { margin-top: 16px; }

.booking-card .row {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 8px;
}

.booking-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); }
.booking-card .cat { font-size: 12px; color: var(--subtext); margin-top: 2px; }

.badge {
  border-radius: 999px; padding: 3px 10px;
  font-size: 11.5px; font-weight: 600; text-transform: capitalize;
}

.badge.pending { background: #fef3c7; color: #92400e; }
.badge.confirmed { background: #dbeafe; color: #1e40af; }
.badge.assigned { background: #dbeafe; color: #1e40af; }
.badge.in_progress { background: #ffedd5; color: #9a3412; }
.badge.completed { background: #dcfce7; color: #166534; }
.badge.cancelled { background: #f1f5f9; color: #64748b; }

.booking-card .meta {
  font-size: 12.5px; color: var(--subtext);
  display: flex; flex-direction: column; gap: 3px;
  margin-bottom: 10px;
}

.booking-card .actions { margin-top: 10px; }

.empty { text-align: center; padding: 48px 24px; }
.empty h4 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--subtext); font-size: 14px; }

/* ── PROFILE ── */
.profile-card {
  background: var(--ink);
  padding: 28px 18px 22px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

.profile-avatar-wrap { margin-bottom: 12px; }

.profile-avatar {
  width: 72px; height: 72px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  border: 3px solid rgba(255, 255, 255, .2);
  overflow: hidden;
}

.profile-name { font-size: 18px; font-weight: 700; color: #fffaf0; margin-bottom: 3px; }
.profile-email { font-size: 12.5px; color: rgba(255, 250, 240, .65); }
.profile-phone { font-size: 12.5px; color: rgba(255, 250, 240, .55); margin-top: 2px; }

.profile-section-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  padding: 14px 18px 6px;
}

.profile-menu {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile-row {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 18px; width: 100%;
  background: none; border: none; cursor: pointer;
  text-align: left; border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.profile-row:last-child { border-bottom: none; }
/* Pressed feedback only during a real press — never on its own. */
.profile-row:active { background: var(--surface-2); }
/* Hover color only for actual mouse pointers; touch screens keep a stable color
   (previously the sticky/touch hover made the row flash like it was clicked). */
@media (hover: hover) and (pointer: fine) {
  .profile-row:hover { background: var(--surface-2); }
}
.profile-row span { flex: 1; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.profile-row svg { color: var(--subtext); flex-shrink: 0; }
.profile-row .chev { color: var(--muted); margin-left: auto; }
.profile-row.danger span, .profile-row.danger>svg:first-of-type { color: var(--danger); }

/* ── VENDOR APPLY ── */
.vendor-header {
  padding: 20px 18px 16px;
  background: linear-gradient(135deg, var(--ink) 0%, #1a2540 100%);
  color: #fffaf0;
}

.vendor-header h2 { color: #fffaf0; margin-bottom: 6px; }
.vendor-header p { font-size: 13.5px; color: rgba(255, 250, 240, .7); }

.vendor-pending-notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 18px;
  background: #fef3c7; border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px; font-size: 13.5px; color: #92400e; line-height: 1.5;
}

.vendor-form { padding: 16px 18px; }

/* ── SKILLS GRID ── */
.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.skill-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  border: 1.5px solid var(--border-2);
  border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--subtext); cursor: pointer;
  transition: all .15s; user-select: none;
}

.skill-chip.selected {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.skill-chip.selected::before { content: '\2713 '; font-weight: 700; }

/* ── VENDOR PANEL ── */
.vp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
}

.vp-head h2 { font-size: 20px; }

.vp-refresh {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--subtext);
}

.vp-tabs {
  display: flex; gap: 6px; padding: 0 16px 14px;
  overflow-x: auto;
}

.vp-tabs::-webkit-scrollbar { display: none; }

.vp-tab {
  flex-shrink: 0; background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--subtext);
  cursor: pointer;
}

.vp-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.vp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 16px 12px; padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.vp-card:first-child { margin-top: 4px; }

.vp-card-head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}

.vp-svc { font-size: 15px; font-weight: 700; color: var(--ink); }
.vp-cat { font-size: 12px; color: var(--subtext); margin-top: 2px; }

.vp-badge {
  border-radius: 999px; padding: 3px 10px;
  font-size: 11.5px; font-weight: 600; flex-shrink: 0;
}

.vp-b-yel { background: #fef3c7; color: #92400e; }
.vp-b-blu { background: #dbeafe; color: #1e40af; }
.vp-b-grn { background: #dcfce7; color: #166534; }
.vp-b-red { background: #fee2e2; color: #991b1b; }
.vp-b-gry { background: #f1f5f9; color: #64748b; }

.vp-cust { font-size: 13.5px; color: var(--subtext); margin-bottom: 8px; }
.vp-cust small { margin-left: 6px; color: var(--muted); }

.vp-meta {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12.5px; color: var(--subtext); margin-bottom: 10px;
}

.vp-price { font-weight: 700; color: var(--accent-3); }

.vp-code {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px; margin: 10px 0;
}

.vp-code-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 4px;
}

.vp-code-val {
  font-size: 24px; font-weight: 800; letter-spacing: .18em;
  color: var(--ink); font-family: 'Poppins', monospace;
}

.vp-code-help { font-size: 12px; color: var(--subtext); margin-top: 4px; }

.vp-info-ok {
  background: #dcfce7; color: #166534;
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 13px; margin: 8px 0;
}

.vp-info-warn {
  background: #fef3c7; color: #92400e;
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 13px; margin: 8px 0;
}

.vp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.vp-empty { padding: 40px 20px; text-align: center; font-size: 14px; color: var(--subtext); }

/* ── Vendor Reviews Panel ── */
.vpr-summary {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 4px 16px 12px; padding: 18px 16px;
}

.vpr-avg { text-align: center; min-width: 72px; }

.vpr-avg-num {
  font-size: 40px; font-weight: 800; color: #f59e0b;
  line-height: 1; margin-bottom: 4px;
}

.vpr-avg-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.vpr-dist { flex: 1; display: flex; flex-direction: column; gap: 5px; }

.vpr-dist-row { display: flex; align-items: center; gap: 8px; }

.vpr-dist-label { font-size: 12px; color: var(--subtext); min-width: 20px; text-align: right; }

.vpr-dist-bar-wrap {
  flex: 1; background: var(--surface-3);
  border-radius: 999px; height: 8px; overflow: hidden;
}

.vpr-dist-bar {
  height: 100%; background: #f59e0b;
  border-radius: 999px; transition: width .4s;
}

.vpr-dist-count { font-size: 12px; color: var(--muted); min-width: 16px; }

.vpr-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .10em; color: var(--muted);
  padding: 0 16px 8px;
}

.vpr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 16px 10px; padding: 14px 16px;
}

.vpr-card-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}

.vpr-rating-num { font-size: 13px; font-weight: 700; color: var(--subtext); }

.vpr-review-text {
  font-size: 14px; color: var(--ink); line-height: 1.5;
  margin-bottom: 8px; font-style: italic;
}

.vpr-meta { font-size: 12px; color: var(--muted); }

/* ── VENDOR PANEL ── */
.vp-welcome {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 16px 12px;
}
.vp-welcome h2 { font-size: 20px; color: var(--ink); }

.vp-toggle-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--border-2); background: var(--surface);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.vp-toggle-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e63946; transition: background .2s;
}
.vp-toggle-btn.on { border-color: var(--accent-3); background: #e8f5e9; }
.vp-toggle-btn.on .vp-toggle-dot { background: var(--accent-3); }

.vp-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 16px 14px;
}
.vp-stat-card {
  background: var(--surface); border: 1.5px solid var(--border-2);
  border-radius: 14px; padding: 14px; text-align: center;
}
.vp-stat-num { font-size: 24px; font-weight: 800; color: var(--ink); }
.vp-stat-lbl { font-size: 12px; color: var(--subtext); margin-top: 2px; }

.vp-tabs {
  display: flex; gap: 6px; padding: 0 16px 12px;
}
.vp-tab {
  flex: 1; padding: 9px 0; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--subtext);
  border: 1.5px solid var(--border-2); transition: all .15s;
}
.vp-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.vp-job-card {
  background: var(--surface); border: 1.5px solid var(--border-2);
  border-radius: 14px; margin: 0 16px 10px; padding: 14px 16px;
}
.vp-job-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.vp-job-head h4 { font-size: 15px; color: var(--ink); }
.vp-job-meta { font-size: 12px; color: var(--subtext); line-height: 1.6; }
.vp-job-meta span { display: block; }
.vp-job-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.vp-job-actions .btn { flex: 1; min-width: 0; padding: 8px 12px; font-size: 12px; border-radius: 10px; }

.vp-empty { text-align: center; padding: 40px 20px; color: var(--subtext); }
.vp-empty h4 { color: var(--ink); margin-bottom: 6px; }

/* ── SHOP ── */
.shop-hero {
  padding: 28px 20px 22px;
  background: linear-gradient(135deg, var(--ink) 0%, #1b2a4a 60%, var(--accent-3) 100%);
  color: #fff; border-radius: 0 0 24px 24px;
  margin-bottom: 16px;
}

.shop-hero-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  letter-spacing: .5px;
}

.shop-hero h2 { font-size: 22px; margin-bottom: 6px; color: #fff; }
.shop-hero p { font-size: 14px; color: rgba(255,255,255,.75); }

.shop-plan-card {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 16px;
  margin: 0 16px 14px; padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s;
}

.shop-plan-card:active { transform: scale(.98); }

.shop-plan-card-inner { padding: 20px 18px; }

.shop-plan-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 999px; margin-bottom: 10px;
}

.shop-plan-badge.popular { background: #fff3e0; color: var(--accent-2); }
.shop-plan-badge.basic { background: #e8f5e9; color: var(--accent-3); }
.shop-plan-badge.premium { background: #fce4ec; color: var(--accent); }
.shop-plan-badge.verified { background: #e3f2fd; color: #1976d2; }

.verified-tick { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #1976d2; color: #fff; font-size: 11px; margin-left: 4px; vertical-align: middle; flex-shrink: 0; }

.boost-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.3px; flex-shrink: 0; }
.boost-basic { background: #fff3e0; color: #e65100; border: 1px solid #ffcc02; }
.boost-pro { background: #ede7f6; color: #4527a0; border: 1px solid #7e57c2; }
.boost-premium { background: #fff8e1; color: #f57f17; border: 1px solid #ffc107; }

.shop-plan-card h4 {
  font-size: 17px; margin-bottom: 4px; color: var(--ink);
}

.shop-plan-price {
  font-size: 28px; font-weight: 800; color: var(--ink);
  margin-bottom: 4px;
}

.shop-plan-price span { font-size: 14px; font-weight: 500; color: var(--subtext); }

.shop-plan-desc {
  font-size: 13px; color: var(--subtext); margin-bottom: 14px;
  line-height: 1.45;
}

.shop-plan-features {
  list-style: none; padding: 0; margin: 0 0 16px;
}

.shop-plan-features li {
  font-size: 13px; color: var(--text);
  padding: 5px 0; display: flex; align-items: center; gap: 8px;
}

.shop-plan-features li::before {
  content: '';
  display: inline-block; width: 18px; height: 18px; flex-shrink: 0;
  background: var(--accent-3); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.shop-plan-card .btn { margin: 0 18px 18px; width: calc(100% - 36px); }
.shop-plan-card .btn-disabled { background: #c8e6c9; color: #2e7d32; border-color: #c8e6c9; cursor: default; opacity: .85; }
.shop-plan-card .btn-disabled:hover { transform: none; }
.shop-plan-active-label { text-align: center; font-size: 13px; font-weight: 600; color: #2e7d32; background: #e8f5e9; padding: 8px 12px; margin: 0 18px 12px; border-radius: 10px; }

.shop-footer-note {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; margin: 8px 16px 24px;
  background: #f0f4f8; border-radius: 12px;
  font-size: 12px; color: var(--subtext);
}

.shop-footer-note svg { flex-shrink: 0; opacity: .5; }

/* ── ROLE SELECT ── */
/* ── ONBOARDING / ROLE SELECT ── */
.onboard-screen,
.role-select-screen {
  position: fixed; inset: 0;
  background: var(--grad-cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 22px;
  z-index: 55;
}

.onboard-inner,
.role-select-inner {
  text-align: center; max-width: 400px; width: 100%;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.onboard-logo {
  width: 56px; height: 56px; border-radius: 14px;
  object-fit: cover; margin-bottom: 8px;
}

.onboard-inner h2,
.role-select-inner h2 {
  font-size: 22px; margin-bottom: 8px;
}

.onboard-sub,
.role-select-sub {
  font-size: 14px; color: var(--subtext); margin-bottom: 28px;
}

.onboard-cards,
.role-select-cards {
  display: flex; flex-direction: column; gap: 14px;
}

.onboard-card,
.role-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}

.onboard-card:hover,
.role-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.onboard-card:active,
.role-card:active { transform: translateY(0); }

.onboard-card-icon,
.role-card-icon {
  width: 72px; height: 72px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.onboard-card h3,
.role-card h3 {
  font-size: 17px; margin-bottom: 6px;
}

.onboard-card p,
.role-card p {
  font-size: 13px; color: var(--subtext); line-height: 1.5;
}

/* Language selection cards */
#languageCards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 420px;
}
#languageCards .onboard-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  min-height: 88px;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}
#languageCards .onboard-card:hover {
  border-color: var(--accent);
  background: #fff5f5;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.12);
  transform: translateY(-2px);
}
#languageCards .onboard-card:active {
  transform: translateY(0);
  background: #ffeaea;
  border-color: var(--accent);
}
#languageCards .onboard-card.selected {
  border-color: var(--accent);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.lang-continue {
  margin-top: 24px;
  width: 100%;
  max-width: 420px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}
.lang-native {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lang-name {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1;
}
@media (min-width: 640px) {
  #languageCards { grid-template-columns: repeat(3, 1fr); max-width: 520px; }
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0;
  transform: none;
  width: min(100%, var(--app-vw));
  max-width: none;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  z-index: 30;
  box-shadow: 0 -4px 20px rgba(15, 23, 41, .08);
}

.bottom-nav.hide { display: none; }

/* ── OFFLINE OVERLAY ── */
#offlineOverlay {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--bg, #faf6ee);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
#offlineOverlay.show { display: flex; }
.offline-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; max-width: 360px; width: 100%;
}
.offline-img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}
.offline-text {
  margin: 0;
  color: var(--ink-2, #1f2a44);
  font-size: 15px; font-weight: 600; line-height: 1.45;
}
#offlineRetry {
  min-width: 140px;
  pointer-events: all;
}

/* ── BAN SCREEN ── */
.ban-screen {
  position: fixed; inset: 0;
  z-index: 10050;
  background: linear-gradient(160deg, #fff5f5 0%, #faf6ee 55%, #eef2ff 100%);
  display: flex;
  align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.ban-card {
  background: #fff;
  border: 1px solid #fde2e2;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(220, 38, 38, .12);
  max-width: 420px;
  width: 100%;
  padding: 34px 26px 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ban-badge {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: flex; align-items: center; justify-content: center;
}
.ban-card h2 {
  margin: 0;
  font-size: 24px;
  color: #171a2b;
  letter-spacing: -0.3px;
}
.ban-reason {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.5;
}
.ban-duration {
  margin: 0;
  font-size: 14px;
  color: #6b7188;
  line-height: 1.5;
}
.ban-appeal {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e5e8f2;
  border-radius: 14px;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 4px;
}
.ban-appeal-title {
  margin: 0;
  font-size: 13.5px;
  color: #6b7188;
  font-weight: 600;
}
.ban-contact {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e8f2;
  border-radius: 10px;
  padding: 10px 12px;
  word-break: break-all;
  transition: border-color .15s, background .15s;
}
.ban-contact:hover { border-color: #c7d2fe; background: #eef2ff; }
.ban-signout { margin-top: 8px; min-width: 160px; }

.bn-tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  padding: 8px 4px;
  color: var(--muted); font-size: 11px; font-weight: 600;
  transition: color .15s; cursor: pointer;
  border: none; background: none;
}

.bn-tab.active { color: var(--accent); }
.bn-tab svg { transition: color .15s; }

/* ── SIDEBAR ── */
.sb-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 41, .45);
  z-index: 40; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}

.sb-overlay.open { opacity: 1; pointer-events: all; }

.sb-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 82%; max-width: 300px;
  background: var(--surface);
  z-index: 45;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.sb-drawer.open { transform: translateX(0); }

.sb-logo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 14px 14px; background: var(--ink);
}

.sb-logo-row { display: flex; align-items: center; gap: 10px; }

.sb-logo-img {
  width: 38px; height: 38px; border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .15);
}

.sb-logo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 12.5px; color: #fff;
  letter-spacing: .04em; line-height: 1.2;
}

.sb-logo-sub {
  font-size: 11px; color: rgba(255, 255, 255, .6);
  margin-top: 1px; font-weight: 500;
}

.sb-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255, 255, 255, .8); flex-shrink: 0;
}

.sb-user-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.sb-avatar {
  width: 44px; height: 44px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; flex-shrink: 0;
}

.sb-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }

.sb-email {
  font-size: 11.5px; color: var(--subtext);
  margin-top: 1px; word-break: break-all;
}

.sb-role-row {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.sb-role-pill {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--subtext);
  background: transparent;
  border: 1.5px solid var(--border-2);
  transition: all .18s;
}

.sb-role-pill.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.sb-divider { height: 1px; background: var(--border); }

.sb-section-lbl {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted);
  padding: 12px 16px 4px;
}

.sb-nav { display: flex; flex-direction: column; padding: 4px 0; }

.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  border: none; background: none; text-align: left;
  transition: background .15s;
  border-left: 3px solid transparent;
}

/* Pressed feedback only while actually pressed. */
.sb-link:active {
  background: var(--surface-2);
  border-left-color: var(--accent);
}
/* Hover only for real mouse pointers — touch hover sticks and flashes phantom
   pressed colors on rows like Saved Workers. */
@media (hover: hover) and (pointer: fine) {
  .sb-link:hover {
    background: var(--surface-2);
    border-left-color: var(--accent);
  }
}

.sb-link.active {
  background: rgba(230, 57, 70, 0.08);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.sb-link-icon {
  width: 32px; height: 32px;
  background: var(--surface-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sb-vendor-section {
  padding: 8px 14px 12px;
  border-top: 1px solid var(--border);
}

.sb-become-vendor {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 13px;
  background: var(--surface-2);
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: var(--accent-3);
  cursor: pointer; margin-top: 6px;
}

.sb-vendor-pending {
  display: none; align-items: flex-start; gap: 8px;
  padding: 11px 13px; margin-top: 6px;
  background: #fef3c7; border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 13px; color: #92400e; line-height: 1.5;
}

.sb-vendor-panel-btn {
  display: none; align-items: center; gap: 10px;
  width: 100%; margin-top: 6px;
  padding: 11px 13px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}

.sb-footer {
  margin-top: auto;
  padding: 10px 14px 18px;
  border-top: 1px solid var(--border);
}

.sb-signout {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--danger); font-weight: 600;
  width: 100%; cursor: pointer; padding: 8px 0;
}

/* ── TOASTS ── */
#toastHost {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  max-width: min(340px, calc(var(--app-vw) - 32px));
  width: calc(100% - 32px);
}

.toast {
  background: var(--ink); color: #fffaf0;
  border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideDown .25s ease;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--accent-3); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── MODALS ── */
#modalHost {
  position: fixed; inset: 0;
  z-index: 9000; pointer-events: none;
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 41, .5);
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: all;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: min(100%, var(--app-vw));
  max-width: none;
  padding: 20px 20px 24px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
  max-height: 90vh;
  display: flex; flex-direction: column;
}
.modal > h3 { flex-shrink: 0; }
.modal > div:not(.modal-actions) {
  overflow-y: auto; flex: 1; min-height: 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.modal > div:not(.modal-actions)::-webkit-scrollbar { display: none; }

.modal h3 { font-size: 18px; margin-bottom: 12px; }
.modal p { color: var(--subtext); font-size: 14px; line-height: 1.5; }

.modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-shrink: 0; }
.modal-actions .btn { flex: 1; min-width: 0; white-space: normal; font-size: 14px; text-align: center; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── LOADING ── */
.loader {
  padding: 40px; text-align: center;
  color: var(--muted); font-size: 14px;
}

/* ── TIME PICKER ── */
.time-picker-wrap {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px; background: var(--surface);
}

.time-sel {
  border: none; outline: none; background: transparent;
  font-size: 15px; font-family: inherit; color: var(--text);
  font-weight: 500; cursor: pointer; padding: 0 2px;
  -webkit-appearance: none; appearance: none;
}

.time-sel:focus { color: var(--primary); }

.time-colon {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 1px;
}

.time-ampm {
  font-weight: 700; color: var(--primary);
  padding-left: 6px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}

/* ── VENDOR PHOTO UPLOAD ── */
.vs-photo-field { text-align: center; padding: 0; }
.vs-photo-wrap { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; cursor: pointer; position: relative; display: inline-block; margin: 0 auto; }
.vs-photo-preview {
  width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2);
  border: 2px dashed var(--border-2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; transition: all .2s;
  overflow: hidden; color: var(--muted); position: relative;
}
.vs-photo-preview:hover { border-color: var(--accent); transform: scale(1.03); }
.vs-photo-preview span { font-size: 10px; font-weight: 600; }
.vs-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.vs-photo-hint { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: center; }

/* ── PHOTO CROP EDITOR ── */
.crop-modal { align-items: stretch; }
.crop-body {
  overflow: visible;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.crop-help { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 10px; flex-shrink: 0; }
.crop-stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #1a1a1a;
  margin: 0 auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  flex: 0 0 auto;
  width: 280px;
  height: 280px;
  max-width: 100%;
}
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
  display: block;
}
.crop-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  max-width: 300px;
  flex-shrink: 0;
}
.crop-zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  height: 28px;
}

/* ── PHONE INPUT WITH +91 PREFIX ── */
.phone-input-wrap {
  display: flex; align-items: stretch; background: var(--surface-2);
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .15s;
}
.phone-input-wrap:focus-within { border-color: var(--accent); background: #fff; }
.phone-prefix {
  display: flex; align-items: center; padding: 0 0 0 12px;
  background: transparent; color: var(--text); font-weight: 600;
  font-size: 15px; user-select: none;
  white-space: nowrap; letter-spacing: 0.02em;
}
.phone-input {
  flex: 1; border: none !important; outline: none; padding: 11px 12px;
  background: transparent; font-size: 15px; min-width: 0;
}
.phone-input:focus { box-shadow: none; }

/* ── EYE TOGGLE ── */
.eye-toggle {
  position: absolute; right: 8px; top: 0; bottom: 0;
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 0 6px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: color .2s;
}
.eye-toggle:hover { color: var(--accent); }

.vendor-card-photo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  border: 2px solid var(--accent-2); flex-shrink: 0;
}
.vendor-card-header { display: flex; align-items: center; gap: 12px; }
.vendor-card-header .card-info { flex: 1; min-width: 0; }

.vd-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-2); margin: 0 auto 12px; display: block; }
.vd-photo-initial {
  width: 80px; height: 80px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px;
  margin: 0 auto 12px;
}

/* ── VENDOR CARD BUTTONS ── */
.vendor-card-meta-inline {
  font-size: 13px; color: var(--subtext); line-height: 1.5;
  word-break: break-word; overflow-wrap: anywhere;
}

/* ── Star ratings / reviews ── */
.vc-rating {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  margin: 1px 0;
}
.vendor-header .vc-rating { color: rgba(255, 250, 240, .85); }
.vendor-header .vc-rating-num { color: #fffaf0; }
.vendor-header .vc-review-count { color: rgba(255, 250, 240, .65); }
.vendor-header .vc-rating-empty { color: rgba(255, 250, 240, .65); }
.vendor-header .vc-star { color: #f4a261; }
.vc-rating-empty { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.vc-star { color: #f4a261; font-size: 13px; line-height: 1; }
.vc-star.on { color: #f4a261; }
.vc-rating-num { font-weight: 700; color: var(--ink); }
.vc-review-count { color: var(--muted); font-weight: 500; font-size: 11.5px; }

.vd-reviews-section { margin-top: 4px; }
.vc-review-card {
  background: var(--surface-2, #f3ecdc);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}
.vc-review-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 4px;
}
.vc-review-top strong { font-size: 13px; color: var(--ink); }
.vc-stars-sm .vc-star { font-size: 12px; margin-left: 1px; }
.vc-review-comment { font-size: 13px; color: var(--ink-2); margin: 0 0 4px; line-height: 1.45; }
.vc-review-meta { font-size: 11px; color: var(--muted); }
.vc-empty-reviews { font-size: 13px; color: var(--muted); padding: 6px 0; }

.vd-review-gate {
  margin-top: 10px;
  font-size: 12.5px; font-weight: 600;
  color: var(--accent);
  background: rgba(230, 57, 70, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
}

/* ── TRANSACTIONS ── */
.txn-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 18px 20px; }
.txn-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.txn-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2, #f3ecdc);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.txn-body { flex: 1; min-width: 0; }
.txn-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.txn-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.txn-amount { font-size: 15px; font-weight: 700; color: var(--accent-3, #2a9d8f); white-space: nowrap; }
.txn-loading { text-align: center; padding: 30px 18px; color: var(--muted); font-size: 13.5px; }
.vd-review-form {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.vd-review-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.vc-star-picker { display: flex; gap: 4px; }
.vc-star-pick {
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; padding: 0 2px;
  color: #d6c9ad; transition: color .12s, transform .12s;
}
.vc-star-pick.on { color: #f4a261; }
.vc-star-pick:hover { transform: scale(1.12); }
.vd-review-form textarea {
  width: 100%; resize: vertical; min-height: 56px;
  border: 1.5px solid var(--border-2);
  border-radius: 10px; padding: 10px 12px;
  font-size: 13.5px; font-family: inherit; color: var(--text);
  background: var(--surface); outline: none;
}
.vd-review-form textarea:focus { border-color: var(--accent); }
.vd-review-form .btn { align-self: flex-start; }
.vd-review-done {
  margin-top: 10px; font-size: 13px; font-weight: 600;
  color: var(--accent-3); background: rgba(42, 157, 143, 0.1);
  border-radius: 10px; padding: 10px 12px;
}

.vendor-btn-view {
  background: var(--surface) !important; color: var(--accent) !important;
  border: 1.5px solid var(--accent) !important; font-weight: 600; font-size: 13px;
  padding: 7px 10px; border-radius: 10px; flex: 0 1 auto; text-align: center;
  min-width: 0; white-space: nowrap;
}
.vendor-btn-call {
  background: var(--accent) !important; color: #fff !important;
  font-weight: 600; font-size: 13px; padding: 7px 10px; border-radius: 10px;
  flex: 0 1 auto; text-align: center; min-width: 0; white-space: nowrap;
}

.modal input[type="date"],
.modal input[type="time"],
.modal select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--surface); font-size: 15px; color: var(--text);
  appearance: auto; -webkit-appearance: auto;
}

/* ── RESPONSIVE ── */
@media (min-width: 480px) {
  #app {
    width: min(100%, var(--app-vw));
    min-height: 100dvh;
  }

  .auth-screen, .topbar, .bottom-nav, .modal, .detail-footer {
    max-width: none;
  }

  .auth-screen, .topbar, .bottom-nav, .detail-footer {
    left: 0; transform: none;
  }

  .sb-overlay { background: rgba(0, 0, 0, .3); }
}

.vip-banner-wrap { display: none; }
.vip-banner-img { display: none; }
.vip-banner-overlay { display: none; }

.coming-soon-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; min-height: 50vh; }
.coming-soon-img { width: 70%; max-width: 280px; margin-bottom: 20px; }
.coming-soon-title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.coming-soon-desc { font-size: 14px; color: var(--muted); max-width: 280px; }

.vd-locked { text-align: center; padding: 24px 16px; background: var(--surface-2); border-radius: var(--radius); border: 1.5px dashed var(--border); }
.vd-lock-icon { font-size: 36px; margin-bottom: 8px; }
.vd-locked h4 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.vd-locked p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.vd-unlock-btn { width: 100%; }

.unlock-timer { display: inline-block; font-size: 10px; font-weight: 600; background: rgba(255,255,255,0.25); padding: 1px 5px; border-radius: 3px; margin-left: 4px; }
