@import "bootstrap/dist/css/bootstrap.css";

/* ==========================================================================
   Hamar Padosi design system
   --------------------------------------------------------------------------
   1. Design tokens (the ONLY place brand colours are defined)
   2. Bootstrap bridge (re-points Bootstrap's palette at the tokens)
   3. Bootstrap component overrides (buttons, forms, cards, tables, ...)
   4. Brand + application shell (sidebar, topbar, breadcrumbs, bottom tabs)
   5. Shared components (hp-*)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --hp-primary: #246b50;
    --hp-primary-rgb: 36, 107, 80;
    --hp-primary-strong: #1b5540;
    --hp-primary-soft: #e5f2e9;
    --hp-primary-softer: #f2f8f4;

    --hp-bg: #faf8f2;
    --hp-bg-rgb: 250, 248, 242;
    --hp-surface: #ffffff;
    --hp-neutral: #f0ede3;

    --hp-text: #26332c;
    --hp-text-rgb: 38, 51, 44;
    --hp-muted: #5c6b62;
    --hp-border: #e6e2d6;

    --hp-accent: #e8a23a;
    --hp-accent-rgb: 232, 162, 58;
    --hp-accent-soft: #fbf0da;
    --hp-accent-ink: #8a5608;

    --hp-danger: #b3261e;
    --hp-danger-rgb: 179, 38, 30;
    --hp-danger-soft: #fceceb;

    --hp-info: #24608f;
    --hp-info-rgb: 36, 96, 143;
    --hp-info-soft: #e6f0f8;

    --hp-radius: 1rem;
    --hp-radius-sm: 0.7rem;
    --hp-shadow-sm: 0 1px 2px rgba(38, 51, 44, 0.05), 0 4px 14px rgba(38, 51, 44, 0.05);
    --hp-shadow-md: 0 14px 34px rgba(38, 51, 44, 0.12);

    --hp-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --hp-sidebar-width: 16.5rem;
    --hp-topbar-height: 4rem;
}

/* 2. Bootstrap bridge ------------------------------------------------------ */
:root {
    --bs-font-sans-serif: var(--hp-font);
    --bs-body-font-family: var(--hp-font);
    --bs-body-bg: var(--hp-bg);
    --bs-body-bg-rgb: var(--hp-bg-rgb);
    --bs-body-color: var(--hp-text);
    --bs-body-color-rgb: var(--hp-text-rgb);
    --bs-secondary-color: var(--hp-muted);
    --bs-border-color: var(--hp-border);
    --bs-border-radius: var(--hp-radius-sm);
    --bs-border-radius-lg: var(--hp-radius);

    --bs-primary: var(--hp-primary);
    --bs-primary-rgb: var(--hp-primary-rgb);
    --bs-success: var(--hp-primary);
    --bs-success-rgb: var(--hp-primary-rgb);
    --bs-warning: var(--hp-accent);
    --bs-warning-rgb: var(--hp-accent-rgb);
    --bs-danger: var(--hp-danger);
    --bs-danger-rgb: var(--hp-danger-rgb);
    --bs-info: var(--hp-info);
    --bs-info-rgb: var(--hp-info-rgb);
    --bs-light-rgb: 240, 237, 227;
    --bs-dark-rgb: var(--hp-text-rgb);

    --bs-link-color: var(--hp-primary);
    --bs-link-color-rgb: var(--hp-primary-rgb);
    --bs-link-hover-color: var(--hp-primary-strong);
    --bs-link-hover-color-rgb: 27, 85, 64;
    --bs-focus-ring-color: rgba(var(--hp-primary-rgb), 0.25);
}

body {
    font-family: var(--hp-font);
    background: var(--hp-bg);
    color: var(--hp-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.01em; }

:focus-visible {
    outline: 2px solid var(--hp-accent);
    outline-offset: 2px;
}

.text-warning { color: var(--hp-accent-ink) !important; }

/* 3. Bootstrap component overrides ---------------------------------------- */
.btn {
    --bs-btn-border-radius: var(--hp-radius-sm);
    --bs-btn-font-weight: 600;
}

.btn-primary,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--hp-primary);
    --bs-btn-border-color: var(--hp-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hp-primary-strong);
    --bs-btn-hover-border-color: var(--hp-primary-strong);
    --bs-btn-focus-shadow-rgb: var(--hp-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--hp-primary-strong);
    --bs-btn-active-border-color: var(--hp-primary-strong);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--hp-primary);
    --bs-btn-disabled-border-color: var(--hp-primary);
}

.btn-outline-primary,
.btn-outline-success {
    --bs-btn-color: var(--hp-primary);
    --bs-btn-border-color: var(--hp-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hp-primary);
    --bs-btn-hover-border-color: var(--hp-primary);
    --bs-btn-focus-shadow-rgb: var(--hp-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--hp-primary);
    --bs-btn-active-border-color: var(--hp-primary);
    --bs-btn-disabled-color: var(--hp-primary);
    --bs-btn-disabled-border-color: var(--hp-primary);
}

.btn-outline-secondary {
    --bs-btn-color: var(--hp-text);
    --bs-btn-border-color: var(--hp-border);
    --bs-btn-hover-color: var(--hp-primary-strong);
    --bs-btn-hover-bg: var(--hp-primary-soft);
    --bs-btn-hover-border-color: var(--hp-primary-soft);
    --bs-btn-active-color: var(--hp-primary-strong);
    --bs-btn-active-bg: var(--hp-primary-soft);
    --bs-btn-active-border-color: var(--hp-primary-soft);
    --bs-btn-disabled-color: var(--hp-muted);
    --bs-btn-disabled-border-color: var(--hp-border);
}

.btn-dark {
    --bs-btn-bg: var(--hp-text);
    --bs-btn-border-color: var(--hp-text);
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
}

.btn-outline-dark {
    --bs-btn-color: var(--hp-text);
    --bs-btn-border-color: var(--hp-text);
    --bs-btn-hover-bg: var(--hp-text);
    --bs-btn-hover-border-color: var(--hp-text);
    --bs-btn-active-bg: var(--hp-text);
    --bs-btn-active-border-color: var(--hp-text);
}

.btn-light {
    --bs-btn-bg: var(--hp-surface);
    --bs-btn-border-color: var(--hp-border);
    --bs-btn-hover-bg: var(--hp-primary-softer);
    --bs-btn-hover-border-color: var(--hp-border);
    --bs-btn-active-bg: var(--hp-primary-soft);
    --bs-btn-active-border-color: var(--hp-border);
}

.btn-danger {
    --bs-btn-bg: var(--hp-danger);
    --bs-btn-border-color: var(--hp-danger);
    --bs-btn-hover-bg: #8c1d18;
    --bs-btn-hover-border-color: #8c1d18;
    --bs-btn-active-bg: #8c1d18;
    --bs-btn-active-border-color: #8c1d18;
    --bs-btn-focus-shadow-rgb: var(--hp-danger-rgb);
    --bs-btn-disabled-bg: var(--hp-danger);
    --bs-btn-disabled-border-color: var(--hp-danger);
}

.btn-outline-danger {
    --bs-btn-color: var(--hp-danger);
    --bs-btn-border-color: var(--hp-danger);
    --bs-btn-hover-bg: var(--hp-danger);
    --bs-btn-hover-border-color: var(--hp-danger);
    --bs-btn-active-bg: var(--hp-danger);
    --bs-btn-active-border-color: var(--hp-danger);
    --bs-btn-focus-shadow-rgb: var(--hp-danger-rgb);
}

.btn-link { --bs-btn-color: var(--hp-primary); --bs-btn-hover-color: var(--hp-primary-strong); }

.form-control,
.form-select {
    border-color: var(--hp-border);
    border-radius: var(--hp-radius-sm);
    background-color: var(--hp-surface);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--hp-primary-rgb), 0.18);
}

.form-label { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; }

.form-check-input:checked {
    background-color: var(--hp-primary);
    border-color: var(--hp-primary);
}

.form-check-input:focus {
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--hp-primary-rgb), 0.18);
}

.card {
    --bs-card-border-color: var(--hp-border);
    --bs-card-border-radius: var(--hp-radius);
    --bs-card-inner-border-radius: calc(var(--hp-radius) - 1px);
    --bs-card-bg: var(--hp-surface);
}

.shadow-sm { box-shadow: var(--hp-shadow-sm) !important; }

.badge { border-radius: 999px; font-weight: 700; padding: 0.4em 0.75em; }

.alert {
    --bs-alert-border-radius: var(--hp-radius-sm);
    --bs-alert-padding-y: 0.8rem;
}
.alert-success { --bs-alert-color: var(--hp-primary-strong); --bs-alert-bg: var(--hp-primary-soft); --bs-alert-border-color: #c6e0d0; }
.alert-warning { --bs-alert-color: var(--hp-accent-ink); --bs-alert-bg: var(--hp-accent-soft); --bs-alert-border-color: #f2dcae; }
.alert-danger { --bs-alert-color: #8c1d18; --bs-alert-bg: var(--hp-danger-soft); --bs-alert-border-color: #f2c9c6; }
.alert-info { --bs-alert-color: var(--hp-info); --bs-alert-bg: var(--hp-info-soft); --bs-alert-border-color: #c9dcec; }
.alert-secondary { --bs-alert-color: var(--hp-text); --bs-alert-bg: var(--hp-neutral); --bs-alert-border-color: var(--hp-border); }

.table {
    --bs-table-color: var(--hp-text);
    --bs-table-border-color: var(--hp-border);
    --bs-table-hover-bg: var(--hp-primary-softer);
    --bs-table-hover-color: var(--hp-text);
}
.table-light {
    --bs-table-bg: var(--hp-primary-softer);
    --bs-table-color: var(--hp-muted);
    --bs-table-border-color: var(--hp-border);
}
.table > thead.table-light th,
.table-light > tr > th,
thead.table-light th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    white-space: nowrap;
}
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:first-child { border-top-left-radius: calc(var(--hp-radius) - 1px); }
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:last-child { border-top-right-radius: calc(var(--hp-radius) - 1px); }

.pagination {
    --bs-pagination-color: var(--hp-primary);
    --bs-pagination-hover-color: var(--hp-primary-strong);
    --bs-pagination-hover-bg: var(--hp-primary-softer);
    --bs-pagination-focus-color: var(--hp-primary-strong);
    --bs-pagination-focus-bg: var(--hp-primary-softer);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(var(--hp-primary-rgb), 0.18);
    --bs-pagination-active-bg: var(--hp-primary);
    --bs-pagination-active-border-color: var(--hp-primary);
    --bs-pagination-border-color: var(--hp-border);
    --bs-pagination-border-radius: var(--hp-radius-sm);
}

.dropdown-menu {
    --bs-dropdown-border-color: var(--hp-border);
    --bs-dropdown-border-radius: var(--hp-radius-sm);
    --bs-dropdown-link-active-bg: var(--hp-primary);
    --bs-dropdown-link-hover-bg: var(--hp-primary-softer);
    --bs-dropdown-padding-y: 0.4rem;
    box-shadow: var(--hp-shadow-md);
}

.modal-content { border: 0; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow-md); }
.modal-header, .modal-footer { border-color: var(--hp-border); }
.offcanvas { --bs-offcanvas-bg: var(--hp-surface); }
.progress { --bs-progress-bg: var(--hp-primary-soft); --bs-progress-bar-bg: var(--hp-primary); }

/* 4. Brand + application shell ------------------------------------------- */
.hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--hp-text);
    line-height: 1.1;
}
.hp-brand:hover { color: var(--hp-text); }
.hp-brand-mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.hp-logo-bg { fill: var(--hp-primary); }
.hp-logo-house { fill: #fff; }
.hp-logo-dot { fill: var(--hp-accent); }
.hp-brand-text { display: flex; flex-direction: column; }
.hp-brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.hp-brand-tag { font-size: 0.68rem; font-weight: 600; color: var(--hp-muted); margin-top: 0.15rem; }
.hp-brand-inverse,
.hp-brand-inverse:hover { color: #fff; }
.hp-brand-inverse .hp-brand-tag { color: rgba(255, 255, 255, 0.75); }
.hp-brand-inverse .hp-logo-bg { fill: #fff; }
.hp-brand-inverse .hp-logo-house { fill: var(--hp-primary); }

.hp-shell { display: flex; align-items: flex-start; min-height: 100vh; }

.hp-sidebar {
    width: var(--hp-sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0.9rem;
    background: var(--hp-surface);
    border-right: 1px solid var(--hp-border);
}
.hp-sidebar .hp-brand { padding: 0.15rem 0.5rem 1.1rem; }

.hp-nav { display: flex; flex-direction: column; gap: 0.2rem; overflow-y: auto; flex: 1; }
.hp-nav-label {
    padding: 0.25rem 0.75rem;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp-muted);
}
.hp-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--hp-radius-sm);
    color: var(--hp-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}
.hp-nav-link svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--hp-muted); }
.hp-nav-link:hover { background: var(--hp-primary-softer); color: var(--hp-text); }
.hp-nav-link.is-active { background: var(--hp-primary-soft); color: var(--hp-primary-strong); }
.hp-nav-link.is-active svg { color: var(--hp-primary); }
.hp-nav-badge {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--hp-accent);
    color: var(--hp-text);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hp-sidebar-footer { border-top: 1px solid var(--hp-border); padding-top: 0.9rem; margin-top: 0.75rem; }
.hp-user-card { display: flex; align-items: center; gap: 0.65rem; padding: 0.35rem 0.5rem 0.75rem; }
.hp-user-card-name { font-weight: 700; font-size: 0.88rem; line-height: 1.2; }
.hp-user-card-role { font-size: 0.74rem; color: var(--hp-muted); text-transform: capitalize; }
.hp-nav-button { width: 100%; border: 0; background: none; text-align: left; }

.hp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

.hp-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: var(--hp-topbar-height);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background: rgba(var(--hp-bg-rgb), 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hp-border);
}
.hp-topbar-spacer { flex: 1; }
.hp-icon-button {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface);
    color: var(--hp-text);
}
.hp-icon-button svg { width: 1.25rem; height: 1.25rem; }
.hp-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border: 1px solid var(--hp-border);
    border-radius: 999px;
    background: var(--hp-surface);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hp-text);
}

.hp-content { flex: 1; padding: 1.25rem 1rem 1.5rem; }
.hp-content-body > .container-fluid { padding: 0 !important; margin-left: 0; }
.hp-page-head { margin-bottom: 1.25rem; }
.hp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.35rem;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--hp-muted);
}
.hp-breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; }
.hp-breadcrumb a { color: inherit; text-decoration: none; }
.hp-breadcrumb a:hover { color: var(--hp-primary); text-decoration: underline; }
.hp-breadcrumb svg { width: 0.85rem; height: 0.85rem; opacity: 0.7; }
.hp-breadcrumb [aria-current="page"] { color: var(--hp-text); font-weight: 700; }
.hp-page-title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }

@media (min-width: 992px) {
    .hp-content { padding: 1.75rem 2rem 2rem; }
    .hp-topbar { padding: 0 2rem; }
}

/* Mobile app-style bottom tab bar (customer / provider, phones) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--hp-surface);
    border-top: 1px solid var(--hp-border);
    box-shadow: 0 -6px 20px rgba(var(--hp-text-rgb), 0.06);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--hp-muted);
    padding: 0.45rem 0;
}
.bottom-nav .nav-link.active { color: var(--hp-primary); }
.bottom-nav svg { width: 22px; height: 22px; }
@media (min-width: 576px) { .bottom-nav { display: none; } }
.app-content { padding-bottom: 1.5rem; }
@media (max-width: 575.98px) { .app-content { padding-bottom: 4.5rem; } }

/* 5. Shared components ---------------------------------------------------- */
.hp-container { max-width: 64rem; margin-inline: auto; }
.hp-container-narrow { max-width: 44rem; margin-inline: auto; }

.hp-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hp-card-hover:hover { box-shadow: var(--hp-shadow-md); transform: translateY(-2px); }

.hp-hero {
    background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-strong) 100%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
}

.hp-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    background: var(--hp-primary-soft);
    color: var(--hp-primary-strong);
}
.hp-avatar-lg { width: 4.25rem; height: 4.25rem; font-size: 1.5rem; }
.hp-hero .hp-avatar { background: rgba(255, 255, 255, 0.18); color: #fff; }

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hp-badge::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.hp-badge-approved { color: var(--hp-primary-strong); background: var(--hp-primary-soft); }
.hp-badge-pending { color: var(--hp-accent-ink); background: var(--hp-accent-soft); }
.hp-badge-rejected { color: var(--hp-danger); background: var(--hp-danger-soft); }
.hp-hero .hp-badge-approved { background: rgba(255, 255, 255, 0.92); }

.hp-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 576px) { .hp-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hp-stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 576px) { .hp-stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hp-stat { background: var(--hp-surface); border: 1px solid var(--hp-border); border-radius: var(--hp-radius); padding: 1rem; }
.hp-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}
.hp-stat-value { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.hp-stat-label { font-size: 0.78rem; color: var(--hp-muted); font-weight: 600; }

.hp-quick-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem;
    text-decoration: none;
    color: var(--hp-text);
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hp-quick-link:hover { color: var(--hp-text); box-shadow: var(--hp-shadow-md); transform: translateY(-2px); }
.hp-quick-link-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-primary-soft);
    color: var(--hp-primary);
}
.hp-quick-link-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 0.15rem; }
.hp-quick-link-desc { font-size: 0.78rem; color: var(--hp-muted); margin-bottom: 0; }
.hp-quick-link-arrow { margin-left: auto; color: var(--hp-muted); flex-shrink: 0; transition: transform 0.15s ease; }
.hp-quick-link:hover .hp-quick-link-arrow { transform: translateX(3px); color: var(--hp-text); }
.hp-quick-link-badge {
    margin-left: auto;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--hp-accent);
    color: var(--hp-text);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hp-section-title {
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hp-muted);
}

.hp-checklist-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; font-size: 0.85rem; }
.hp-checklist-item + .hp-checklist-item { border-top: 1px solid var(--hp-border); }
.hp-check-dot {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.hp-check-dot.is-done { background: var(--hp-primary-soft); color: var(--hp-primary); }
.hp-check-dot.is-todo { background: var(--hp-neutral); color: var(--hp-muted); }

.hp-empty { text-align: center; padding: 2.5rem 1rem; color: var(--hp-muted); }
.hp-empty-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-primary-soft);
    color: var(--hp-primary);
}

.hp-list-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 0; }
.hp-list-row + .hp-list-row { border-top: 1px solid var(--hp-border); }

.hp-status-pill,
.hp-pay-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}
.hp-status-requested,
.hp-pay-pending { background: var(--hp-accent-soft); color: var(--hp-accent-ink); }
.hp-status-accepted,
.hp-status-in_progress { background: var(--hp-info-soft); color: var(--hp-info); }
.hp-status-completed,
.hp-pay-paid { background: var(--hp-primary-soft); color: var(--hp-primary-strong); }
.hp-status-rejected,
.hp-status-cancelled { background: var(--hp-danger-soft); color: var(--hp-danger); }

.hp-flow-steps { display: flex; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; }
.hp-flow-steps span { display: flex; align-items: center; gap: 0.35rem; color: var(--hp-muted); }
.hp-flow-steps span.is-active { color: var(--hp-primary); }
.hp-flow-steps span.is-done { color: var(--hp-primary-strong); }
.hp-flow-steps span::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; display: inline-block; }

.hp-provider-card { padding: 1rem; }
.hp-provider-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; }
.hp-provider-name { display: flex; align-items: center; gap: 0.65rem; }
.hp-price-badge { font-weight: 800; white-space: nowrap; }
.hp-price-badge small { font-weight: 500; color: var(--hp-muted); }

.hp-option-card {
    display: block;
    height: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background: var(--hp-surface);
    cursor: pointer;
}
.btn-check:checked + .hp-option-card { border-color: var(--hp-primary); background: var(--hp-primary-soft); }
.hp-option-icon { font-size: 1.3rem; }
.hp-option-title { display: block; margin-top: 0.35rem; font-weight: 800; font-size: 0.88rem; }
.hp-option-desc { display: block; font-size: 0.76rem; color: var(--hp-muted); }

/* Category / service tiles (dashboard, home, category listing) */
.hp-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem;
    border: 1px solid var(--hp-border);
    border-radius: 1.15rem;
    background: var(--hp-surface);
    color: var(--hp-text);
    text-decoration: none;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.hp-tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--hp-shadow-md); color: var(--hp-text); }
.hp-tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 0.9rem;
    background: var(--hp-primary-soft);
    font-size: clamp(1.9rem, 5vw, 2.6rem);
}
.hp-tile-media-wide { aspect-ratio: 16 / 10; }
@media (max-width: 575.98px) {
    .hp-tile-media:not(.hp-tile-media-wide) { aspect-ratio: 5 / 4; }
}
.hp-tile-body { display: flex; flex-direction: column; flex-grow: 1; padding: 0.75rem 0.5rem 0.5rem; }
.hp-tile-name { margin: 0; font-size: 0.9rem; font-weight: 800; }
.hp-tile-meta { margin: 0.15rem 0 0; font-size: 0.76rem; color: var(--hp-muted); }
.hp-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--hp-primary);
}

.hp-eyebrow { color: var(--hp-primary); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Floating bottom action bar, sitting above the mobile bottom tab bar */
.hp-sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    margin: 1.5rem 0 0;
    padding: 0.75rem 0;
    background: var(--hp-bg);
    border-top: 1px solid var(--hp-border);
}
@media (max-width: 575.98px) {
    .hp-sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 3.25rem;
        margin: 0;
        padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
        background: var(--hp-surface);
    }
}
.hp-sticky-bar-inner { padding-inline: 0; }

/* Tone helpers for icon chips (backgrounds + text stay in token space) */
.hp-tone-primary { background: var(--hp-primary-soft); color: var(--hp-primary); }
.hp-tone-accent { background: var(--hp-accent-soft); color: var(--hp-accent-ink); }
.hp-tone-info { background: var(--hp-info-soft); color: var(--hp-info); }
.hp-tone-danger { background: var(--hp-danger-soft); color: var(--hp-danger); }
.hp-tone-neutral { background: var(--hp-neutral); color: var(--hp-muted); }

/* 6. Public website + sign-in screens ------------------------------------- */
.hp-public-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(var(--hp-bg-rgb), 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hp-border);
}
.hp-public-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--hp-topbar-height); }
.hp-public-nav .hp-brand-tag { display: none; }
@media (min-width: 768px) { .hp-public-nav .hp-brand-tag { display: block; } }
.hp-public-link { color: var(--hp-text); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.hp-public-link:hover { color: var(--hp-primary); }

.hp-footer { margin-top: 3rem; padding: 2.5rem 0 2rem; background: var(--hp-surface); border-top: 1px solid var(--hp-border); }
.hp-footer a { color: var(--hp-muted); text-decoration: none; }
.hp-footer a:hover { color: var(--hp-primary); }
.hp-footer .hp-brand, .hp-footer .hp-brand:hover { color: var(--hp-text); }
.hp-footer-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hp-muted); margin-bottom: 0.6rem; }

.hp-hero-public {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 3rem;
    background:
        radial-gradient(circle at 88% 8%, var(--hp-primary-soft) 0, transparent 45%),
        radial-gradient(circle at 4% 92%, var(--hp-accent-soft) 0, transparent 38%),
        var(--hp-bg);
}
@media (min-width: 992px) { .hp-hero-public { padding: 5rem 0 4.5rem; } }
.hp-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hp-primary-strong);
}
.hp-hero-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--hp-accent); }
.hp-hero-title { font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2.5rem, 6vw, 4.25rem); }
.hp-hero-title span { color: var(--hp-primary); }
.hp-hero-lead { font-size: 1.1rem; color: var(--hp-muted); max-width: 34rem; }

.hp-mock { position: relative; max-width: 22rem; margin-inline: auto; padding: 1rem 0 2.5rem; }
.hp-mock-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
    box-shadow: var(--hp-shadow-md);
}
.hp-mock-card + .hp-mock-card { margin-top: -0.25rem; }
.hp-mock-card.is-offset { margin-left: 2.25rem; margin-top: 0.85rem; }
.hp-mock-card.is-offset-left { margin-right: 2.25rem; margin-top: 0.85rem; }

.hp-step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: var(--hp-primary);
    color: #fff;
}
.hp-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--hp-primary-soft);
}
.hp-cta-band {
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-strong) 100%);
}
.hp-cta-band .btn-light { color: var(--hp-primary-strong); font-weight: 800; }

/* Auth (split screen) */
.hp-auth-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, var(--hp-primary) 0%, var(--hp-primary-strong) 100%);
}
.hp-auth-panel::before,
.hp-auth-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.hp-auth-panel::before { width: 22rem; height: 22rem; right: -8rem; top: -6rem; }
.hp-auth-panel::after { width: 16rem; height: 16rem; left: -6rem; bottom: -5rem; background: rgba(var(--hp-accent-rgb), 0.18); }
.hp-auth-panel > * { position: relative; z-index: 1; }
.hp-auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.hp-auth-points li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.hp-auth-points li::before {
    content: "\2713";
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    background: var(--hp-accent);
    color: var(--hp-text);
}
.hp-auth-form-panel { background: var(--hp-bg); }
.hp-auth-card { padding: 1.75rem; box-shadow: var(--hp-shadow-sm); }
.hp-auth-admin { background: linear-gradient(160deg, var(--hp-primary-strong) 0%, #123a2b 100%); }
