/* =======================================================================
   WalkMerry — Design System
   Vanilla CSS · Desktop-first · All spacing in 8px multiples
   ======================================================================= */

/* === COLOR VARIABLES === */

:root {
    --primary: #2B4C8C;
    --primary-dark: #1E3666;
    --primary-faint: #EAF0FB;

    --amber: #E8935A;
    --amber-dark: #D4784A;
    --amber-tint: #FDF0E6;

    --bg: #F9F5EE;
    --surface: #FFFFFF;

    --text: #1A1A1A;
    --text-secondary: #72685E;
    --text-body: #3D3835;

    --trust-green: #3D9970;
    --trust-green-bg: #EAF5EE;

    --border: #E5DDD0;
    --border-input: #D8CFC4;
    --divider: #EBE3D5;

    --wm-form-border: #b0b0b0;
    --wm-form-border-subtle: #dddddd;
    --wm-form-focus: #1a1a1a;
    --wm-form-surface-shadow: 0 6px 28px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);

    --shadow: 0 2px 16px rgba(60, 45, 30, 0.08);
    --shadow-hover: 0 8px 32px rgba(60, 45, 30, 0.13);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    --max-width: 1140px;
    --nav-height: 72px;
    --page-pad: 48px;
    --navbar-pad-y: 32px;
    --nav-offset: calc(var(--nav-height) + var(--navbar-pad-y));
    --space-2: 2px;
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-64: 64px;
    --space-80: 80px;
    --radius-4: 4px;
    --radius-8: 8px;
    --radius-12: 12px;
    --radius-16: 16px;
    --radius-20: 20px;
    --radius-24: 24px;
    --radius-32: 32px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 20px;
    --elevation-0: 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    --elevation-1: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.08);
    --elevation-2: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.1);
    --elevation-3: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.1);
}


/* === RESET & BASE === */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-body);
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

input,
button,
select,
textarea {
    font-family: var(--font-body);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 150ms ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(43, 76, 140, 0.15);
}

::placeholder {
    color: #B0ACA6;
}

.page-wrap {
    flex: 1;
}


/* === TYPOGRAPHY === */

h1, h2 {
    font-family: var(--font-heading);
    color: var(--primary);
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
}

h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

small, .text-small {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 8px;
    margin-bottom: 24px;
}


/* === LAYOUT === */

.container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--page-pad);
}

.container--narrow {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--page-pad);
}


/* === NAV === */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: calc(var(--nav-height) + var(--navbar-pad-y));
    padding-top: var(--navbar-pad-y);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
}

.nav-shell {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.nav-left,
.nav-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
}

.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 150ms ease, color 150ms ease;
}

.nav-menu-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav-menu-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.2);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
    flex-shrink: 0;
    line-height: 1;
}

.nav-brand:hover {
    color: var(--primary);
}

.nav-brand-icon {
    width: 22px;
    height: 22px;
    color: var(--amber);
    flex-shrink: 0;
}

.nav-brand-accent {
    color: var(--amber);
}

.nav-center {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.nav-center .nav-primary-link {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 4px 0;
    transition: color 200ms ease;
}

.nav-center .nav-primary-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width 200ms ease;
}

.nav-center .nav-primary-link:hover {
    color: var(--primary);
}

.nav-center .nav-primary-link:hover::after {
    width: 100%;
}

.nav-center .nav-primary-link.active {
    color: var(--primary);
}

.nav-center .nav-primary-link.active::after {
    width: 100%;
}

.nav-right {
    justify-content: flex-end;
    gap: 12px;
}

.nav-right a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 150ms ease;
    white-space: nowrap;
}

.nav-right a:hover {
    color: var(--primary);
}

.nav-right .btn {
    color: #fff;
}

.nav-right .btn:hover {
    color: #fff;
}

.nav-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 150ms ease;
}

.nav-initial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.nav-initial:hover {
    background: var(--primary-dark);
    color: #fff;
}

.badge-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    margin-left: 4px;
    line-height: 1;
    vertical-align: middle;
}

.nav-logout {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
}

.nav-logout:hover {
    color: var(--text-body) !important;
}


/* === BUTTONS === */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.925rem;
    font-weight: 500;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, transform 100ms ease;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background-color: var(--amber);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--amber-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    transition: background-color 200ms ease, color 200ms ease, transform 100ms ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}


/* === HERO === */

.hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-color: var(--primary);
    background-image: url("/static/hero-dogs-park.jpg");
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px var(--page-pad);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-card {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    padding: 48px;
    max-width: 580px;
    width: 100%;
    text-align: center;
}

.hero-card h1 {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
}

.hero-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 6px;
    border: 1px solid var(--border);
}

.hero-search-field {
    flex: 1 1 0;
    text-align: left;
    padding: 8px 12px;
}

.hero-search-field label {
    display: block;
    font-size: 0.7rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.hero-search-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

.hero-search input {
    display: block;
    width: 100%;
    border: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0;
    background: transparent;
    color: var(--text);
    min-width: 0;
}

.hero-search input:focus {
    outline: none;
}

.hero-search-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
}

.hero-search-btn svg {
    display: block;
}

/* Zip autocomplete */
.hero-zip-field { position: relative; }
.zip-suggestions {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 0 0 10px 10px; list-style: none;
    margin: 0; padding: 4px 0;
    box-shadow: var(--shadow-hover); z-index: 200; max-height: 220px; overflow-y: auto;
}
.zip-suggestions li {
    padding: 10px 16px; cursor: pointer; font-size: 0.9rem; color: var(--text);
}
.zip-suggestions li:hover { background: var(--bg); }

/* Day picker */
.day-picker-wrap { position: relative; }
.day-picker-display {
    cursor: pointer; padding: 0; color: var(--text);
    font-size: 0.95rem; outline: none; user-select: none;
}
.day-picker-dropdown {
    position: absolute; top: calc(100% + 8px); left: -16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px; z-index: 200;
    box-shadow: var(--shadow-hover); min-width: 160px;
}
.day-check-label {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 4px; cursor: pointer; font-size: 0.9rem;
    border-radius: 6px;
}
.day-check-label:hover { background: var(--bg); }
.day-picker-actions { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
.day-clear-btn {
    background: none; border: none; color: var(--primary);
    font-size: 0.82rem; cursor: pointer; padding: 0;
}
.hero-service-select {
    background: none; border: none; outline: none;
    font-size: 0.95rem; color: var(--text); cursor: pointer;
    width: 100%; padding: 0;
}

.hero-trust-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.hero-trust-row span {
    position: relative;
}

.hero-trust-row span + span::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--border-input);
}


/* === CATEGORY ROW === */

.categories-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px var(--page-pad) 0;
    border-bottom: 1px solid var(--border);
}

.categories-row {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease, opacity 200ms ease;
    opacity: 0.7;
}

.category-item:hover {
    color: var(--text);
    opacity: 1;
    border-bottom-color: var(--border-input);
}

.category-item--active {
    color: var(--text);
    opacity: 1;
    border-bottom-color: var(--text);
}

.category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-item span {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}


/* === STEPS SECTION === */

.steps-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px var(--page-pad) 0;
}

.steps-header {
    text-align: center;
    margin-bottom: 48px;
}

.steps-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 8px;
}

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

.step-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-2);
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}


/* === WALKER CARDS === */

.walkers-section {
    padding: 48px var(--page-pad) 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.walkers-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.walkers-header h2 {
    margin: 0;
}

.walkers-header a {
    font-family: var(--font-body);
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: underline;
    transition: color 150ms ease;
}

.walkers-header a:hover {
    color: var(--primary);
}

.walkers-filter-empty {
    margin: 0;
    padding: 24px 0 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

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

.walker-card {
    cursor: pointer;
}

.walker-card-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.walker-card-img img {
    width: 100%;
    aspect-ratio: 20 / 19;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

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

.walker-save {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 150ms ease, background-color 150ms ease;
}

.walker-save:hover {
    transform: scale(1.08);
    background: #fff;
}

.walker-save:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.2);
}

.walker-card-info {
    padding: 0;
}

.walker-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.walker-card-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.walker-card-rating {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.walker-card-rating .walker-card-stars {
    color: var(--amber);
}

.walker-card-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.walker-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.walker-card-price {
    font-size: 0.875rem;
    color: var(--text);
    margin-top: 4px;
}

.walker-card-price strong {
    font-weight: 600;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F5F1EA;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1;
}


/* === DUAL CTA === */

.cta-section {
    padding: 80px var(--page-pad) 96px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cta-card {
    padding: 64px;
    border-radius: var(--radius-xl);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cta-card p {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.65;
}

.cta-card--owners {
    background: var(--primary);
}

.cta-card--owners h2,
.cta-card--owners p {
    color: #fff;
}

.cta-card--owners p {
    opacity: 0.88;
}

.cta-card--walkers {
    background: var(--amber-tint);
}

.cta-card--walkers h2 {
    color: var(--primary);
}

.cta-card--walkers p {
    color: var(--text-body);
}


/* === HOMEPAGE — MOBILE (clean spacing, touch-friendly) === */

@media (max-width: 900px) {
    .walker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 24rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 0;
        padding: 24px 16px 32px;
        align-items: flex-start;
    }

    .hero-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    }

    .hero-card h1 {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        margin-bottom: 24px;
        line-height: 1.22;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        border-radius: 12px;
        gap: 0;
    }

    .hero-search-field {
        padding: 12px 14px;
    }

    .hero-search-field label {
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 6px;
    }

    .hero-search-divider {
        display: none;
    }

    .hero-search-btn {
        width: 100%;
        height: 48px;
        min-width: 0;
        border-radius: 10px;
        margin-top: 4px;
    }

    .hero-trust-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        margin-top: 20px;
        font-size: 0.75rem;
    }

    .hero-trust-row span + span::before {
        left: -12px;
    }

    .browse-hero {
        min-height: 0;
        padding: 32px 16px 40px;
        align-items: flex-start;
    }

    .browse-hero h1 {
        font-size: clamp(1.5rem, 6vw, 1.95rem);
        line-height: 1.2;
    }

    .browse-hero p {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    .day-picker-dropdown {
        left: 0;
        right: 0;
        min-width: 0;
        width: max-content;
        max-width: calc(100vw - 2 * var(--page-pad));
    }

    .categories-section {
        padding: 16px 0 0;
        margin: 0;
        max-width: none;
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .categories-row {
        justify-content: flex-start;
        gap: 28px;
        padding: 0 16px 4px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .categories-row::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        flex-shrink: 0;
        padding-bottom: 12px;
    }

    .walkers-section {
        padding: 32px 16px 0;
    }

    .walkers-header {
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .walker-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-section {
        padding: 56px 16px 0;
    }

    .steps-header {
        margin-bottom: 32px;
    }

    .steps-header h2 {
        font-size: 1.65rem;
        letter-spacing: -0.02em;
    }

    .step-card {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .step-card:hover {
        transform: none;
    }

    .cta-section {
        padding: 48px 16px 64px;
    }

    .cta-card {
        padding: 40px 28px;
        border-radius: 16px;
    }

    .cta-card h2 {
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .cta-card p {
        font-size: 0.9375rem;
        margin-bottom: 20px;
    }

    .cta-card .btn {
        width: 100%;
        justify-content: center;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}


/* === LEAD CARDS === */

.leads-page {
    padding-top: 0;
}

.filter-bar {
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0 var(--page-pad);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.filter-field--zip {
    width: 144px;
}

.filter-field--schedule {
    width: 176px;
}

.filter-field--radius {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-field-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.1);
}

.leads-results {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px var(--page-pad) 80px;
}

.leads-results-header {
    margin-bottom: 16px;
}

.leads-results-header h2 {
    margin-bottom: 8px;
}

.leads-results-copy {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.leads-count {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.lead-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
    display: flex;
    flex-direction: column;
}

.lead-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.lead-card.lead-card--closed {
    opacity: 0.7;
    pointer-events: none;
}

.lead-card-banner {
    background: var(--primary-faint);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.lead-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lead-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.lead-meta {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.lead-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lead-date {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.lead-closed-label {
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-style: italic;
}

.leads-guest-blur-stack {
    position: relative;
    margin-top: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.leads-guest-blur-grid {
    filter: blur(9px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
    transform: translateZ(0);
}

.leads-guest-blur-veil {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(4px);
}

.leads-guest-blur-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.leads-guest-blur-copy {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 28rem;
    margin: 0 0 20px;
}

.leads-guest-blur-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}


/* === LEAD DETAIL (redesigned) === */

/* Hero */
.lead-hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px var(--page-pad) 32px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.lead-hero-icon {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.lead-hero-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.lead-breed-pill {
    display: inline-block;
    background: var(--primary-faint);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.lead-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.lead-status-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: capitalize;
}
.lead-status-open { background: var(--trust-green-bg); color: var(--trust-green); }
.lead-status-closed { background: #fce8e8; color: #c0392b; }
.lead-status-expired { background: var(--bg); color: var(--text-secondary); }

/* Body layout */
.lead-detail-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--page-pad) 80px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.lead-detail-main {}

.lead-info-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.lead-info-h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
}
.lead-info-text {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

/* Attribute tiles (read-only icon display) */
.lead-attr-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.lead-attr-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 100px;
    text-align: center;
}
.lead-attr-icon {
    color: var(--primary);
}
.lead-attr-tile strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}
.lead-attr-tile span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Trait chips */
.lead-trait-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lead-trait-chip {
    display: inline-block;
    background: var(--primary-faint);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
}

/* Action card */
.lead-action-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px 28px 20px;
    box-shadow: var(--shadow-hover);
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}
.action-card-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.action-card-price span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.action-card-pitch {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.action-card-connected {
    text-align: center;
    margin-bottom: 16px;
}
.action-card-connected-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--trust-green-bg);
    color: var(--trust-green);
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.action-card-connected-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--trust-green);
}
.action-card-owner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.action-card-owner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-faint);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.action-card-owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.action-card-owner-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
}
.action-card-owner-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}
.action-card-closed {
    text-align: center;
    padding-bottom: 16px;
}
.action-card-closed-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.action-card-footer-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
}
.action-card-footer-note a {
    color: var(--text-secondary);
}

/* Owner profile — dogs grid */
.owner-dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.owner-dog-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg);
    border-radius: 14px;
    padding: 18px 16px;
}
.owner-dog-icon {
    flex-shrink: 0;
    color: var(--primary);
    background: var(--primary-faint);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.owner-dog-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}
.owner-dog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.owner-dog-notes {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Owner leads list (shared between profile + account) */
.owner-leads-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.owner-lead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--bg);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    gap: 16px;
}
.owner-lead-row:hover { background: var(--primary-faint); }
.owner-lead-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.owner-lead-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.owner-lead-loc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.owner-lead-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.owner-lead-date, .owner-lead-walkers {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Owner profile role label */
.profile-hero-role-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 8px;
}


/* === BADGES & PILLS === */

.badge-size {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(43, 76, 140, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-spots {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--amber-dark);
}

.badge-spots--urgent {
    color: var(--amber);
    font-weight: 600;
}

.badge-insured {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--trust-green);
    background: var(--trust-green-bg);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.badge-schedule {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--amber-dark);
    background: var(--amber-tint);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* === NAV USER DROPDOWN === */

.nav-user-menu {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 5px 12px 5px 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text);
    transition: box-shadow 150ms ease;
}

.nav-user-trigger:hover,
.nav-user-menu.open .nav-user-trigger {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-name {
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-chevron {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 200ms ease;
}

.nav-user-menu.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 200;
    padding: 6px 0;
}

.nav-user-menu.open .nav-dropdown {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: background 100ms ease;
}

.nav-dropdown-item:hover {
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.nav-dropdown-item--danger { color: #c0392b; }
.nav-dropdown-item--danger:hover { background: #fff5f5; color: #c0392b; }

.nav-dropdown-mobile-only {
    display: none;
}

.nav-dropdown-balance {
    font-weight: 700;
    color: var(--primary);
}


/* === PROFILE PAGE === */

.profile-layout {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 48px auto 80px;
    padding: 0 var(--page-pad);
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: var(--nav-offset);
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.profile-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.photo-upload-form { margin-bottom: 16px; }
.photo-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 0;
}
.photo-upload-label:hover { color: var(--text-primary); }

.profile-sidebar-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.25;
}

.profile-sidebar-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.profile-sidebar-rating .stars {
    color: var(--amber);
    letter-spacing: 1px;
}

.profile-sidebar-rating strong {
    color: var(--text);
    font-weight: 600;
}

.profile-sidebar-rating .count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.profile-sidebar-meta {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.profile-main h2 {
    margin-bottom: 16px;
}

.profile-bio {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 40px;
}

.profile-contact {
    background: var(--surface);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(43, 76, 140, 0.07);
    margin-bottom: 40px;
}

.profile-contact-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.profile-contact-row {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-contact-row:last-of-type {
    margin-bottom: 16px;
}

.profile-contact .btn {
    width: 100%;
}

.profile-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.profile-section-title--h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.review-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--divider);
}

.review-card:last-of-type { border-bottom: none; }

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-faint);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.review-stars-inline {
    color: var(--amber);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.review-body {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-body);
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.testimonial-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 16px;
    color: var(--text-secondary);
    font-size: 0.825rem;
    font-weight: 500;
}

.testimonial-divider::before,
.testimonial-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.testimonial-disclaimer {
    font-size: 0.825rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial-card {
    background: var(--bg);
    border-left: 3px solid var(--amber);
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.testimonial-card:last-child {
    margin-bottom: 0;
}

.testimonial-body {
    font-style: italic;
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.testimonial-source {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.profile-glance {
    margin-bottom: 40px;
}

.profile-glance p {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-body);
}

.profile-glance strong {
    color: var(--text);
}


/* === MESSAGING === */

.messaging-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--nav-offset));
    overflow: hidden;
}

.messaging-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.messaging-sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.messaging-sidebar-header h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.threads-sidebar-body {
    flex: 1;
    min-height: 0;
}

.sidebar-loading {
    padding: 16px 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.thread-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    cursor: pointer;
    transition: background 150ms ease;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
    position: relative;
}

.thread-row:hover {
    background: var(--bg);
    color: inherit;
    text-decoration: none;
}

.thread-row--unread {
    border-left-color: var(--primary);
    background: #F5F8FF;
}

.thread-row--unread .thread-name {
    color: var(--primary);
}

.thread-row--active {
    background: var(--primary-faint);
    border-left-color: var(--primary);
}

.thread-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thread-avatar img,
.thread-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.thread-avatar--header {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
}

.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.thread-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-time {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.messaging-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg);
}

.messaging-thread-header {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    min-width: 0;
}

.messaging-thread-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.messaging-thread-context {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.message-area {
    flex: 1;
    background: var(--bg);
    padding: 24px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.message-timestamp {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 16px 0;
}

.chat-bubble {
    max-width: 56%;
    padding: 10px 16px;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.55;
    word-wrap: break-word;
    transition: opacity 200ms ease, transform 200ms ease;
}

.chat-bubble.bubble-first-send {
    transition: opacity 300ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bubble-grouped {
    margin-top: -2px;
}

.bubble-enter {
    opacity: 0;
    transform: translateY(8px);
}

.chat-bubble.bubble-first-send.bubble-enter {
    transform: translateY(14px) scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
    .chat-bubble.bubble-first-send.bubble-enter {
        transform: translateY(4px);
    }
}

.bubble-body {
    white-space: pre-wrap;
}

.bubble-sent {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-radius: 18px 18px 4px 18px;
}

.bubble-sent.bubble-grouped {
    border-radius: 4px 18px 4px 18px;
}

.bubble-received {
    background: var(--surface);
    color: var(--text);
    align-self: flex-start;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bubble-received.bubble-grouped {
    border-radius: 18px 4px 18px 4px;
}

.bubble-time {
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.72;
    transition: opacity 150ms ease;
}

.chat-bubble:hover .bubble-time {
    opacity: 0.95;
}

.bubble-sent .bubble-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
}

.bubble-received .bubble-time {
    color: var(--text-secondary);
}

.reply-area {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.reply-area textarea {
    flex: 1;
    border: 1.5px solid var(--border-input);
    border-radius: 22px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    max-height: 120px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.reply-area textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.08);
}

.reply-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--border-input);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 200ms ease, color 200ms ease, transform 100ms ease, box-shadow 220ms ease;
    margin-bottom: 2px;
    position: relative;
}

.reply-send-plane,
.reply-send-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-send-check[hidden] {
    display: none !important;
}

.reply-send--ok {
    background: var(--trust-green) !important;
    color: #fff !important;
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(91, 163, 124, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .reply-send--ok {
        transform: none;
    }
}

.reply-send--active,
.reply-send:hover {
    background: var(--primary);
    color: #fff;
}

.reply-send:active {
    transform: scale(0.92);
}

.reply-send:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.2);
}

.credit-banner {
    background: var(--amber-tint);
    padding: 14px 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(232, 147, 90, 0.2);
}

.credit-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-body);
}

.credit-banner-content svg {
    color: var(--amber);
    flex-shrink: 0;
}


/* --- Thread header helpers --- */

.thread-header-info {
    flex: 1;
    min-width: 0;
}

.thread-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background 150ms ease, color 150ms ease;
    text-decoration: none;
    flex-shrink: 0;
}

.thread-back-btn:hover {
    background: var(--bg);
    color: var(--text);
}


/* --- Credit indicator in thread header --- */

.credit-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 5px 12px;
    background: var(--primary-faint);
    border-radius: 999px;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 150ms ease;
}

.credit-indicator:hover {
    background: #DAE5F7;
    color: inherit;
}

.credit-indicator svg {
    color: var(--primary);
    opacity: 0.5;
}

.credit-indicator-count {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.credit-indicator-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.credit-indicator--zero {
    background: var(--amber-tint);
    outline: 1px solid var(--amber);
}

.credit-indicator--zero .credit-indicator-count {
    color: var(--amber-dark);
}


/* --- Sidebar badge positioning --- */

.sidebar-badge {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

.sidebar-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}


/* --- Date separators --- */

.date-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 12px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.date-separator::before,
.date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}


/* --- Chat welcome empty state --- */

.chat-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    color: var(--text-secondary);
}

.chat-welcome-icon {
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 24px;
}

.chat-welcome h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.chat-welcome p {
    font-size: 0.925rem;
    line-height: 1.65;
    max-width: 340px;
}


/* --- Payment success page --- */

.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 80px);
    padding: 48px;
}

.success-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--elevation-2);
    padding: 56px 48px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    animation: successFadeIn 500ms ease;
}

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

.success-icon {
    color: var(--trust-green);
    margin-bottom: 24px;
}

.success-circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: successCircle 600ms ease 200ms forwards;
}

.success-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: successCheck 400ms ease 700ms forwards;
}

@keyframes successCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
    to { stroke-dashoffset: 0; }
}

.success-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-detail {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 32px;
}

.success-detail strong {
    color: var(--text);
}

.success-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.success-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.success-spinner[hidden] {
    display: none !important;
}

.success-ready-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--trust-green);
}

.success-ready-mark[hidden] {
    display: none !important;
}

.success-ready-svg {
    display: block;
}

.success-ready-circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
}

.success-ready-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.success-ready-mark--animate .success-ready-circle {
    animation: successCircle 520ms ease 60ms forwards;
}

.success-ready-mark--animate .success-ready-check {
    animation: successCheck 360ms ease 520ms forwards;
}

@media (prefers-reduced-motion: reduce) {
    .success-ready-circle,
    .success-ready-check {
        stroke-dashoffset: 0;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-fallback {
    display: none;
    margin-top: 8px;
}


/* --- Messaging responsive --- */

@media (max-width: 768px) {
    .messaging-sidebar {
        display: none;
    }

    .thread-back-btn {
        display: flex;
    }

    .messaging-layout {
        height: calc(100vh - var(--nav-offset));
        height: calc(100dvh - var(--nav-offset));
    }

    .chat-bubble {
        max-width: 82%;
    }

    .reply-area {
        padding: 10px 14px;
    }

    .messaging-thread-header {
        padding: 0 14px;
    }

    .message-area {
        padding: 16px;
    }

    .success-page {
        padding: 24px;
    }

    .success-card {
        padding: 40px 28px;
    }
}


/* === FORMS & INPUTS === */

.form-card {
    max-width: 640px;
    margin: 48px auto 80px;
    background: var(--surface);
    padding: 48px 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--wm-form-border-subtle);
    box-shadow: var(--wm-form-surface-shadow);
}

.form-card--profile {
    max-width: 720px;
}

.form-card h2 {
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.form-card .section-subtitle {
    margin-bottom: 36px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    color: var(--text);
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 22px;
    border: 1px solid var(--wm-form-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-card input:hover,
.form-card textarea:hover,
.form-card select:hover {
    border-color: #8a8a8a;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;
    border-color: var(--wm-form-focus);
    box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.form-card input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 20px;
    vertical-align: middle;
}

.form-card label.wm-check-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 18px 16px;
    margin-bottom: 24px;
    border: 1px solid var(--wm-form-border-subtle);
    border-radius: var(--radius-md);
    background: #fafafa;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.45;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-card label.wm-check-tile:hover {
    border-color: var(--wm-form-border);
    background: #fff;
}

.form-card label.wm-check-tile:has(input:focus-visible) {
    outline: none;
    border-color: var(--wm-form-focus);
    box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-card label.wm-check-tile input[type="checkbox"] {
    margin: 4px 0 0;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.form-card label.wm-check-tile span {
    color: var(--text);
}

.form-card input[type="file"] {
    border: none;
    padding: 4px 0;
    box-shadow: none;
}

.form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 2px;
}

.form-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    color: var(--text);
}

.form-card .form-group input {
    width: 100%;
}

.form-card button[type="submit"] {
    width: 100%;
    margin-top: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.form-card .current-photo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-card .current-photo img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.testimonial-edit-block {
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: var(--bg);
}

.testimonial-edit-block label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.testimonial-edit-block input,
.testimonial-edit-block textarea,
.testimonial-edit-block select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--wm-form-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.testimonial-edit-block input:focus,
.testimonial-edit-block textarea:focus,
.testimonial-edit-block select:focus {
    outline: none;
    border-color: var(--wm-form-focus);
    box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.testimonial-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--divider);
}

.testimonial-section h3 {
    margin-bottom: 8px;
}

.testimonial-section .disclaimer {
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-add {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--divider);
}

.testimonial-add h4 {
    margin-bottom: 16px;
}

.auth-form {
    max-width: 440px;
    margin: 48px auto 80px;
    background: var(--surface);
    padding: 48px 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--wm-form-border-subtle);
    box-shadow: var(--wm-form-surface-shadow);
}

.auth-form--wide {
    max-width: 560px;
}

.auth-form h2 {
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.55;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    color: var(--text);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--wm-form-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:hover,
.auth-form select:hover,
.auth-form textarea:hover {
    border-color: #8a8a8a;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--wm-form-focus);
    box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.auth-form button[type="submit"] {
    width: 100%;
    margin-top: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === ROLE PICKER === */

.role-picker-label {
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    color: var(--text);
    margin-bottom: 12px;
}

.role-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.role-picker--error .role-card {
    border-color: #c0392b;
    animation: role-shake 400ms ease;
}

@keyframes role-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Role cards are <button type="button"> + hidden input — never use default <button> in forms (submit). */
.role-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px 20px;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--wm-form-border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 200ms ease, background-color 200ms ease,
                box-shadow 200ms ease, transform 120ms ease;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.role-card:focus {
    outline: none;
}

.role-card:hover {
    border-color: var(--text);
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.role-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.2);
}

.role-card[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary-faint);
    box-shadow: 0 0 0 2px var(--primary-faint), 0 6px 24px rgba(43, 76, 140, 0.14);
}

.role-card[aria-pressed="true"]:hover {
    background: var(--primary-faint);
}

.role-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
    pointer-events: none;
}

.role-card[aria-pressed="true"] .role-card-check {
    border-color: var(--primary);
    background: var(--primary);
    transform: scale(1.05);
}

.role-card[aria-pressed="true"] .role-card-check::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.role-card-illustration {
    display: block;
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 120 / 100;
    margin-bottom: 2px;
    opacity: 0.8;
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none;
}

.role-card:hover .role-card-illustration,
.role-card[aria-pressed="true"] .role-card-illustration {
    opacity: 1;
    transform: scale(1.05);
}

.role-card-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.role-card[aria-pressed="true"] .role-card-title {
    color: var(--primary);
}

.role-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.walker-signup-callout.wm-callout-soft {
    padding: 18px 20px;
    margin-bottom: 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--wm-form-border-subtle);
    background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.walker-signup-callout.wm-callout-soft p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-body);
    margin-bottom: 10px;
}

.walker-signup-callout.wm-callout-soft p:last-child {
    margin-bottom: 0;
}

.walker-signup-callout.wm-callout-soft strong {
    font-weight: 600;
    color: var(--text);
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input {
    width: 100%;
}

.field-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: -14px;
    margin-bottom: 20px;
    line-height: 1.45;
}

.photo-upload-zone {
    position: relative;
    border: 1px dashed var(--wm-form-border);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 24px;
    background: #fafafa;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.photo-upload-zone:hover {
    border-color: var(--text);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.photo-upload-icon {
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.85;
}

.photo-upload-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.photo-upload-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.photo-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.complete-profile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-skip {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 150ms ease;
}

.btn-skip:hover {
    color: var(--primary);
}


/* === FLASH MESSAGES === */

.flash-container {
    max-width: var(--max-width);
    margin: 16px auto 0;
    padding: 0 var(--page-pad);
}

.flash-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.925rem;
    line-height: 1.5;
    background: var(--amber-tint);
    border: 1px solid var(--amber);
    color: #7A5130;
}

.flash-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    font-weight: 600;
}

.flash-success {
    background: var(--trust-green-bg);
    border: 1px solid #A7D7B8;
    color: #1B5E3B;
    font-weight: 500;
}


/* === INBOX === */

.inbox-page {
    max-width: var(--max-width);
    margin: 48px auto 80px;
    padding: 0 var(--page-pad);
}

.inbox-page h2 {
    margin-bottom: 24px;
}

.thread-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thread-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.thread-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.thread-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thread-card-content {
    flex: 1;
    min-width: 0;
}

.thread-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.thread-card-top strong {
    font-size: 0.95rem;
    color: var(--text);
}

.thread-card-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}


/* === EMPTY STATE === */

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 56px 0;
    font-size: 1rem;
    line-height: 1.65;
}


/* === REVIEW FORM (on profile detail) === */

.review-form-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--divider);
}

.review-form-section h3 {
    margin-bottom: 16px;
}

.review-form-section label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.review-form-section select,
.review-form-section textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.review-form-section select:focus,
.review-form-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.1);
}


/* === PRICING === */

.leads-list {
    max-width: var(--max-width);
    margin: 48px auto 80px;
    padding: 0 var(--page-pad);
}

.leads-list h2 {
    margin-bottom: 4px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.bundle-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.bundle-featured {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.bundle-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.bundle-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0;
}

.bundle-per-credit {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bundle-card .btn {
    width: 100%;
}


/* === FOOTER === */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 64px var(--page-pad);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-wordmark .nav-brand-icon {
    width: 18px;
    height: 18px;
}

.footer-wordmark .nav-brand-accent {
    color: var(--amber);
}

.footer-tagline {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 48px;
}

.footer-nav-group h4 {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-group a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 150ms ease;
}

.footer-nav-group a:hover {
    color: var(--primary);
}

.footer-copy-col {
    text-align: right;
    font-size: 0.825rem;
    color: var(--text-secondary);
    align-self: end;
}


/* === UTILITIES === */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/* === PROFILE STATS BAR === */

.profile-stats {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
}

.profile-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
}

.profile-stat:last-child { border-right: none; }

.profile-stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === WALKER GALLERY === */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 200ms ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-remove-form {
    position: absolute;
    top: 6px;
    right: 6px;
}

.gallery-remove-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 160ms ease;
}

.gallery-item:hover .gallery-remove-btn { opacity: 1; }

.gallery-add-tile {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.gallery-add-tile:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-faint);
}

.gallery-caption {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: center;
}

/* === OWNER DOGS === */

.dogs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.dog-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.dog-card-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.dog-meta {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    margin-right: 4px;
}

.dog-notes {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

/* === GHOST SMALL BUTTON === */

.btn-ghost-small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    text-decoration: underline;
    flex-shrink: 0;
}

.btn-ghost-small:hover { color: var(--red, #c0392b); }

/* === POST A LEAD WIZARD === */

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

.wizard-shell {
    max-width: 680px;
    margin: 48px auto 80px;
    padding: 0 24px;
}

/* Progress bar */
.wizard-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}
.wizard-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 25%;
    transition: width 0.4s ease;
}

/* Step dots */
.wizard-steps-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
}
.wizard-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}
.wizard-step-dot.active {
    background: var(--primary);
}

/* Step panels */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: wizardFadeIn 0.35s ease both;
}

.wizard-step-inner {
    /* no extra padding needed */
}

.wizard-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 10px;
}

.wizard-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 36px;
    line-height: 1.2;
}

/* Field stack — Typeform-style inputs */
.wizard-field-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}
.wizard-field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wizard-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.wizard-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-input);
    border-radius: 0;
    padding: 10px 2px;
    font-size: 1.2rem;
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wizard-input:focus {
    border-bottom-color: var(--primary);
}
.wizard-input::placeholder { color: var(--border-input); }

.wizard-textarea {
    width: 100%;
    border: 2px solid var(--border-input);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wizard-textarea:focus { border-color: var(--primary); }
.wizard-textarea::placeholder { color: var(--border-input); }

/* Section headers within steps */
.wizard-section {
    margin-bottom: 36px;
}
.wizard-section-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
}
.wizard-optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Navigation row */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 6px;
    transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }

.btn.btn-primary.wizard-next,
.btn.btn-primary[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wizard-error {
    color: #c0392b;
    font-size: 0.83rem;
    margin-top: 6px;
}

.wizard-submit-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.825rem;
    color: var(--text-secondary);
}

/* === POST A LEAD PAGE (legacy, keep for reference) === */

.new-lead-page {
    max-width: 680px;
    margin: 48px auto 80px;
    padding: 0 24px;
}

.new-lead-header {
    text-align: center;
    margin-bottom: 40px;
}

.new-lead-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.new-lead-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.new-lead-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lead-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.lead-section-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.lead-section-sub {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-top: -10px;
    margin-bottom: 16px;
}

.req { color: var(--primary); }

/* Icon tile grid */
.icon-tile-group {
    display: grid;
    gap: 12px;
}

.icon-tile-group.cols-3 { grid-template-columns: repeat(3, 1fr); }
.icon-tile-group.cols-4 { grid-template-columns: repeat(4, 1fr); }

.icon-tile input[type="radio"],
.icon-tile input[type="checkbox"] {
    display: none;
}

.icon-tile label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: center;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
    user-select: none;
}

.icon-tile label:hover {
    border-color: var(--primary);
    background: var(--primary-faint);
}

.icon-tile input:checked + label {
    border-color: var(--primary);
    background: var(--primary-faint);
    color: var(--primary);
}

.icon-tile label svg {
    width: 44px;
    height: 44px;
    color: var(--text-secondary);
    transition: color 150ms ease;
}

.icon-tile label:hover svg,
.icon-tile input:checked + label svg {
    color: var(--primary);
}

.icon-tile label strong {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.icon-tile label span {
    font-size: 0.73rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.icon-tile input:checked + label strong {
    color: var(--primary);
}

/* Submit */
.new-lead-submit {
    padding-top: 32px;
    text-align: center;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1rem;
}

.new-lead-submit-note {
    margin-top: 12px;
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* === WALKER BROWSE PAGE === */
/* Hero photo: self-hosted (originally Unsplash dogs on leash walk) */

.browse-hero {
    position: relative;
    width: 100%;
    min-height: 440px;
    background-color: var(--primary);
    background-image: url("/static/hero-browse-walkers.jpg");
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px var(--page-pad);
    overflow: hidden;
    animation: browse-hero-pan 34s ease-in-out infinite alternate;
}

@keyframes browse-hero-pan {
    0% { background-position: center 40%; }
    100% { background-position: center 58%; }
}

.browse-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(30, 58, 110, 0.82) 0%,
        rgba(43, 76, 140, 0.48) 42%,
        rgba(15, 23, 42, 0.78) 100%
    );
    z-index: 1;
}

.browse-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.09) 48%,
        transparent 96%
    );
    background-size: 220% 100%;
    animation: browse-hero-shimmer 16s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes browse-hero-shimmer {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .browse-hero {
        animation: none;
        background-position: center 48%;
    }
    .browse-hero::after {
        animation: none;
        opacity: 0;
    }
}

.browse-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.browse-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.browse-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    margin-bottom: 28px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
}

.browse-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    flex-wrap: wrap;
}

.browse-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: transparent;
    min-width: 140px;
    padding: 0;
    margin: 0;
}

.browse-filter-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
}

.browse-filter-check input { cursor: pointer; }

.browse-filter-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.browse-filter-select-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.browse-filter-select {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-input);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    min-width: 88px;
}

.browse-search-bar .btn {
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.walkers-browse {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 80px;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 420px);
    gap: 40px;
    align-items: start;
}

.walkers-browse-left {
    min-width: 0;
}

.walkers-map-panel {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
    border: none;
    background: #f4f4f5;
}

.walkers-map-canvas {
    height: min(72vh, 640px);
    min-height: 420px;
}

.walkers-map-panel .leaflet-container {
    font-family: var(--font-body);
    /* Matches Carto Positron nolabels “paper” tone */
    background: #f0f0f2;
}

/* Minimal count pills (no geographic radius rings) */
.walkers-map-panel .map-zip-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.walkers-map-panel .map-zip-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 32px;
    height: 30px;
    padding: 0 11px 0 9px;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Listing-style accent (Airbnb-adjacent: small “live” pin dot + count) */
.walkers-map-panel .map-zip-marker-point {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(155deg, #ff5a5f 0%, #e31c5d 100%);
    box-shadow:
        0 0 0 2px #fff,
        0 1px 3px rgba(0, 0, 0, 0.14);
    transition: transform 0.18s ease;
}

.walkers-map-panel .map-zip-marker-count {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.walkers-map-panel .map-zip-marker--hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.walkers-map-panel .map-zip-marker--hover .map-zip-marker-point {
    transform: scale(1.08);
}

/* Active walker / in-view listing: stronger than hover */
.walkers-map-panel .map-zip-marker--selected {
    transform: scale(1.1);
    box-shadow:
        0 4px 18px rgba(227, 28, 93, 0.22),
        0 0 0 2px rgba(227, 28, 93, 0.45);
}

.walkers-map-panel .map-zip-marker--selected .map-zip-marker-point {
    transform: scale(1.12);
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 3px rgba(227, 28, 93, 0.55),
        0 2px 4px rgba(0, 0, 0, 0.16);
}

.walkers-map-panel .map-zip-marker--selected.map-zip-marker--hover {
    transform: scale(1.12);
}

.walkers-map-panel .map-zip-marker--dot {
    min-width: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    gap: 0;
    background: #c4c4c8;
    box-shadow: 0 0 0 2px #fff;
}

.walkers-map-panel .leaflet-control-zoom,
.ph2-map-container .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.walkers-map-panel .leaflet-control-zoom a,
.ph2-map-container .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 18px;
    color: #374151;
    border: none !important;
}

.walkers-map-panel .leaflet-control-zoom a:hover,
.ph2-map-container .leaflet-control-zoom a:hover {
    background: #f9fafb;
    color: #111;
}

.walkers-map-panel .walkers-map-tooltip {
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 500;
}

.walkers-map-panel .leaflet-tooltip-top:before {
    border-top-color: #fff;
}

.walkers-map-panel .leaflet-control-attribution,
.ph2-map-container .leaflet-control-attribution {
    font-size: 10px;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.82) !important;
    padding: 2px 8px 4px;
    border-radius: 8px 0 0 0;
}

.map-toggle-bar { display: none; }

.walker-card--highlighted {
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 76, 140, 0.35), 0 8px 28px rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-xl);
}

.walkers-browse-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.walkers-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.walkers-browse-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.browse-hero--leads {
    background-position: center 52%;
}

.browse-search-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.browse-search-bar--secondary {
    background: rgba(255, 255, 255, 0.94);
    padding-top: 10px;
    padding-bottom: 10px;
}

.browse-search-input--flex {
    flex: 1;
    min-width: 160px;
}

.lead-browse-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-browse-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 180ms ease, transform 180ms ease;
    min-height: 124px;
}

.lead-browse-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.lead-browse-card--closed {
    opacity: 0.88;
}

.lead-browse-card--closed .lead-browse-cta {
    display: none;
}

.lead-browse-card-visual {
    background: linear-gradient(
        145deg,
        var(--primary-faint) 0%,
        rgba(43, 76, 140, 0.12) 48%,
        var(--primary-faint) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.lead-browse-card-initial {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    user-select: none;
}

.lead-browse-card-info {
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lead-browse-card-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.lead-browse-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
}

.lead-browse-spots {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.lead-browse-spots--urgent {
    color: #b45309;
    background: rgba(251, 191, 36, 0.15);
}

.lead-browse-spots--gone {
    color: var(--text-secondary);
}

.lead-browse-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 4px;
    line-height: 1.45;
}

.lead-browse-meta span {
    display: inline;
}

.lead-browse-dot {
    margin: 0 0.25em;
    opacity: 0.5;
}

.lead-browse-schedule {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.45;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lead-browse-card-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lead-browse-posted {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.lead-browse-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
}

.lead-browse-card--highlighted {
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 76, 140, 0.35), 0 8px 28px rgba(15, 23, 42, 0.08);
}

@media (max-width: 520px) {
    .lead-browse-card {
        grid-template-columns: 80px 1fr;
    }

    .lead-browse-card-initial {
        font-size: 1.7rem;
    }
}

.walker-card-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.walker-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 180ms ease, transform 180ms ease;
    min-height: 124px;
}

.walker-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.walker-card-photo-wrap {
    position: relative;
}

.walker-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.walker-card-photo--empty {
    width: 100%;
    height: 100%;
    min-height: 124px;
    background-color: #eaeff8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='68' rx='24' ry='22' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='22' cy='42' r='12' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='42' cy='28' r='12' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='62' cy='28' r='12' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='80' cy='42' r='11' fill='%232B4C8C' fill-opacity='0.13'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 52%;
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.wc-badge--green {
    background: rgba(255,255,255,0.92);
    color: var(--trust-green);
}

.walker-card-info {
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

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

.walker-card-name-row h3 {
    font-family: var(--font-heading);
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
}

.walker-card-rate {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.walker-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.wc-stars { color: var(--amber); letter-spacing: 0.5px; }
.wc-rating-num { font-weight: 600; color: var(--text); }
.wc-review-count { color: var(--text-secondary); }
.wc-no-reviews { font-size: 0.78rem; color: var(--text-secondary); margin: 0; }

.walker-card-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.walker-card-bio {
    font-size: 0.8125rem;
    color: var(--text-body);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.walker-card-footer {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}

.wc-detail {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 2px 7px;
}

.wc-detail--trust {
    color: var(--trust-green);
}

@media (max-width: 520px) {
    .walker-card {
        grid-template-columns: 80px 1fr;
        min-height: 110px;
    }
    .walker-card-photo--empty {
        min-height: 110px;
    }
}

.empty-state-block {
    text-align: center;
    padding: 60px 0;
}

/* === SETTINGS PAGE LAYOUT === */

.settings-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 48px auto 80px;
    padding: 0 var(--page-pad);
    align-items: start;
}

.settings-nav {
    position: sticky;
    top: var(--nav-offset);
}

.settings-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 12px;
}

.settings-nav-item {
    display: block;
    padding: 9px 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
}

.settings-nav-item:hover {
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}

.settings-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section-header {
    margin-bottom: 24px;
}

.settings-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.settings-section-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.settings-field-readonly {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.settings-field-readonly label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.settings-field-readonly span {
    font-size: 0.9rem;
    color: var(--text);
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.wm-settings-forms .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    color: var(--text);
}

.wm-settings-forms input:not([type="checkbox"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.wm-settings-forms select,
.wm-settings-forms textarea {
    width: 100%;
    max-width: 420px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--wm-form-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wm-settings-forms input:hover:not([readonly]),
.wm-settings-forms select:hover,
.wm-settings-forms textarea:hover {
    border-color: #8a8a8a;
}

.wm-settings-forms input:focus,
.wm-settings-forms select:focus,
.wm-settings-forms textarea:focus {
    outline: none;
    border-color: var(--wm-form-focus);
    box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.wm-settings-forms .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 860px;
    margin-bottom: 4px;
}

.wm-settings-forms .pw-input-wrap {
    max-width: 420px;
}

.wm-settings-forms .pw-input-wrap input {
    max-width: none;
    margin-bottom: 0;
}

.wm-settings-forms button.btn.btn-primary {
    margin-top: 4px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.wm-settings-forms .settings-section {
    padding: 32px 28px 36px;
    margin-bottom: 20px;
    border-bottom: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--wm-form-border-subtle);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wm-settings-forms .settings-section:last-child {
    margin-bottom: 0;
}

.wm-settings-forms .settings-section-header {
    margin-bottom: 28px;
}

.wm-settings-forms .settings-section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* === AVATAR UPLOAD === */

.avatar-upload-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-upload {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.avatar-upload-inline {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.avatar-upload-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload-img--empty {
    background: var(--primary);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    opacity: 0;
    transition: opacity 160ms ease;
}

.avatar-upload:hover .avatar-upload-overlay,
.avatar-upload-inline:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-hint .avatar-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2px;
}

.avatar-upload-hint .avatar-role {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.btn-text-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

.btn-text-link:hover { color: var(--primary-dark, var(--primary)); }

/* === PASSWORD SHOW/HIDE === */

.pw-input-wrap {
    position: relative;
}

.pw-input-wrap input {
    width: 100%;
    padding-right: 44px;
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    opacity: 0.5;
    line-height: 0;
}

.pw-toggle:hover { opacity: 1; }

/* === ADD DOG DETAILS === */

.add-dog-details {
    margin-top: 8px;
}

.add-dog-details summary {
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    padding: 8px 0;
    list-style: none;
}

.add-dog-details summary::-webkit-details-marker { display: none; }

.add-dog-form {
    margin-top: 16px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.dog-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

/* === PROFILE HERO + BODY === */

.profile-hero {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 48px auto 0;
    padding: 0 var(--page-pad) 40px;
    border-bottom: 1px solid var(--border);
}

.profile-hero-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 220px;
}

.profile-hero-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
}

.profile-hero-photo--empty {
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-photo-upload {
    margin-top: 10px;
}

.hero-photo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.hero-photo-upload-btn:hover { color: var(--text); }

.profile-hero-info {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
}

.profile-hero-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.profile-hero-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.stars-filled { color: var(--amber); letter-spacing: 1px; }
.rating-count { color: var(--text-secondary); font-size: 0.875rem; }

.profile-hero-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.badge-green {
    color: var(--trust-green);
    background: var(--trust-green-bg);
}

.badge-neutral {
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
}

.profile-hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
}

.btn-ghost:hover {
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}

/* Profile body: two-column */

.profile-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 40px 48px 0;
    align-items: start;
}

.profile-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section-h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

/* Sticky action card */

.profile-action-card {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.action-card-rate {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.action-card-rate span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.action-card-details {
    margin-bottom: 16px;
}

.action-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--divider, #f0f0f0);
}

.action-card-row:last-child { border-bottom: none; }

.action-card-row span:first-child { color: var(--text-secondary); }
.action-card-row strong { color: var(--text); }

.action-card-contact {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}


/* === WALKER PROFILE v2 === */

.ph2-hero {
    background: var(--bg);
    padding: 40px 48px 0;
}

.ph2-hero-inner {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    box-shadow: 0 2px 24px rgba(60, 45, 30, 0.09);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ph2-hero-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ph2-gallery-upload-form {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Gallery inside hero card (responsive 3–5 column grid) */
.ph2-hero-gallery {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.ph2-hero-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.ph2-hero-gallery-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.ph2-hero-gallery-actions .btn-small {
    font-size: 0.8125rem;
    padding: 8px 14px;
}

.ph2-hero-gallery--collapsible:not(.ph2-hero-gallery--expanded) .ph2-gallery-cell--extra {
    display: none;
}

.ph2-hero-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 520px) {
    .ph2-hero-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 880px) {
    .ph2-hero-gallery-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ph2-gallery-cell {
    min-width: 0;
}

.ph2-gallery-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    background: var(--bg);
}

.ph2-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 200ms ease;
}

.ph2-gallery-tile:hover img {
    transform: scale(1.04);
}

.ph2-gallery-remove-form {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
}

.ph2-gallery-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 160ms ease;
}

.ph2-gallery-tile:hover .ph2-gallery-remove-btn {
    opacity: 1;
}

@media (hover: none) {
    .ph2-gallery-remove-btn {
        opacity: 0.88;
    }
}

.ph2-gallery-add-tile {
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed var(--border-input);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--bg);
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.ph2-gallery-add-tile:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-faint);
}

.ph2-gallery-empty-hint {
    margin: 12px 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.ph2-photo-col {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ph2-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(43,76,140,0.14);
    display: block;
}

.ph2-photo--empty {
    background-color: #eaeff8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='68' rx='24' ry='22' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='22' cy='42' r='12' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='42' cy='28' r='12' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='62' cy='28' r='12' fill='%232B4C8C' fill-opacity='0.13'/%3E%3Ccircle cx='80' cy='42' r='11' fill='%232B4C8C' fill-opacity='0.13'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center 55%;
    background-size: 48%;
    color: var(--primary);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

.ph2-change-photo-btn {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

.ph2-info-col {
    flex: 1;
}

.ph2-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ph2-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.ph2-elite-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.ph2-headline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 6px 0 10px;
}

.ph2-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.ph2-stars {
    color: #f59e0b;
    font-size: 1.1rem;
}

.ph2-avg {
    font-weight: 700;
    color: var(--text);
}

.ph2-review-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ph2-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 12px;
}

.ph2-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ph2-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.ph2-badge--green {
    background: var(--trust-green-bg);
    color: var(--trust-green);
}

.ph2-badge--neutral {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.ph2-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Stats bar */

.ph2-stats-bar {
    background: var(--bg);
    padding: 0 var(--page-pad) 40px;
}

.ph2-stats-bar-inner {
    max-width: 1140px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    display: flex;
    justify-content: center;
    gap: 0;
    align-items: center;
    padding: 0 40px;
}

.ph2-stat {
    text-align: center;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ph2-stat strong {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.ph2-stat span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.ph2-stat-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
    margin: 4px 0;
}

/* Body grid */

.ph2-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 48px 80px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.ph2-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.ph2-section:last-child {
    border-bottom: none;
}

.ph2-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ph2-section-h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 20px;
}

.ph2-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body, var(--text));
    margin: 0;
}

/* Services chips */

.ph2-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ph2-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
}

.ph2-service-icon {
    font-size: 1.1rem;
}

/* Review cards */

.ph2-review-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.ph2-review-card:last-of-type {
    border-bottom: none;
}

.ph2-review-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ph2-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-faint);
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.ph2-review-meta {
    flex: 1;
}

.ph2-review-author {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 2px;
    color: var(--text);
}

.ph2-review-stars {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ph2-stars-sm {
    color: #f59e0b;
    font-size: 0.85rem;
}

.ph2-review-date {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.ph2-review-body {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.ph2-review-form {
    background: var(--bg);
    border-radius: 14px;
    padding: 24px;
    margin-top: 24px;
}

/* Map */

.ph2-map-caption {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: -4px 0 12px;
    line-height: 1.45;
}

.ph2-map-container {
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
    background: #f4f4f5;
}

.ph2-map-container .leaflet-container {
    background: #f0f0f2;
    font-family: var(--font-body);
}

/* Sidebar */

.ph2-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.ph2-rate-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

.ph2-rate {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.ph2-rate-unit {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Edit form: services */

.services-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 540px) {
    .services-edit-grid {
        grid-template-columns: 1fr;
    }
}

.service-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    padding: 14px 16px;
    border: 1px solid var(--wm-form-border-subtle);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.service-check-label:hover {
    border-color: var(--wm-form-border);
    background: #fafafa;
}

.service-check-label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-faint);
    box-shadow: 0 0 0 1px rgba(43, 76, 140, 0.12);
}

.service-check-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

/* Responsive: collapse to single column */

@media (max-width: 860px) {
    .ph2-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ph2-rating-row,
    .ph2-location,
    .ph2-badges,
    .ph2-hero-actions {
        justify-content: center;
    }
    .ph2-body {
        grid-template-columns: 1fr;
        padding: 24px 20px 60px;
    }
    .ph2-sidebar {
        position: static;
    }
    .ph2-stats-bar-inner {
        flex-wrap: wrap;
    }
    .ph2-stat {
        padding: 10px 20px;
    }
}

/* === WALKER BROWSE MAP — MOBILE === */

@media (max-width: 860px) {
    .walkers-browse {
        grid-template-columns: 1fr;
        padding: 20px 16px 60px;
    }
    .walkers-map-panel {
        display: none;
    }
    .walkers-map-panel.map-visible {
        display: block;
        position: static;
        margin-bottom: 20px;
    }
    #walkers-map.walkers-map-canvas,
    #leads-map.walkers-map-canvas { height: 320px; }
    .map-toggle-bar {
        display: flex;
        justify-content: flex-end;
        padding: 0 16px 12px;
    }
    .map-toggle-btn {
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 10px 18px;
        border-radius: 999px;
        border: none;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        color: #222;
    }
    .map-toggle-btn:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
}


/* =======================================================================
   HOW IT WORKS PAGE
   Scoped under .page-hiw
   ======================================================================= */

.page-hiw {
    background-color: var(--bg);
}

.page-hiw .hiw-section {
    padding: 96px 48px;
}

.page-hiw .hiw-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-hiw .hiw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Hero --- */

.page-hiw .hiw-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 48px 48px 56px;
    background: var(--bg);
}

.page-hiw .hiw-hero-inner {
    text-align: center;
    max-width: 680px;
}

.page-hiw .hiw-hero-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--amber-tint);
    color: var(--amber-dark);
    border: 1px solid rgba(232, 147, 90, 0.35);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.page-hiw .hiw-hero h1 {
    font-family: var(--font-heading);
    color: var(--text);
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin-bottom: 16px;
}

.page-hiw .hiw-hero-sub {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 32rem;
    margin: 0 auto;
    text-wrap: balance;
    font-weight: 400;
}

/* --- Tabs (segmented control) --- */

.page-hiw .hiw-tabs-section {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 88px;
    padding-bottom: 88px;
}

.page-hiw .hiw-tabs-kicker {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: center;
    margin: 0 0 32px;
}

.page-hiw .hiw-tablist-shell {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.page-hiw .hiw-tablist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #EBEBEB;
}

.page-hiw .hiw-tab {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #717171;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.page-hiw .hiw-tab:hover:not(.hiw-tab--active) {
    color: var(--text);
}

.page-hiw .hiw-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary);
}

.page-hiw .hiw-tab--active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-hiw .hiw-panels {
    display: grid;
}

.page-hiw .hiw-panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
    pointer-events: none;
}

.page-hiw .hiw-panel--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Steps --- */

.page-hiw .hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.page-hiw .hiw-step {
    max-width: 20rem;
    margin: 0 auto;
}

.page-hiw .hiw-step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(43, 76, 140, 0.38);
    margin-bottom: 20px;
}

.page-hiw .hiw-step-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.page-hiw .hiw-step-desc {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* --- Economics --- */

.page-hiw .hiw-econ-section {
    background: var(--bg);
}

.page-hiw .hiw-econ-heading {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.page-hiw .hiw-econ-sub {
    font-family: var(--font-body);
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto 40px;
    font-weight: 400;
}

.page-hiw .hiw-econ-surface {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 40px 32px 36px;
    margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.page-hiw .hiw-econ-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    max-width: 560px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ebebeb;
}

.page-hiw .hiw-econ-field--card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 22px 20px;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.page-hiw .hiw-econ-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 6px;
}

.page-hiw .hiw-econ-hint {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    color: #717171;
    line-height: 1.45;
    margin: 0 0 16px;
}

.page-hiw .hiw-econ-input-shell {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--wm-form-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.page-hiw .hiw-econ-input-shell:focus-within {
    border-color: var(--wm-form-focus);
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.page-hiw .hiw-econ-input-shell--money {
    padding-left: 4px;
}

.page-hiw .hiw-econ-currency {
    flex-shrink: 0;
    padding: 0 4px 0 12px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: #717171;
}

.page-hiw .hiw-econ-input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    padding: 16px 14px 16px 8px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--text);
    background: transparent;
    box-shadow: none;
    margin: 0;
}

.page-hiw .hiw-econ-input--money {
    padding-left: 4px;
}

.page-hiw .hiw-econ-input:focus {
    outline: none;
}

.page-hiw .hiw-econ-unit {
    flex-shrink: 0;
    padding: 0 16px 0 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: #717171;
    border-left: 1px solid #ebebeb;
    background: #f7f7f7;
    line-height: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.page-hiw .hiw-econ-input--num::-webkit-outer-spin-button,
.page-hiw .hiw-econ-input--num::-webkit-inner-spin-button,
.page-hiw .hiw-econ-input--money::-webkit-outer-spin-button,
.page-hiw .hiw-econ-input--money::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.page-hiw .hiw-econ-input--num,
.page-hiw .hiw-econ-input--money {
    -moz-appearance: textfield;
    appearance: textfield;
}

.page-hiw .hiw-econ-amt {
    display: block;
}

.page-hiw .hiw-econ-table-wrap {
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    background: #fff;
    overflow: hidden;
    margin-bottom: 0;
}

.page-hiw .hiw-econ-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

.page-hiw .hiw-econ-caption {
    caption-side: top;
    text-align: center;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0 8px 20px;
}

.page-hiw .hiw-econ-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text);
    padding: 16px 20px;
    background: #F7F7F7;
    border-bottom: 1px solid #EBEBEB;
}

.page-hiw .hiw-econ-table thead th:first-child {
    width: 34%;
}

.page-hiw .hiw-econ-table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--text);
    padding: 20px;
    vertical-align: top;
    border-bottom: 1px solid #EBEBEB;
}

.page-hiw .hiw-econ-table tbody td {
    padding: 20px;
    vertical-align: top;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid #EBEBEB;
}

.page-hiw .hiw-econ-table-total th,
.page-hiw .hiw-econ-table-total td {
    border-bottom: none;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 1rem;
    font-weight: 600;
    background: #FAFAFA;
}

.page-hiw .hiw-econ-table-win {
    color: var(--primary);
    background: rgba(234, 245, 238, 0.45);
    border-left: 3px solid var(--trust-green);
}

.page-hiw .hiw-econ-table-total .hiw-econ-table-win {
    background: rgba(234, 245, 238, 0.55);
}

.page-hiw .hiw-econ-table-note {
    display: block;
    font-weight: 400;
    font-size: 0.8125rem;
    color: #717171;
    margin-top: 8px;
    line-height: 1.45;
}

.page-hiw .hiw-econ-savings {
    border-radius: 0;
    border: none;
    background: transparent;
    padding: 40px 0 0;
    margin-bottom: 0;
    margin-top: 8px;
    border-top: 1px solid #EBEBEB;
}

.page-hiw .hiw-econ-savings-title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}

.page-hiw .hiw-econ-savings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.page-hiw .hiw-econ-savings-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    background: #F7F7F7;
    border: 1px solid transparent;
}

.page-hiw .hiw-econ-savings-item--hero {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #EBEBEB;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px 24px;
}

.page-hiw .hiw-econ-savings-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-hiw .hiw-econ-savings-item--hero .hiw-econ-savings-val {
    font-size: 2.25rem;
    color: var(--trust-green);
}

.page-hiw .hiw-econ-savings-val--negative {
    color: var(--text-secondary);
}

.page-hiw .hiw-econ-savings-item--hero .hiw-econ-savings-val--negative {
    color: var(--amber-dark);
}

.page-hiw .hiw-econ-savings-lbl {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #717171;
    line-height: 1.45;
}

.page-hiw .hiw-econ-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    font-style: normal;
    color: #717171;
    line-height: 1.55;
    max-width: 40rem;
    margin: 0 auto;
    font-weight: 400;
}

/* --- Principles --- */

.page-hiw .hiw-principles {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-hiw .hiw-principles-heading {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 56px;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.page-hiw .hiw-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.page-hiw .hiw-principle {
    text-align: center;
    max-width: 22rem;
    margin: 0 auto;
}

.page-hiw .hiw-principle-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    opacity: 0.92;
}

.page-hiw .hiw-principle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.page-hiw .hiw-principle-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 12px;
}

.page-hiw .hiw-principle-copy {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #717171;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 900px) {
    .page-hiw .hiw-steps,
    .page-hiw .hiw-principles-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .page-hiw .hiw-econ-controls {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .page-hiw .hiw-econ-savings-grid {
        grid-template-columns: 1fr;
    }

    .page-hiw .hiw-econ-savings-item--hero {
        grid-column: 1;
    }

    .page-hiw .hiw-econ-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-hiw .hiw-econ-table {
        min-width: 520px;
    }
}

@media (max-width: 520px) {
    .page-hiw .hiw-section {
        padding: 64px 24px;
    }

    .page-hiw .hiw-tabs-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .page-hiw .hiw-hero {
        min-height: 0;
        padding: 40px 24px 48px;
    }

    .page-hiw .hiw-econ-surface {
        padding: 28px 20px 24px;
    }

    .page-hiw .hiw-tablist {
        width: 100%;
        max-width: 100%;
    }

    .page-hiw .hiw-tab {
        flex: 1 1 auto;
        min-width: 0;
        padding: 12px 14px;
        font-size: 0.8125rem;
    }
}


/* ===================================================================
   WALKER PROFILE — AIRBNB-STYLE ADDITIONS
   =================================================================== */

/* Rating row new elements */
.ph2-star-amber { color: var(--amber); font-size: 1rem; }
.ph2-rating-sep { color: var(--text-secondary); }
.ph2-review-link {
    color: var(--text);
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 500;
}
.ph2-review-link:hover { color: var(--primary); }

/* Stats bar badges */
.ph2-stats-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    flex-wrap: wrap;
}

.ph2-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.ph2-stat-badge--green {
    background: var(--trust-green-bg);
    color: var(--trust-green);
}

.ph2-stat-badge--amber {
    background: var(--amber-tint);
    color: var(--amber-dark);
}

.ph2-stat-badge--navy {
    background: var(--primary-faint);
    color: var(--primary);
}

/* About facts — horizontal chips */
.ph2-facts-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ph2-fact-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-body);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 12px 6px 8px;
}

.ph2-fact-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Show more bio toggle */
.ph2-show-more {
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: underline;
    cursor: pointer;
}
.ph2-show-more:hover { color: var(--primary); }

/* Verification tiles */
.ph2-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ph2-trust-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-12);
    background: var(--surface);
}

.ph2-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ph2-trust-icon--green {
    background: var(--trust-green-bg);
    color: var(--trust-green);
}

.ph2-trust-icon--navy {
    background: var(--primary-faint);
    color: var(--primary);
}

.ph2-trust-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2px;
}

.ph2-trust-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Reviews section */
.ph2-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ph2-reviews-overview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph2-reviews-big-star {
    color: var(--amber);
    font-size: 1.6rem;
    line-height: 1;
}

.ph2-reviews-big-score {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.ph2-reviews-sep {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.ph2-reviews-count-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: underline;
}

.ph2-reviews-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.ph2-review-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.ph2-review-card:last-of-type {
    border-bottom: none;
}

.ph2-review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ph2-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ph2-review-meta { flex: 1; }

.ph2-review-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin: 0 0 3px;
}

.ph2-review-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph2-stars-sm { color: var(--amber); font-size: 0.85rem; }

.ph2-review-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.ph2-review-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-body);
    margin: 0;
}

/* Sidebar CTA section */
.ph2-sidebar-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.ph2-contact-locked-note {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

/* Mobile: walker profile */
@media (max-width: 860px) {
    .ph2-hero { padding: 20px 16px 0; }
    .ph2-hero-inner { border-radius: var(--radius-lg); padding: 24px 20px; }
    .ph2-hero-top { flex-direction: column; align-items: center; text-align: center; }
    .ph2-photo-col { width: auto; }
    .ph2-photo { width: 120px; height: 120px; }
    .ph2-rating-row, .ph2-location, .ph2-hero-actions { justify-content: center; }
    .ph2-facts-list { justify-content: center; }
    .ph2-stats-bar { padding: 0 16px 24px; }
    .ph2-stats-bar-inner { flex-wrap: wrap; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 0 16px; }
    .ph2-stat { padding: 12px 16px; }
    .ph2-body { grid-template-columns: 1fr; padding: 24px 16px 60px; gap: 0; }
    .ph2-sidebar { position: static; }
    .ph2-trust-grid { grid-template-columns: 1fr; }
    .ph2-reviews-list { grid-template-columns: 1fr; }
}


/* ===================================================================
   DOG PROFILE (LEAD DETAIL) — AIRBNB-STYLE REDESIGN
   =================================================================== */

/* Hero */
.dog-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 48px var(--page-pad) 40px;
}

.dog-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    gap: 36px;
    align-items: center;
}

.dog-hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--amber-tint);
    border: 3px solid var(--surface);
    box-shadow: 0 4px 20px rgba(232,147,90,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--amber-dark);
}

.dog-hero-info { flex: 1; }

.dog-hero-name {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}

.dog-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dog-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.dog-pill--breed {
    background: var(--primary-faint);
    color: var(--primary);
}

.dog-pill--status { }
.dog-pill--open   { background: var(--trust-green-bg); color: var(--trust-green); }
.dog-pill--closed { background: #fce8e8; color: #c0392b; }
.dog-pill--expired { background: var(--bg); color: var(--text-secondary); }

.dog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Body */
.dog-detail-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px var(--page-pad) 80px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.dog-detail-main {}

.dog-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.dog-section:last-child { border-bottom: none; }

.dog-section-h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
}

/* Trait tiles (things to know) */
.dog-trait-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dog-trait-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-12);
    font-size: 0.9rem;
    color: var(--text-body);
    background: var(--surface);
}

.dog-info-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
}

/* Sidebar action card */
.dog-action-aside {
    position: sticky;
    top: calc(var(--nav-offset) - 8px);
}

.dog-action-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-hover);
}

/* Price display */
.dog-price-display {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dog-price-display span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.dog-action-pitch {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 12px 0 16px;
}

/* Connected state */
.dog-connected-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--trust-green-bg);
    color: var(--trust-green);
    border-radius: var(--radius-12);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.dog-connected-icon {
    font-size: 1.1rem;
}

.dog-owner-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.dog-owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.dog-owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-owner-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin: 0 0 2px;
}

.dog-owner-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Closed state */
.dog-closed-state {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dog-closed-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin: 0 0 6px;
}

.dog-action-back {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
}

.dog-action-back a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Mobile: dog profile */
@media (max-width: 860px) {
    .dog-hero { padding: 28px 20px; }
    .dog-hero-inner { flex-direction: column; align-items: center; text-align: center; }
    .dog-hero-pills, .dog-hero-meta { justify-content: center; }
    .dog-hero-avatar { width: 120px; height: 120px; }
    .dog-hero-name { font-size: 1.8rem; }
    .dog-detail-body { grid-template-columns: 1fr; padding: 24px 20px 60px; gap: 0; }
    .dog-action-aside { position: static; margin-top: 0; }
    .dog-trait-grid { grid-template-columns: 1fr; }
}

/* === Credits, referrals, unlock overlay, external reviews (credits-v1) === */

.nav-credits-link {
    font-weight: 600;
    color: var(--primary);
}

.nav-credits-link.active {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-credit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary-faint);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.nav-credit-pill--zero {
    background: var(--amber-tint);
    color: var(--amber-dark);
}

.ref-bonus-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}

.ref-bonus-overlay--show {
    opacity: 1;
    pointer-events: auto;
}

.ref-bonus-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--border);
}

.ref-bonus-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 10px;
}

.ref-bonus-h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 12px;
    color: var(--text);
}

.ref-bonus-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px;
}

.ref-bonus-big {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.ref-bonus-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px 0 24px;
}

.msg-credit-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--amber-tint);
    border: 1px solid var(--amber);
    border-radius: var(--radius-12);
}

.msg-credit-strip p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-body);
    flex: 1 1 220px;
}

.msg-contact-card {
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-12);
    box-shadow: var(--elevation-1);
}

.msg-contact-card--reveal {
    animation: msgContactReveal 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes msgContactReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msg-contact-card--reveal {
        animation: none;
    }
}

.msg-contact-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

.msg-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 8px;
    word-break: break-word;
}

.msg-contact-row:last-child {
    margin-bottom: 0;
}

.msg-contact-icon {
    flex-shrink: 0;
    opacity: 0.75;
}

.msg-contact-gate {
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-12);
}

.msg-contact-gate p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-body);
}

.msg-contact-gate-note {
    margin-bottom: 0 !important;
    color: var(--text-secondary) !important;
}

.msg-contact-unlock-form {
    margin: 0;
}

.dog-price-display--credits span {
    font-size: 0.85rem;
}

.dog-btn-amber {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
}

.dog-btn-amber:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    color: #fff;
}

.lead-unlock-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(26, 26, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
}

.lead-unlock-overlay--show {
    opacity: 1;
    pointer-events: auto;
}

.lead-unlock-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

.lead-unlock-gift {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
}

.wm-lock-reveal {
    position: relative;
    width: 1em;
    height: 1em;
    margin: 0 auto 12px;
    font-size: 3.45rem;
    line-height: 1;
}

.wm-lock-reveal span {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    pointer-events: none;
    will-change: transform, opacity;
}

.wm-lock-reveal__locked {
    animation: wmLockRevealShut 1.08s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.wm-lock-reveal__unlocked {
    opacity: 0;
    animation: wmLockRevealOpen 1.08s cubic-bezier(0.33, 1.4, 0.64, 1) forwards;
}

@keyframes wmLockRevealShut {
    0%,
    28% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    36% {
        opacity: 1;
        transform: translateX(-50%) scale(1.14) rotate(-22deg);
    }
    44% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1) rotate(16deg);
    }
    52% {
        opacity: 1;
        transform: translateX(-50%) scale(0.88) rotate(-6deg);
    }
    60% {
        opacity: 0;
        transform: translateX(-50%) scale(0.45) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.45);
    }
}

@keyframes wmLockRevealOpen {
    0%,
    48% {
        opacity: 0;
        transform: translateX(-50%) scale(0.2) rotate(-12deg);
        text-shadow: none;
    }
    52% {
        opacity: 1;
        transform: translateX(-50%) scale(1.38) rotate(8deg);
        text-shadow:
            0 0.08em 0.2em rgba(232, 147, 90, 0.65),
            0 0.2em 0.55em rgba(91, 163, 124, 0.35);
    }
    64% {
        opacity: 1;
        transform: translateX(-50%) scale(0.88) rotate(-5deg);
        text-shadow: 0 0.06em 0.18em rgba(232, 147, 90, 0.4);
    }
    76% {
        opacity: 1;
        transform: translateX(-50%) scale(1.18) rotate(3deg);
        text-shadow:
            0 0.06em 0.22em rgba(232, 147, 90, 0.5),
            0 0.15em 0.4em rgba(244, 193, 79, 0.3);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotate(0deg);
        text-shadow: 0 0.04em 0.14em rgba(232, 147, 90, 0.25);
    }
}

.lead-unlock-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 6px;
}

.lead-unlock-big {
    font-family: var(--font-heading);
    font-size: 3.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin: 4px 0 2px;
    animation: leadUnlockPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lead-unlock-credit-lbl {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0 0 14px;
}

@keyframes leadUnlockPop {
    from {
        opacity: 0;
        transform: scale(0.45);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lead-unlock-h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.lead-unlock-p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 16px;
}

.credits-buy-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 0 64px;
}

.credits-balance-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-faint);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.credits-balance-pill--zero {
    background: var(--amber-tint);
    color: var(--amber-dark);
}

.credits-buy-h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin: 0 0 8px;
}

.credits-buy-sub {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 0 32px;
    line-height: 1.5;
}

.credits-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.credits-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.credits-card form {
    margin-top: auto;
    width: 100%;
}

.credits-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.credits-card--popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.credits-card-tag {
    align-self: center;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: var(--primary-faint);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.credits-card-tag--green {
    color: var(--trust-green);
    background: var(--trust-green-bg);
}

.credits-card-count {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.credits-card-unit {
    margin: 4px 0 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.credits-card-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}

.credits-card-save {
    font-size: 0.8rem;
    color: var(--trust-green);
    margin: 0 0 16px;
    min-height: 1.2em;
}

.credits-card-save--muted {
    color: transparent;
    user-select: none;
}

.credits-buy-footnote {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 48px;
}

.credits-earn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.credits-earn-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.credits-earn-h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.credits-earn-p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 16px;
}

.credits-earn-link {
    margin-top: 12px;
    font-size: 0.9rem;
}

.credits-earn-link a {
    color: var(--primary);
    font-weight: 600;
}

.credits-copy-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

.credits-copy-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-8);
    font-size: 0.85rem;
    background: var(--surface);
}

.cps-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.cps-kicker--in {
    opacity: 1;
    transform: none;
}

.cps-head--pop {
    opacity: 0;
    transform: scale(0.52);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cps-head--pop.cps-head--show {
    opacity: 1;
    transform: scale(1);
}

.cps-head--land {
    animation: cpsHeadLand 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cpsHeadLand {
    from {
        opacity: 0.65;
        transform: scale(0.58);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cps-head--land {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cps-kicker {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.cps-wrap {
    max-width: 520px;
    margin: 48px auto 80px;
    text-align: center;
    position: relative;
    padding: 32px 20px;
}

.cps-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(232, 147, 90, 0.2) 0, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(43, 76, 140, 0.12) 0, transparent 40%);
}

.cps-head {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1;
    position: relative;
}

.cps-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 8px 0 8px;
}

.cps-package {
    font-weight: 600;
    margin: 0 0 16px;
}

.cps-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 28px;
}

.cps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.credits-welcome-page {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px var(--page-pad);
}

.cw-wrap {
    max-width: 440px;
    text-align: center;
}

.cw-gift {
    margin: 0 auto 24px;
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 600ms ease, transform 600ms ease;
}

.cw-gift-emoji {
    font-size: 4.5rem;
    line-height: 1;
    display: block;
}

.cw-gift--in {
    opacity: 1;
    transform: scale(1);
}

.cw-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 0 0 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.cw-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.cw-big-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 500ms ease, transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cw-big-num--show {
    opacity: 1;
    transform: scale(1);
}

.cw-credit-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.cw-body {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.55;
    margin: 0 0 12px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.cw-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 28px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.cw-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.cw-fade {
    opacity: 1 !important;
    transform: none !important;
}

.ext-review-page {
    max-width: 520px;
    margin: 32px auto 64px;
    padding: 0 20px;
}

.ext-review-brand {
    text-align: center;
    margin-bottom: 20px;
}

.ext-review-brand a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.ext-review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.ext-review-walker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider);
}

.ext-review-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.ext-review-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-faint);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.ext-review-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.ext-review-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 14px 0 6px;
}

.ext-review-form input,
.ext-review-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.ext-small {
    font-weight: 400;
    color: var(--text-secondary);
}

.ext-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.ext-star-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--border-input);
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.ext-star-btn.ext-star--on,
.ext-star-btn:hover {
    color: var(--amber);
}

.ext-review-h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 36px 0 16px;
}

.ext-review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ext-review-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-12);
    padding: 16px;
}

.ext-review-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.ext-review-item-body {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0 0 8px;
    line-height: 1.5;
}

.ext-review-item-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Referrals (walker + owner) — airy layout, editorial type */
.referrals-page {
    width: 100%;
    min-width: 0;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-32) 0 var(--space-80);
}

.referrals-hero {
    margin-bottom: var(--space-40);
}

.referrals-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 var(--space-12);
}

.referrals-page .referrals-title {
    font-family: var(--font-body);
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 var(--space-16);
}

.referrals-page h2 {
    font-family: var(--font-body);
    color: var(--text);
}

.referrals-lede {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    max-width: 38rem;
}

.referrals-lede strong {
    font-weight: 600;
    color: var(--text-body);
}

.ref-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
    margin-bottom: var(--space-40);
}

.ref-stat-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-16);
    padding: var(--space-24) var(--space-16);
    text-align: center;
    box-shadow: var(--elevation-1);
}

.ref-stat-value {
    display: block;
    font-family: var(--font-body);
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: var(--space-8);
}

.ref-stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1.35;
}

.ref-share-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-32) var(--space-32) var(--space-28);
    margin-bottom: var(--space-40);
    box-shadow: 0 1px 2px rgba(60, 45, 30, 0.06), 0 8px 24px rgba(60, 45, 30, 0.06);
}

.ref-share-card--compact {
    padding: var(--space-24);
    margin-bottom: 0;
}

.ref-share-card-title {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-8);
    letter-spacing: -0.01em;
}

.ref-share-card-hint {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 var(--space-24);
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Single invite-style bar: URL truncates inside; copy flush right (Airbnb-like) */
.ref-copy-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--radius-12);
    border: 1px solid var(--border-input);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ref-copy-shell:hover {
    border-color: #c9bfb2;
}

.ref-copy-shell:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-faint);
}

.ref-copy-url-wrap {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    align-items: center;
    background: var(--bg);
}

.ref-copy-field {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 15px 18px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--text-body);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ref-copy-field:focus {
    outline: none;
}

.ref-copy-btn--shell {
    flex: 0 0 auto;
    align-self: stretch;
    margin: 0;
    border-radius: 0;
    padding: 0 22px;
    min-height: 48px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.ref-section-heading {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 var(--space-16);
}

.ref-table-section {
    margin-bottom: var(--space-48);
}

.ref-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(60, 45, 30, 0.05);
}

.ref-empty {
    text-align: center;
    padding: var(--space-48) var(--space-24);
    margin-top: var(--space-8);
}

.ref-empty-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 var(--space-12);
}

.ref-empty-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 auto var(--space-32);
    max-width: 28rem;
}

.ref-empty-copy {
    text-align: left;
    max-width: 100%;
}

.owner-ref-page {
    max-width: 720px;
}

.owner-redeem-note {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto var(--space-16);
    max-width: 26rem;
}

.owner-ref-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
    margin-bottom: var(--space-40);
}

.owner-ref-step {
    display: flex;
    gap: var(--space-16);
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-16);
    padding: var(--space-24);
    box-shadow: var(--elevation-1);
    min-width: 0;
}

.owner-ref-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text);
    color: var(--surface);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.owner-ref-step-body {
    min-width: 0;
}

.owner-ref-step-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 var(--space-8);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.owner-ref-step-body p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    overflow-wrap: break-word;
}

.owner-points-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-40) var(--space-32);
    text-align: center;
    margin-bottom: var(--space-32);
    box-shadow: 0 1px 2px rgba(60, 45, 30, 0.06), 0 12px 32px rgba(60, 45, 30, 0.06);
}

.owner-points-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 var(--space-12);
}

.owner-points-val {
    font-family: var(--font-body);
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.owner-points-worth {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: var(--space-12) 0 var(--space-24);
}

.owner-ref-cta {
    min-height: 48px;
    padding-left: var(--space-24);
    padding-right: var(--space-24);
    border-radius: var(--radius-12);
    font-weight: 600;
}

.owner-badge {
    border-radius: var(--radius-xl);
    padding: var(--space-24) var(--space-28);
    margin-bottom: var(--space-32);
    border: 1px solid var(--border);
}

.owner-badge-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.owner-badge--earned {
    background: var(--trust-green-bg);
    border-color: rgba(61, 153, 112, 0.35);
}

.owner-badge--muted {
    background: var(--bg);
    color: var(--text-secondary);
}

.owner-badge p {
    margin: var(--space-8) 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.ref-dash-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: var(--surface);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.ref-dash-table th,
.ref-dash-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--divider);
    vertical-align: middle;
}

.ref-dash-table th {
    background: #f3f1ec;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.ref-dash-table tbody tr:last-child td {
    border-bottom: none;
}

.ref-dash-table tbody tr:hover td {
    background: rgba(234, 240, 251, 0.35);
}

.ref-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ref-pill--blue {
    background: var(--primary-faint);
    color: var(--primary-dark);
}

.ref-pill--gray {
    background: var(--bg);
    color: var(--text-secondary);
}

.ref-pill--green {
    background: var(--trust-green-bg);
    color: var(--trust-green);
}

.owner-pt-section {
    margin-bottom: var(--space-48);
}

.owner-pt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--elevation-1);
}

.owner-pt-list li {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12) var(--space-24);
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-16) var(--space-24);
    border-bottom: 1px solid var(--divider);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.owner-pt-list li:last-child {
    border-bottom: none;
}

.owner-pt-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.owner-pt-desc {
    color: var(--text-body);
    text-align: right;
    flex: 1 1 200px;
}

@media (max-width: 960px) {
    .owner-ref-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .referrals-page {
        padding-top: var(--space-24);
        padding-bottom: var(--space-64);
    }

    .ref-stats-row {
        grid-template-columns: 1fr;
    }

    .ref-share-card {
        padding: var(--space-24);
    }

    .ref-copy-field {
        padding: 14px 14px;
        font-size: 0.78rem;
    }

    .ref-copy-btn--shell {
        padding: 0 16px;
        font-size: 0.8125rem;
    }

    .owner-pt-desc {
        text-align: left;
    }
}


/* =======================================================================
   MOBILE LAYOUT (mobile-v1) — drawer nav, responsive shells, grids
   ======================================================================= */

.nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(26, 26, 26, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.nav-drawer-backdrop--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 250;
    background: var(--surface);
    box-shadow: var(--elevation-3);
    transform: translateX(-100%);
    transition: transform 220ms ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}

.nav-mobile-drawer--open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.nav-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.nav-drawer-close:hover {
    background: var(--bg);
    color: var(--text);
}

.nav-drawer-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 140, 0.2);
}

.nav-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 28px;
}

.nav-drawer-nav .nav-primary-link {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    border-bottom: 1px solid var(--divider);
    text-decoration: none;
}

.nav-drawer-nav .nav-primary-link:hover {
    color: var(--primary);
    background: var(--bg);
}

.nav-drawer-nav .nav-primary-link.active {
    color: var(--primary);
    background: var(--primary-faint);
}

body.nav-drawer-open {
    overflow: hidden;
}

@media (min-width: 961px) {
    .nav-menu-btn {
        display: none !important;
    }

    .nav-drawer-backdrop {
        display: none !important;
    }

    .nav-mobile-drawer {
        display: none !important;
    }

    body.nav-drawer-open {
        overflow: auto;
    }
}

@media (max-width: 960px) {
    :root {
        --page-pad: 16px;
        --navbar-pad-y: 12px;
    }

    .nav-menu-btn {
        display: inline-flex;
    }

    .nav-center {
        display: none;
    }

    .nav-shell {
        gap: 10px;
    }

    .nav-brand {
        font-size: 1.28rem;
    }

    .nav-right {
        flex: 0 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .nav-dropdown-mobile-only {
        display: block;
    }

    .nav-credits-link,
    .nav-credit-pill {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .nav-user-name {
        display: none;
    }

    .nav-user-trigger {
        padding: 5px 8px 5px 6px;
    }
}

@media (max-width: 900px) {
    .lead-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-tile-group.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-bar {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 10px;
        align-items: stretch;
    }

    .filter-bar .btn {
        width: 100%;
        margin-top: 4px;
    }

    .filter-field--zip,
    .filter-field--schedule {
        width: auto;
        flex: 1 1 130px;
        min-width: 0;
        max-width: 100%;
    }

    .filter-field--zip input,
    .filter-field--schedule input {
        width: 100%;
        min-width: 0;
    }

    .filter-bar select {
        flex: 1 1 120px;
        min-width: 0;
        max-width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: left;
    }

    .footer-copy-col {
        text-align: left;
    }

    .footer-nav {
        flex-direction: column;
        gap: 28px;
    }

    .site-footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .settings-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }

    .settings-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .settings-nav-label {
        width: 100%;
        padding-left: 0;
    }

    .settings-nav-item {
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
    }

    .wm-settings-forms .form-row {
        grid-template-columns: 1fr;
    }

    .wm-settings-forms .settings-section {
        padding: 24px 20px 28px;
    }

    .profile-stats {
        flex-direction: column;
    }

    .profile-stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .profile-stat:last-child {
        border-bottom: none;
    }

    .credit-indicator-label {
        display: none;
    }
}

@media (max-width: 860px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 32px;
        margin-bottom: 48px;
    }

    .profile-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: clamp(1.65rem, 7vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .section-subtitle {
        font-size: 0.98rem;
    }

    .lead-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-card,
    .auth-form {
        padding: 32px 22px;
        border-radius: var(--radius-md);
    }

    .auth-form--wide .role-picker {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .icon-tile-group.cols-3 {
        grid-template-columns: 1fr;
    }

    .cw-big-num {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .cw-title {
        font-size: 1.45rem;
    }
}

.ext-thanks-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px var(--page-pad);
    background: var(--bg);
}

.ext-thanks-wrap {
    max-width: 480px;
    text-align: center;
}

.ext-thanks-h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--primary);
    margin: 0 0 16px;
    line-height: 1.2;
}

.ext-thanks-p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   MAP FILTER BAR (Browse Walkers + Browse Leads)
   ============================================================ */

.wm-filter-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.wm-filter-bar--active {
    display: flex;
}

.wm-filter-bar-label {
    flex: 1;
    min-width: 0;
}

.wm-filter-reset {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    transition: background 140ms;
}

.wm-filter-reset:hover,
.wm-filter-reset:focus-visible {
    background: var(--bg);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================================
   PROFILE HERO — split layout (left info + right gallery)
   ============================================================ */

/* Allow the right panel to bleed to the card edge */
.ph2-hero-inner { overflow: hidden; }

.ph2-hero-layout {
    display: flex;
    align-items: stretch;
    margin: -36px -40px;
}

.ph2-hero-left {
    flex: 1;
    min-width: 0;
    padding: 36px 40px;
}

.ph2-hero-right {
    flex: 0 0 300px;
    border-left: 1px solid var(--border);
    overflow: hidden;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    background: var(--surface);
}

.ph2-gallery-right-grid {
    display: grid;
    grid-auto-rows: auto;
    gap: 2px;
}

.ph2-gallery-right-cell {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    aspect-ratio: 1;
}

.ph2-gallery-right-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 200ms ease;
    cursor: pointer;
}

.ph2-gallery-right-cell img:hover,
.ph2-gallery-right-cell img:focus-visible {
    transform: scale(1.04);
    outline: none;
}

.ph2-gallery-right-cell img:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.ph2-gallery-right-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    padding: 0;
    width: 100%;
    transition: background 140ms;
}

.ph2-gallery-right-more:hover,
.ph2-gallery-right-more:focus-visible {
    background: rgba(0, 0, 0, 0.62);
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.ph2-gallery-right-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 0;
}

.ph2-gallery-right-add:hover {
    color: var(--primary);
}

/* Mobile: gallery stacks below info */
@media (max-width: 860px) {
    .ph2-hero-layout {
        flex-direction: column;
        margin: -24px -20px;
    }
    .ph2-hero-left {
        padding: 24px 20px;
    }
    .ph2-hero-right {
        flex: 0 0 auto;
        border-left: none;
        border-top: 1px solid var(--border);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        min-height: 180px;
    }
    .ph2-gallery-right-grid {
        min-height: 0;
    }
}

/* ============================================================
   GALLERY MODAL / LIGHTBOX
   ============================================================ */

.ph2-gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
    overflow-y: auto;
}

.ph2-gallery-modal[hidden] {
    display: none;
}

.ph2-gallery-modal-inner {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 860px;
    width: 100%;
    padding: 28px 28px 32px;
    position: relative;
    margin-bottom: 32px;
}

.ph2-gallery-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 8px;
    line-height: 1;
}

.ph2-gallery-modal-close:hover,
.ph2-gallery-modal-close:focus-visible {
    background: var(--bg);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.ph2-gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.ph2-gallery-modal-cell {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg);
}

.ph2-gallery-modal-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ph2-gallery-modal-add-cell {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
}

@media (max-width: 600px) {
    .ph2-gallery-modal { padding: 16px 8px; }
    .ph2-gallery-modal-inner { padding: 20px 16px 24px; }
    .ph2-gallery-modal-grid { grid-template-columns: repeat(2, 1fr); }
}
