/* =====================================================================
   HourDeal — services listing, service card & service detail pages
   Clean white surfaces, neutral borders, a single accent colour.
   ===================================================================== */
:root {
    --hd-accent: var(--color-primary, #635bff);
    --hd-accent-soft: rgba(99, 91, 255, .08);
    --hd-ink: var(--color-heading, #192335);
    --hd-muted: #667085;
    --hd-line: #eaecf0;
    --hd-surface: #f8f9fb;
    --hd-radius: 14px;
    --hd-star: var(--hd-accent);
    --hd-success: #12b76a;
}

.hd-page { background: #fff; }

/* ---------- Page header (replaces the gradient banners) ---------- */
.hd-page-head {
    padding: 28px 0 8px;
    background: #fff;
}

.hd-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 13px;
    color: var(--hd-muted);
}

.hd-crumbs li { margin: 0; padding: 0; }
.hd-crumbs a { color: var(--hd-muted); }
.hd-crumbs a:hover { color: var(--hd-accent); }
.hd-crumbs .sep { font-size: 12px; opacity: .6; }
.hd-crumbs .current { color: var(--hd-ink); font-weight: 500; }

.hd-title {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--hd-ink);
    margin: 0;
}

.hd-subtitle {
    font-size: 15px;
    color: var(--hd-muted);
    margin: 6px 0 0;
}

.hd-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

/* ---------- Toolbar: sort + view switch ---------- */
.hd-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hd-select {
    appearance: none;
    -webkit-appearance: none;
    height: 40px;
    min-width: 170px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--hd-line);
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    font-size: 14px;
    color: var(--hd-ink);
    cursor: pointer;
    box-shadow: none;
}

.hd-select:focus { outline: none; border-color: var(--hd-accent); }

.hd-seg {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--hd-line);
    border-radius: 10px;
    background: var(--hd-surface);
    margin: 0;
    list-style: none;
}

.hd-seg li { margin: 0; padding: 0; }

.hd-seg button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--hd-muted);
    transition: background-color .15s ease, color .15s ease;
}

.hd-seg button.active {
    background: #fff;
    color: var(--hd-ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

/* ---------- Sub category tiles ---------- */
.hd-subcats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    gap: 14px;
    overflow-x: auto;
    padding: 20px 0 6px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    position: relative;
}

.hd-subcat {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hd-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hd-subcat:hover {
    border-color: #d0d5dd;
    box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .12);
    transform: translateY(-2px);
}

.hd-subcat.active {
    border-color: var(--hd-accent);
    box-shadow: 0 0 0 3px var(--hd-accent-soft);
}

.hd-subcat-img {
    aspect-ratio: 4 / 3;
    background: var(--hd-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-accent);
    font-size: 22px;
}

.hd-subcat-img img { width: 100%; height: 100%; object-fit: cover; }

.hd-subcat-name {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hd-ink);
    line-height: 1.35;
}

/* ---------- Listing section ---------- */
.hd-listing { padding: 24px 0 80px; }

.hd-section-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--hd-ink);
    margin: 0 0 4px;
}

.hd-divider { border: 0; border-top: 1px solid var(--hd-line); margin: 20px 0 8px; opacity: 1; }

/* =====================================================================
   Service card
   ===================================================================== */
.hd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.hd-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 12px 28px -12px rgba(16, 24, 40, .18);
    transform: translateY(-2px);
}

.hd-card.is-featured { border-color: rgba(99, 91, 255, .45); }

.hd-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--hd-surface);
    overflow: hidden;
}

.hd-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.hd-card:hover .hd-card-media img { transform: scale(1.03); }

.hd-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hd-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    background: #fff;
    color: var(--hd-ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .1);
}

.hd-pill.is-deal { background: #fef3f2; color: #d92d20; }
.hd-pill.is-featured { background: var(--hd-accent); color: #fff; }
.hd-pill.is-top { background: #f1efff; color: var(--hd-accent); }

.hd-card-save {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
    transition: transform .15s ease;
}

.hd-card-save:hover { transform: scale(1.08); }

.hd-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 0;
}

.hd-card-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--hd-accent);
    margin-bottom: 6px;
}

.hd-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hd-card-title a { color: var(--hd-ink); }
.hd-card-title a:hover { color: var(--hd-accent); }

.hd-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--hd-muted);
}

.hd-rating i { color: var(--hd-star); font-size: 12px; }
.hd-rating strong { color: var(--hd-ink); font-weight: 600; }

.hd-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--hd-muted);
}

.hd-provider img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hd-surface);
}

.hd-provider img.is-business { border-radius: 6px; }
.hd-provider a { color: var(--hd-ink); font-weight: 500; }
.hd-provider a:hover { color: var(--hd-accent); }

.hd-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.hd-facts li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--hd-surface);
    font-size: 12px;
    color: #475467;
}

.hd-facts li i { font-size: 12px; color: var(--hd-muted); }
.hd-facts li.is-good { background: #ecfdf3; color: #067647; }
.hd-facts li.is-good i { color: #067647; }

.hd-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 18px;
    border-top: 1px solid var(--hd-line);
    margin-left: -18px;
    margin-right: -18px;
    margin-top: 16px;
}

.hd-card-body > .hd-grow { flex: 1; }

.hd-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hd-price-from { font-size: 12px; color: var(--hd-muted); }
.hd-price-now { font-size: 20px; font-weight: 700; color: var(--hd-ink); line-height: 1; }
.hd-price-unit { font-size: 13px; color: var(--hd-muted); }
.hd-price-was { font-size: 13px; color: #98a2b3; text-decoration: line-through; }

.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.hd-btn-primary { background: var(--hd-accent); color: #fff; }
.hd-btn-primary:hover { background: #4f46e5; color: #fff; }
.hd-btn-soft { background: var(--hd-accent-soft); color: var(--hd-accent); }
.hd-btn-soft:hover { background: rgba(99, 91, 255, .14); color: var(--hd-accent); }
.hd-btn-outline { background: #fff; border-color: var(--hd-line); color: var(--hd-ink); }
.hd-btn-outline:hover { border-color: #d0d5dd; color: var(--hd-ink); }
.hd-btn-lg { height: 48px; font-size: 15px; border-radius: 12px; }
.hd-btn-block { width: 100%; }

/* Empty state */
.hd-empty {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 56px 24px;
    border: 1px dashed #d0d5dd;
    border-radius: var(--hd-radius);
    background: var(--hd-surface);
}

.hd-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--hd-accent);
    font-size: 22px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.hd-empty h5 { font-size: 18px; margin: 0 0 6px; }
.hd-empty p { color: var(--hd-muted); margin: 0 auto 18px; max-width: 420px; font-size: 15px; }
.hd-empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* =====================================================================
   Service detail
   ===================================================================== */
.hd-detail { padding: 8px 0 80px; }

.hd-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--hd-muted);
}

.hd-detail-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #d0d5dd; }
.hd-detail-meta a { color: var(--hd-ink); font-weight: 500; }
.hd-detail-meta a:hover { color: var(--hd-accent); }

.hd-gallery {
    position: relative;
    border-radius: var(--hd-radius);
    overflow: hidden;
    background: var(--hd-surface);
    border: 1px solid var(--hd-line);
}

.hd-gallery .swiper-slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.hd-gallery-empty {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--hd-muted);
    font-size: 14px;
}

.hd-gallery-empty i { font-size: 28px; }

.hd-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--hd-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .15);
}

.hd-gallery-nav.prev { left: 14px; }
.hd-gallery-nav.next { right: 14px; }
.hd-gallery-nav.swiper-button-disabled { opacity: 0; pointer-events: none; }

.hd-thumbs { margin-top: 10px; }

.hd-thumbs .swiper-slide {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: .6;
    cursor: pointer;
}

.hd-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--hd-accent); }
.hd-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.hd-block {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: #fff;
}

.hd-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--hd-ink);
    margin: 0 0 16px;
}

.hd-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hd-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    color: #344054;
    line-height: 1.5;
}

.hd-check-list li i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: #ecfdf3;
    color: #067647;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hd-stat {
    padding: 14px;
    border-radius: 12px;
    background: var(--hd-surface);
}

.hd-stat i { color: var(--hd-accent); font-size: 18px; }
.hd-stat-label { display: block; font-size: 12px; color: var(--hd-muted); margin-top: 8px; }
.hd-stat-value { display: block; font-size: 15px; font-weight: 600; color: var(--hd-ink); margin-top: 2px; }

.hd-pro {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.hd-pro-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--hd-surface);
}

.hd-pro-avatar.is-business { border-radius: 16px; }

.hd-pro-name { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.hd-pro-name a { color: var(--hd-ink); }
.hd-pro-name a:hover { color: var(--hd-accent); }

.hd-pro-about {
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.65;
    color: #475467;
    margin: 16px 0 0;
}

.hd-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.hd-tag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--hd-line);
    font-size: 13px;
    color: #344054;
    background: #fff;
}

.hd-tag i { margin-right: 6px; color: var(--hd-muted); }

.hd-sub-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hd-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 20px 0 10px;
}

/* Rating summary */
.hd-rating-summary { display: flex; gap: 32px; align-items: center; }

.hd-rating-big { text-align: center; min-width: 120px; }
.hd-rating-big .num { font-size: 44px; font-weight: 700; line-height: 1; color: var(--hd-ink); }
.hd-rating-big .stars { color: var(--hd-star); margin: 8px 0 4px; font-size: 14px; }
.hd-rating-big .count { font-size: 13px; color: var(--hd-muted); }

.hd-bars { flex: 1; }

.hd-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--hd-muted);
    margin-bottom: 8px;
}

.hd-bar-row .lbl { width: 28px; display: inline-flex; align-items: center; gap: 3px; }
.hd-bar-row .lbl i { color: var(--hd-star); font-size: 11px; }
.hd-bar-row .val { width: 36px; text-align: right; }

.hd-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #f2f4f7;
    overflow: hidden;
}

.hd-bar span { display: block; height: 100%; background: var(--hd-star); border-radius: 999px; }

.hd-review { padding: 18px 0; border-top: 1px solid var(--hd-line); }
.hd-review:first-of-type { border-top: 0; padding-top: 4px; }
.hd-review-head { display: flex; align-items: center; gap: 12px; }

.hd-review-head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hd-surface);
}

.hd-review-name { font-size: 15px; font-weight: 600; color: var(--hd-ink); }
.hd-review-date { font-size: 12px; color: var(--hd-muted); }
.hd-review-stars { color: var(--hd-star); font-size: 12px; margin-left: auto; }
.hd-review p { margin: 10px 0 0; font-size: 15px; color: #475467; line-height: 1.6; }

/* Booking card */
.hd-book {
    position: sticky;
    top: 24px;
    padding: 24px;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px -20px rgba(16, 24, 40, .22);
}

.hd-book .hd-price-now { font-size: 30px; }
.hd-book-actions { display: grid; gap: 10px; margin: 20px 0; }

.hd-book-trust {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--hd-line);
    display: grid;
    gap: 10px;
}

.hd-book-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: #475467;
}

.hd-book-trust li i { color: var(--hd-success); font-size: 16px; }

.hd-book-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--hd-line);
}

.hd-book-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-ink);
    margin-bottom: 10px;
}

.hd-book-section-title .hint { font-weight: 400; color: var(--hd-muted); }

.hd-kv { list-style: none; margin: 0; padding: 0; }

.hd-kv li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    font-size: 14px;
    color: var(--hd-muted);
}

.hd-kv li span:last-child { color: var(--hd-ink); font-weight: 500; text-align: right; }

.hd-phone-reveal {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #067647;
    font-weight: 600;
}

.hd-phone-reveal a { color: #067647; }

/* Keep the bs-calendar plugin looking native inside the card */
.hd-book #schedule-calendar .table { margin-bottom: 0; }
.hd-book #schedule-calendar .btn { box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hd-book { position: static; margin-top: 8px; }
    .hd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .hd-title { font-size: 24px; }
    .hd-page-head { padding-top: 20px; }
    .hd-check-list { grid-template-columns: 1fr; }
    .hd-rating-summary { flex-direction: column; align-items: stretch; gap: 20px; }
    .hd-block { padding: 18px; }
    .hd-pro-avatar { width: 64px; height: 64px; }
    .hd-subcats { grid-auto-columns: 128px; }
    .hd-head-row > div { width: 100%; }
    .hd-toolbar { width: 100%; flex-wrap: nowrap; }
    .hd-toolbar form { flex: 1; min-width: 0; }
    .hd-toolbar .hd-select { width: 100%; min-width: 0; }
    .hd-seg button { padding: 0 10px; }
}

/* Mobile sticky booking bar (service detail) */
.hd-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--hd-line);
    box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .18);
}

.hd-mobile-cta .hd-price-now { font-size: 20px; }
.hd-mobile-cta .hd-btn { height: 44px; padding: 0 22px; }

@media (max-width: 991px) {
    .hd-detail { padding-bottom: 110px; }
    #book { scroll-margin-top: 90px; }
}

/* =====================================================================
   Slot picker (2-week day grid + hourly start times)
   ===================================================================== */
.hd-slots-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-ink);
    margin: 18px 0 10px;
}

.hd-slots-label:first-child { margin-top: 0; }
.hd-slots-date { font-weight: 400; color: var(--hd-muted); font-size: 13px; }

.hd-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.hd-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 0 6px;
    border: 1px solid var(--hd-line);
    border-radius: 10px;
    background: #fff;
    color: var(--hd-ink);
    line-height: 1.1;
    transition: border-color .15s ease, background-color .15s ease;
}

.hd-day span { font-size: 11px; color: var(--hd-muted); }
.hd-day strong { font-size: 17px; font-weight: 600; }
.hd-day:hover:not(:disabled) { border-color: #c7c3ff; }

.hd-day.is-active {
    border-color: var(--hd-accent);
    background: var(--hd-accent-soft);
    color: var(--hd-accent);
    box-shadow: 0 0 0 1px var(--hd-accent) inset;
}

.hd-day.is-active span { color: var(--hd-accent); }
.hd-day:disabled { opacity: .4; cursor: not-allowed; background: var(--hd-surface); }

.hd-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hd-time {
    height: 44px;
    border: 1px solid var(--hd-line);
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: var(--hd-ink);
    transition: border-color .15s ease, background-color .15s ease;
}

.hd-time:hover:not(:disabled) { border-color: #c7c3ff; }

.hd-time.is-active {
    border-color: var(--hd-accent);
    background: var(--hd-accent);
    color: #fff;
}

.hd-time:disabled { background: var(--hd-surface); color: #b3b8c2; cursor: not-allowed; }
.hd-time.is-taken { text-decoration: line-through; }

.hd-slots-empty, .hd-slots-hint { font-size: 13px; color: var(--hd-muted); margin: 10px 0 0; }

.hd-duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.hd-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--hd-line);
    border-radius: 999px;
    overflow: hidden;
}

.hd-stepper button {
    width: 40px;
    height: 38px;
    border: 0;
    background: #fff;
    font-size: 18px;
    color: var(--hd-ink);
}

.hd-stepper button:disabled { color: #c9ced6; cursor: not-allowed; }
.hd-stepper output { min-width: 56px; text-align: center; font-size: 14px; font-weight: 500; }

.hd-slots-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hd-line);
    font-size: 14px;
    color: var(--hd-muted);
}

.hd-slots-total strong { font-size: 26px; font-weight: 700; color: var(--hd-ink); }

/* =====================================================================
   Booking page + shared form controls
   ===================================================================== */
.hd-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--hd-accent-soft);
    color: var(--hd-accent);
    font-size: 13px;
    font-weight: 700;
    vertical-align: 2px;
}

.hd-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--hd-ink);
    margin-bottom: 6px;
}

.hd-label span { color: var(--hd-muted); font-weight: 400; }

.hd-input,
.hd-page textarea.hd-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: var(--hd-ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.hd-input:focus {
    outline: none;
    border-color: var(--hd-accent);
    box-shadow: 0 0 0 4px var(--hd-accent-soft);
}

.hd-input[readonly] { background: var(--hd-surface); }
.hd-help { font-size: 13px; color: var(--hd-muted); margin: 6px 0 0; }

.hd-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
}

.hd-page .hd-check input[type="checkbox"] {
    position: static;
    opacity: 1;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: var(--hd-accent);
}

.hd-page .hd-check input[type="checkbox"] ~ span::before,
.hd-page .hd-check input[type="checkbox"] ~ span::after { display: none; }
.hd-page .hd-check span { padding: 0; }

.hd-note {
    font-size: 14px;
    line-height: 1.65;
    color: #475467;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fffaeb;
    border: 1px solid #fef0c7;
}

.hd-summary-head { display: flex; gap: 12px; align-items: center; }

.hd-summary-head img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--hd-surface);
    flex-shrink: 0;
}

.hd-summary-title { font-size: 16px; font-weight: 600; color: var(--hd-ink); line-height: 1.35; }
.hd-summary-sub { font-size: 13px; color: var(--hd-muted); }

.hd-summary-when {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--hd-surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--hd-ink);
}

.hd-summary-when i { color: var(--hd-accent); }

.hd-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hd-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 8px;
}

.hd-lines { list-style: none; margin: 16px 0 0; padding: 0; }

.hd-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 6px 0;
    font-size: 14px;
    color: #475467;
}

.hd-lines li > span:last-child { color: var(--hd-ink); font-weight: 500; }
.hd-lines li.is-good, .hd-lines li.is-good > span:last-child { color: #067647; }
.hd-lines-totals { border-top: 1px solid var(--hd-line); padding-top: 8px; }

.hd-items { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hd-line); }

.hd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
}

.hd-item-name { font-size: 14px; font-weight: 500; color: var(--hd-ink); text-transform: capitalize; }
.hd-item-price { font-size: 12px; color: var(--hd-muted); }

.hd-stepper-sm button { width: 32px; height: 32px; font-size: 16px; }

.hd-stepper .hd-qty {
    width: 36px;
    height: 32px;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    -moz-appearance: textfield;
}

.hd-stepper .hd-qty::-webkit-inner-spin-button,
.hd-stepper .hd-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.hd-promo { display: flex; gap: 8px; margin-top: 14px; }
.hd-promo .hd-input { min-height: 40px; height: 40px; padding: 0 12px; font-size: 14px; }
.hd-promo .hd-btn { height: 40px; }

/* =====================================================================
   Browse tasks
   ===================================================================== */
.hd-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 20px 0 4px;
    scrollbar-width: thin;
}

.hd-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--hd-line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.hd-chip:hover { border-color: #c7c3ff; color: var(--hd-ink); }

.hd-chip.is-active {
    border-color: var(--hd-accent);
    background: var(--hd-accent-soft);
    color: var(--hd-accent);
}

.hd-task {
    padding: 20px;
    margin-bottom: 14px;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.hd-task:hover {
    border-color: #c7c3ff;
    box-shadow: 0 10px 24px -14px rgba(16, 24, 40, .2);
}

.hd-task-top { display: flex; justify-content: space-between; gap: 16px; }

.hd-task-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hd-ink);
    margin: 0;
}

.hd-task-budget { text-align: right; flex-shrink: 0; }
.hd-task-budget span { display: block; font-size: 12px; color: var(--hd-muted); }
.hd-task-budget strong { font-size: 18px; font-weight: 700; color: var(--hd-ink); }
.hd-task-budget strong.is-open { font-size: 15px; color: var(--hd-muted); font-weight: 600; }

.hd-task-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--hd-line);
}

.hd-task-offers { font-size: 13px; color: var(--hd-muted); }

.hd-status {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eff4ff;
    color: #3538cd;
}

.hd-status.is-success { background: #ecfdf3; color: #067647; }
.hd-status.is-danger { background: #fef3f2; color: #b42318; }
.hd-status.is-warning { background: #fffaeb; color: #b54708; }

.hd-map-wrap {
    position: sticky;
    top: 24px;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    overflow: hidden;
    background: var(--hd-surface);
}

.hd-map-wrap #map { height: calc(100vh - 140px); min-height: 480px; width: 100%; }

/* =====================================================================
   Home: pros near you
   ===================================================================== */
.hd-nearby { /* spacing & background come from .hd-home-sec */ }

.hd-nearby-panel {
    position: relative;
    padding: 40px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(99, 91, 255, .10), transparent 45%),
        radial-gradient(circle at 0 100%, rgba(185, 102, 231, .08), transparent 40%),
        #fff;
    border: 1px solid #ecebfb;
    text-align: center;
}

.hd-nearby-intro { max-width: 640px; margin: 0 auto; }

.hd-nearby-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--hd-accent);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

.hd-nearby-intro h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    line-height: 1.2;
    color: var(--hd-ink);
}

.hd-nearby-intro h2 span { color: var(--hd-accent); }
.hd-nearby-intro p { margin: 0; font-size: 16px; color: var(--hd-muted); }

.hd-area-form {
    display: flex;
    gap: 10px;
    max-width: 680px;
    margin: 28px auto 0;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px -16px rgba(16, 24, 40, .25);
    border: 1px solid var(--hd-line);
}

.hd-area-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
}

.hd-area-field > i { color: var(--hd-accent); font-size: 18px; }

.hd-page .hd-area-field input,
.hd-area-field input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 16px;
    color: var(--hd-ink);
    box-shadow: none;
}

.hd-area-field input:focus { outline: none; }

.hd-area-locate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--hd-surface);
    color: var(--hd-ink);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.hd-area-locate:hover { background: var(--hd-accent-soft); color: var(--hd-accent); }
.hd-area-locate.is-busy i { animation: hd-spin 1s linear infinite; }
@keyframes hd-spin { to { transform: rotate(360deg); } }

.hd-area-submit { height: 48px; padding: 0 24px; border-radius: 12px; font-size: 15px; }

.hd-area-error { margin: 12px 0 0; font-size: 14px; color: #b42318; }

.hd-nearby-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.hd-nearby-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    color: #475467;
}

.hd-nearby-trust i { color: var(--hd-success); }

.hd-nearby-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0 20px;
}

.hd-nearby-heading { margin: 0; font-size: 22px; color: var(--hd-ink); }

.hd-area-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 14px;
    color: var(--hd-muted);
}

.hd-area-chip > i { color: var(--hd-accent); }
.hd-area-chip strong { color: var(--hd-ink); font-weight: 600; }

.hd-area-chip button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--hd-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hd-nearby-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 600;
    color: var(--hd-accent);
}

.hd-nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hd-nearby-grid .hd-nearby-item { min-width: 0; }

/* Loading placeholders */
.hd-skel {
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    overflow: hidden;
    padding-bottom: 18px;
    background: #fff;
}

.hd-skel-img, .hd-skel-line {
    background: linear-gradient(90deg, #f2f4f7 25%, #e9ecf1 37%, #f2f4f7 63%);
    background-size: 400% 100%;
    animation: hd-shimmer 1.4s ease infinite;
}

.hd-skel-img { aspect-ratio: 16 / 10; }
.hd-skel-line { height: 12px; border-radius: 6px; margin: 14px 18px 0; }
.hd-skel-line.w-40 { width: 40%; }
.hd-skel-line.w-60 { width: 60%; }
.hd-skel-line.w-80 { width: 80%; }
@keyframes hd-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 991px) {
    .hd-nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {

    .hd-nearby-panel { padding: 28px 16px; border-radius: 18px; }
    .hd-nearby-intro h2 { font-size: 26px; }
    .hd-area-form { flex-direction: column; }
    .hd-area-field { padding: 0 4px 0 12px; }
    .hd-area-locate span { display: none; }
    .hd-area-submit { width: 100%; }
    .hd-nearby-grid { grid-template-columns: 1fr; }
    .hd-nearby-bar { flex-direction: column; align-items: flex-start; }
}

/* Google Places suggestions above everything */
.pac-container { z-index: 1060 !important; border-radius: 12px; margin-top: 6px; box-shadow: 0 12px 32px -12px rgba(16, 24, 40, .25); }

.hd-nearby-notice { margin-bottom: 28px; padding: 32px 24px; }

.hd-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--hd-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================================
   Home page: one rhythm for every section
   ===================================================================== */
.hd-home-sec { padding: 72px 0; background: #fff; }
.hd-home-sec.is-alt { background: #f8f9fb; }

.hd-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.hd-sec-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(99, 91, 255, .1);
    color: var(--hd-accent);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.hd-sec-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--hd-ink);
}

.hd-sec-sub { margin: 10px 0 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: #5a5a68; }

.hd-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 600;
    color: var(--hd-accent);
}

.hd-sec-link:hover { color: #4f46e5; }

@media (max-width: 991px) {
    .hd-sec-title { font-size: 34px; }
}

@media (max-width: 767px) {
    .hd-home-sec { padding: 48px 0; }
    .hd-sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .hd-sec-title { font-size: 28px; }
    .hd-sec-sub { font-size: 15px; }
}

/* Same-background neighbours: avoid a double gap. */
.hd-faq-section + .hd-app,
section.hd-home-sec:not(.is-alt) + .hd-app { padding-top: 0; }

/* =====================================================================
   Help & policy pages
   ===================================================================== */
.hd-legal { padding: 16px 0 80px; }

.hd-legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
}

.hd-legal-side { position: sticky; top: 24px; display: grid; gap: 16px; }

.hd-legal-nav {
    padding: 18px;
    border: 1px solid var(--hd-line);
    border-radius: 16px;
    background: #fff;
}

.hd-legal-nav-title {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hd-muted);
}

.hd-legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hd-legal-nav li { margin: 0; }

.hd-legal-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475467;
    transition: background-color .15s ease, color .15s ease;
}

.hd-legal-nav a i { color: #98a2b3; font-size: 15px; }
.hd-legal-nav a:hover { background: var(--hd-surface); color: var(--hd-ink); }
.hd-legal-nav a.is-active { background: var(--hd-accent-soft); color: var(--hd-accent); }
.hd-legal-nav a.is-active i { color: var(--hd-accent); }

.hd-legal-help {
    padding: 20px;
    border-radius: 16px;
    background: var(--hd-surface);
    border: 1px solid var(--hd-line);
}

.hd-legal-help-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #fff;
    color: var(--hd-accent);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hd-legal-help strong { display: block; font-size: 15px; color: var(--hd-ink); }
.hd-legal-help p { margin: 4px 0 14px; font-size: 14px; color: var(--hd-muted); }

/* Readable long-form text (content comes from the admin editor or hand-written pages). */
.hd-prose { max-width: 760px; font-size: 16px; line-height: 1.75; color: #344054; }
.hd-prose > *:first-child { margin-top: 0 !important; }

.hd-prose h1, .hd-prose h2, .hd-prose h3, .hd-prose h4, .hd-prose h5 {
    margin: 36px 0 12px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--hd-ink);
}

.hd-prose h1, .hd-prose h2 { font-size: 24px; }
.hd-prose h3, .hd-prose h4 { font-size: 19px; }
.hd-prose h5 { font-size: 17px; }
.hd-prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.75; color: #344054; }
.hd-prose ul, .hd-prose ol { margin: 0 0 20px; padding-left: 22px; }
.hd-prose li { margin: 0 0 10px; padding-left: 4px; font-size: 16px; line-height: 1.7; color: #344054; }
.hd-prose li::marker { color: var(--hd-accent); font-weight: 600; }
.hd-prose a { color: var(--hd-accent); text-decoration: underline; text-underline-offset: 3px; }
.hd-prose strong, .hd-prose b { color: var(--hd-ink); font-weight: 600; }
.hd-prose table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 15px; }
.hd-prose th, .hd-prose td { padding: 10px 12px; border: 1px solid var(--hd-line); text-align: left; vertical-align: top; }
.hd-prose th { background: var(--hd-surface); color: var(--hd-ink); }
.hd-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.hd-prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--hd-line); opacity: 1; }

@media (max-width: 991px) {
    .hd-legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .hd-legal-side { position: static; }
}

@media (max-width: 575px) {
    .hd-legal { padding-bottom: 56px; }
    .hd-prose, .hd-prose p, .hd-prose li { font-size: 15px; }
    .hd-prose h1, .hd-prose h2 { font-size: 21px; }
    .hd-prose h3, .hd-prose h4 { font-size: 18px; }
    .hd-prose table { display: block; overflow-x: auto; }
}

/* Slot picker: chosen-slot summary, confirm button and "pick a time" prompt */
.hd-slot-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #d6d3ff;
    border-radius: 14px;
    background: var(--hd-accent-soft);
}

.hd-slot-summary-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--hd-accent);
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hd-slot-summary-text { flex: 1; min-width: 0; }
.hd-slot-summary-text strong { display: block; font-size: 16px; color: var(--hd-ink); }
.hd-slot-summary-text span { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: #475467; }

.hd-slot-change {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #c7c3ff;
    border-radius: 10px;
    background: #fff;
    color: var(--hd-accent);
    font-size: 14px;
    font-weight: 600;
}

.hd-slot-change:hover { background: #f5f4ff; }

.hd-slots-done {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: var(--hd-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.hd-slots-done:hover { background: #0f172a; }

.hd-slots-required {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef3f2;
    color: #b42318;
    font-size: 14px;
    font-weight: 500;
}

.hd-slots-required[hidden] { display: none; }

.hd-times.is-attention { animation: hd-attention .9s ease; border-radius: 12px; }

@keyframes hd-attention {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0); }
    30% { box-shadow: 0 0 0 6px rgba(99, 91, 255, .25); }
}

/* Booking link waiting for a time: still clickable (it shows the prompt), just looks inactive. */
.hd-btn.is-waiting { opacity: .55; }
.hd-btn.is-waiting:hover { opacity: .7; }

/* ---------- Buttons: busy state ---------- */
.hd-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%;
    animation: hd-spin .7s linear infinite;
}
.hd-btn.is-busy { pointer-events: none; opacity: .85; }
.hd-btn.is-busy .hd-spinner { display: inline-block; }
.hd-btn.is-busy > i { display: none; }
.hd-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Payment step (Stripe modal) ---------- */
.hd-pay-dialog { max-width: 480px; }
.hd-pay { border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 24, 40, .18); overflow: hidden; }
.hd-pay-head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px; border-bottom: 1px solid var(--hd-line);
}
.hd-pay-lock {
    flex: 0 0 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--hd-accent-soft); color: var(--hd-accent); font-size: 18px;
}
.hd-pay-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--hd-ink); line-height: 1.3; }
.hd-pay-sub { font-size: 13px; color: var(--hd-muted); margin: 0; }
.hd-pay-close {
    margin-left: auto; width: 36px; height: 36px; border-radius: 10px;
    border: 0; background: transparent; color: var(--hd-muted); font-size: 18px;
    display: grid; place-items: center;
}
.hd-pay-close:hover { background: var(--hd-surface); color: var(--hd-ink); }
.hd-pay-body { padding: 20px; }
.hd-pay-summary {
    background: var(--hd-surface); border: 1px solid var(--hd-line);
    border-radius: 14px; padding: 14px 16px; margin-bottom: 18px;
}
.hd-pay-service strong { display: block; font-size: 15px; color: var(--hd-ink); line-height: 1.35; }
.hd-pay-service span { font-size: 13px; color: var(--hd-muted); }
.hd-pay-summary ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hd-pay-summary li { margin: 0; font-size: 13px; color: var(--hd-ink); display: flex; align-items: center; gap: 6px; }
.hd-pay-summary li i { color: var(--hd-accent); }
.hd-pay-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--hd-line);
    font-size: 14px; color: var(--hd-muted);
}
.hd-pay-total strong { font-size: 20px; color: var(--hd-ink); }
.hd-pay-element { min-height: 120px; }
.hd-pay-loading {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 120px; color: var(--hd-muted); font-size: 14px;
}
.hd-pay-loading .hd-spinner { display: inline-block; color: var(--hd-accent); }
.hd-pay-error {
    margin-top: 12px; padding: 10px 12px; border-radius: 10px;
    background: #fef3f2; color: #b42318; font-size: 13px; border: 1px solid #fecdca;
}
.hd-pay-note {
    display: flex; gap: 8px; align-items: flex-start;
    margin: 14px 0 0; font-size: 12px; color: var(--hd-muted); line-height: 1.5;
}
.hd-pay-note i { color: var(--hd-success); font-size: 14px; margin-top: 1px; }
@media (max-width: 575px) {
    .hd-pay-dialog { margin: 0; max-width: none; min-height: 100%; align-items: flex-end; }
    .hd-pay { border-radius: 18px 18px 0 0; }
}

/* ---------- Booking confirmation ---------- */
.hd-confirm-page .hd-detail { padding: 40px 0 72px; background: var(--hd-surface); }
.hd-confirm { max-width: 640px; margin: 0 auto; }
.hd-confirm-hero { text-align: center; margin-bottom: 24px; }
.hd-confirm-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: inline-grid; place-items: center; font-size: 32px;
    background: #ecfdf3; color: var(--hd-success);
    box-shadow: 0 0 0 10px rgba(18, 183, 106, .08);
    margin-bottom: 20px;
    animation: hd-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.is-processing .hd-confirm-icon { background: #fffaeb; color: #dc6803; box-shadow: 0 0 0 10px rgba(247, 144, 9, .08); }
.is-failed .hd-confirm-icon { background: #fef3f2; color: #d92d20; box-shadow: 0 0 0 10px rgba(217, 45, 32, .08); }
@keyframes hd-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hd-confirm-icon { animation: none; } }
.hd-confirm-title { font-size: 30px; font-weight: 700; color: var(--hd-ink); margin: 0 0 8px; line-height: 1.2; }
.hd-confirm-text { font-size: 16px; color: var(--hd-muted); max-width: 480px; margin: 0 auto; line-height: 1.6; }

.hd-ref {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    margin-top: 22px; padding: 14px 22px; background: #fff;
    border: 1px dashed #c9c6ff; border-radius: 14px;
}
.hd-ref-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hd-muted); }
.hd-ref-row { display: flex; align-items: center; gap: 12px; }
.hd-ref-code {
    font-size: 24px; font-weight: 700; letter-spacing: .12em; color: var(--hd-ink);
    font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hd-ref-copy {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 1px solid var(--hd-line); border-radius: 8px; background: #fff;
    font-size: 13px; font-weight: 600; color: var(--hd-accent); transition: background .15s;
}
.hd-ref-copy:hover { background: var(--hd-accent-soft); }
.hd-ref-copy.is-done { color: var(--hd-success); border-color: #abefc6; background: #ecfdf3; }
.hd-ref-hint { font-size: 12px; color: var(--hd-muted); }

.hd-confirm-card {
    background: #fff; border: 1px solid var(--hd-line); border-radius: 16px;
    padding: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.hd-confirm-service { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hd-line); }
.hd-confirm-service img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 56px; }
.hd-confirm-service > div { flex: 1; min-width: 0; }
.hd-confirm-service .hd-status { flex: 0 0 auto; }
.hd-confirm-facts { margin: 0; padding: 4px 0; }
.hd-confirm-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hd-line); }
.hd-confirm-facts dt { font-size: 14px; font-weight: 500; color: var(--hd-muted); display: flex; align-items: center; gap: 8px; align-self: start; }
.hd-confirm-facts dt i { color: var(--hd-accent); }
.hd-confirm-facts dd { margin: 0; font-size: 15px; color: var(--hd-ink); font-weight: 500; line-height: 1.5; }
.hd-confirm-facts dd span { color: var(--hd-muted); font-weight: 400; font-size: 14px; }
.hd-confirm-card .hd-lines:empty { display: none; }
.hd-confirm-card .hd-slots-total { margin-top: 8px; }

.hd-confirm-actions { display: flex; gap: 12px; margin-top: 20px; }
.hd-confirm-actions .hd-btn { flex: 1; }

.hd-confirm-next {
    margin-top: 28px; background: #fff; border: 1px solid var(--hd-line); border-radius: 16px; padding: 20px;
}
.hd-confirm-next h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; color: var(--hd-ink); }
.hd-confirm-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hd-confirm-next li { display: flex; gap: 12px; margin: 0; }
.hd-confirm-next li > span {
    flex: 0 0 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
    background: var(--hd-accent-soft); color: var(--hd-accent);
}
.hd-confirm-next strong { display: block; font-size: 15px; color: var(--hd-ink); }
.hd-confirm-next p { margin: 2px 0 0; font-size: 14px; color: var(--hd-muted); line-height: 1.5; }
.hd-confirm-more { text-align: center; margin: 24px 0 0; font-size: 14px; color: var(--hd-muted); }
.hd-confirm-more a { color: var(--hd-accent); font-weight: 500; }
.hd-confirm-more span { margin: 0 8px; }

@media (max-width: 575px) {
    .hd-confirm-page .hd-detail { padding: 28px 0 48px; }
    .hd-confirm-title { font-size: 24px; }
    .hd-ref { display: flex; }
    .hd-ref-code { font-size: 20px; }
    .hd-confirm-card, .hd-confirm-next { padding: 16px; }
    .hd-confirm-facts > div { grid-template-columns: 1fr; gap: 4px; }
    .hd-confirm-actions { flex-direction: column; }
}
.hd-confirm-facts > div:last-child { border-bottom: 0; }
@media (max-width: 575px) { .hd-confirm-actions .hd-btn { flex: none; width: 100%; } }
