/* Consolidated component styles (formerly scoped .razor.css). Loaded globally by both hosts
   so styling is identical on Web and in the MAUI WebView, independent of the CSS-isolation bundle. */

/* ===== AvatarShields.razor.css ===== */
/* Mirrors .phc-shield-row on SitterResultCard so the marks read the same everywhere. */
.avs-row {
    position: absolute;
    bottom: -4px;
    left: -3px;
    display: flex;
    gap: 3px;
    align-items: center;
    pointer-events: none;
}

.avs-shield { display: flex; align-items: center; cursor: default; }
.avs-shield--bg  { filter: drop-shadow(0 1px 3px rgba(249, 115, 22, .5)); }
.avs-shield--cpr { filter: drop-shadow(0 1px 3px rgba(26, 86, 219, .45)); }

/* ===== BundleEditor.razor.css ===== */
/* BundleEditor */

.be-wrap { display: flex; flex-direction: column; gap: .9rem; }
.be-loading { color: #9ca3af; font-size: .9rem; }
.be-locked { padding: .9rem; border: 1.5px dashed #e5e7eb; border-radius: 12px; color: #6b7280; font-size: .88rem; }
.be-locked a { color: #fd611a; font-weight: 700; margin-left: .3rem; }

.be-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Card styling mirrors ViewProfile's .sp-bundle-card so an unselected bundle still shows its
   light-purple border (it was `2px solid transparent` = invisible before). */
.be-card {
    min-width: 120px; display: flex; flex-direction: column; gap: .15rem;
    padding: .7rem .8rem; border: 2.5px solid #ede9fe; border-radius: 12px;
    background: linear-gradient(135deg, #fdf8ff, #f5f3ff);
    cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; touch-action: manipulation;
}
.be-card:hover { border-color: #c4b5fd; box-shadow: 0 2px 8px rgba(124,58,237,.1); }
.be-card--sel {
    border-color: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,.25);
    transform: scale(1.04) translateY(-2px);
}
.be-card--add { background: transparent; border: 2px dashed #c4b5fd; align-items: center; justify-content: center; }
.be-card-name { font-size: .82rem; font-weight: 700; color: #111827; }
.be-card-price { font-size: .9rem; font-weight: 800; color: #7c3aed; }
.be-card-meta { font-size: .68rem; color: #9ca3af; }
.be-card-plus { font-size: 1.3rem; color: #7c3aed; font-weight: 300; }

/* Container mirrors ViewProfile's .sp-wiz-card (the panel shown when a service/bundle is picked):
   same border/radius/shadow + a 3px gradient accent bar on top (purple for bundles). */
.be-editor {
    position: relative;
    border: 1.5px solid #e8edf3; border-radius: 14px; padding: 1rem; background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,.10), 0 1px 6px rgba(0,0,0,.04);
    display: flex; flex-direction: column; gap: .8rem;
}
/* No overflow:hidden on the editor — it would clip the NumericEditorPopup. Round the bar's own
   top corners instead so it still follows the container's rounded top edge. */
.be-editor::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 55%, #a78bfa 100%);
}
.be-field { display: flex; flex-direction: column; gap: .3rem; }
.be-field > label { font-size: .76rem; font-weight: 600; color: #6b7280; }
.be-ro { font-weight: 400; color: #9ca3af; font-size: .7rem; margin-left: .3rem; }
.be-info { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: .25rem; border-radius: 50%; color: #9ca3af; font-size: .78rem; cursor: help; vertical-align: middle; }
.be-info:hover, .be-info:focus { color: #7c3aed; outline: none; }
.be-input { padding: .55rem .7rem; border: 1.5px solid #e5e7eb; border-radius: 9px; font-size: .95rem; font-family: inherit; }

.be-section-label { font-size: .82rem; font-weight: 700; color: #374151; }
.be-section-label span { font-weight: 400; color: #9ca3af; font-size: .72rem; margin-left: .3rem; }

.be-svc-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.be-svc { border: 1.5px solid #e5e7eb; border-radius: 11px; overflow: hidden; min-width: 130px; background: #f9fafb; }
.be-svc--on { border-color: #7c3aed; background: #f5f3ff; }
.be-svc-top { display: flex; align-items: center; gap: .35rem; padding: .5rem .6rem; cursor: pointer; touch-action: manipulation; }
.be-svc-emoji { font-size: 1.1rem; }
.be-svc-name { font-size: .78rem; font-weight: 600; color: #374151; flex: 1; }
.be-svc-price { font-size: .76rem; font-weight: 800; color: #7c3aed; }
.be-svc--inactive { opacity: .65; }
.be-svc--inactive .be-svc-top { cursor: default; }
.be-svc-removed { font-size: .66rem; font-weight: 700; color: #dc2626; background: #fee2e2; padding: .1rem .3rem; border-radius: 4px; white-space: nowrap; }
.be-qty { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .35rem; border-top: 1px solid #ede9fe; font-size: .8rem; font-weight: 700; }
.be-qty button { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #ddd6fe; background: #fff; font-weight: 700; cursor: pointer; color: #7c3aed; }
.be-qty button:disabled { opacity: .4; cursor: default; }

.be-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.be-sizes-ro { display: flex; gap: .3rem; align-items: center; min-height: 30px; }
.be-none { font-size: .78rem; color: #9ca3af; }
.be-size-pill { width: 26px; height: 26px; border-radius: 7px; background: #ede9fe; color: #6d28d9; font-size: .74rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.be-window-chip { padding: .5rem .9rem; border: 1.5px solid #ddd6fe; border-radius: 999px; background: #f5f3ff; color: #6d28d9; font-weight: 700; font-size: .84rem; cursor: pointer; touch-action: manipulation; }
.be-window-chip:hover { border-color: #7c3aed; }

.be-num { position: relative; }
.be-num-val { min-width: 56px; padding: .5rem .8rem; border: 1.5px solid #e5e7eb; border-radius: 10px; background: #f9fafb; font-size: 1rem; font-weight: 800; color: #111827; cursor: pointer; text-align: center; touch-action: manipulation; }
.be-num-val:hover { border-color: #7c3aed; }

.be-slider { width: 100%; accent-color: #7c3aed; }

/* Service-locations picker */
.be-loc-list { display: flex; flex-direction: column; gap: .4rem; }
.be-loc {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .7rem; border: 1.5px solid #e5e7eb; border-radius: 10px;
    background: #fff; cursor: pointer; text-align: left; width: 100%; touch-action: manipulation;
}
.be-loc--on { border-color: #7c3aed; background: #f5f3ff; }
.be-loc-check {
    width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
    border: 1.5px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800; color: #7c3aed;
}
.be-loc--on .be-loc-check { border-color: #7c3aed; background: #ede9fe; }
.be-loc-name { flex: 1; min-width: 0; font-size: .85rem; font-weight: 600; color: #374151; }
.be-loc-name em { font-style: normal; font-weight: 500; color: #9ca3af; margin-left: .3rem; font-size: .78rem; }
.be-loc-main {
    margin-left: .35rem; font-size: .64rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #7c3aed; background: #ede9fe; border-radius: 999px;
    padding: .05rem .35rem; vertical-align: middle;
}
.be-loc-radius { font-size: .74rem; color: #9ca3af; white-space: nowrap; }
.be-loc-hint { font-size: .74rem; color: #9ca3af; margin-top: .35rem; }

.be-savemsg { font-size: .84rem; color: #dc2626; }
.be-foot { display: flex; align-items: center; gap: .5rem; }
.be-foot-right { display: flex; gap: .5rem; margin-left: auto; }
.be-btn { padding: .55rem 1rem; border-radius: 10px; font-weight: 700; font-size: .86rem; cursor: pointer; border: 1.5px solid transparent; touch-action: manipulation; }
.be-btn--ghost { background: #fff; border-color: #e5e7eb; color: #374151; }
.be-btn--primary { background: #7c3aed; color: #fff; }
.be-btn--primary:disabled { opacity: .5; cursor: default; }
.be-btn--danger { background: #fff; border-color: #fecaca; color: #dc2626; }

@media (prefers-color-scheme: dark) {
    .be-card, .be-svc { background: #111827; }
    .be-editor { background: #1f2937; border-color: #374151; }
    .be-input, .be-num-val { background: #111827; border-color: #374151; color: #f9fafb; }
}

/* ===== LocationEditor.razor.css ===== */
/* LocationEditor — per-slot inline editing with autosave. */

.le-wrap { display: flex; flex-direction: column; gap: .7rem; }
.le-empty { color: #9ca3af; font-size: .9rem; padding: .5rem 0; }

.le-slot {
    border: 1.5px solid #e5e7eb;
    border-radius: 13px;
    padding: .8rem .9rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.le-slot--primary { border-color: #bbf7d0; background: #f0fdf4; }
.le-slot--locked { opacity: .72; background: #fafafa; }

.le-slot-head { display: flex; align-items: center; gap: .5rem; }
.le-pin { font-size: 1.05rem; }
.le-badge {
    font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: #15803d; background: #dcfce7; padding: .1rem .45rem; border-radius: 6px;
}
.le-lock { font-size: .68rem; font-weight: 700; color: #92400e; background: #fef3c7; padding: .12rem .45rem; border-radius: 6px; white-space: nowrap; }
.le-label {
    flex: 1; min-width: 0; border: none; background: transparent; font-size: .85rem; font-weight: 600;
    color: #374151; padding: .2rem 0; outline: none;
}
.le-label::placeholder { color: #9ca3af; font-weight: 400; }
.le-remove { border: none; background: transparent; color: #9ca3af; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.le-remove:hover { color: #dc2626; }

.le-slot-body { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.le-zip {
    width: 130px; padding: .45rem .7rem; border: 1.5px solid #cbd5e1; border-radius: 9px;
    font-size: 1rem; letter-spacing: .04em;
}
.le-zip:focus { outline: none; border-color: #00b1f3; box-shadow: 0 0 0 3px rgba(0,177,243,.15); }
.le-city { font-size: .82rem; font-weight: 600; color: #c2410c; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: .2rem .6rem; }

.le-radius { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.le-radius-label { font-size: .74rem; color: #6b7280; margin-right: .1rem; }
.le-rchip {
    padding: .25rem .55rem; border-radius: 999px; border: 1.5px solid #e5e7eb;
    background: #fff; font-size: .74rem; font-weight: 600; color: #6b7280; cursor: pointer;
    touch-action: manipulation;
}
.le-rchip--on { border-color: #16a34a; color: #15803d; background: #f0fdf4; }

.le-add {
    display: flex; align-items: center; gap: .4rem; justify-content: center;
    padding: .7rem; border: 1.5px dashed #93c5fd; border-radius: 13px;
    background: transparent; color: #3b82f6; font-weight: 600; cursor: pointer;
    touch-action: manipulation;
}
.le-add:hover { background: rgba(59, 130, 246, .06); border-color: #60a5fa; }
.le-add-plus { font-size: 1.2rem; line-height: 1; }

.le-explainer { border: 1px solid #e5e7eb; border-radius: 12px; padding: .8rem .9rem; background: #f9fafb; font-size: .8rem; color: #374151; }
.le-explainer-head { font-weight: 700; margin-bottom: .5rem; }
.le-explainer-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.le-pill { font-size: .66rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; }
.le-pill--pro { background: #fef3c7; color: #92400e; }
.le-pill--growth { background: #dcfce7; color: #15803d; }
.le-pill--elite { background: #ede9fe; color: #6d28d9; }
.le-explainer-note { font-size: .74rem; color: #6b7280; margin: .4rem 0 0; }

.le-callout {
    display: flex; gap: .4rem; align-items: flex-start;
    font-size: .78rem; color: #0369a1; background: #f0f9ff; border: 1px solid #bae6fd;
    border-radius: 10px; padding: .6rem .8rem; line-height: 1.45;
}

.le-status { min-height: 1.2rem; }
.le-saving { font-size: .8rem; color: #6b7280; }
.le-saved { font-size: .8rem; color: #16a34a; font-weight: 600; }
.le-err { font-size: .8rem; color: #dc2626; }

@media (prefers-color-scheme: dark) {
    .le-slot { background: #1f2937; border-color: #374151; }
    .le-slot--primary { background: #052e16; border-color: #14532d; }
    .le-slot--locked { background: #111827; }
    .le-label { color: #e5e7eb; }
    .le-explainer { background: #111827; border-color: #374151; }
    .le-callout { background: #082f49; border-color: #0c4a6e; color: #7dd3fc; }
}

/* ===== ModifierChip.razor.css ===== */
/* ModifierChip — tap-to-edit surcharge/discount chip. */

.mc-wrap {
    position: relative;
    display: inline-block;
}

.mc-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    transition: all .12s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mc-chip--add {
    padding: .4rem .7rem;
    border: 1.5px dashed #cbd5e1;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}
.mc-chip--add:hover { border-color: #fd611a; color: #fd611a; }

.mc-chip--set {
    padding: 0;
    border: 1.5px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    overflow: hidden;
}

.mc-body {
    padding: .4rem .3rem .4rem .7rem;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.mc-body strong { color: #c2410c; margin-left: .15rem; }

.mc-clear {
    padding: .4rem .55rem;
    background: transparent;
    border: none;
    border-left: 1px solid #fed7aa;
    color: #9a3412;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
.mc-clear:hover { background: #ffedd5; }

@media (prefers-color-scheme: dark) {
    .mc-chip--set { background: #431407; border-color: #7c2d12; color: #fed7aa; }
    .mc-body strong { color: #fdba74; }
    .mc-clear { border-left-color: #7c2d12; color: #fed7aa; }
}

/* ===== NumericEditorPopup.razor.css ===== */
/* NumericEditorPopup — anchored tap-to-edit panel. Parent wrapper must be position:relative. */

.nep-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000; /* above the app side menu / topbar (and Syncfusion dialogs at 2000) */
    background: transparent;
}

.nep-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3001;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
    padding: .7rem;
    animation: nep-pop .12s ease-out;
}

@keyframes nep-pop {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nep-title {
    font-size: .72rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    margin-bottom: .3rem;
}

.nep-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: .55rem;
    letter-spacing: -.01em;
}

.nep-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr) repeat(3, 1fr);
    gap: .3rem;
    margin-bottom: .55rem;
}

.nep-step {
    padding: .5rem 0;
    border-radius: 9px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nep-step--minus { color: #b91c1c; }
.nep-step--plus  { color: #047857; }
.nep-step:hover:not(:disabled)  { border-color: #9ca3af; }
.nep-step:active:not(:disabled) { transform: scale(.94); }
.nep-step:disabled { opacity: .35; cursor: default; }

.nep-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
}

.nep-btn {
    padding: .55rem 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .1s;
    touch-action: manipulation;
}

.nep-btn--cancel {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
.nep-btn--cancel:hover { background: #e5e7eb; }

.nep-btn--done {
    background: #fd611a;
    color: #fff;
}
.nep-btn--done:hover { background: #ea580c; }
.nep-btn--done:active { transform: scale(.97); }

@media (prefers-color-scheme: dark) {
    .nep-panel { background: #1f2937; border-color: #374151; }
    .nep-value { color: #f9fafb; }
    .nep-step  { background: #111827; border-color: #374151; }
    .nep-btn--cancel { background: #374151; color: #e5e7eb; border-color: #4b5563; }
}

/* ===== PetPickerCard.razor.css ===== */
/* ═════════════════════════════════════════════════════════════════════════
   PetPickerCard — shared pet identity card.
   Avatar (real photo, emoji fallback) + name + meta + optional trailing slot.
   Used by ManagePets and the ViewSitterProfile booking wizard so both show the
   same pet-card layout with the pet's real photo.
   ═════════════════════════════════════════════════════════════════════════ */

.ppc {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.ppc--clickable { cursor: pointer; }
.ppc--clickable:hover { border-color: #93c5fd; background: #f0f9ff; }
.ppc--clickable:focus-visible {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}

.ppc--sel {
    border-color: #3b82f6;
    background: #eff6ff;
}

.ppc--locked {
    opacity: .6;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.ppc-avatar {
    flex-shrink: 0;
    width: var(--ppc-avatar, 52px);
    height: var(--ppc-avatar, 52px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e8edf3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ppc--sel .ppc-avatar    { border-color: #93c5fd; background: #dbeafe; }
.ppc--locked .ppc-avatar { border-color: #e5e7eb; background: #f3f4f6; }

.ppc-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ppc-fallback {
    /* Scales with the avatar so the emoji stays centred at any size. */
    font-size: calc(var(--ppc-avatar, 52px) * .52);
    line-height: 1;
}

/* ── Body ────────────────────────────────────────────────────────────────── */
.ppc-body {
    flex: 1;
    min-width: 0;
}
.ppc-name {
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ppc--locked .ppc-name { color: #9ca3af; }

.ppc-meta {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: .1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Trailing controls ───────────────────────────────────────────────────── */
.ppc-trailing {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* ===== PetSelector.razor.css ===== */
/* PetSelector — mirrors ExploreBody .ph-lm-pet-* card + dashed add tile. */

.ps-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.ps-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .18rem;
    cursor: pointer;
    padding: .5rem .7rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: all .12s;
    min-width: 66px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.ps-card:hover:not(.ps-card--add) {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ps-card--sel {
    border-color: #f59e0b !important;
    background: #fef3c7 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .22);
}

.ps-card--add {
    background: transparent;
    border: 1.5px dashed #93c5fd;
}
.ps-card--add:hover {
    background: rgba(59, 130, 246, .06);
    border-color: #60a5fa;
}
.ps-card--add .ps-name { color: #3b82f6; }

.ps-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    overflow: hidden;
}

.ps-avatar--add {
    background: transparent !important;
    color: #3b82f6;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
}

.ps-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.ps-name {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-size {
    font-size: .66rem;
    color: #9ca3af;
    text-transform: capitalize;
}

@media (prefers-color-scheme: dark) {
    .ps-card { background: #1f2937; border-color: #374151; }
    .ps-card:hover:not(.ps-card--add) { background: #292524; }
    .ps-name { color: #e5e7eb; }
}

/* ===== ProfileShieldRow.razor.css ===== */
/* ProfileShieldRow — approved (colour) / pending (grey) / ghost (dashed, edit-only). */

.psr-row {
    display: flex;
    gap: 3px;
    align-items: center;
}

.psr-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Approved — full colour + brand drop shadow, not interactive. */
.psr-shield.psr--on { cursor: default; }
.psr-shield--bg.psr--on  { filter: drop-shadow(0 1px 3px rgba(249, 115, 22, .5)); }
.psr-shield--cpr.psr--on { filter: drop-shadow(0 1px 3px rgba(26, 86, 219, .45)); }

/* Pending — greyed, gentle pulse, clickable to check status. */
.psr-shield.psr--pending {
    cursor: pointer;
    opacity: .6;
    animation: psr-pulse 1.8s ease-in-out infinite;
}

/* Not started — ghost, clickable to start setup. */
.psr-shield.psr--ghost {
    cursor: pointer;
    opacity: .4;
}
.psr-shield.psr--ghost:hover,
.psr-shield.psr--pending:hover { opacity: .85; }

@keyframes psr-pulse {
    0%, 100% { opacity: .5; }
    50%      { opacity: .75; }
}

/* ===== ServiceConfigurator.razor.css ===== */
/* ServiceConfigurator — cards use the global .ph-svc-card style; this styles the add tile + editor. */

.sc-wrap { display: flex; flex-direction: column; gap: .9rem; }
.sc-loading { color: #9ca3af; font-size: .9rem; }

/* Add tile — same footprint as a ServiceCard so heights match the row. */
.sc-add {
    border: 2.5px dashed #93c5fd !important;
    background: transparent !important;
    color: #3b82f6;
    justify-content: center;
}
.sc-add:hover { background: rgba(59,130,246,.06) !important; }
.sc-add--on { border-color: #fd611a !important; }
.sc-add .ph-svc-card-name { color: #3b82f6; }
.sc-add-plus { color: #3b82f6; font-weight: 300; }

.sc-plan-note {
    font-size: .76rem; color: #6b7280; background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 9px; padding: .5rem .7rem; line-height: 1.4;
}

.sc-pick { padding: .7rem; border: 1.5px dashed #bfdbfe; border-radius: 13px; background: #f8fafc; }
.sc-pick-label { font-size: .8rem; font-weight: 600; color: #6b7280; margin-bottom: .5rem; }

/* Container mirrors ViewProfile's .sp-wiz-card (the panel shown when a service/bundle is picked):
   same border/radius/shadow + a 3px gradient accent bar on top (orange for services). */
.sc-editor {
    position: relative;
    border: 1.5px solid #e8edf3; border-radius: 14px; padding: 1rem; background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,.10), 0 1px 6px rgba(0,0,0,.04);
    display: flex; flex-direction: column; gap: .9rem;
}
/* No overflow:hidden on the editor — it would clip the NumericEditorPopup. Round the bar's own
   top corners instead so it still follows the container's rounded top edge. */
.sc-editor::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #fd611a 0%, #f97316 55%, #fbbf24 100%);
}
.sc-editor-head { display: flex; align-items: flex-start; gap: .6rem; }
.sc-editor-emoji { font-size: 1.5rem; line-height: 1.1; }
.sc-editor-title { font-size: 1.05rem; font-weight: 800; color: #111827; }
.sc-editor-desc { font-size: .82rem; color: #9ca3af; font-style: italic; line-height: 1.4; margin-top: .1rem; }

.sc-above-plan { font-size: .78rem; font-weight: 600; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 9px; padding: .5rem .7rem; }

.sc-fields { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.sc-field { display: flex; flex-direction: column; gap: .3rem; }
.sc-field label { font-size: .74rem; font-weight: 600; color: #6b7280; }
.sc-num { position: relative; }
.sc-num-val {
    min-width: 74px; padding: .5rem .8rem; border: 1.5px solid #e5e7eb; border-radius: 10px;
    background: #f9fafb; font-size: 1.05rem; font-weight: 800; color: #111827; cursor: pointer;
    text-align: center; touch-action: manipulation;
}
.sc-num-val:hover { border-color: #fd611a; }

.sc-section-label { font-size: .82rem; font-weight: 700; color: #374151; margin-bottom: .5rem; }
.sc-section-label span { font-weight: 400; color: #9ca3af; margin-left: .3rem; font-size: .74rem; }

.sc-mod-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.sc-savemsg { font-size: .84rem; color: #dc2626; }

.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem; }
.sc-foot-right { display: flex; gap: .5rem; margin-left: auto; }
.sc-btn { padding: .55rem 1rem; border-radius: 10px; font-weight: 700; font-size: .86rem; cursor: pointer; border: 1.5px solid transparent; touch-action: manipulation; }
.sc-btn--ghost { background: #fff; border-color: #e5e7eb; color: #374151; }
.sc-btn--primary { background: #fd611a; color: #fff; }
.sc-btn--primary:disabled { opacity: .5; cursor: default; }
.sc-btn--danger { background: #fff; border-color: #fecaca; color: #dc2626; }
.sc-btn--danger:hover { background: #fef2f2; }

@media (prefers-color-scheme: dark) {
    .sc-editor { background: #1f2937; border-color: #374151; }
    .sc-editor-title { color: #f9fafb; }
    .sc-num-val { background: #111827; border-color: #374151; color: #f9fafb; }
    .sc-plan-note { background: #111827; border-color: #374151; }
}

/* ===== SitterResultCard.razor.css ===== */
/* ═════════════════════════════════════════════════════════════════════════
   SitterResultCard — scoped styles.
   Collapsed: warm cream "ticket" row with diagonal photo slices.
   Expanded:  dark "Spotlight" panel unfolding beneath the summary.
   ═════════════════════════════════════════════════════════════════════════ */

.phc-card {
    position: relative;
    margin: .55rem .7rem;
    border: 1px solid #f3e3d3;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffdfb 0%, #fff7f0 100%);
    cursor: pointer;
    overflow: hidden;
    container-type: inline-size;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    box-shadow: 0 1px 3px rgba(120, 63, 4, .05);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.phc-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(120, 63, 4, .10);
    border-color: #fed7aa;
}
.phc-highlighted {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, .22), 0 6px 22px rgba(26, 86, 219, .10);
}
.phc-open {
    border-color: #1e293b;
    box-shadow: 0 14px 44px rgba(15, 23, 42, .22);
}

/* ── Collapsed summary ─────────────────────────────────────────────────── */
.phc-summary {
    display: flex;
    align-items: stretch;
    gap: .85rem;
    padding: .9rem 1rem .95rem;
    min-height: 108px;
}

.phc-ava-wrap { position: relative; flex-shrink: 0; align-self: center; }

.phc-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 3px #fd611a, 0 0 0 6px rgba(253, 97, 26, .16);
}
.phc-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.phc-shield-row {
    position: absolute;
    bottom: -4px;
    left: -3px;
    display: flex;
    gap: 3px;
    align-items: center;
}
.phc-shield { display: flex; align-items: center; cursor: default; }
.phc-shield--bg  { filter: drop-shadow(0 1px 3px rgba(249, 115, 22, .5)); }
.phc-shield--cpr { filter: drop-shadow(0 1px 3px rgba(26, 86, 219, .45)); }

.phc-info {
    flex: 1.4 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .28rem;
}

.phc-name-row { display: flex; align-items: center; gap: .42rem; min-width: 0; }
.phc-name {
    font-size: .98rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.phc-badge-pro {
    flex-shrink: 0;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: .18rem .5rem;
    border-radius: 999px;
    box-shadow: 0 1px 5px rgba(249, 115, 22, .3);
}

.phc-rating-row {
    display: flex;
    align-items: center;
    gap: .28rem;
    font-size: .77rem;
    flex-wrap: wrap;
}
.phc-star       { color: #f59e0b; font-size: .88rem; line-height: 1; }
.phc-rating-val { font-weight: 700; color: #111827; }
.phc-dim        { color: #6b7280; }
.phc-sep        { color: #d1d5db; }
.phc-repeat     { display: flex; align-items: center; gap: .2rem; color: #0369a1; font-weight: 600; }

.phc-loc-row {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    color: #6b7280;
}
.phc-loc-row svg { flex-shrink: 0; opacity: .6; }

.phc-active-row {
    display: flex;
    align-items: center;
    gap: .36rem;
    font-size: .69rem;
    color: #059669;
    font-weight: 500;
}
.phc-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .2);
}

/* ── Diagonal photo slices ─────────────────────────────────────────────── */
.phc-strip {
    flex: 0 1 auto;
    display: flex;
    align-self: center;
    height: 84px;
    pointer-events: none;
}
.phc-slice {
    width: 72px;
    height: 100%;
    margin-left: -16px;
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
    overflow: hidden;
    border-radius: 6px;
    transition: transform .35s ease;
}
.phc-slice:first-child { margin-left: 0; }
.phc-slice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    transition: transform .45s ease;
}
.phc-card:hover .phc-slice          { transform: translateX(calc(var(--i) * 2px)); }
.phc-card:hover .phc-slice img      { transform: scale(1.16); }

/* ── Right rail: service label + size-price chips + actions ────────────── */
.phc-rail {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .28rem;
    max-width: 190px;
}
.phc-rail-svc {
    font-size: .62rem;
    font-weight: 700;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sp-svc-size-row  { display: flex; gap: .3rem; flex: 1; justify-content: flex-end; }
.sp-svc-size-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 7px;
    padding: .18rem .4rem;
    min-width: 34px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sp-svc-size-cell--on {
    border-color: #fd611a;
    box-shadow: 0 2px 8px rgba(253, 97, 26, .28);
    transform: translateY(-1px) scale(1.06);
}
.sp-svc-size-label { font-size: .6rem; font-weight: 700; color: #9a3412; text-transform: uppercase; letter-spacing: .04em; }
.sp-svc-size-price { font-size: .8rem; font-weight: 800; color: #c2410c; }
.sp-svc-size-note  {
    display: block;
    width: 100%;
    font-size: .62rem;
    color: #9ca3af;
    font-style: italic;
    text-align: right;
}

.phc-rail-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.phc-fav,
.phc-peek {
    background: none;
    border: none;
    cursor: pointer;
    padding: .22rem;
    color: #d1d5db;
    display: flex;
    align-items: center;
    line-height: 1;
    border-radius: 50%;
    transition: color .15s, transform .2s, background .15s;
}
.phc-fav:hover     { color: #f43f5e; transform: scale(1.15); }
.phc-fav--on       { color: #f43f5e; }
.phc-peek          { color: #b45309; background: rgba(253, 97, 26, .08); }
.phc-peek:hover    { background: rgba(253, 97, 26, .18); transform: scale(1.1); }
.phc-peek svg      { transition: transform .45s cubic-bezier(.34, 1.4, .5, 1); }
.phc-open .phc-peek svg { transform: rotate(180deg); }

/* ── Dwell/hold arming progress ────────────────────────────────────────── */
.phc-arm-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.phc-open .phc-arm-track { display: none; }
.phc-arming .phc-arm-track { opacity: 1; }
.phc-arm-fill {
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #fd611a, #f97316, #fbbf24);
}
.phc-arming .phc-arm-fill {
    animation: phc-arm var(--phc-arm-ms, 3000ms) linear forwards;
}
@keyframes phc-arm { to { transform: scaleX(1); } }

.phc-arm-hint {
    position: absolute;
    right: .8rem;
    bottom: 7px;
    font-size: .62rem;
    font-weight: 600;
    color: #b45309;
    background: rgba(255, 247, 237, .92);
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: .12rem .55rem;
    opacity: 0;
}
.phc-arming .phc-arm-hint { animation: phc-hint-in .4s ease .9s forwards; }
@keyframes phc-hint-in { to { opacity: 1; } }

/* ── Spotlight reveal (grid-rows unfold) ───────────────────────────────── */
.phc-reveal {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .7s cubic-bezier(.25, .9, .3, 1);
    cursor: default;
}
.phc-open .phc-reveal { grid-template-rows: 1fr; }
.phc-reveal-clip { overflow: hidden; min-height: 0; }

.phc-panel {
    position: relative;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(253, 97, 26, .18), transparent 60%),
        linear-gradient(165deg, #101827 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 1rem 1.1rem 1.15rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .45s ease .12s, transform .5s ease .12s;
}
.phc-open .phc-panel { opacity: 1; transform: none; }

.phc-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .8rem;
}
.phc-panel-title { display: flex; flex-direction: column; gap: .1rem; }
.phc-panel-kicker {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fdba74;
}
.phc-panel-headline {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}
.phc-close {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #cbd5e1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.phc-close:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* Gallery */
.phc-gal {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    margin-bottom: .85rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(253, 151, 74, .5) transparent;
}
.phc-gal-item {
    flex: 0 0 auto;
    width: 138px;
    height: 104px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    opacity: 0;
}
.phc-open .phc-gal-item {
    animation: phc-rise .5s ease both;
    animation-delay: calc(.15s + var(--i) * 65ms);
}
@keyframes phc-rise {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

/* Bio */
.phc-bio {
    margin: 0 0 .85rem;
    font-size: .8rem;
    line-height: 1.55;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats */
.phc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-bottom: .95rem;
}
.phc-stat {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    padding: .5rem .35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .12rem;
    text-align: center;
}
.phc-stat-val {
    font-size: .88rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.phc-stat-lbl {
    font-size: .58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #94a3b8;
}

/* Section headings */
.phc-sec-head {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fdba74;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.phc-sec-head--bundle { color: #c4b5fd; }
.phc-sec-sub {
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
    color: #a78bfa;
}

/* Services */
.phc-svcs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .95rem;
}
.phc-svc-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #e2e8f0;
    border-radius: 999px;
    padding: .3rem .7rem .3rem .5rem;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, border-color .15s, transform .15s;
}
.phc-svc-chip:hover {
    background: rgba(253, 97, 26, .18);
    border-color: rgba(253, 151, 74, .55);
    transform: translateY(-1px);
}
.phc-svc-chip--current {
    background: rgba(253, 97, 26, .22);
    border-color: #fd611a;
}
.phc-svc-emoji { font-size: .9rem; }
.phc-svc-name  { white-space: nowrap; }
.phc-svc-price { font-weight: 800; color: #fdba74; }

/* Bundles */
.phc-bundles {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding: 2px 2px .4rem;
    margin-bottom: .9rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, .5) transparent;
}
.phc-bun {
    position: relative;
    flex: 0 0 150px;
    text-align: left;
    background: linear-gradient(150deg, rgba(139, 92, 246, .16), rgba(76, 29, 149, .22));
    border: 1.5px solid rgba(167, 139, 250, .35);
    border-radius: 12px;
    padding: .6rem .6rem 1.5rem;
    color: #ede9fe;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.phc-bun:hover {
    border-color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, .35);
}
.phc-bun-name {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #f5f3ff;
    margin-bottom: .3rem;
    padding-right: 2.2rem;
}
.phc-bun-svcs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.phc-bun-svcs li {
    font-size: .64rem;
    color: #c4b5fd;
    padding-left: .72rem;
    position: relative;
}
.phc-bun-svcs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #a78bfa;
    font-weight: 700;
}
.phc-bun-svcs li.phc-bun-more::before { content: ''; }
.phc-bun-slots {
    position: absolute;
    bottom: .45rem;
    left: .6rem;
    font-size: .58rem;
    font-weight: 700;
    color: #6ee7b7;
}
.phc-bun-slots--urgent {
    color: #fca5a5;
    animation: phc-slots-pulse 1.4s ease-in-out infinite;
}
@keyframes phc-slots-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .55; }
}
.phc-bun-price {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: #7c3aed;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    border-radius: 999px;
    padding: .16rem .5rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, .5);
}

/* Footer CTA */
.phc-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
}
.phc-cta-hint { font-size: .66rem; color: #64748b; font-style: italic; }
.phc-cta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: linear-gradient(135deg, #fd611a 0%, #f97316 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: .42rem .95rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(253, 97, 26, .35);
    transition: filter .15s, transform .12s, box-shadow .15s;
}
.phc-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(253, 97, 26, .5);
}

/* Failure + skeletons */
.phc-fail { margin: 0 0 .7rem; font-size: .78rem; color: #94a3b8; }
.phc-skel {
    border-radius: 10px;
    background: linear-gradient(100deg, rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .06) 60%);
    background-size: 200% 100%;
    animation: phc-shimmer 1.3s linear infinite;
}
@keyframes phc-shimmer { to { background-position: -200% 0; } }
.phc-skel-gal { display: flex; gap: .55rem; margin-bottom: .8rem; }
.phc-skel-photo { width: 138px; height: 104px; flex-shrink: 0; }
.phc-skel-line { height: 12px; margin-bottom: .5rem; }
.phc-skel-line--short { width: 55%; }

/* ── Narrow layouts — photo strip yields first, then the size note ─────── */
@container (max-width: 620px) {
    .phc-strip { display: none; }
}
@container (max-width: 460px) {
    .sp-svc-size-note { display: none; }
    .phc-rail { max-width: 150px; }
    .phc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .phc-strip { display: none; }
    .sp-svc-size-note { display: none; }
    .phc-stats { grid-template-columns: repeat(2, 1fr); }
    .phc-card { margin: .5rem .55rem; }
}

/* Reduced motion: unfold instantly, skip decorative animation */
@media (prefers-reduced-motion: reduce) {
    .phc-reveal, .phc-panel, .phc-slice, .phc-slice img, .phc-peek svg { transition: none; }
    .phc-open .phc-gal-item { animation: none; opacity: 1; }
    .phc-bun-slots--urgent { animation: none; }
}

/* ===== SitterResultCardVertical.razor.css ===== */
/* ═════════════════════════════════════════════════════════════════════════
   SitterResultCardVertical — scoped styles.
   Two-panel card: photo (40%) with overlaid badge/avatar/heart/dots on the
   left, content column with pricing, stats and a "View Profile" CTA on the
   right. Sized to sit several per row inside ExploreBody's .ph-vcard-grid.
   ═════════════════════════════════════════════════════════════════════════ */

.phv-card {
    display: flex;
    position: relative;
    border: 1px solid #f3e3d3;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    min-height: 320px;
    box-shadow: 0 1px 3px rgba(120, 63, 4, .05);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.phv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(120, 63, 4, .12);
    border-color: #fed7aa;
}
.phv-highlighted {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, .22), 0 6px 22px rgba(26, 86, 219, .10);
}

/* ── Photo panel (left 40%) ────────────────────────────────────────────── */
.phv-media {
    position: relative;
    flex: 0 0 40%;
    min-width: 0;
    /* Hold-to-peek: keep vertical scrolling, suppress long-press callout/select */
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
/* Clips the photo (incl. its Ken Burns scale/pan) to the panel bounds, so the
   growth stays inside the preview ring without cutting the overhanging avatar. */
.phv-photo-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.phv-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: phv-fade .45s ease;
}
@keyframes phv-fade {
    from { opacity: .35; transform: scale(1.03); }
    to   { opacity: 1; transform: none; }
}

/* Ken Burns — slow continuous zoom+pan on the still photo while previewing.
   Driven by the INDIVIDUAL transform properties (scale/translate) so it composes
   with the entry effects below (which use `transform`) instead of overriding them.
   The photo is object-fit:cover (larger than the panel), so a small pan stays
   covered; scale stays >1 the whole time so edges never reveal. */
@keyframes phv-kenburns {
    from { scale: 1.06; translate: 0 0; }
    to   { scale: 1.16; translate: -2% -1.5%; }
}
/* First (un-swapped) photo when a preview starts, before any fx class is set. */
.phv-playing .phv-photo {
    animation: phv-fade .45s ease, phv-kenburns 6.5s ease-out both;
}

/* Randomised gallery-peek transitions — warm and gentle; none start from black,
   so swaps read as a soft dissolve rather than a blink. Selectors carry both
   classes so they win over the base .phv-photo animation. Each also carries the
   phv-kenburns drift (2nd in the list) so movement continues through the dwell. */
.phv-photo.phv-fx-dissolve { animation: phv-fx-dissolve .95s ease, phv-kenburns 6.5s ease-out both; }
@keyframes phv-fx-dissolve {
    from { opacity: .5; transform: scale(1.03); }
    to   { opacity: 1; transform: none; }
}
.phv-photo.phv-fx-slide-l { animation: phv-fx-slide-l 1s cubic-bezier(.22,.61,.36,1), phv-kenburns 6.5s ease-out both; }
@keyframes phv-fx-slide-l {
    from { opacity: .55; transform: translateX(6%); }
    to   { opacity: 1; transform: none; }
}
.phv-photo.phv-fx-slide-r { animation: phv-fx-slide-r 1s cubic-bezier(.22,.61,.36,1), phv-kenburns 6.5s ease-out both; }
@keyframes phv-fx-slide-r {
    from { opacity: .55; transform: translateX(-6%); }
    to   { opacity: 1; transform: none; }
}
.phv-photo.phv-fx-zoom { animation: phv-fx-zoom 1.1s ease, phv-kenburns 6.5s ease-out both; }
@keyframes phv-fx-zoom {
    from { opacity: .6; transform: scale(1.08); }
    to   { opacity: 1; transform: scale(1.01); }
}
.phv-photo.phv-fx-warm { animation: phv-fx-warm 1.05s ease, phv-kenburns 6.5s ease-out both; }
@keyframes phv-fx-warm {
    from { opacity: .55; transform: scale(1.04); filter: sepia(.35) saturate(1.25) brightness(1.05); }
    to   { opacity: 1;  transform: none;         filter: none; }
}

/* Warm, steady "previewing" ring — sits UNDER the avatar (z-index 1 < 2) and
   breathes slowly rather than blinking. */
.phv-playing::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, .9),
                inset 0 0 18px rgba(253, 97, 26, .22);
    pointer-events: none;
    z-index: 1;
    animation: phv-play-glow 3s ease-in-out infinite;
}
@keyframes phv-play-glow {
    0%, 100% { opacity: .78; }
    50%       { opacity: 1; }
}

/* Hold-to-peek arming progress bar (bottom of the photo) */
.phv-arm-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.phv-arming .phv-arm-track { opacity: 1; }
.phv-playing .phv-arm-track { display: none; }
.phv-arm-fill {
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #fd611a, #f97316, #fbbf24);
}
.phv-arming .phv-arm-fill {
    animation: phv-arm var(--phv-arm-ms, 1500ms) linear forwards;
}
@keyframes phv-arm { to { transform: scaleX(1); } }

/* "Hold to preview" hint — appears partway through the arm, hidden while playing */
.phv-hold-hint {
    position: absolute;
    left: 50%;
    bottom: .55rem;
    transform: translateX(-50%) translateY(4px);
    z-index: 4;
    font-size: .6rem;
    font-weight: 700;
    color: #fff;
    background: rgba(17, 24, 39, .72);
    border-radius: 999px;
    padding: .16rem .55rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}
.phv-arming .phv-hold-hint {
    animation: phv-hint-in .35s ease .55s forwards;
}
.phv-playing .phv-hold-hint { display: none; }
@keyframes phv-hint-in {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.phv-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background:
        radial-gradient(ellipse 80% 60% at 30% 20%, rgba(253, 97, 26, .18), transparent 65%),
        linear-gradient(150deg, #fff1e4 0%, #ffe1c7 100%);
}

/* Top-right of the whole card — sits in the content panel's free corner, above
   the name, well clear of the avatar overhanging the photo's right edge. */
.phv-badge {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .24rem .6rem;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

/* Avatar hangs half outside the photo's right edge */
.phv-ava-wrap {
    position: absolute;
    top: .55rem;
    right: 0;
    transform: translateX(50%);
    z-index: 2;
}
.phv-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 2.5px #fff, 0 0 0 5.5px #fd611a, 0 3px 12px rgba(0, 0, 0, .28);
}
.phv-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    user-select: none;
}
/* Right-aligned so the shields sit toward the content panel, clear of the
   photo and its top-left badge rather than centered over the busy image. */
.phv-shield-row {
    position: absolute;
    bottom: -6px;
    right: 2px;
    display: flex;
    gap: 2px;
}
.phv-shield { display: flex; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }

.phv-fav {
    position: absolute;
    left: .6rem;
    bottom: .6rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    transition: transform .18s ease, color .15s;
}
.phv-fav:hover  { transform: scale(1.12); color: #f43f5e; }
.phv-fav--on    { color: #f43f5e; }

.phv-dots {
    position: absolute;
    right: .6rem;
    bottom: .7rem;
    z-index: 2;
    display: flex;
    gap: .32rem;
}
.phv-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.phv-dot:hover { transform: scale(1.25); }
.phv-dot--on   { background: #fd611a; transform: scale(1.15); }

/* ── Content panel (right 60%) ─────────────────────────────────────────── */
.phv-body {
    flex: 1 1 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .42rem;
    padding: .7rem .85rem .85rem;
}

/* First line clears the avatar overhang from the photo panel (left) and reserves
   room on the right so a long name never slides under the PetPro badge. */
.phv-name-row {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding-left: 32px;
    padding-right: 58px;
}
.phv-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.01em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.phv-desc {
    margin: 0;
    font-size: .76rem;
    line-height: 1.5;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phv-loc {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    color: #6b7280;
}
.phv-loc svg { flex-shrink: 0; opacity: .6; }

.phv-rating {
    display: flex;
    align-items: center;
    gap: .28rem;
    font-size: .78rem;
}
.phv-star       { color: #f59e0b; font-size: .9rem; line-height: 1; }
.phv-rating-val { font-weight: 700; color: #111827; }
.phv-dim        { color: #6b7280; }

/* Size-price boxes on a cream band, mockup-style */
.phv-price-band {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 10px;
    padding: .42rem .55rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
/* All-services variant: one fixed-height row of emoji chips. Never wraps — chips
   that don't fit are clipped, so this band can never grow vertically. */
.phv-price-band--list {
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}
.phv-svc-list {
    display: flex;
    flex-wrap: nowrap;
    gap: .3rem;
    min-width: 0;
    overflow: hidden;
}
.phv-price-svc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: .8rem;
    line-height: 1;
}
.sp-svc-size-row  { display: flex; gap: .35rem; flex-wrap: wrap; }
.sp-svc-size-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 9px;
    padding: .22rem .5rem;
    min-width: 40px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sp-svc-size-cell--on {
    border-color: #fd611a;
    box-shadow: 0 2px 8px rgba(253, 97, 26, .28);
    transform: translateY(-1px) scale(1.06);
}
.sp-svc-size-label { font-size: .62rem; font-weight: 700; color: #9a3412; text-transform: uppercase; letter-spacing: .04em; }
.sp-svc-size-price { font-size: .86rem; font-weight: 800; color: #c2410c; }

.phv-joined {
    display: flex;
    align-items: center;
    gap: .32rem;
    font-size: .72rem;
    color: #6b7280;
}
.phv-joined svg { flex-shrink: 0; opacity: .6; }

.phv-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .75rem;
    font-size: .7rem;
}
.phv-stat {
    display: inline-flex;
    align-items: center;
    gap: .26rem;
    font-weight: 600;
    white-space: nowrap;
}
.phv-stat--repeat { color: #0369a1; }
.phv-stat--rel    { color: #047857; }
.phv-stat--resp   { color: #b45309; }

.phv-cta {
    margin-top: auto;
    width: 100%;
    background: linear-gradient(135deg, #fd611a 0%, #f97316 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .55rem 1rem;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .01em;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(253, 97, 26, .3);
    transition: filter .15s, transform .12s, box-shadow .15s;
}
.phv-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(253, 97, 26, .45);
}

@media (prefers-reduced-motion: reduce) {
    .phv-card, .phv-photo, .phv-dot, .phv-fav, .phv-cta, .sp-svc-size-cell,
    .phv-photo[class*="phv-fx"], .phv-playing .phv-photo,
    .phv-playing::after, .phv-arm-fill, .phv-hold-hint {
        transition: none;
        animation: none;
    }
    /* Keep the arm progress readable without motion */
    .phv-arming .phv-arm-fill { transform: scaleX(1); }
}

/* ===== SizePricingEditor.razor.css ===== */
/* SizePricingEditor — sp-svc-pricing-style "S $25" cards, tap to cycle / edit. */

.spe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
}

.spe-cell {
    position: relative; /* anchor for NumericEditorPopup */
}

.spe-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    padding: .55rem .3rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all .12s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.spe-card:hover  { border-color: #fd611a; }
.spe-card:active { transform: scale(.96); }

.spe-card--off {
    background: #f9fafb;
    border-style: dashed;
    opacity: .7;
}

.spe-letter {
    font-size: .72rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: .02em;
}

.spe-price {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.spe-card--off .spe-price { color: #9ca3af; font-weight: 700; }

.spe-badge {
    position: absolute;
    top: 3px;
    right: 6px;
    color: #fd611a;
    font-size: 1rem;
    line-height: 1;
}

@media (prefers-color-scheme: dark) {
    .spe-card { background: #1f2937; border-color: #374151; }
    .spe-card--off { background: #111827; }
    .spe-price { color: #f9fafb; }
}

/* ===== Splash.razor.css ===== */
/* Mirrors ExploreBody's scoped .ph-splash styles so the launch splash matches the Web look. */
.ph-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.8s ease;
    opacity: 1;
}

.ph-splash-fade {
    opacity: 0;
    pointer-events: none;
}

.ph-splash-logo {
    max-width: 280px;
    width: 60vw;
}

.ph-splash-lottie-slot {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
}

.ph-splash-lottie {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== ServiceBundleToggle.razor.css ===== */
/* Services / Care Bundles mode pill — shared by ExploreBody + ManageBookings. */
.ph-mode-pill {
    display: flex;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    flex-shrink: 1;   /* can compress if the host toggle bar is tight */
    min-width: 0;
}

.ph-pill-btn {
    display: flex; align-items: center; gap: .25rem;
    padding: .35rem .75rem;
    border: none; border-radius: 999px;
    background: transparent;
    font-size: .76rem; font-weight: 600; color: #6b7280;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
    font-family: inherit;
    min-width: 0;
}
.ph-pill-btn:hover { background: #e2e8f0; color: #374151; }
.ph-pill-active {
    background: #fff !important;
    color: #fd611a !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.13);
}
