:root {
    --primary: #0f766e;
    --primary-dark: #0b5c56;
    --accent: #f59e0b;
    --bg: #f4f6f7;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px;
}

a { color: var(--primary); text-decoration: none; }

.section-heading, .topbar .brand { font-family: 'Baloo 2', 'Inter', sans-serif; }

.topbar {
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.topbar .brand { font-size: 18px; font-weight: 700; color: #fff; }
.topbar .brand span { color: var(--accent); }
.topbar a.icon-link { color: #fff; font-size: 14px; }

.container { max-width: 720px; margin: 0 auto; padding: 14px; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border: 1px solid var(--border);
}

.biz-card { display: flex; gap: 12px; align-items: center; }
.biz-card img.logo { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #eee; flex-shrink: 0; }
.biz-card .biz-info { flex: 1; min-width: 0; }
.biz-card .biz-info h3 { margin: 0 0 4px; font-size: 16px; }
.biz-card .biz-info p { margin: 0; font-size: 13px; color: var(--muted); }

/* Compact "hero" business card at top of business_view.php */
.biz-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(15,118,110,.25);
}
.biz-hero-top { display: flex; gap: 12px; align-items: center; }
.biz-hero img.logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.35); flex-shrink: 0; }
.biz-hero .biz-info { flex: 1; min-width: 0; }
.biz-hero .biz-info h3 { margin: 0 0 2px; font-size: 17px; color: #fff; }
.biz-hero .biz-info p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
.biz-hero-badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.biz-hero-badges .badge { background: rgba(255,255,255,.18); color: #fff; }
.biz-hero-line { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.biz-hero-desc {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.biz-readmore {
    margin-top: 10px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    cursor: pointer;
}
.biz-readmore:hover { background: rgba(255,255,255,.25); }

.biz-details { scroll-margin-top: 70px; }
.biz-details-scroll { max-height: 340px; overflow-y: auto; }
.badge {
    display: inline-block;
    background: #e0f2f1;
    color: var(--primary-dark);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
}

.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar input, .search-bar select {
    flex: 1;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    background: #fff;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #6b7280; }
.btn.danger { background: var(--danger); }
.btn.accent { background: var(--accent); color: #1f2937; }
.btn.block { display: block; width: 100%; }
.btn.small { padding: 6px 12px; font-size: 12px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group .req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: #fff;
    font-family: inherit;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.hint { color: var(--muted); font-size: 12px; }

.form-section { margin: 18px 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.form-section h3 { font-size: 14px; color: var(--primary-dark); margin-bottom: 10px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.flash.success { background: #d1fae5; color: #065f46; }
.flash.error { background: #fee2e2; color: #991b1b; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    padding: 8px 0 10px;
    z-index: 50;
}
.bottom-nav a { color: var(--muted); font-size: 11px; text-align: center; flex: 1; }
.bottom-nav a.active { color: var(--primary); font-weight: 700; }
.bottom-nav .ic { display: block; font-size: 18px; margin-bottom: 2px; }

.page-title { font-size: 19px; font-weight: 700; margin: 6px 0 14px; }
.section-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag-list a { background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; font-size: 12px; }
.tag-list a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }

.field-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.field-row .meta { font-size: 12px; color: var(--muted); }

.detail-list div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.detail-list div span:first-child { color: var(--muted); }

.loc-map {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: 8px;
    z-index: 1;
}
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.loc-actions .loc-search {
    flex: 1;
    min-width: 140px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 13px;
}
.mini-map {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: 10px 0;
}
.directions-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    background: #e0f2f1;
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Small icon-button row on the business hero: Call / WhatsApp / Location
   on Map / Directions — quick actions without needing to expand details. */
.biz-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.qa-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.qa-btn:hover { background: rgba(255,255,255,.28); }
.qa-btn .qa-ic { font-size: 14px; }

.branch-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.branch-link-row .directions-link { margin-top: 0; }

/* Compact, colored branch cards (Branches section on business_view.php).
   --branch-color comes from each branch's owner-managed card_color, and
   defaults to green (#16a34a) when the owner hasn't picked one. */
.branch-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.branch-card {
    --branch-color: #16a34a;
    position: relative;
    background: color-mix(in srgb, var(--branch-color) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--branch-color) 35%, var(--border));
    border-left: 4px solid var(--branch-color);
    border-radius: 10px;
    padding: 10px 12px;
}
.branch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.branch-card-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.branch-main-badge { margin-top: 0; background: var(--branch-color); color: #fff; }
.branch-card-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.branch-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.branch-card-link {
    font-size: 11px;
    font-weight: 600;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--branch-color) 45%, var(--border));
    color: var(--branch-color);
    padding: 4px 9px;
    border-radius: 20px;
}

/* Owner-managed color picker (branch_add.php / branch_edit.php) */
.color-field-row { display: flex; align-items: center; gap: 10px; }
.color-field-row input[type="color"] {
    width: 44px;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.color-field-row .hint { margin: 0; }

@media (max-width: 480px) {
    .branch-card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Products/Services card header on business_view.php — title + Full Catalog
   link + owner's Copy Link button, wrapping cleanly on narrow screens. */
.productscard-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.productscard-head-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Standalone full-catalog page (products_view.php) */
.catalog-back-link { display: inline-block; margin-bottom: 10px; color: var(--primary); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.catalog-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.catalog-header .logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }

/* Product name link inside product lists (business_view.php / products_view.php) */
.pdp-name-link { color: var(--text); text-decoration: none; }
.pdp-name-link:hover { color: var(--primary); text-decoration: underline; }

/* ---------------- Single Product Detail Page (product_view.php) ---------------- */
.pdp { display: flex; flex-direction: column; gap: 16px; margin-bottom: 14px; }
.pdp-gallery { display: flex; flex-direction: column; gap: 8px; }
.pdp-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pdp-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pdp-thumb {
    flex-shrink: 0; width: 56px; height: 56px; object-fit: cover;
    border-radius: 8px; border: 2px solid var(--border); cursor: pointer;
}
.pdp-thumb.active { border-color: var(--primary); }
.pdp-thumb-video {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px;
    background: #000; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; text-decoration: none;
}

.pdp-info { display: flex; flex-direction: column; gap: 10px; }
.pdp-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pdp-title { margin: 0; font-size: 20px; line-height: 1.3; }
.pdp-seller {
    display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 13px; text-decoration: none; width: fit-content;
}
.pdp-seller img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.pdp-seller strong { color: var(--text); }

.pdp-price-row { display: flex; align-items: baseline; gap: 6px; }
.pdp-price { font-size: 26px; font-weight: 800; color: var(--text); }
.pdp-unit { font-size: 13px; color: var(--muted); }

.pdp-variants-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .02em; }
.pdp-variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-variant-chip {
    background: #fff; border: 1.5px solid var(--border); border-radius: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text);
    cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.pdp-variant-chip.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); }
.pdp-variant-chip.disabled, .pdp-variant-chip:disabled { opacity: .5; cursor: not-allowed; }
.pdp-chip-tag { font-size: 10px; color: var(--danger); font-weight: 600; }
.pdp-stock { margin-top: -4px; }
.pdp-attr-group { margin-bottom: 14px; }
.pdp-chip-swatch { padding-left: 8px; }
.pdp-swatch-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; flex-shrink: 0; }
.pdp-variant-chip.selected .pdp-swatch-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--primary); }

.pdp-qty-row { display: flex; align-items: center; gap: 12px; }
.pdp-qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.pdp-qty-stepper button { width: 34px; height: 34px; border: none; background: #fff; font-size: 16px; cursor: pointer; }
.pdp-qty-stepper input { width: 44px; height: 34px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; -moz-appearance: textfield; }
.pdp-qty-stepper input::-webkit-outer-spin-button, .pdp-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-manage-actions { display: flex; flex-direction: column; gap: 8px; }
.pdp-pick-row { display: flex; flex-direction: column; gap: 4px; }
.pdp-pick-row .form-group { margin: 0; }

/* "Show Location QR for Staff" reveal box on product_view.php (customer side) */
.pdp-locate-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.pdp-locate-qr-box #pdpQrCanvas { padding: 10px; background: #fff; border-radius: 8px; }

/* Scan-target page (product_locate.php) — opened by staff after scanning */
.locate-scan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.locate-scan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.locate-scan-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.locate-scan-product { font-weight: 700; font-size: 16px; }
.locate-scan-biz { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.locate-scan-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.locate-scan-path { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.35; }
.locate-scan-linked { font-size: 14px; margin-top: 4px; color: var(--text); }

@media (min-width: 640px) {
    .pdp { flex-direction: row; align-items: flex-start; }
    .pdp-gallery { width: 42%; position: sticky; top: 76px; }
    .pdp-info { flex: 1; }
}

@media (max-width: 480px) {
    .row-2 { grid-template-columns: 1fr; }
}

/* ---------- Physical Location Hierarchy (universal tree UI) ---------- */
.loc-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.loc-tag-list a { background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.loc-tag-list a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, transform .1s;
}
.tpl-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.tpl-card .tpl-title { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.tpl-card .tpl-desc { font-size: 11px; color: var(--muted); }
@media (max-width: 480px) { .tpl-grid { grid-template-columns: 1fr; } }

.loc-tree { list-style: none; margin: 0; padding: 0; }
.loc-tree ul { list-style: none; margin: 0; padding: 0; }
.loc-node {
    border-left: 3px solid var(--primary);
    background: #fff;
    border-radius: 10px;
    margin: 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.loc-node > summary,
.loc-node-leaf {
    list-style: none;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.loc-node > summary::-webkit-details-marker { display: none; }
.loc-node > summary::marker { content: ''; }
.loc-node[open] > summary { border-bottom: 1px dashed var(--border); background: #f9fafb; }
.loc-node-leaf { cursor: default; }
.loc-node-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.loc-node-icon { font-size: 18px; flex-shrink: 0; }
.loc-node-info { min-width: 0; }
.loc-node-info .loc-name { font-weight: 700; font-size: 13.5px; }
.loc-node-info .loc-meta { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.loc-node-actions { display: flex; gap: 6px; flex-shrink: 0; }
.loc-node-actions a, .loc-node-actions button {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
}
.loc-node-actions a.danger, .loc-node-actions button.danger { color: var(--danger); }
.loc-children { padding: 4px 8px 8px 18px; }
.loc-count-badge {
    background: var(--accent);
    color: #1f2937;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
}
.loc-toggle-hint { font-size: 16px; color: var(--muted); transition: transform .15s; }
.loc-node[open] > summary .loc-toggle-hint { transform: rotate(90deg); }

.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.analytics-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.analytics-ic { display: block; font-size: 20px; margin-bottom: 4px; }
.analytics-num { display: block; font-size: 18px; font-weight: 800; color: var(--primary-dark); line-height: 1.2; }
.analytics-lbl { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.achv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.achv-tile {
    position: relative;
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 8px 10px;
    text-align: center;
    filter: grayscale(1);
    opacity: .55;
}
.achv-tile.unlocked {
    background: linear-gradient(160deg,#fff9ec,#fff);
    border-color: var(--accent, #f5b301);
    filter: none;
    opacity: 1;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.achv-ic { display: block; font-size: 26px; margin-bottom: 6px; }
.achv-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.achv-lock { position: absolute; top: 6px; right: 8px; font-size: 11px; }
@media (max-width: 380px) { .achv-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

.learn-list { display: flex; flex-direction: column; gap: 8px; }
.learn-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    overflow: hidden;
}
.learn-item > summary {
    list-style: none;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
    font-size: 13.5px;
}
.learn-item > summary::-webkit-details-marker { display: none; }
.learn-item > summary::marker { content: ''; }
.learn-item[open] > summary { border-bottom: 1px dashed var(--border); background: #f9fafb; }
.learn-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.learn-ic { font-size: 18px; flex-shrink: 0; }
.learn-title { min-width: 0; }
.learn-toggle-hint { font-size: 12px; color: var(--muted); transition: transform .15s; flex-shrink: 0; }
.learn-item[open] > summary .learn-toggle-hint { transform: rotate(90deg); }
.learn-body { padding: 10px 14px 14px; }
.learn-body p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.learn-soon { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-dark); background: #f0fdfa; padding: 5px 10px; border-radius: 20px; }

.loc-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; background: #f0fdfa; border-radius: 8px; padding: 8px 10px; }
.loc-path-badge {
    display: inline-block;
    font-size: 11px;
    background: #e0f2f1;
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 3px;
}

/* ---------- Step Wizard (mobile-friendly multi-step forms) ---------- */
.step-wizard-label { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; display: flex; justify-content: space-between; }
.step-progress { background: #e5e7eb; border-radius: 20px; height: 6px; overflow: hidden; margin-bottom: 18px; }
.step-progress-bar { background: var(--primary); height: 100%; width: 0%; transition: width .3s ease; border-radius: 20px; }
.step-dots { display: flex; gap: 5px; margin-bottom: 16px; }
.step-dots span { flex: 1; height: 4px; border-radius: 4px; background: #e5e7eb; transition: background .25s ease; }
.step-dots span.done, .step-dots span.current { background: var(--primary); }
.step { display: none; animation: stepFadeIn .2s ease; }
.step.active { display: block; }
@keyframes stepFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.step-nav { display: flex; gap: 10px; margin-top: 20px; }
.step-nav .btn { flex: 1; margin: 0; }
.field-error { border-color: var(--danger) !important; }

/* ---------- Unified Hyperlocal Homepage (Swiggy/Zomato-style) ---------- */
.hl-location-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.hl-location-bar .loc-text { font-size: 12px; opacity: .9; min-width: 0; }
.hl-location-bar .loc-text strong { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-location-bar a.change-link { color: #fff; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 20px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

.hl-hero {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    border-radius: 16px;
    padding: 22px 18px;
    margin-bottom: 18px;
    text-align: center;
    color: #3b2c00;
}
.hl-hero h2 { margin: 0 0 6px; font-size: 20px; }
.hl-hero p { margin: 0; font-size: 13px; }

.category-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; text-align: center; width: 64px; }
.category-chip .cat-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: border-color .15s, background .15s;
}
.category-chip.active .cat-icon { border-color: var(--primary); background: #e0f2f1; }
.category-chip span.cat-label { font-size: 11px; color: var(--text); display: block; line-height: 1.25; }
.category-chip.active span.cat-label { color: var(--primary-dark); font-weight: 700; }

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1.5px dashed var(--primary);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 18px 0;
}
.cta-banner .cta-text { font-size: 12.5px; }
.cta-banner .cta-text strong { display: block; font-size: 14.5px; color: var(--primary-dark); }
.cta-banner .btn { white-space: nowrap; flex-shrink: 0; }

.section-heading { font-size: 16px; font-weight: 700; margin: 18px 0 10px; }

/* ---------- Grow Your Business (business_dashboard.php quick-launch grid) ---------- */
.grow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grow-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 8px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, transform .1s;
    position: relative;
}
.grow-tile:hover { border-color: var(--primary); transform: translateY(-1px); }
.grow-tile .grow-ic {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    background: #f6f4fb;
}
.grow-tile .grow-label { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.grow-tile .grow-new {
    position: absolute; top: 6px; right: 6px;
    background: var(--accent); color: #1f2937;
    font-size: 9px; font-weight: 700;
    padding: 1px 6px; border-radius: 8px;
    line-height: 1.5;
}
@media (max-width: 380px) { .grow-grid { grid-template-columns: repeat(2, 1fr); } }

.filter-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.filter-bar select {
    flex: 1;
    padding: 9px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 13px;
    background: #fff;
    min-width: 0;
}

.rail-head { display: flex; justify-content: space-between; align-items: center; }
.rail-head .change-link { font-size: 12.5px; font-weight: 600; }

.product-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-rail::-webkit-scrollbar { display: none; }

.product-card {
    flex: 0 0 auto;
    width: 118px;
    display: block;
    color: var(--text);
    position: relative;
}
.product-card img,
.product-card .pc-media img { width: 118px; height: 118px; border-radius: 10px; object-fit: cover; background: #eee; display: block; }
.product-card .pc-media { display: block; position: relative; }
.product-card .pc-info { display: block; color: var(--text); }
.product-card .pc-name { font-size: 12.5px; font-weight: 600; margin-top: 6px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .pc-price { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); margin-top: 2px; }
.product-card .pc-biz { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Native lazy-loaded images fade in once actually loaded instead of
   popping in abruptly — home_lazy.js toggles .loaded on load/error. */
img.lazy-fade { opacity: 0; transition: opacity .25s ease; }
img.lazy-fade.loaded { opacity: 1; }

/* Blinkit/Instamart-style "⚡ 900m" quick-delivery pill on the image. */
.product-card .pc-eta {
    position: absolute; left: 6px; bottom: 6px;
    background: rgba(15, 118, 110, .92); color: #fff;
    font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
    letter-spacing: .2px;
}

/* Floating "ADD" pill, overlapping the image bottom-right — same instant
   quick-add pattern as Blinkit/Instamart product cards. Sits between the
   image and info blocks in markup, positioned via negative margin so it
   overlaps the image corner without needing extra wrapper elements. */
.product-card .pc-add-form { margin: 0; }
.product-card .pc-add-btn {
    position: absolute; right: 4px; bottom: -12px;
    display: inline-block; min-width: 52px; text-align: center;
    background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
    font-size: 11px; font-weight: 800; letter-spacing: .3px;
    padding: 5px 8px; border-radius: 8px; cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 118, 110, .18);
    text-decoration: none;
}
.product-card .pc-add-btn:active { transform: scale(.94); }
.product-card .pc-book-btn { border-color: var(--hp-vermillion, #e1483c); color: var(--hp-vermillion, #e1483c); }
.product-card .pc-info { margin-top: 10px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}
.product-grid .product-card { width: auto; }
.product-grid .product-card img { width: 100%; height: 118px; }

/* ---- Skeleton shimmer placeholders for lazily-fetched rails ---- */
.shimmer-card {
    width: 118px;
    height: 152px;
    border-radius: 10px;
    background: linear-gradient(100deg, #ececec 30%, #f6f6f6 50%, #ececec 70%);
    background-size: 200% 100%;
    animation: hp-shimmer 1.2s ease-in-out infinite;
}
@keyframes hp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .shimmer-card { animation: none; background: #ececec; }
}

/* ---- "Shop by Category" circular quick-nav, Blinkit-style ---- */
.hp-cat-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.hp-cat-scroll::-webkit-scrollbar { display: none; }
.hp-cat-circle { flex: 0 0 auto; width: 64px; text-align: center; text-decoration: none; }
.hp-cat-circle-ic {
    display: flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; margin: 0 auto 6px;
    border-radius: 50%; background: #fff; border: 1px solid var(--hp-border, var(--border));
    font-size: 24px; box-shadow: 0 2px 6px rgba(36, 23, 72, .07);
}
.hp-cat-circle-label {
    display: block; font-size: 10.5px; font-weight: 600; color: var(--hp-ink, var(--text));
    line-height: 1.2; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* =====================================================================
   HOME PAGE — DOKOVO IDENTITY
   A hyperlocal Indian bazaar directory, not a generic dashboard: the
   palette and signature motif are drawn from market signage — hand-lettered
   shop boards and the bunting strung across a market lane on opening day.
   Scoped entirely under .home-page so no other screen in the app is
   affected by it.
===================================================================== */
.home-page {
    --hp-ink: #241748;
    --hp-ink-2: #3b2c73;
    --hp-marigold: #f2a93b;
    --hp-vermillion: #e1483c;
    --hp-bg: #f6f4fb;
    --hp-border: #e7e1f2;
    background: var(--hp-bg);
    margin: -14px -14px 0;
    padding: 0 14px 14px;
}

/* Bunting: a string of market pennants — the one bold, memorable stroke.
   Static by default; a hair of sway if the visitor hasn't asked for less motion. */
.hp-bunting {
    height: 20px;
    margin: 0 -14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='20'><line x1='0' y1='2' x2='40' y2='2' stroke='rgba(255,255,255,0.4)' stroke-width='1'/><polygon points='2,2 18,2 10,18' fill='%23f2a93b'/><polygon points='22,2 38,2 30,18' fill='%23e1483c'/></svg>");
    background-repeat: repeat-x;
    transform-origin: top center;
    animation: hp-sway 6s ease-in-out infinite;
}
@keyframes hp-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(0.6deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hp-bunting { animation: none; }
}

.hp-hero {
    background: linear-gradient(155deg, var(--hp-ink), var(--hp-ink-2));
    margin: 0 -14px;
    padding: 22px 14px 44px;
    color: #fff;
    position: relative;
}
.hp-hero h2 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 24px;
    margin: 0 0 6px;
}
.hp-hero h2 span { color: var(--hp-marigold); }
.hp-hero p { margin: 0; font-size: 13.5px; opacity: .82; max-width: 34ch; }

.hp-location-bar {
    background: linear-gradient(155deg, var(--hp-ink), var(--hp-ink-2));
    margin: 0 -14px;
    padding: 16px 14px 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hp-location-bar .loc-text { font-size: 12px; opacity: .82; min-width: 0; }
.hp-location-bar .loc-text strong { display: block; font-family: 'Baloo 2', sans-serif; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-location-bar a.hp-change {
    color: var(--hp-ink);
    background: var(--hp-marigold);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Floating search "counter" — overlaps the hero's bottom edge like a shop
   counter jutting out under an awning. */
.hp-search-wrap { margin-top: -30px; padding: 0 2px; }
.hp-search-wrap form {
    display: flex;
    gap: 8px;
    background: #fff;
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
    box-shadow: 0 8px 24px rgba(36,23,72,.18);
}
.hp-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
}
.hp-search-wrap button {
    background: var(--hp-marigold);
    color: var(--hp-ink);
    border: none;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
}

/* Search popup — opened by tapping the home page search box. */
.search-popup-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(36,23,72,.45);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 0;
}
/* Must win over the plain .search-popup-overlay rule above (same-origin
   author CSS beats the browser's built-in [hidden]{display:none} default),
   otherwise the popup stays visible and never actually closes. */
.search-popup-overlay[hidden] { display: none; }
.search-popup {
    background: var(--hp-bg, #f6f4fb);
    width: 100%; max-width: 720px;
    height: 100%;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.search-popup-top {
    display: flex; align-items: center; gap: 8px;
    padding: 14px; background: #fff;
    border-bottom: 1px solid var(--hp-border, var(--border));
}
.search-popup-top input {
    flex: 1; border: 1px solid var(--hp-border, var(--border));
    border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none;
}
.search-popup-top button {
    border: none; background: none; font-size: 18px; cursor: pointer; color: var(--hp-ink, var(--text));
    padding: 4px 8px;
}
.search-popup-tabs { display: flex; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--hp-border, var(--border)); }
.search-popup-tab {
    flex: 1; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--hp-border, var(--border));
    background: #fff; color: var(--hp-ink, var(--text)); font-weight: 600; font-size: 13px; cursor: pointer;
}
.search-popup-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-popup-results { flex: 1; overflow-y: auto; }
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-bottom: 1px solid var(--hp-border, var(--border));
    text-decoration: none; color: var(--text);
}
.search-result-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #eee; flex-shrink: 0; }
.search-result-item .sri-name { font-size: 13.5px; font-weight: 600; }
.search-result-item .sri-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.search-see-all {
    display: block; width: 100%; text-align: left; padding: 12px 14px;
    border: none; border-bottom: 1px solid var(--hp-border, var(--border));
    background: #fff; color: var(--primary); font-weight: 700; font-size: 13px; cursor: pointer;
}

.hp-filter-bar { display: flex; gap: 8px; margin: 14px 0; }
.hp-filter-bar select {
    flex: 1;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--hp-border);
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: var(--hp-ink);
    min-width: 0;
}

.hp-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.hp-chips::-webkit-scrollbar { display: none; }
.hp-chip { flex: 0 0 auto; text-align: center; width: 66px; text-decoration: none; }
.hp-chip .hp-chip-icon {
    width: 52px; height: 52px; margin: 0 auto 5px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--hp-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--hp-ink);
}
.hp-chip.active .hp-chip-icon { border-color: var(--hp-marigold); background: #fff4e2; }
.hp-chip span.hp-chip-label { font-size: 11px; color: var(--hp-ink); display: block; line-height: 1.25; font-weight: 500; }
.hp-chip.active span.hp-chip-label { color: var(--hp-vermillion); font-weight: 700; }

.hp-cta {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fff4e2;
    border: 1px dashed var(--hp-marigold);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 6px;
}
.hp-cta .hp-cta-text { font-size: 12.5px; color: var(--hp-ink); }
.hp-cta .hp-cta-text strong { display: block; font-family: 'Baloo 2', sans-serif; font-size: 14.5px; }
.hp-cta a.btn { background: var(--hp-vermillion); white-space: nowrap; flex-shrink: 0; border-radius: 10px; }

.hp-section-heading {
    font-family: 'Baloo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--hp-ink);
    margin: 22px 0 10px;
    padding-bottom: 6px;
    display: inline-block;
    background-image: linear-gradient(90deg, var(--hp-marigold), var(--hp-vermillion));
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 34px 3px;
}
.hp-rail-head { display: flex; justify-content: space-between; align-items: baseline; }
.hp-rail-head a.hp-see-all { font-size: 12px; font-weight: 700; color: var(--hp-vermillion); }

.home-page .product-card {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid var(--hp-border);
}
.home-page .product-card img { border-radius: 10px; }
.home-page .product-grid .product-card { width: auto; }

.hp-biz-card {
    display: flex; gap: 12px; align-items: center;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--hp-border);
    border-left: 4px solid var(--hp-marigold);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.hp-biz-card img.logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #eee; flex-shrink: 0; }
.hp-biz-card .biz-info { flex: 1; min-width: 0; }
.hp-biz-card .biz-info h3 { margin: 0 0 3px; font-size: 15px; font-family: 'Baloo 2', sans-serif; color: var(--hp-ink); }
.hp-biz-card .biz-info p { margin: 0; font-size: 12.5px; color: var(--muted); }
.hp-biz-card .badge { background: #f6f4fb; color: var(--hp-ink); }

.hp-empty { text-align: center; padding: 34px 20px; color: var(--muted); }

.hp-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}
.hp-stats .hp-stat {
    flex: 1;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
}
.hp-stats .hp-stat b { display: block; font-family: 'Baloo 2', sans-serif; font-size: 18px; color: var(--hp-ink); }
.hp-stats .hp-stat span { font-size: 11px; color: var(--muted); }

.biz-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.biz-rail::-webkit-scrollbar { display: none; }
.hp-biz-mini {
    flex: 0 0 auto;
    width: 148px;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    padding: 10px;
    display: block;
    color: var(--text);
}
.hp-biz-mini img.logo { width: 100%; height: 84px; border-radius: 10px; object-fit: cover; background: #eee; margin-bottom: 6px; }
.hp-biz-mini h4 { margin: 0 0 2px; font-size: 13px; font-family: 'Baloo 2', sans-serif; color: var(--hp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-biz-mini p { margin: 0; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-biz-mini .hp-mini-badge { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.hp-biz-mini .hp-mini-badge.trend { background: #fff4e2; color: var(--hp-vermillion); }
.hp-biz-mini .hp-mini-badge.new { background: #eafaf0; color: #16803c; }
.hp-biz-mini .hp-mini-badge.reorder { background: #eef2ff; color: #4338ca; }


/* Business Health Score widget (owner dashboard) */
.health-card { position: relative; }
.health-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.health-ring { position: relative; width: 78px; height: 78px; flex-shrink: 0; }
.health-ring svg { width: 78px; height: 78px; transform: rotate(-90deg); }
.health-ring circle { fill: none; stroke-width: 8; }
.health-ring .ring-bg { stroke: #eef1f0; }
.health-ring .ring-fill { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.health-ring .ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.health-ring .ring-label b { font-family: 'Baloo 2', sans-serif; font-size: 20px; color: var(--hp-ink, #1a1a1a); line-height: 1; }
.health-ring .ring-label span { font-size: 9px; color: var(--muted); }
.health-stars { font-size: 15px; letter-spacing: 1px; color: #f5a623; margin-top: 4px; }
.health-stars .empty { color: #e5e7eb; }
.health-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 2px; }
.health-sub { font-size: 12px; color: var(--muted); margin: 0; }
.health-bars { display: flex; flex-direction: column; gap: 10px; }
.health-bar-row { display: flex; align-items: center; gap: 10px; }
.health-bar-label { flex: 0 0 96px; font-size: 12.5px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.health-bar-track { flex: 1; background: #eef1f0; border-radius: 20px; height: 8px; overflow: hidden; }
.health-bar-fill { height: 100%; border-radius: 20px; background: var(--primary); transition: width .5s ease; }
.health-bar-fill.low { background: #e0703f; }
.health-bar-fill.mid { background: #f0b429; }
.health-bar-meta { flex: 0 0 46px; font-size: 11px; color: var(--muted); text-align: right; }
.health-bar-row.locked .health-bar-label,
.health-bar-row.locked .health-bar-meta { color: var(--muted); opacity: .7; }
.health-bar-row.locked .health-bar-track { background: #f3f4f4; }

/* Digital Welcome Kit */
.wk-kit-card { padding: 0; overflow: hidden; }
.wk-kit-head {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    background: #f8faf9;
}
.wk-kit-list { display: flex; flex-direction: column; }
.wk-kit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    transition: background .15s;
}
.wk-kit-row:last-child { border-bottom: none; }
.wk-kit-row:hover { background: #f0fdfa; }
.wk-check { color: var(--primary); font-size: 15px; flex-shrink: 0; }
.wk-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.wk-label { flex: 1; font-size: 13.5px; font-weight: 500; min-width: 0; }
.wk-go { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.wk-download-all {
    border-radius: 0;
    margin: 0;
    text-align: center;
    font-weight: 700;
    letter-spacing: .3px;
}

/* ---------------------------------------------------------------------
   Pre-location landing page additions: trust strip, popular chips,
   how-it-works, comparison, cost calculator, video/testimonial
   placeholders, referral CTA, sticky mobile FAB.
   --------------------------------------------------------------------- */

.hp-trust-strip {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.hp-trust-badge {
    flex: 1;
    background: #fff;
    border: 1px solid var(--hp-border, var(--border));
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.hp-trust-ic { font-size: 18px; }
.hp-trust-badge span:last-child { font-size: 10.5px; color: var(--hp-ink, var(--text)); line-height: 1.25; font-weight: 500; }
.hp-trust-badge b { display: block; font-family: 'Baloo 2', sans-serif; font-size: 15px; color: var(--hp-ink, var(--text)); }

.hp-popular-wrap { margin-top: 14px; }
.hp-popular-label { font-family: 'Baloo 2', sans-serif; font-size: 14.5px; color: var(--hp-ink, var(--primary-dark)); margin-bottom: 8px; }
.hp-popular-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hp-popular-chips::-webkit-scrollbar { display: none; }
.hp-pop-chip {
    flex: 0 0 auto;
    background: #fff;
    border: 1.5px solid var(--hp-border, var(--border));
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hp-ink, var(--text));
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.hp-pop-chip.active {
    border-color: var(--hp-vermillion, #e1483c);
    background: #fff0ee;
    color: var(--hp-vermillion, #e1483c);
}

.hp-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.hp-step { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hp-step-ic {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    border-radius: 50%;
    background: #f6f4fb;
    border: 1px solid var(--hp-border, var(--border));
}
.hp-step-label { font-size: 10.5px; font-weight: 700; color: var(--hp-ink, var(--text)); line-height: 1.2; }
.hp-step-arrow { color: var(--muted); font-size: 14px; flex: 0 0 auto; }

.hp-compare { border: 1px solid var(--hp-border, var(--border)); border-radius: 10px; overflow: hidden; }
.hp-compare-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
}
.hp-compare-row:not(:last-child) { border-bottom: 1px solid var(--hp-border, var(--border)); }
.hp-compare-row > div { padding: 8px 8px; font-size: 12px; }
.hp-compare-feat { color: var(--hp-ink, var(--text)); font-weight: 600; }
.hp-compare-col { text-align: center; color: var(--muted); }
.hp-compare-us { color: var(--primary-dark); font-weight: 700; }
.hp-compare-head { background: #f9fafb; font-family: 'Baloo 2', sans-serif; }
.hp-compare-head .hp-compare-us { color: var(--hp-vermillion, #e1483c); }

.hp-calc input[type="number"] {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--hp-border, var(--border));
    font-size: 14px;
}
.hp-calc-result { display: flex; gap: 8px; margin-top: 12px; }
.hp-calc-box {
    flex: 1;
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.hp-calc-box span { display: block; font-family: 'Baloo 2', sans-serif; font-size: 17px; color: var(--muted); }
.hp-calc-box small { font-size: 10px; color: var(--muted); line-height: 1.3; display: block; margin-top: 3px; }
.hp-calc-box.hp-calc-win { background: #f0fdfa; }
.hp-calc-box.hp-calc-win span { color: var(--primary-dark); }

.hp-video-box {
    border: 1.5px dashed var(--hp-border, var(--border));
    border-radius: 12px;
    padding: 30px 14px;
    text-align: center;
    color: var(--muted);
}
.hp-video-ic { font-size: 30px; display: block; margin-bottom: 6px; }
.hp-video-box p { margin: 0; font-size: 12.5px; }

.hp-testimonials { display: flex; flex-direction: column; gap: 10px; }
.hp-testimonial {
    border: 1.5px dashed var(--hp-border, var(--border));
    border-radius: 12px;
    padding: 12px;
}
.hp-testimonial-stars { color: var(--hp-marigold, #f2a93b); font-size: 13px; letter-spacing: 1px; }
.hp-testimonial-body { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; font-style: italic; }
.hp-testimonial-who { display: flex; align-items: center; gap: 8px; }
.hp-testimonial-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f6f4fb; display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.hp-testimonial-who strong { display: block; font-size: 12.5px; color: var(--hp-ink, var(--text)); }
.hp-testimonial-who small { color: var(--muted); font-size: 11px; }

.hp-fab {
    position: fixed;
    right: 16px;
    bottom: 80px;
    background: var(--hp-vermillion, #e1483c);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    text-decoration: none;
    z-index: 60;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.hp-fab.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 641px) {
    .hp-fab { display: none; }
}
