/* =====================================================================
   Helpa Platform — Custom Styles
   Palette: official brand navy + gold, extracted directly from the
   Helpa logo (assets/img/865460.jpg):
     Navy: #052755   Gold: #ffa302
   ===================================================================== */

:root {
    --helpa-primary: #052755;
    --helpa-primary-dark: #03162f;
    --helpa-primary-light: #0d3d7a;
    --helpa-accent: #ffa302;
    --helpa-accent-dark: #d98700;
    --helpa-bg-soft: #f7f8fa;
    --helpa-text-dark: #0d1b2a;
    --helpa-font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --helpa-font-display: 'Fraunces', Georgia, serif;
}

body {
    font-family: var(--helpa-font-body);
    background-color: var(--helpa-bg-soft);
    color: var(--helpa-text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4,
.navbar-brand,
.hero-section h1,
.hero-slider h1 {
    font-family: var(--helpa-font-display);
    letter-spacing: -0.01em;
}

.btn {
    border-radius: 50rem;
    font-family: var(--helpa-font-body);
}

/* Language switcher — single pill track instead of separate boxes */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50rem;
    padding: 3px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.lang-toggle::-webkit-scrollbar {
    display: none;
}
.lang-toggle-item {
    display: inline-block;
    padding: 0.32rem 0.7rem;
    border-radius: 50rem;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-toggle-item:hover {
    color: #ffffff;
}
.lang-toggle-item.active {
    background: var(--helpa-accent);
    color: #2b1d00;
}

main {
    flex: 1;
}

/* Navbar */
.helpa-navbar {
    background: linear-gradient(135deg, var(--helpa-primary-dark), var(--helpa-primary));
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.helpa-navbar .nav-link {
    color: rgba(255,255,255,0.9);
}
.helpa-navbar .nav-link:hover {
    color: #ffffff;
}

/* Footer */
.helpa-footer {
    background-color: var(--helpa-primary-dark);
    color: rgba(255,255,255,0.85);
}
.helpa-footer h5, .helpa-footer h6 {
    color: #ffffff;
}
.footer-social-icons a {
    color: rgba(255,255,255,0.75);
    font-size: 1.3rem;
    transition: color 0.15s ease, transform 0.15s ease;
}
.footer-social-icons a:hover {
    color: var(--helpa-accent);
    transform: translateY(-2px);
}

/* Hero section (static fallback / non-slider pages) */
.hero-section {
    background: linear-gradient(135deg, var(--helpa-primary-dark) 0%, var(--helpa-primary) 70%, var(--helpa-primary-light) 100%);
    color: #fff;
    padding: 5rem 0 6rem;
}
.hero-section h1 {
    font-weight: 600;
    letter-spacing: -0.02em;
}
.hero-cta .btn-accent {
    background-color: var(--helpa-accent);
    border-color: var(--helpa-accent);
    color: #2b1d00;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(255,163,2,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.hero-cta .btn-accent:hover {
    background-color: var(--helpa-accent-dark);
    border-color: var(--helpa-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255,163,2,0.42);
}
.hero-cta .btn-outline-light {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(255,255,255,0.55);
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.hero-cta .btn-outline-light:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}

/* =====================================================================
   Hero Image Slider — used on the landing page and as a slim banner
   on dashboard headers. Pure CSS/JS crossfade, no external library.
   ===================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}
.hero-slider .slide.active {
    opacity: 1;
}
.hero-slider .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,39,85,0.88) 0%, rgba(5,39,85,0.65) 55%, rgba(5,39,85,0.35) 100%);
    z-index: 1;
}
/* Announcement slides have no photo, so they don't need the photo-
   darkening overlay — they get their own solid gradient background
   instead, matching the announcement's chosen style. */
.hero-slider .slide.slide-announce::after {
    content: none;
}
.hero-slider .slide-announce-promo {
    background: linear-gradient(135deg, var(--helpa-primary-dark), var(--helpa-primary));
}
.hero-slider .slide-announce-info {
    background: linear-gradient(135deg, #0d3d7a, #1f6fc4);
}
.hero-slider .slide-announce-warning {
    background: linear-gradient(135deg, #8a5a00, var(--helpa-accent-dark));
}
.hero-announce-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.5rem;
}
.hero-announce-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--helpa-accent);
    text-decoration: none;
}
.hero-announce-link:hover {
    text-decoration: underline;
}
.hero-slider .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0;
}
.hero-slider.hero-slider-slim .hero-content {
    padding: 1.5rem 0;
}
.hero-slider.hero-slider-tall .hero-content h1 {
    max-width: 34rem;
}
.hero-slider.hero-slider-tall .hero-content .lead {
    max-width: 32rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
}
@media (max-width: 576px) {
    .hero-slider .hero-content {
        padding: 3.5rem 0.6rem 2.5rem;
    }
    .hero-slider.hero-slider-tall .hero-cta {
        margin-bottom: 2.5rem;
    }
}
.hero-slider.hero-slider-tall::before {
    content: '';
    position: absolute;
    top: -18%;
    right: -12%;
    width: 42%;
    height: 42%;
    background: radial-gradient(circle, rgba(255,163,2,0.18), transparent 70%);
    filter: blur(10px);
    z-index: 1;
    pointer-events: none;
}
.hero-slider.hero-slider-tall {
    min-height: 480px;
}
.hero-slider.hero-slider-slim {
    min-height: 220px;
}
@media (max-width: 576px) {
    .hero-slider.hero-slider-tall {
        min-height: 760px;
    }
    .hero-slider.hero-slider-tall .slide {
        align-items: flex-start;
    }
}
.hero-slider .slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}
.hero-slider .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    border: none;
    padding: 0;
}
.hero-slider .slider-dot.active {
    background: var(--helpa-accent);
    width: 22px;
    border-radius: 4px;
    transition: width 0.25s ease;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    transition: all 0.2s ease-in-out;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(5, 39, 85, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--helpa-primary);
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--helpa-primary);
    border-color: var(--helpa-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--helpa-primary-dark);
    border-color: var(--helpa-primary-dark);
}
.btn-outline-primary {
    color: var(--helpa-primary);
    border-color: var(--helpa-primary);
}
.btn-outline-primary:hover {
    background-color: var(--helpa-primary);
    border-color: var(--helpa-primary);
}

/* =====================================================================
   Admin Dashboard — redesigned for visual hierarchy and at-a-glance
   status, instead of a flat grid of identical boxes.
   ===================================================================== */

/* Hero header strip */
.admin-hero {
    background: linear-gradient(120deg, #052755 0%, #0d3d7a 60%, #03162f 100%);
    border-radius: 16px;
    padding: 1.75rem 1.75rem;
    color: #fff;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}
.admin-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,163,2,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.admin-hero h3 {
    margin: 0;
    font-weight: 700;
}
.admin-hero p {
    margin: 0.25rem 0 0 0;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

/* Section labels — small uppercase eyebrow, encodes grouping */
.dash-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a96a3;
    margin-bottom: 0.75rem;
}

/* "Needs Your Attention" urgent cards */
.attention-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(5,39,85,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.attention-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(5,39,85,0.12);
}
.attention-card .attn-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
    color: #fff;
}
.attention-card .attn-icon.attn-zero {
    background: #e9edf2;
    color: #9aa5b1;
}
.attention-card .attn-icon.attn-warn { background: linear-gradient(135deg, #ffa302, #ff7a3d); }
.attention-card .attn-icon.attn-danger { background: linear-gradient(135deg, #e5484d, #b3261e); }
.attention-card .attn-count {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--helpa-primary-dark);
    line-height: 1.1;
}
.attention-card .attn-label {
    font-size: 0.78rem;
    color: #6c7a89;
    font-weight: 600;
}
.attn-pulse-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff4d4f;
    border: 2px solid #fff;
    animation: attnPulse 1.8s ease-in-out infinite;
}
@keyframes attnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,77,79,0.5); }
    50%      { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(255,77,79,0); }
}

/* Platform-at-a-glance icon stat tiles */
.stat-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 2px 8px rgba(5,39,85,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(5,39,85,0.1);
}
.stat-tile .stile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}
.stat-tile .stile-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--helpa-primary-dark);
    line-height: 1.1;
}
.stat-tile .stile-label {
    font-size: 0.78rem;
    color: #6c7a89;
    font-weight: 600;
}

/* Revenue — the one standout, gradient card */
.revenue-card {
    background: linear-gradient(135deg, #052755 0%, #0a2e63 100%);
    border-radius: 16px;
    padding: 1.75rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.revenue-card::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,163,2,0.18) 0%, transparent 70%);
}
.revenue-card .rev-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.revenue-card .rev-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffc94d;
    margin: 0.15rem 0 0.5rem 0;
    line-height: 1;
}
.revenue-card .rev-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.revenue-card .rev-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.revenue-card .rev-secondary-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.revenue-card .rev-secondary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Quick action tiles */
.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 0.5rem;
    text-decoration: none;
    color: var(--helpa-primary-dark);
    box-shadow: 0 2px 8px rgba(5,39,85,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    height: 100%;
    text-align: center;
}
.action-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(5,39,85,0.1);
    background: #fdfaf4;
    color: var(--helpa-primary-dark);
}
.action-tile .atile-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--helpa-primary), var(--helpa-primary-light));
}
.action-tile .atile-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
    .attention-card, .stat-tile, .action-tile, .worker-stat-tile, .app-job-card { transition: none; }
    .attn-pulse-dot { animation: none; }
}

/* Dashboard stat cards (legacy — kept for any other page still using it) */
.stat-card {
    border-left: 4px solid var(--helpa-primary);
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--helpa-primary-dark);
}

/* Worker match card on admin review page */
.match-card.top-pick {
    border: 2px solid var(--helpa-accent);
}

/* Auth pages */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    max-width: 480px;
    width: 100%;
}

/* =====================================================================
   Immersive animated login — dark navy backdrop with slow-morphing
   gold/navy glow blobs behind a frosted-glass card.
   ===================================================================== */
.auth-wrapper--immersive {
    position: relative;
    min-height: calc(100vh - 76px);
    background: radial-gradient(circle at 30% 20%, #0d3d7a 0%, #03162f 55%, #020d1c 100%);
    overflow: hidden;
    padding: 3rem 1rem;
}

.auth-blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.55;
    animation: authBlobMorph 12s ease-in-out infinite, authBlobDrift 18s ease-in-out infinite;
    pointer-events: none;
}
.auth-blob--gold {
    width: 340px;
    height: 340px;
    top: -60px;
    left: -80px;
    background: radial-gradient(circle, #ffa302 0%, transparent 70%);
    animation-delay: 0s, 0s;
}
.auth-blob--navy {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #0d3d7a 0%, transparent 70%);
    animation-delay: -4s, -6s;
}
.auth-blob--gold-soft {
    width: 220px;
    height: 220px;
    top: 40%;
    right: 8%;
    background: radial-gradient(circle, #ffa302 0%, transparent 70%);
    opacity: 0.28;
    animation-delay: -8s, -3s;
}

@keyframes authBlobMorph {
    0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
    33%      { border-radius: 60% 40% 30% 70% / 55% 65% 35% 45%; }
    66%      { border-radius: 35% 65% 55% 45% / 40% 30% 70% 60%; }
}
@keyframes authBlobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(24px, -18px) scale(1.08); }
}

.auth-card--glass {
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 2.5rem 2rem;
    animation: authCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card--glass h2,
.auth-card--glass label,
.auth-card--glass p {
    color: #fff;
}
.auth-card--glass p.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
.auth-card--glass .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.auth-card--glass .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.auth-card--glass .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--helpa-accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 163, 2, 0.25);
    color: #fff;
}
.auth-card--glass .password-toggle-btn {
    color: rgba(255, 255, 255, 0.6);
}
.auth-card--glass .password-toggle-btn:hover {
    color: #fff;
}
.auth-card--glass .btn-primary {
    background: linear-gradient(135deg, var(--helpa-accent), #ff7a3d);
    border: none;
    font-weight: 600;
}
.auth-card--glass .btn-primary:hover {
    filter: brightness(1.08);
}
.auth-card--glass a {
    color: var(--helpa-accent);
}
.auth-card--glass .alert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .auth-blob { animation: none; }
    .auth-card--glass { animation: none; }
}

/* Star rating */
.bi-star-fill, .bi-star-half, .bi-star {
    font-size: 0.95rem;
}

/* =====================================================================
   Tier Badges — Bronze / Silver / Gold (display layer over the
   underlying New / Level 2 / Trusted trust levels)
   ===================================================================== */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.tier-bronze {
    background: linear-gradient(135deg, #f1dfc9, #d9a86c);
    color: #5c3a14;
}
.tier-silver {
    background: linear-gradient(135deg, #eef1f3, #c2c9d1);
    color: #3a4451;
}
.tier-gold {
    background: linear-gradient(135deg, #ffe9a8, #e8b923);
    color: #6b4e00;
}

.tier-progress {
    background-color: #fbf6e9;
    border: 1px solid #f0e2bc;
    border-radius: 0.6rem;
    padding: 0.85rem 1rem;
}
.tier-progress-gold {
    background-color: #fff8e1;
    border-color: #f3d97a;
    color: #6b4e00;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
}
.tier-progress .progress {
    background-color: #f0e6c8;
}
.tier-progress-bar {
    background: linear-gradient(90deg, #d9a86c, #e8b923);
}

/* =====================================================================
   Category Grid — real photo tiles with navy gradient overlay
   ===================================================================== */
.category-tile {
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.category-tile:hover img {
    transform: scale(1.06);
}
.category-tile .category-label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.9rem 0.75rem 0.65rem;
    background: linear-gradient(to top, rgba(5,39,85,0.92), rgba(5,39,85,0));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Icon-only variant — for service categories without a dedicated photo */
.category-tile-icon-only {
    background: linear-gradient(135deg, var(--helpa-primary-dark), var(--helpa-primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.category-tile-icon-only i {
    font-size: 2.4rem;
    color: var(--helpa-accent);
}
.category-tile-icon-only .category-label {
    position: static;
    background: none;
    padding: 0;
    text-align: center;
}

/* =====================================================================
   Platform Stats Banner — real numbers from the database
   ===================================================================== */
.stats-banner {
    background: linear-gradient(135deg, var(--helpa-primary-dark), var(--helpa-primary));
    color: #fff;
    border-radius: 1rem;
}
.stats-banner .stat-block {
    text-align: center;
    padding: 1.25rem 0.5rem;
}
.stats-banner .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--helpa-accent);
    line-height: 1.1;
}
.stats-banner .stat-caption {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
}

/* Worker/customer stat cards on dashboards (earnings/jobs/rating tiles) */
.worker-stat-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.worker-stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(5,39,85,0.1);
}
.worker-stat-tile .wstile-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}
.worker-stat-tile .stat-label {
    font-size: 0.75rem;
    color: #6b7b7b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}
.worker-stat-tile .stat-figure {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--helpa-primary-dark);
    line-height: 1.2;
}

/* =====================================================================
   App Bottom Navigation — shown only on logged-in dashboard/app pages
   ===================================================================== */
.app-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    display: flex;
    background: #fff;
    border-top: 1px solid #e6e9ec;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0); /* iOS home-indicator safe area */
}
.app-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.25rem;
    color: #8a96a3;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    transition: color 0.15s ease;
}
.app-bottom-nav-item i {
    font-size: 1.25rem;
}
.app-bottom-nav-item.active {
    color: var(--helpa-primary);
}
.app-bottom-nav-item:hover {
    color: var(--helpa-primary-light);
}

/* Reserve space above the fixed .app-bottom-nav bar so it never
   overlaps/hides the bottom of a page's content (e.g. a chat form,
   a submit button). Applied via class="has-bottom-nav" on <main> on
   every page that includes bottom_nav.php — see includes/bottom_nav.php. */
/* !important is needed: pages also carry Bootstrap's py-4, whose own
   !important padding otherwise wins and lets the nav and the help button
   cover the last part of the page. */
main.has-bottom-nav {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* =====================================================================
   Floating Help Widget — Dangote-style expandable FAB, bottom-right
   on every page. Sits above the app bottom-nav when present.
   ===================================================================== */
.floating-help-widget {
    position: fixed;
    right: 1.1rem;
    bottom: 1.3rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}
/* Lift the widget above the fixed bottom-nav on app/dashboard pages —
   .floating-help-widget--lifted is added server-side (see footer.php)
   only when bottom_nav.php actually rendered on that page. */
.floating-help-widget.floating-help-widget--lifted {
    bottom: 5.6rem;
}

.floating-help-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--helpa-primary);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(5, 39, 85, 0.35);
    transition: background-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.floating-help-fab:hover {
    background: var(--helpa-primary-dark);
    transform: translateY(-2px);
}
.floating-help-fab .bi-x-lg {
    display: none;
}
.floating-help-widget.open .floating-help-fab {
    background: var(--helpa-accent);
    color: var(--helpa-primary-dark);
}
.floating-help-widget.open .floating-help-fab .bi-chat-dots-fill {
    display: none;
}
.floating-help-widget.open .floating-help-fab .bi-x-lg {
    display: inline-block;
}

.floating-help-tooltip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--helpa-text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.floating-help-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.floating-help-widget.open .floating-help-tooltip {
    display: none;
}
.floating-help-tooltip-close {
    border: none;
    background: none;
    color: #8a96a3;
    line-height: 1;
    padding: 0;
    margin-left: 0.15rem;
}

.floating-help-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}
.floating-help-widget.open .floating-help-menu {
    max-height: 320px;
    opacity: 1;
}
.floating-help-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
/* the "Chat with Support" item is a <button> for logged-out visitors */
button.floating-help-item {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.floating-help-pill {
    background: #fff;
    color: var(--helpa-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.floating-help-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

@media (max-width: 380px) {
    .floating-help-tooltip {
        font-size: 0.78rem;
        padding: 0.5rem 0.75rem;
    }
}


/* =====================================================================
   Availability Toggle Switch — pill-style on/off switch used on the
   worker dashboard (mirrors the Online/Offline switch pattern from
   reference apps), wired to the existing is_available flag.
   ===================================================================== */
.availability-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #eef3f1;
    border-radius: 999px;
    padding: 0.35rem 0.5rem 0.35rem 0.9rem;
}
.availability-toggle.is-online {
    background: #e3f7ec;
}
.availability-toggle .toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5a55;
}
.availability-toggle.is-online .toggle-label {
    color: #0f7a4a;
}
.availability-toggle .form-switch {
    margin: 0;
}
.availability-toggle .form-check-input {
    width: 2.4em;
    height: 1.3em;
    cursor: pointer;
}
.availability-toggle .form-check-input:checked {
    background-color: #18a558;
    border-color: #18a558;
}

/* =====================================================================
   Phase 2 — App-style dashboard cards
   ===================================================================== */

/* Primary action banner, e.g. "Post a job" / "Pending matches" callout */
.app-action-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--helpa-primary-dark), var(--helpa-primary));
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 14px rgba(5,39,85,0.18);
}
.app-action-banner-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--helpa-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
a.app-action-banner:hover {
    box-shadow: 0 6px 18px rgba(5,39,85,0.26);
}

/* Job / match card grid item */
.app-job-card {
    background: #fff;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 3px solid var(--helpa-primary);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(5,39,85,0.1);
}
.app-job-card-pending {
    border-left-color: var(--helpa-accent);
}
.app-price-pill {
    background: var(--helpa-accent);
    color: #2b1d00;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Empty state shown when a list has no items */
.app-empty-state {
    background: #fff;
    border: 1px dashed #d7dde2;
    border-radius: 0.85rem;
    padding: 2rem 1rem;
    text-align: center;
    color: #8a96a3;
}
.app-empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #c2cad1;
}

/* =====================================================================
   Announcement Carousel — admin-controlled promo/alert banners
   ===================================================================== */
.announce-carousel {
    position: relative;
    min-height: 110px;
}
.announce-card {
    display: none;
    position: relative;
    border-radius: 0.9rem;
    padding: 1.1rem 1.25rem 1.6rem;
    color: #fff;
    overflow: hidden;
}
.announce-card.active {
    display: block;
}
.announce-promo {
    background: linear-gradient(135deg, var(--helpa-primary-dark), var(--helpa-primary));
}
.announce-info {
    background: linear-gradient(135deg, #0d3d7a, #1f6fc4);
}
.announce-warning {
    background: linear-gradient(135deg, #8a5a00, var(--helpa-accent-dark));
}
.announce-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.5rem;
}
.announce-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.announce-message {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}
.announce-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--helpa-accent);
    text-decoration: none;
}
.announce-link:hover {
    text-decoration: underline;
}
.announce-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 1.25rem;
    display: flex;
    gap: 0.35rem;
}
.announce-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    padding: 0;
    cursor: pointer;
}
.announce-dot.active {
    background: var(--helpa-accent);
    width: 18px;
    border-radius: 4px;
    transition: width 0.25s ease;
}

/* =====================================================================
   Testimonial Carousel — landing page customer/worker quotes
   ===================================================================== */
.testimonial-carousel {
    position: relative;
    min-height: 180px;
}
.testimonial-card {
    display: none;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}
.testimonial-card.active {
    display: block;
}
.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--helpa-accent);
    display: block;
    margin-bottom: 0.5rem;
}
.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--helpa-text-dark);
    margin-bottom: 1rem;
}
.testimonial-author {
    font-size: 0.9rem;
}
.testimonial-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d7dde2;
    border: none;
    padding: 0;
    cursor: pointer;
}
.testimonial-dot.active {
    background: var(--helpa-primary);
    width: 22px;
    border-radius: 4px;
    transition: width 0.25s ease;
}

/* =====================================================================
   Password Visibility Toggle
   ===================================================================== */
.password-field-wrapper {
    position: relative;
}
.password-field-wrapper input[type="password"],
.password-field-wrapper input[type="text"] {
    padding-right: 2.6rem;
}
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    color: #6b7b7b;
    cursor: pointer;
    line-height: 1;
}
.password-toggle-btn:hover {
    color: var(--helpa-primary);
}
.password-rules {
    font-size: 0.78rem;
    color: #6b7b7b;
    margin-top: 0.3rem;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .hero-section { padding: 3rem 0 4rem; }
    .hero-section h1 { font-size: 1.8rem; }
}

/* =====================================================================
   Hero buttons — sleek v2 (appended; overrides the older .hero-cta rules)
   Find a Worker = gold gradient | Become a Worker = frosted glass
   Log In = clean white pill
   ===================================================================== */
.hero-slider .hero-cta { gap: 0.9rem !important; }

.hero-slider .hero-cta .btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem !important;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    border-width: 1.5px;
    border-radius: 50rem;
    -webkit-tap-highlight-color: transparent;
    transition: transform .22s cubic-bezier(.2,.8,.2,1),
                box-shadow .22s ease,
                background .22s ease,
                border-color .22s ease,
                color .22s ease;
}
.hero-slider .hero-cta .btn i {
    font-size: 1.15em;
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.hero-slider .hero-cta .btn:hover i { transform: translateX(3px) scale(1.08); }
.hero-slider .hero-cta .btn:active  { transform: translateY(0) scale(.97); }

/* light sweep that glides across on hover */
.hero-slider .hero-cta .btn::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -75%;
    width: 50%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
    z-index: -1;
}
.hero-slider .hero-cta .btn:hover::after { left: 130%; }

/* 1) Primary — gold gradient with glow */
.hero-slider .hero-cta .btn-accent {
    background: linear-gradient(135deg, #ffbe3b 0%, #ffa302 55%, #f08a00 100%);
    border-color: transparent;
    color: #2b1d00;
    box-shadow: 0 10px 26px rgba(255,163,2,.42),
                inset 0 1px 0 rgba(255,255,255,.55);
}
.hero-slider .hero-cta .btn-accent:hover {
    background: linear-gradient(135deg, #ffc653 0%, #ffae1a 55%, #f59200 100%);
    color: #2b1d00;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(255,163,2,.55),
                inset 0 1px 0 rgba(255,255,255,.65);
}

/* 2) Secondary — frosted glass */
.hero-slider .hero-cta .btn-outline-light {
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border-color: rgba(255,255,255,.45);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.18),
                inset 0 1px 0 rgba(255,255,255,.25);
}
.hero-slider .hero-cta .btn-outline-light:hover {
    background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
    border-color: rgba(255,255,255,.85);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,.26),
                inset 0 1px 0 rgba(255,255,255,.35);
}

/* 3) Log In — clean white pill (third button in the row) */
.hero-slider .hero-cta .btn:nth-child(3) {
    background: #fff;
    border-color: #fff;
    color: var(--helpa-primary);
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.hero-slider .hero-cta .btn:nth-child(3):hover {
    background: #fff;
    border-color: #fff;
    color: var(--helpa-primary-light);
    box-shadow: 0 16px 34px rgba(0,0,0,.32),
                0 0 0 4px rgba(255,255,255,.22);
}
.hero-slider .hero-cta .btn:nth-child(3)::after {
    background: linear-gradient(110deg, transparent, rgba(5,39,85,.12), transparent);
}

/* keyboard focus ring */
.hero-slider .hero-cta .btn:focus-visible {
    outline: 3px solid rgba(255,255,255,.9);
    outline-offset: 3px;
}

/* =====================================================================
   PHONE LAYOUT — compact hero, text anchored to the bottom over a soft
   gradient, one big primary button + two buttons side by side
   ===================================================================== */
@media (max-width: 576px) {
    /* shorter hero (was 760px — far too tall now the paragraph is gone) */
    .hero-slider.hero-slider-tall {
        min-height: clamp(500px, 74vh, 620px);
        min-height: clamp(500px, 74svh, 620px);
    }
    .hero-slider.hero-slider-tall .slide {
        align-items: flex-end;                 /* content sits at the bottom, face stays visible */
        background-position: 55% 18%;
    }
    /* darker toward the bottom so text + buttons always read clearly */
    .hero-slider.hero-slider-tall .slide::after {
        background: linear-gradient(180deg,
            rgba(5,39,85,.18) 0%,
            rgba(5,39,85,.38) 38%,
            rgba(5,39,85,.86) 72%,
            rgba(3,22,47,.96) 100%);
    }
    .hero-slider.hero-slider-tall .hero-content {
        padding: 2rem 1.1rem 3.1rem;           /* bottom space keeps the dots clear */
    }
    .hero-slider.hero-slider-tall .hero-content h1 {
        font-size: 1.95rem;
        line-height: 1.18;
        margin-bottom: 1.35rem !important;
        text-shadow: 0 2px 18px rgba(0,0,0,.35);
    }

    /* buttons: Find a Worker full width, the other two share a row */
    .hero-slider .hero-cta {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: .7rem !important;
        margin-bottom: 0 !important;
    }
    .hero-slider .hero-cta .btn {
        width: 100%;
        padding: .9rem .6rem !important;
        font-size: .95rem;
        white-space: nowrap;
    }
    .hero-slider .hero-cta .btn:first-child {
        grid-column: 1 / -1;
        padding: 1.05rem 1.5rem !important;
        font-size: 1.05rem;
    }
}

/* very narrow phones: shrink a touch so the two buttons never wrap */
@media (max-width: 360px) {
    .hero-slider.hero-slider-tall .hero-content h1 { font-size: 1.7rem; }
    .hero-slider .hero-cta .btn { font-size: .88rem; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .hero-cta .btn,
    .hero-slider .hero-cta .btn i,
    .hero-slider .hero-cta .btn::after { transition: none; }
}

/* =====================================================================
   Services page — sleek header + consistent icon cards
   ===================================================================== */
.svc-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
}
.svc-hero::before {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 46%; height: 140%;
    background: radial-gradient(circle, rgba(255,163,2,.22), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}
.svc-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,190,59,.9), transparent);
}
.svc-hero .container { position: relative; z-index: 1; }
.svc-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.svc-hero .lead {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,.88);
    line-height: 1.6;
}

/* service cards */
.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1.6rem 1rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(5,39,85,.08);
    border-radius: 1.1rem;
    box-shadow: 0 2px 12px rgba(5,39,85,.05);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,163,2,.55);
    box-shadow: 0 16px 34px rgba(5,39,85,.14);
    color: inherit;
}
.svc-card:active { transform: translateY(-1px) scale(.985); }

.svc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem; height: 3.3rem;
    margin-bottom: .95rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--helpa-primary-light), var(--helpa-primary-dark));
    color: #ffbe3b;
    font-size: 1.5rem;
    box-shadow: 0 8px 18px rgba(5,39,85,.25), inset 0 1px 0 rgba(255,255,255,.2);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease;
}
.svc-card:hover .svc-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, #ffbe3b, #f08a00);
    color: #2b1d00;
}
.svc-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .4rem;
    color: var(--helpa-primary-dark);
    overflow-wrap: anywhere;
}
.svc-desc {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    color: #667085;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.svc-go {
    margin-top: auto;
    padding-top: .8rem;
    color: var(--helpa-accent-dark);
    font-size: 1.05rem;
    opacity: .0;
    transform: translateX(-6px);
    transition: opacity .25s ease, transform .25s ease;
}
.svc-card:hover .svc-go { opacity: 1; transform: translateX(0); }
@media (hover: none) {            /* touch screens: show the arrow subtly */
    .svc-go { opacity: .55; transform: none; }
}

/* "Other" card */
.svc-card.svc-other {
    background: linear-gradient(160deg, rgba(255,190,59,.14), rgba(255,255,255,.9));
    border: 1.5px dashed rgba(5,39,85,.28);
    box-shadow: none;
}
.svc-card.svc-other .svc-icon {
    background: linear-gradient(135deg, #ffbe3b, #f08a00);
    color: #2b1d00;
    box-shadow: 0 8px 18px rgba(240,138,0,.35), inset 0 1px 0 rgba(255,255,255,.5);
}
.svc-card.svc-other:hover { border-style: solid; border-color: rgba(255,163,2,.7); }

.svc-cta { max-width: 34rem; margin-left: auto; margin-right: auto; }

@media (max-width: 576px) {
    .svc-hero { padding: 2.8rem 0 3.4rem; }
    .svc-card { padding: 1.35rem .8rem 1.2rem; border-radius: 1rem; }
    .svc-icon { width: 3rem; height: 3rem; font-size: 1.35rem; border-radius: .9rem; }
    .svc-name { font-size: .95rem; }
    .svc-desc { font-size: .8rem; -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .svc-card, .svc-icon, .svc-go { transition: none; }
}

/* =====================================================================
   Homepage — Live Tracking / safety banner
   ===================================================================== */
.safety-band { padding: 2rem 0 .5rem; }
.safety-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.7rem 2rem;
    border-radius: 1.4rem;
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgba(255,190,59,.28), transparent 46%),
        linear-gradient(135deg, #03162f 0%, #0a2f63 60%, #0d3d7a 100%);
    border: 1px solid rgba(255,190,59,.35);
    box-shadow: 0 18px 40px rgba(5,39,85,.28), inset 0 1px 0 rgba(255,255,255,.12);
    overflow: hidden;
}
.safety-card::after {            /* gold accent bar on the left edge */
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ffbe3b, #f08a00);
}

/* pulsing location pin */
.safety-pulse {
    position: relative;
    flex: 0 0 auto;
    width: 4.2rem; height: 4.2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffbe3b, #f08a00);
    color: #2b1d00;
    font-size: 1.9rem;
    box-shadow: 0 8px 22px rgba(240,138,0,.5), inset 0 1px 0 rgba(255,255,255,.6);
}
.safety-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,190,59,.75);
    animation: safetyPulse 2.4s ease-out infinite;
}
.safety-ring-2 { animation-delay: 1.2s; }
@keyframes safetyPulse {
    0%   { transform: scale(1);   opacity: .9; }
    100% { transform: scale(2.1); opacity: 0;  }
}

.safety-body { min-width: 0; }
.safety-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .2rem .7rem;
    border-radius: 50rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    font-size: .7rem; font-weight: 800; letter-spacing: .12em;
}
.safety-dot {
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background: #ff4d4f;
    box-shadow: 0 0 0 0 rgba(255,77,79,.7);
    animation: safetyDot 1.6s infinite;
}
@keyframes safetyDot {
    0%   { box-shadow: 0 0 0 0 rgba(255,77,79,.7); }
    70%  { box-shadow: 0 0 0 .5rem rgba(255,77,79,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,77,79,0); }
}
.safety-title {
    margin: .6rem 0 .3rem;
    font-family: var(--helpa-font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
}
.safety-text {
    margin: 0 0 .9rem;
    max-width: 38rem;
    color: rgba(255,255,255,.86);
    line-height: 1.55;
}
.safety-chips {
    display: flex; flex-wrap: wrap; gap: .5rem;
    list-style: none; margin: 0; padding: 0;
}
.safety-chips li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem .85rem;
    border-radius: 50rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    font-size: .82rem; font-weight: 600;
}
.safety-chips li i { color: #ffbe3b; }

@media (max-width: 576px) {
    .safety-band { padding: 1.4rem 0 .25rem; }
    .safety-card {
        flex-direction: column;
        text-align: center;
        gap: 1.1rem;
        padding: 1.6rem 1.2rem 1.5rem;
        border-radius: 1.2rem;
    }
    .safety-card::after { width: 100%; height: 4px; top: 0; bottom: auto; }
    .safety-title { font-size: 1.45rem; }
    .safety-text { font-size: .95rem; }
    .safety-chips { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .safety-ring, .safety-dot { animation: none; }
}

/* =====================================================================
   Language switcher — now lives in the footer
   ===================================================================== */
.footer-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem .9rem;
    margin-bottom: 1rem;
}
.footer-lang-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(255,255,255,.72);
}
.footer-lang-label i { color: #ffbe3b; font-size: 1rem; }
.footer-lang .lang-toggle {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.footer-lang .lang-toggle-item {
    padding: .5rem .95rem;
    font-size: .8rem;
}
.footer-lang .lang-toggle-item.active {
    background: linear-gradient(135deg, #ffbe3b, #f08a00);
    box-shadow: 0 4px 12px rgba(240,138,0,.4);
}

/* =====================================================================
   Map pin picker, meeting point and rework cards
   ===================================================================== */
.pin-picker {
    border: 1px solid rgba(5,39,85,.12);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}
.pin-picker .pin-map {
    height: 260px;
    width: 100%;
    background: #e9eef5;
}
.pin-picker .pin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .6rem;
    padding: .6rem .75rem;
    border-top: 1px solid rgba(5,39,85,.08);
}
.pin-picker .pin-status { flex: 1 1 100%; }
@media (min-width: 576px) { .pin-picker .pin-status { flex: 1 1 auto; text-align: right; } }

/* red teardrop pin (used by the picker and the live tracking map) */
.pin-drop {
    width: 28px; height: 28px;
    background: #e5484d;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.pin-drop::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #fff;
}

.meeting-point-card { border-left: 4px solid #e5484d; }
.rework-card { border-left: 4px solid #ffa302; }

/* Urgent job switch */
.urgent-box {
    border: 1.5px dashed rgba(229,72,77,.45);
    border-radius: 1rem;
    padding: .9rem 1rem;
    background: rgba(229,72,77,.04);
    transition: background .2s ease, border-color .2s ease;
}
.urgent-box.on {
    border-style: solid;
    border-color: #e5484d;
    background: rgba(229,72,77,.09);
}

/* Worker portfolio */
.portfolio-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: .6rem;
    border: 1px solid rgba(5,39,85,.1);
}
.portfolio-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: .55rem;
    border: 1px solid rgba(5,39,85,.1);
}
.portfolio-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #667085;
    margin-bottom: .3rem;
}
.portfolio-label-after { color: #1f8f5f; }

/* =====================================================================
   POLISH — dark mode, skeleton loaders, onboarding tour
   ===================================================================== */

/* ---------- dark mode (opt-in toggle in the footer; Bootstrap 5.3 data-bs-theme) ---------- */
[data-bs-theme="dark"] {
    color-scheme: dark;
    --bs-body-bg: #0b1220;
    --bs-body-color: #e6ebf2;
    --bs-secondary-color: rgba(230,235,242,.68);
    --bs-tertiary-bg: #121a2b;
    --bs-border-color: rgba(255,255,255,.12);
    --helpa-bg-soft: #0b1220;
    --helpa-text-dark: #e6ebf2;
}
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu { --bs-card-bg: #121a2b; background-color: #121a2b; }
[data-bs-theme="dark"] .bg-white { background-color: #121a2b !important; }
[data-bs-theme="dark"] .bg-light { background-color: #0f1626 !important; }
[data-bs-theme="dark"] .text-dark { color: var(--bs-body-color) !important; }
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-top { border-color: rgba(255,255,255,.12) !important; }

/* site components that hard-code white */
[data-bs-theme="dark"] .attention-card,
[data-bs-theme="dark"] .stat-tile,
[data-bs-theme="dark"] .action-tile,
[data-bs-theme="dark"] .worker-stat-tile,
[data-bs-theme="dark"] .app-job-card,
[data-bs-theme="dark"] .app-empty-state,
[data-bs-theme="dark"] .app-bottom-nav,
[data-bs-theme="dark"] .floating-help-tooltip,
[data-bs-theme="dark"] .floating-help-pill,
[data-bs-theme="dark"] .svc-card,
[data-bs-theme="dark"] .pin-picker {
    background: #121a2b;
    border-color: rgba(255,255,255,.12);
}
[data-bs-theme="dark"] .action-tile:hover { background: #18233a; }
[data-bs-theme="dark"] .attention-card .attn-count,
[data-bs-theme="dark"] .stat-tile .stile-value,
[data-bs-theme="dark"] .action-tile,
[data-bs-theme="dark"] .stat-card .stat-value,
[data-bs-theme="dark"] .worker-stat-tile .stat-figure,
[data-bs-theme="dark"] .floating-help-pill,
[data-bs-theme="dark"] .svc-name,
[data-bs-theme="dark"] .portfolio-card strong { color: #f1f5fb; }
[data-bs-theme="dark"] .svc-desc { color: rgba(230,235,242,.66); }
[data-bs-theme="dark"] .app-bottom-nav-item.active { color: #ffbe3b; }
[data-bs-theme="dark"] .icon-circle { color: #ffbe3b; }
[data-bs-theme="dark"] .tier-progress { background-color: rgba(255,190,59,.1); }
[data-bs-theme="dark"] .tier-progress-gold { background-color: rgba(255,190,59,.16); }
[data-bs-theme="dark"] .availability-toggle { background: #18233a; }
[data-bs-theme="dark"] .availability-toggle.is-online { background: rgba(48,164,108,.2); }
[data-bs-theme="dark"] .portfolio-img,
[data-bs-theme="dark"] .portfolio-thumb { border-color: rgba(255,255,255,.14); }
[data-bs-theme="dark"] .pin-picker .pin-toolbar { border-top-color: rgba(255,255,255,.1); }
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.lang-toggle-item):not(.dropdown-item) { color: #7fb2ff; }
[data-bs-theme="dark"] .hp-dl-card { background: #121a2b; }
[data-bs-theme="dark"] .hp-dl-title { color: #f1f5fb; }
[data-bs-theme="dark"] .hp-dl-text { color: rgba(230,235,242,.72); }
[data-bs-theme="dark"] .hp-dl-skip { background: #1d2a44; color: #dbe4f3; }
[data-bs-theme="dark"] img { filter: brightness(.94); }
[data-bs-theme="dark"] .navbar-brand img,
[data-bs-theme="dark"] .hp-dl-icon { filter: none; }

/* theme toggle in the footer */
.theme-toggle,
.footer-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .95rem;
    border-radius: 50rem;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.88);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.theme-toggle:hover,
.footer-tour-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.theme-toggle:active,
.footer-tour-btn:active { transform: scale(.97); }
.theme-toggle i,
.footer-tour-btn i { color: #ffbe3b; }

/* ---------- skeleton loaders ---------- */
@keyframes phShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton,
.img-skel,
.pin-map,
#trackingMap,
#sdMap {
    background-color: #e6ebf2;
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: phShimmer 1.4s ease-in-out infinite;
}
.skeleton-line   { height: .85rem; border-radius: .45rem; margin: .35rem 0; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-circle { width: 3rem; height: 3rem; border-radius: 50%; }
.skeleton-card   { height: 7rem; border-radius: 1rem; }
[data-bs-theme="dark"] .skeleton,
[data-bs-theme="dark"] .img-skel,
[data-bs-theme="dark"] .pin-map,
[data-bs-theme="dark"] #trackingMap,
[data-bs-theme="dark"] #sdMap {
    background-color: #18233a;
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,0) 100%);
}
/* once Leaflet has drawn tiles the shimmer sits quietly behind them */
.leaflet-container { animation: none; }

/* ---------- onboarding tour ---------- */
.ph-tour-overlay {
    position: fixed; inset: 0; z-index: 2100;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 1rem;
    background: rgba(3,22,47,.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.ph-tour-overlay.is-open { opacity: 1; visibility: visible; }
@media (min-width: 576px) { .ph-tour-overlay { align-items: center; } }
.ph-tour-card {
    position: relative;
    width: 100%; max-width: 26rem;
    padding: 2rem 1.6rem 1.3rem;
    text-align: center;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px rgba(3,22,47,.45);
    transform: translateY(24px);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}
.ph-tour-overlay.is-open .ph-tour-card { transform: none; }
.ph-tour-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #052755, #ffa302);
}
.ph-tour-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 4.2rem; height: 4.2rem; margin-bottom: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #0d3d7a, #03162f);
    color: #ffbe3b; font-size: 2rem;
    box-shadow: 0 10px 24px rgba(5,39,85,.3);
}
.ph-tour-title { font-family: var(--helpa-font-display, Georgia, serif); font-weight: 700; font-size: 1.35rem; color: #052755; margin: 0 0 .5rem; }
.ph-tour-text  { color: #5b6675; font-size: .96rem; line-height: 1.55; margin: 0 0 1.2rem; min-height: 4.6em; }
.ph-tour-dots  { display: flex; justify-content: center; gap: .4rem; margin-bottom: 1.1rem; }
.ph-tour-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: #d3dae6; transition: all .25s ease; }
.ph-tour-dots span.on { width: 1.4rem; border-radius: 1rem; background: #ffa302; }
.ph-tour-actions { display: flex; gap: .6rem; }
.ph-tour-btn {
    flex: 1 1 auto; border: 0; border-radius: .9rem; padding: .8rem 1rem;
    font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.ph-tour-btn:active { transform: scale(.97); }
.ph-tour-next { background: #ffa302; color: #2b1d00; box-shadow: 0 8px 20px rgba(255,163,2,.4); }
.ph-tour-next:hover { background: #ffb02e; }
.ph-tour-back { flex: 0 0 auto; background: #eef1f5; color: #4a5568; }
.ph-tour-skip { display: block; width: 100%; margin-top: .7rem; background: none; border: 0; color: #8a94a6; font-size: .82rem; cursor: pointer; }
.ph-tour-skip:hover { color: #5b6675; text-decoration: underline; }
.ph-tour-btn:focus-visible, .ph-tour-skip:focus-visible { outline: 3px solid #052755; outline-offset: 2px; }
[data-bs-theme="dark"] .ph-tour-card { background: #121a2b; }
[data-bs-theme="dark"] .ph-tour-title { color: #f1f5fb; }
[data-bs-theme="dark"] .ph-tour-text { color: rgba(230,235,242,.74); }
[data-bs-theme="dark"] .ph-tour-dots span { background: #2a3855; }
[data-bs-theme="dark"] .ph-tour-dots span.on { background: #ffa302; }
[data-bs-theme="dark"] .ph-tour-back { background: #1d2a44; color: #dbe4f3; }

/* install-prompt additions */
.hp-dl-alt { display: block; margin-top: .8rem; font-size: .82rem; color: #8a94a6; text-decoration: underline; }
.hp-dl-ios {
    margin: -.4rem 0 1.2rem; padding: .8rem 1rem;
    background: #f3f6fb; border-radius: .9rem;
    color: #3b4a60; font-size: .9rem; line-height: 1.5;
}
[data-bs-theme="dark"] .hp-dl-ios { background: #18233a; color: #dbe4f3; }

@media (prefers-reduced-motion: reduce) {
    .skeleton, .img-skel, .pin-map, #trackingMap, #sdMap { animation: none; }
    .ph-tour-overlay, .ph-tour-card, .ph-tour-dots span { transition: none; }
}


/* =====================================================================
   Footer redesign — cozy cards, icon rows, chips (overrides older
   .helpa-footer rules above). Footer stays dark in light AND dark mode.
   ===================================================================== */
.helpa-footer {
    position: relative;
    background:
        radial-gradient(700px 260px at 12% -10%, rgba(255,163,2,.10), transparent 60%),
        radial-gradient(600px 280px at 100% 0%, rgba(13,61,122,.55), transparent 65%),
        var(--helpa-primary-dark);
    color: rgba(255,255,255,.82);
    padding: 2.4rem 0 calc(5.2rem + env(safe-area-inset-bottom, 0px)); /* room for the help button */
}
.helpa-footer::before {              /* thin amber glow line along the top */
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--helpa-accent), transparent);
    opacity: .7;
}

/* brand + social */
.hf-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    margin-bottom: 1.6rem;
}
.hf-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: #fff !important;
    font-family: var(--helpa-font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -.01em;
}
.hf-logo img { border-radius: 8px; display: block; }
.hf-tagline {
    margin: .55rem auto 0;
    max-width: 30rem;
    font-size: .92rem;
    line-height: 1.55;
    color: rgba(255,255,255,.7);
}
.hf-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
}
.hf-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    color: #fff !important;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.hf-social a:hover,
.hf-social a:focus-visible {
    background: var(--helpa-accent);
    border-color: var(--helpa-accent);
    color: #2b1d00 !important;
    transform: translateY(-3px);
}

/* cards */
.hf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}
.hf-card {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 1.15rem 1.2rem 1.2rem;
}
.helpa-footer .hf-title {
    margin: 0 0 .85rem;
    font-family: var(--helpa-font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--helpa-accent);
}
.hf-contact, .hf-links { list-style: none; margin: 0; padding: 0; }
.hf-contact li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .38rem 0;
    font-size: .92rem;
    word-break: break-word;
}
.hf-ico {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: var(--helpa-accent);
    background: rgba(255,163,2,.12);
}

/* links — beat the dark-mode blue/underline link rule */
.helpa-footer a.hf-link {
    color: rgba(255,255,255,.88) !important;
    text-decoration: none !important;
    transition: color .15s ease;
}
.helpa-footer a.hf-link:hover,
.helpa-footer a.hf-link:focus-visible { color: var(--helpa-accent) !important; }
.hf-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .15rem 1rem;
}
.hf-links li a {
    display: block;
    padding: .5rem 0;
    font-size: .92rem;
}
.hf-links li a::after {
    content: "\203A";
    margin-left: .35rem;
    opacity: 0;
    transform: translateX(-4px);
    display: inline-block;
    transition: opacity .15s ease, transform .15s ease;
}
.hf-links li a:hover::after { opacity: 1; transform: translateX(0); }

/* area chips */
.hf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hf-chip {
    padding: .38rem .8rem;
    border-radius: 50rem;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
}
.hf-chip-more {
    background: transparent;
    border-style: dashed;
    color: rgba(255,255,255,.6);
}

/* language / theme row + copyright */
.hf-bar {
    margin-top: 1.6rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
}
.hf-bar .footer-lang { margin-bottom: 0; }
.hf-copy {
    margin: 1.3rem 0 0;
    text-align: center;
    font-size: .78rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
}
.hf-made i { color: #ff6b6b; font-size: .75rem; margin: 0 .1rem; }

/* wider screens: brand row + 3 cards across */
@media (min-width: 768px) {
    .helpa-footer { padding-top: 3rem; }
    .hf-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .hf-tagline { margin-left: 0; }
    .hf-grid { grid-template-columns: 1.15fr 1fr 1fr; gap: 1.1rem; }
    .hf-links { grid-template-columns: 1fr; }
    .hf-bar { flex-direction: row; justify-content: space-between; }
}

/* =====================================================================
   Primary call-to-action button — .btn-accent was only styled inside
   .hero-cta, so it showed as bare text on the landing-page CTA band.
   ===================================================================== */
.btn-accent {
    --bs-btn-color: #2b1d00;
    --bs-btn-hover-color: #2b1d00;
    --bs-btn-active-color: #2b1d00;
    color: #2b1d00;
    background: linear-gradient(135deg, #ffbe3b, var(--helpa-accent));
    border: 0;
    border-radius: 50rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(255,163,2,.32);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-accent:hover, .btn-accent:focus-visible {
    color: #2b1d00;
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255,163,2,.4);
}

/* Landing-page "Ready to get started?" band */
.cta-band {
    position: relative;
    padding: 3.2rem 0;
    text-align: center;
    background:
        radial-gradient(600px 240px at 50% 0%, rgba(255,163,2,.14), transparent 70%),
        linear-gradient(180deg, var(--helpa-primary-dark), var(--helpa-primary));
}
.cta-band h2 { color: #fff; font-weight: 600; letter-spacing: -.01em; margin-bottom: 1.4rem; }
.cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.5rem;
}
.cta-links a {
    padding: .5rem 1rem;
    border-radius: 50rem;
    font-size: .88rem;
    text-decoration: none !important;
    color: rgba(255,255,255,.9) !important;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    transition: background .2s ease, border-color .2s ease;
}
.cta-links a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }


/* =====================================================================
   Post a Job — step cards, day chips, typed time + AM/PM, pill choices
   ===================================================================== */
.pj-card { border-radius: 20px; border: 1px solid var(--bs-border-color, rgba(0,0,0,.08)); }
.pj-step {
    padding: 1.1rem 0 1.4rem;
    border-bottom: 1px solid var(--bs-border-color, rgba(0,0,0,.08));
}
.pj-step:first-of-type { padding-top: 0; }
.pj-step-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.pj-num {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; color: #2b1d00;
    background: linear-gradient(135deg, #ffbe3b, var(--helpa-accent));
}
.pj-step-head h5 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.pj-step-head p { margin: .15rem 0 0; font-size: .85rem; color: var(--bs-secondary-color, #6c757d); }
.pj-label { font-size: .9rem; font-weight: 600; margin-bottom: .45rem; }

/* day chips */
.pj-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pj-chip {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    padding: .7rem .4rem; border-radius: 14px; font-size: .88rem; font-weight: 600;
    background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #212529);
    border: 1.5px solid var(--bs-border-color, #dee2e6);
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.pj-chip i { font-size: 1.1rem; color: var(--helpa-accent-dark); }
.pj-chip:active { transform: scale(.97); }
.pj-chip.active {
    border-color: var(--helpa-accent);
    background: rgba(255,163,2,.14);
    box-shadow: 0 0 0 3px rgba(255,163,2,.18);
}

/* typed time + AM/PM */
.ph-time { display: flex; align-items: stretch; gap: .6rem; }
.ph-time-input { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 700; letter-spacing: .04em; font-size: 1.5rem; }
.ph-ampm {
    flex: 0 0 auto; display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px;
    background: var(--bs-tertiary-bg, #eef1f5);
    border: 1px solid var(--bs-border-color, #dee2e6);
}
.ph-ampm button {
    min-width: 58px; border: 0; border-radius: 10px; font-weight: 700; font-size: .95rem;
    background: transparent; color: var(--bs-secondary-color, #6c757d);
    transition: background .15s ease, color .15s ease;
}
.ph-ampm button.active { background: var(--helpa-primary); color: #fff; box-shadow: 0 2px 8px rgba(5,39,85,.3); }
.ph-ampm button:disabled { opacity: .6; }

/* quick time buttons */
.pj-quick { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.pj-quick button {
    padding: .4rem .8rem; border-radius: 50rem; font-size: .8rem; font-weight: 600;
    background: transparent; color: var(--bs-body-color, #212529);
    border: 1px dashed var(--bs-border-color, #ced4da);
}
.pj-quick button small { color: var(--bs-secondary-color, #6c757d); font-weight: 500; margin-left: .15rem; }
.pj-quick button:hover { border-color: var(--helpa-accent); background: rgba(255,163,2,.1); }

.pj-link { background: none; border: 0; padding: 0; font-size: .88rem; font-weight: 600; color: var(--helpa-primary-light); }
[data-bs-theme="dark"] .pj-link { color: #7fb2ff; }

/* live summary + inline error */
.pj-summary {
    margin-top: 1rem; padding: .7rem .9rem; border-radius: 12px; font-size: .88rem;
    background: rgba(25,135,84,.1); color: var(--bs-body-color, #212529);
}
.pj-summary i { color: #198754; margin-right: .25rem; }
.pj-summary.is-warn { background: rgba(255,163,2,.14); }
.pj-summary.is-warn i { color: var(--helpa-accent-dark); }
.pj-error { margin-top: .6rem; padding: .6rem .9rem; border-radius: 12px; font-size: .85rem; font-weight: 600; color: #b02a37; background: rgba(220,53,69,.1); }
#pjWhen.is-locked .pj-chips, #pjWhen.is-locked .ph-time, #pjWhen.is-locked .pj-quick,
#pjWhen.is-locked #pjEndAdd, #pjWhen.is-locked #pjOtherDateWrap { opacity: .5; pointer-events: none; }

/* gender: three pill choices */
.pj-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pj-seg-item {
    text-align: center; padding: .7rem .4rem; border-radius: 14px; font-size: .88rem; font-weight: 600; cursor: pointer;
    border: 1.5px solid var(--bs-border-color, #dee2e6); background: var(--bs-body-bg, #fff);
    transition: border-color .15s ease, background .15s ease;
}
.btn-check:checked + .pj-seg-item {
    border-color: var(--helpa-accent); background: rgba(255,163,2,.14); box-shadow: 0 0 0 3px rgba(255,163,2,.18);
}
.btn-check:focus-visible + .pj-seg-item { outline: 2px solid var(--helpa-primary-light); outline-offset: 2px; }

/* folded optional section */
.pj-more-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin-top: 1.1rem; padding: .85rem 1rem; border-radius: 14px; text-align: left; font-weight: 600; font-size: .92rem;
    background: transparent; color: var(--bs-body-color, #212529);
    border: 1.5px dashed var(--bs-border-color, #ced4da);
}
.pj-more-toggle i { color: var(--helpa-accent-dark); margin-right: .3rem; }
.pj-more-toggle small { font-weight: 500; color: var(--bs-secondary-color, #6c757d); }
.pj-more-body { padding: 1rem .2rem 0; }

@media (max-width: 380px) {
    .ph-time-input { font-size: 1.25rem; }
    .ph-ampm button { min-width: 50px; }
}


/* Post a Job: big "Use my current location" button above the area picker */
.pin-picker .pin-top { padding: .75rem .75rem .6rem; }
.pj-locate-btn {
    font-weight: 800; border-radius: 1rem; padding: .85rem 1rem;
    background: linear-gradient(135deg, #052755, #0c3d85); border: 0;
    box-shadow: 0 6px 16px rgba(5, 39, 85, .25);
}
.pj-locate-btn i { color: #ffa302; margin-right: .35rem; }
.pj-locate-btn:active { transform: scale(.985); }
.pj-or { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 .75rem; color: #8a97a8; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pj-or::before, .pj-or::after { content: ""; flex: 1; height: 1px; background: #e1e7f0; }


/* =====================================================================
   Customer dashboard — clean white, single-screen layout
   (customer/dashboard.php). Fits a ~640px-tall phone without scrolling.
   ===================================================================== */
body:has(.dash-compact) { background: #f3f4f6; }

.hero-slider.hero-slider-compact { min-height: 92px; }
.hero-slider.hero-slider-compact .hero-content { padding: .7rem 0 1.5rem; }
.hero-slider.hero-slider-compact .hero-announce-badge { margin-bottom: .2rem; }
.hero-slider.hero-slider-compact .hero-content h4 { font-size: 1.05rem; font-weight: 800 !important; }
.hero-slider.hero-slider-compact .hero-content p { font-size: .8rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-hello { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.dash-hello-sub { color: rgba(255,255,255,.88); font-weight: 600; }

.dash-compact { max-width: 720px; }

.dash-push {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: nowrap;
    background: #fff; border: 1px solid #dfe3e8; border-radius: .75rem; font-weight: 600; color: #1f2937;
    padding: .35rem .65rem; margin-bottom: .5rem;
}
.dash-push .small { font-size: .75rem !important; line-height: 1.2; }

/* Primary CTA */
.dash-cta {
    display: flex; align-items: center; gap: .8rem;
    background: #fff; color: #0f1b2d; border: 1px solid #dfe3e8; border-radius: 1rem; padding: .7rem .95rem;
    box-shadow: 0 1px 3px rgba(15,27,45,.06);
    margin-top: .6rem; transition: box-shadow .15s ease, border-color .15s ease;
}
.dash-cta:hover { color: #0f1b2d; border-color: #b9c1cc; box-shadow: 0 4px 12px rgba(15,27,45,.1); }
.dash-cta-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
    background: #0f1b2d; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.dash-cta-title { display: block; font-weight: 800; font-size: 1rem; line-height: 1.15; }
.dash-cta-sub   { display: block; font-size: .74rem; font-weight: 500; color: #5b6676; margin-top: .1rem; line-height: 1.2;
                  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dash-cta > .bi-chevron-right { color: #8a94a3; }

/* Status row: four white counters */
.dash-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .6rem; }
.dash-chip {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    background: #fff; border: 1px solid #dfe3e8; border-radius: .85rem; padding: .45rem .55rem; min-height: 60px;
    color: #0f1b2d; text-decoration: none; box-shadow: 0 1px 3px rgba(15,27,45,.05);
    transition: box-shadow .15s ease, border-color .15s ease;
}
.dash-chip:hover { color: #0f1b2d; border-color: #b9c1cc; box-shadow: 0 4px 12px rgba(15,27,45,.1); }
.dash-chip-ghost { display: none; }
.dash-chip-num   { font-size: 1.5rem; font-weight: 800; line-height: 1; color: #0f1b2d; }
.dash-chip-label { font-size: .6rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; margin-top: .25rem; color: #5b6676; }
.dash-chip .attn-pulse-dot { position: absolute; top: 7px; right: 7px; }

/* Menu grid: six white tiles, 3 x 2 */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.dash-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    background: #fff; border: 1px solid #dfe3e8; border-radius: 1rem; padding: .7rem .3rem;
    min-height: clamp(78px, 11.5vh, 100px);
    text-decoration: none; color: #0f1b2d; text-align: center;
    box-shadow: 0 1px 3px rgba(15,27,45,.06);
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.dash-tile:hover { color: #0f1b2d; border-color: #b9c1cc; box-shadow: 0 6px 16px rgba(15,27,45,.12); transform: translateY(-2px); }
.dash-tile:active { transform: scale(.98); }
.dash-tile-icon {
    position: relative; width: 40px; height: 40px; border-radius: 12px;
    background: #eef0f3; color: #0f1b2d;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.dash-tile-label { font-size: .82rem; font-weight: 700; line-height: 1.1; }
.dash-tile-badge {
    position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: #0f1b2d; color: #fff;
    font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* Recent jobs */
.dash-section-head { display: flex; justify-content: space-between; align-items: center; margin: .7rem .15rem .35rem; }
.dash-section-head h6 { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #0f1b2d; }
.dash-section-head a { font-weight: 700; font-size: .8rem; color: #0f1b2d; text-decoration: underline; }
.dash-list { background: #fff; border-radius: 1rem; border: 1px solid #dfe3e8; box-shadow: 0 1px 3px rgba(15,27,45,.06); overflow: hidden; }
.dash-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; color: #0f1b2d; transition: background-color .15s ease; }
.dash-row + .dash-row { border-top: 1px solid #e8ebef; }
.dash-row:hover { background: #f7f8fa; color: #0f1b2d; }
.dash-row .badge { flex-shrink: 0; font-weight: 700; }
.dash-row-title { font-weight: 800; font-size: .92rem; }
.dash-row-sub { font-size: .75rem; font-weight: 500; color: #5b6676; }
.min-w-0 { min-width: 0; }

@media (max-height: 660px) {
    .dash-list .dash-row:nth-child(n+2) { display: none; }
    .dash-hello { font-size: 1.05rem; }
}

/* dark mode */
[data-bs-theme="dark"] body:has(.dash-compact) { background: #0b1220; }
[data-bs-theme="dark"] .dash-push,
[data-bs-theme="dark"] .dash-cta,
[data-bs-theme="dark"] .dash-chip,
[data-bs-theme="dark"] .dash-tile,
[data-bs-theme="dark"] .dash-list { background: #121a2b; border-color: rgba(255,255,255,.14); color: #f1f5fb; }
[data-bs-theme="dark"] .dash-push { color: #e6ebf2; }
[data-bs-theme="dark"] .dash-cta, [data-bs-theme="dark"] .dash-cta:hover,
[data-bs-theme="dark"] .dash-chip, [data-bs-theme="dark"] .dash-chip:hover,
[data-bs-theme="dark"] .dash-tile, [data-bs-theme="dark"] .dash-tile:hover,
[data-bs-theme="dark"] .dash-row, [data-bs-theme="dark"] .dash-row:hover { color: #f1f5fb; }
[data-bs-theme="dark"] .dash-chip-num { color: #f1f5fb; }
[data-bs-theme="dark"] .dash-cta-icon { background: #f1f5fb; color: #0b1220; }
[data-bs-theme="dark"] .dash-tile-icon { background: #1d2a44; color: #f1f5fb; }
[data-bs-theme="dark"] .dash-tile-badge { background: #ffbe3b; color: #0b1220; border-color: #121a2b; }
[data-bs-theme="dark"] .dash-cta-sub, [data-bs-theme="dark"] .dash-chip-label, [data-bs-theme="dark"] .dash-row-sub { color: rgba(230,235,242,.72); }
[data-bs-theme="dark"] .dash-section-head h6, [data-bs-theme="dark"] .dash-section-head a { color: #f1f5fb; }
[data-bs-theme="dark"] .dash-row + .dash-row { border-top-color: rgba(255,255,255,.12); }
[data-bs-theme="dark"] .dash-row:hover { background: #18233a; }

@media (prefers-reduced-motion: reduce) {
    .dash-cta, .dash-chip, .dash-tile, .dash-row { transition: none; }
}

/* =====================================================================
   Chat pages — dulled backdrop, heavy, high-contrast text
   (messages/chat.php, admin/chat_view.php, assets/js/chat.js bubbles)
   ===================================================================== */
.chat-card { border: 2px solid #aeb8c6; box-shadow: 0 8px 22px rgba(5,39,85,.18); overflow: hidden; }
.chat-card .chat-head,
.chat-foot { background: #cfd6e0 !important; border-color: #aeb8c6 !important; }
.chat-card .chat-head h6 { font-weight: 900; font-size: 1.05rem; color: #03162f; }
.chat-card .chat-head .text-muted { color: #2b384b !important; font-weight: 700; }
.chat-foot, .chat-foot .text-muted { color: #1b2638 !important; font-weight: 700; }
.chat-foot .form-control { background: #f4f6f9; border: 2px solid #8794a8; color: #03162f; font-weight: 700; font-size: 1rem; }
.chat-foot .form-control::placeholder { color: #4a5a70; font-weight: 600; opacity: 1; }
.chat-foot .btn-outline-secondary { border: 2px solid #5a6a80; color: #03162f; }

.chat-window {
    height: auto !important; min-height: 38vh; max-height: calc(100dvh - 15rem);
    display: flex; flex-direction: column;
    background-color: #d5dbe4 !important;
    background-image: radial-gradient(rgba(5,39,85,.08) 1.2px, transparent 1.6px);
    background-size: 13px 13px;
}
.chat-window > :first-child { margin-top: auto; }
.chat-window .small, .chat-window .text-muted { font-size: .98rem !important; font-weight: 800 !important; line-height: 1.4; }
.chat-window > .text-center { color: #1b2638 !important; font-weight: 800; }

/* received */
.chat-window .rounded-3.bg-white {
    background: #f6f7f9 !important; border: 2px solid #7d8aa0 !important; color: #020b18 !important;
    box-shadow: 0 2px 5px rgba(5,39,85,.14);
}
.chat-window .rounded-3.bg-white .small { color: #020b18; }
.chat-window .rounded-3.bg-white .text-muted { color: #36455a !important; }
/* mine */
.chat-window .rounded-3.bg-primary {
    background: linear-gradient(135deg, #0a2f66, #03162f) !important; border: 2px solid #03162f; color: #fff !important;
    box-shadow: 0 3px 8px rgba(3,22,47,.35);
}
.chat-window .rounded-3.bg-primary .small { color: #fff; }
.chat-window .rounded-3.bg-primary .text-white-50 { color: rgba(255,255,255,.88) !important; }
/* staff */
.chat-window .rounded-3.bg-warning-subtle {
    background: #ffe3a0 !important; border: 2px solid #c47400 !important; color: #1e1300 !important;
}
.chat-window .rounded-3.bg-warning-subtle .small { color: #1e1300; }
.chat-window .rounded-3.bg-warning-subtle .text-warning-emphasis { color: #6b3f00 !important; }
.chat-window .text-warning-emphasis { font-weight: 900; }
.chat-window .rounded-3 .small[style*="0.7rem"], .chat-window .rounded-3 > div:last-child[style*="0.7rem"] { font-size: .76rem !important; font-weight: 800 !important; }

[data-bs-theme="dark"] .chat-card { border-color: rgba(255,255,255,.18); }
[data-bs-theme="dark"] .chat-card .chat-head,
[data-bs-theme="dark"] .chat-foot { background: #16213a !important; border-color: rgba(255,255,255,.14) !important; }
[data-bs-theme="dark"] .chat-card .chat-head h6,
[data-bs-theme="dark"] .chat-foot, [data-bs-theme="dark"] .chat-foot .text-muted { color: #f4f7fc !important; }
[data-bs-theme="dark"] .chat-card .chat-head .text-muted { color: #cfd8e6 !important; }
[data-bs-theme="dark"] .chat-foot .form-control { background: #0d1628; border-color: #4a5c7c; color: #fff; }
[data-bs-theme="dark"] .chat-foot .btn-outline-secondary { border-color: #6b7e9f; color: #f4f7fc; }
[data-bs-theme="dark"] .chat-window {
    background-color: #0d1424 !important;
    background-image: radial-gradient(rgba(255,255,255,.06) 1.2px, transparent 1.6px);
}
[data-bs-theme="dark"] .chat-window > .text-center { color: #e6ebf2 !important; }
[data-bs-theme="dark"] .chat-window .rounded-3.bg-white { background: #1b2740 !important; border-color: #5b6f95 !important; color: #fff !important; }
[data-bs-theme="dark"] .chat-window .rounded-3.bg-white .small { color: #fff; }
[data-bs-theme="dark"] .chat-window .rounded-3.bg-white .text-muted { color: #c3cee0 !important; }


/* =====================================================================
   Worker dashboard (worker/dashboard.php) — shares the white, bold look
   of the customer dashboard (.dash-compact / .dash-tile / .dash-row)
   ===================================================================== */
.wd-status {
    display: flex; align-items: center; gap: .75rem; margin-top: .6rem;
    background: #fff; border: 1px solid #dfe3e8; border-radius: 1rem; padding: .7rem .9rem;
    box-shadow: 0 1px 3px rgba(15,27,45,.06);
}
.wd-status-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #eef0f3; color: #6b7686;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: background .2s, color .2s;
}
.wd-status.is-online .wd-status-icon { background: #0f1b2d; color: #fff; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.wd-status-title { display: block; font-weight: 800; font-size: 1.02rem; color: #0f1b2d; line-height: 1.1; }
.wd-status.is-online .wd-status-title::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; margin-right: .4rem; vertical-align: 1px; }
.wd-status-sub { display: block; font-size: .7rem; font-weight: 500; color: #5b6676; line-height: 1.2; margin-top: .15rem;
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd-switch .form-check-input { width: 3rem; height: 1.6rem; margin: 0; cursor: pointer; border: 2px solid #aab3bf; }
.wd-switch .form-check-input:checked { background-color: #0f1b2d; border-color: #0f1b2d; }

.wd-badges { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .55rem .15rem 0; }
.wd-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 800; background: #e9ecf0; color: #3b4656; }
.wd-pill-ok { background: #0f1b2d; color: #fff; }
.wd-pill-wait { background: #fff3d6; color: #7a4a00; }

.wd-verify {
    display: flex; align-items: center; gap: .75rem; margin-top: .6rem; text-decoration: none;
    background: #fff; border: 1px solid #dfe3e8; border-left: 5px solid #ffa302; border-radius: 1rem; padding: .65rem .85rem;
    color: #0f1b2d; box-shadow: 0 1px 3px rgba(15,27,45,.06);
}
.wd-verify:hover { color: #0f1b2d; border-color: #b9c1cc; border-left-color: #ffa302; }
.wd-verify-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: #0f1b2d; color: #ffa302; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.wd-verify-title { display: block; font-weight: 800; font-size: .95rem; line-height: 1.15; }
.wd-verify-sub { display: block; font-size: .72rem; font-weight: 500; color: #5b6676; line-height: 1.2; margin-top: .1rem;
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.wd-wallet {
    margin-top: .6rem; border-radius: 1.1rem; padding: .95rem 1rem .8rem; color: #fff;
    background-color: #03162f;
    background-image: radial-gradient(rgba(255,255,255,.1) 1.2px, transparent 1.6px), linear-gradient(135deg, #03162f 0%, #0a2e63 70%, #12418a 100%);
    background-size: 12px 12px, 100% 100%;
    box-shadow: 0 8px 20px rgba(5,39,85,.3);
}
.wd-wallet-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.wd-wallet-amount { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1.15; color: #ffc94d; letter-spacing: -.02em; }
.wd-wallet-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; text-decoration: none;
    background: #ffa302; color: #03162f; font-weight: 800; font-size: .88rem; padding: .55rem .9rem; border-radius: .8rem;
}
.wd-wallet-btn:hover { background: #ffb62e; color: #03162f; }
.wd-wallet-foot { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.8); }
.wd-wallet-foot strong { color: #fff; font-weight: 800; }

.wd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.wd-stat {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
    background: #fff; border: 1px solid #dfe3e8; border-radius: 1rem; padding: .6rem .7rem; text-decoration: none; color: #0f1b2d;
    box-shadow: 0 1px 3px rgba(15,27,45,.06); transition: box-shadow .15s ease, border-color .15s ease;
}
.wd-stat:hover { color: #0f1b2d; border-color: #b9c1cc; box-shadow: 0 6px 16px rgba(15,27,45,.12); }
.wd-stat-icon { position: relative; width: 32px; height: 32px; border-radius: 10px; background: #eef0f3; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: .2rem; }
.wd-stat-icon .attn-pulse-dot { position: absolute; top: -3px; right: -3px; }
.wd-stat-num { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.wd-stat-label { font-size: .62rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #5b6676; line-height: 1.1; }

.wd-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 1rem; padding: .9rem; box-shadow: 0 1px 3px rgba(15,27,45,.06); }
.wd-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem;
    background: #fff; border: 1px dashed #c3cbd6; border-radius: 1rem; padding: 1.1rem .9rem; color: #5b6676; font-size: .8rem;
}
.wd-empty i { font-size: 1.6rem; color: #0f1b2d; }
.wd-empty strong { color: #0f1b2d; font-weight: 800; font-size: .95rem; }

[data-bs-theme="dark"] .wd-status, [data-bs-theme="dark"] .wd-verify, [data-bs-theme="dark"] .wd-stat,
[data-bs-theme="dark"] .wd-card, [data-bs-theme="dark"] .wd-empty { background: #121a2b; border-color: rgba(255,255,255,.14); color: #f1f5fb; }
[data-bs-theme="dark"] .wd-verify { border-left-color: #ffa302; }
[data-bs-theme="dark"] .wd-status-title, [data-bs-theme="dark"] .wd-verify-title, [data-bs-theme="dark"] .wd-stat,
[data-bs-theme="dark"] .wd-stat:hover, [data-bs-theme="dark"] .wd-empty strong, [data-bs-theme="dark"] .wd-empty i { color: #f1f5fb; }
[data-bs-theme="dark"] .wd-status-sub, [data-bs-theme="dark"] .wd-verify-sub, [data-bs-theme="dark"] .wd-stat-label, [data-bs-theme="dark"] .wd-empty { color: rgba(230,235,242,.74); }
[data-bs-theme="dark"] .wd-status-icon, [data-bs-theme="dark"] .wd-stat-icon { background: #1d2a44; color: #f1f5fb; }
[data-bs-theme="dark"] .wd-status.is-online .wd-status-icon { background: #22c55e; color: #03162f; }
[data-bs-theme="dark"] .wd-pill { background: #1d2a44; color: #dbe4f3; }
[data-bs-theme="dark"] .wd-pill-ok { background: #f1f5fb; color: #03162f; }
[data-bs-theme="dark"] .wd-pill-wait { background: #3a2c08; color: #ffe2a0; }
@media (prefers-reduced-motion: reduce) { .wd-status-icon, .wd-stat { transition: none; } }


/* =====================================================================
   Worker profile (worker/profile.php) — clean white cards, chips, sticky save
   ===================================================================== */
body:has(.wp-page) { background: #f3f4f6; }
.wp-page { max-width: 720px; }
.min-w-0 { min-width: 0; }

.wp-card {
    background: #fff; border: 1px solid #dfe3e8; border-radius: 1.1rem; padding: 1rem;
    margin-bottom: .8rem; box-shadow: 0 1px 3px rgba(15,27,45,.06);
}
.wp-h { font-size: 1.02rem; font-weight: 800; color: #0f1b2d; margin: 0 0 .6rem; display: flex; align-items: center; gap: .45rem; }
.wp-h i { width: 30px; height: 30px; border-radius: 9px; background: #eef0f3; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.wp-h-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.wp-h-row .wp-h { margin-bottom: .6rem; }
.wp-count { font-size: .72rem; font-weight: 800; color: #5b6676; background: #eef0f3; padding: .2rem .55rem; border-radius: 999px; margin-bottom: .6rem; }
.wp-hint { font-size: .78rem; font-weight: 500; color: #5b6676; margin: .35rem 0 .2rem; line-height: 1.3; }
.wp-label { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #3b4656; margin: .85rem 0 .35rem; }
.wp-input { border: 1.5px solid #cfd5de; border-radius: .8rem; font-weight: 600; color: #0f1b2d; padding: .6rem .8rem; }
.wp-input:focus { border-color: #0f1b2d; box-shadow: 0 0 0 3px rgba(15,27,45,.12); }

/* header */
.wp-head { display: flex; align-items: center; gap: .9rem; padding: .3rem .2rem .9rem; }
.wp-avatar {
    position: relative; flex-shrink: 0; width: 86px; height: 86px; border-radius: 50%; cursor: pointer;
    background: #0f1b2d; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
    border: 3px solid #fff; box-shadow: 0 4px 14px rgba(15,27,45,.25);
}
.wp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wp-avatar-cam {
    position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
    background: #ffa302; color: #03162f; border: 2px solid #fff; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
}
.wp-name { font-family: var(--helpa-font-body); font-size: 1.35rem; font-weight: 900; color: #0f1b2d; margin: 0 0 .3rem; letter-spacing: -.01em; }
.wp-badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.wp-stars { margin-top: .3rem; font-size: .8rem; font-weight: 700; color: #3b4656; }
.wp-stars span { color: #5b6676; font-weight: 600; }

/* completion */
.wp-pct { font-size: 1.3rem; font-weight: 900; color: #0f1b2d; margin-bottom: .6rem; }
.wp-bar { height: 10px; border-radius: 999px; background: #e6e9ee; overflow: hidden; }
.wp-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffa302, #ffc94d); }
.wp-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.wp-todo li { font-size: .86rem; font-weight: 700; }
.wp-todo li a, .wp-todo li.is-done {
    display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: .75rem; text-decoration: none;
    background: #f5f6f8; color: #0f1b2d;
}
.wp-todo li a:hover { background: #eceef2; color: #0f1b2d; }
.wp-todo li.is-done { color: #5b6676; background: transparent; padding-left: .2rem; text-decoration: line-through; text-decoration-color: rgba(91,102,118,.5); }
.wp-todo li.is-done i { color: #16a34a; }
.wp-todo li span { flex-grow: 1; }
.wp-todo li b { font-size: .72rem; background: #0f1b2d; color: #fff; padding: .15rem .45rem; border-radius: 999px; }

/* segmented control */
.wp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; background: #eef0f3; padding: .25rem; border-radius: .9rem; }
.wp-seg-item { margin: 0; cursor: pointer; }
.wp-seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.wp-seg-item span { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .5rem .2rem; border-radius: .7rem; font-size: .85rem; font-weight: 800; color: #4a5668; transition: background .15s, color .15s; }
.wp-seg-item input:checked + span { background: #0f1b2d; color: #fff; box-shadow: 0 2px 6px rgba(15,27,45,.3); }
.wp-seg-item input:focus-visible + span { outline: 3px solid rgba(255,163,2,.6); }

.wp-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 1rem 0 0; padding: .7rem .85rem; background: #f5f6f8; border-radius: .9rem; font-weight: 800; font-size: .92rem; color: #0f1b2d; cursor: pointer; }
.wp-toggle-row i { margin-right: .35rem; }

/* chips */
.wp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.wp-chip { margin: 0; cursor: pointer; }
.wp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wp-chip span {
    display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .8rem; border-radius: 999px;
    border: 1.5px solid #cfd5de; background: #fff; color: #263244; font-size: .84rem; font-weight: 700; line-height: 1.15;
    transition: background .12s, color .12s, border-color .12s;
}
.wp-chip:hover span { border-color: #0f1b2d; }
.wp-chip input:checked + span { background: #0f1b2d; border-color: #0f1b2d; color: #fff; }
.wp-chip input:checked + span::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: .8rem; color: #ffc94d; }
.wp-chip input:focus-visible + span { outline: 3px solid rgba(255,163,2,.6); outline-offset: 1px; }

/* sticky save */
.wp-save { position: sticky; bottom: calc(4.6rem + env(safe-area-inset-bottom, 0)); z-index: 20; padding: .4rem 0 .6rem; margin-bottom: .3rem; background: linear-gradient(180deg, rgba(243,244,246,0), #f3f4f6 45%); }
.wp-save-btn { width: 100%; border: 0; border-radius: 1rem; padding: .85rem 1rem; background: #0f1b2d; color: #fff; font-weight: 900; font-size: 1rem; box-shadow: 0 8px 20px rgba(15,27,45,.35); }
.wp-save-btn i { color: #ffc94d; margin-right: .3rem; }
.wp-save-btn:active { transform: scale(.985); }
.wp-btn-ghost { width: 100%; border: 2px solid #0f1b2d; background: #fff; color: #0f1b2d; font-weight: 800; border-radius: .9rem; padding: .6rem 1rem; }
.wp-btn-ghost:hover { background: #0f1b2d; color: #fff; }

/* foldable account cards */
.wp-fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: #0f1b2d; font-size: .98rem; }
.wp-fold summary::-webkit-details-marker { display: none; }
.wp-fold summary span i { margin-right: .45rem; }
.wp-fold[open] summary > i { transform: rotate(180deg); }
.wp-fold summary > i { transition: transform .2s; }
.wp-email { font-weight: 700; color: #3b4656; margin: .7rem 0 0; word-break: break-all; }

/* verification card inside the profile */
.wp-card .nav-pills .nav-link { font-weight: 800; color: #0f1b2d; border-radius: .8rem; background: #eef0f3; margin: 0 .15rem; }
.wp-card .nav-pills .nav-link.active { background: #0f1b2d; color: #fff; }
.wp-card .btn-primary { background: #0f1b2d; border-color: #0f1b2d; font-weight: 800; border-radius: .9rem; }
.wp-card .btn-outline-primary { border: 2px solid #0f1b2d; color: #0f1b2d; font-weight: 800; border-radius: .9rem; }
.wp-card .btn-outline-primary:hover { background: #0f1b2d; color: #fff; }
.wp-card .form-select, .wp-card .form-control { border-radius: .8rem; }

/* dark mode */
[data-bs-theme="dark"] body:has(.wp-page) { background: #0b1220; }
[data-bs-theme="dark"] .wp-card { background: #121a2b; border-color: rgba(255,255,255,.14); }
[data-bs-theme="dark"] .wp-h, [data-bs-theme="dark"] .wp-name, [data-bs-theme="dark"] .wp-pct, [data-bs-theme="dark"] .wp-fold summary,
[data-bs-theme="dark"] .wp-toggle-row, [data-bs-theme="dark"] .wp-todo li a { color: #f1f5fb; }
[data-bs-theme="dark"] .wp-h i, [data-bs-theme="dark"] .wp-count, [data-bs-theme="dark"] .wp-seg, [data-bs-theme="dark"] .wp-toggle-row,
[data-bs-theme="dark"] .wp-todo li a { background: #1d2a44; }
[data-bs-theme="dark"] .wp-label, [data-bs-theme="dark"] .wp-hint, [data-bs-theme="dark"] .wp-stars, [data-bs-theme="dark"] .wp-email, [data-bs-theme="dark"] .wp-count { color: rgba(230,235,242,.78); }
[data-bs-theme="dark"] .wp-input { background: #0d1628; border-color: #4a5c7c; color: #fff; }
[data-bs-theme="dark"] .wp-chip span { background: #121a2b; border-color: #4a5c7c; color: #e6ebf2; }
[data-bs-theme="dark"] .wp-chip input:checked + span { background: #f1f5fb; color: #03162f; border-color: #f1f5fb; }
[data-bs-theme="dark"] .wp-seg-item span { color: #cdd7e6; }
[data-bs-theme="dark"] .wp-seg-item input:checked + span { background: #f1f5fb; color: #03162f; }
[data-bs-theme="dark"] .wp-save { background: linear-gradient(180deg, rgba(11,18,32,0), #0b1220 45%); }
[data-bs-theme="dark"] .wp-save-btn { background: #ffa302; color: #03162f; }
[data-bs-theme="dark"] .wp-btn-ghost { background: transparent; border-color: #f1f5fb; color: #f1f5fb; }
[data-bs-theme="dark"] .wp-card .nav-pills .nav-link { background: #1d2a44; color: #f1f5fb; }
[data-bs-theme="dark"] .wp-card .nav-pills .nav-link.active { background: #f1f5fb; color: #03162f; }
[data-bs-theme="dark"] .wp-bar { background: #1d2a44; }

/* =====================================================================
   Theme switch — instant, responsive, consistent (assets/js/theme.js)
   ===================================================================== */
/* While switching, pause all transitions/animations so the whole page flips at once */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
    transition: none !important;
    animation-play-state: paused !important;
}
html { -webkit-text-size-adjust: 100%; }
body { transition: none; }

/* Navbar toggle (always visible, thumb-sized) */
.nav-theme-btn, .theme-toggle, .js-theme-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.nav-theme-btn {
    width: 42px; height: 42px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
    color: #ffc94d; font-size: 1.15rem; cursor: pointer; padding: 0; line-height: 1;
}
.nav-theme-btn:hover { background: rgba(255,255,255,.16); }
.nav-theme-btn:active { transform: scale(.94); }
.nav-theme-btn:focus-visible { outline: 3px solid rgba(255,163,2,.7); outline-offset: 2px; }
@media (min-width: 992px) { .nav-theme-btn { margin-left: .5rem; } }

/* ---- dark mode: components that had no dark styling ---- */
/* custom select / bottom-sheet picker */
[data-bs-theme="dark"] main .form-control { background-color: #0d1628; border-color: #3a4a68; color: #f1f5fb; }
[data-bs-theme="dark"] main .form-control::placeholder { color: #8b9ab3; }
[data-bs-theme="dark"] .ph-select-trigger { background: #0d1628; border-color: #3a4a68; color: #f1f5fb; }
[data-bs-theme="dark"] .ph-select-trigger[disabled] { background: #121a2b; color: #6f7e97; }
[data-bs-theme="dark"] .ph-select-trigger.is-placeholder .ph-select-value { color: #8b9ab3; }
[data-bs-theme="dark"] .ph-sheet { background: #121a2b; color: #f1f5fb; box-shadow: 0 -14px 44px rgba(0,0,0,.55); }
[data-bs-theme="dark"] .ph-sheet-backdrop { background: rgba(0,0,0,.6); }
[data-bs-theme="dark"] .ph-sheet-title, [data-bs-theme="dark"] .ph-opt, [data-bs-theme="dark"] .ph-rich .ph-opt-label,
[data-bs-theme="dark"] .ph-opt.is-selected { color: #f1f5fb; }
[data-bs-theme="dark"] .ph-sheet-close, [data-bs-theme="dark"] .ph-rich .ph-sheet-close { background: #1d2a44; color: #f1f5fb; }
[data-bs-theme="dark"] .ph-sheet-search input, [data-bs-theme="dark"] .ph-rich .ph-sheet-search input { background: #0d1628; color: #f1f5fb; }
[data-bs-theme="dark"] .ph-sheet-search input:focus { background: #0d1628; }
[data-bs-theme="dark"] .ph-sheet-search i, [data-bs-theme="dark"] .ph-rich .ph-sheet-search i { color: #aab6cc; }
[data-bs-theme="dark"] .ph-opt:hover, [data-bs-theme="dark"] .ph-opt.is-hi { background: #1b2740; }
[data-bs-theme="dark"] .ph-opt:active { background: #22304d; }
[data-bs-theme="dark"] .ph-rich .ph-opt { background: #121a2b; border-color: #2a3855; }
[data-bs-theme="dark"] .ph-rich .ph-opt:hover, [data-bs-theme="dark"] .ph-rich .ph-opt.is-hi { background: #1b2740; border-color: #3a4a68; }
[data-bs-theme="dark"] .ph-opt.is-selected, [data-bs-theme="dark"] .ph-rich .ph-opt.is-selected { background: rgba(255,163,2,.16); border-color: #ffa302; }
[data-bs-theme="dark"] .ph-opt.is-muted, [data-bs-theme="dark"] .ph-opt-group, [data-bs-theme="dark"] .ph-empty { color: #94a3bb; }

/* loading overlay */
[data-bs-theme="dark"] #phOverlay { background: rgba(5,9,18,.72); }
[data-bs-theme="dark"] #phOverlay .ph-ov-card { background: #121a2b; color: #f1f5fb; box-shadow: 0 18px 50px rgba(0,0,0,.5); }

/* register + identity forms */
[data-bs-theme="dark"] .reg-card, [data-bs-theme="dark"] .idv-card { background: #121a2b; border-color: rgba(255,255,255,.14); box-shadow: 0 12px 48px rgba(0,0,0,.45); }
[data-bs-theme="dark"] .reg-head h1, [data-bs-theme="dark"] .idv-title, [data-bs-theme="dark"] .idv-step.is-on,
[data-bs-theme="dark"] .reg-opt-body strong, [data-bs-theme="dark"] .reg-opt input:checked+.reg-opt-body strong { color: #f1f5fb; }
[data-bs-theme="dark"] .reg-head p, [data-bs-theme="dark"] .idv-sub, [data-bs-theme="dark"] .idv-check, [data-bs-theme="dark"] .idv-skip,
[data-bs-theme="dark"] .reg-foot, [data-bs-theme="dark"] .reg-hint, [data-bs-theme="dark"] .reg-opt-body small,
[data-bs-theme="dark"] .idv-found-row span, [data-bs-theme="dark"] .idv-fine, [data-bs-theme="dark"] .reg-section legend { color: #a9b6cb; }
[data-bs-theme="dark"] .reg-mini, [data-bs-theme="dark"] .idv-label, [data-bs-theme="dark"] .reg-chip span { color: #dbe4f3; }
[data-bs-theme="dark"] .reg-field input, [data-bs-theme="dark"] .reg-field select, [data-bs-theme="dark"] .idv-input,
[data-bs-theme="dark"] .reg-opt-body, [data-bs-theme="dark"] .reg-chip span { background-color: #0d1628; border-color: #3a4a68; color: #f1f5fb; }
[data-bs-theme="dark"] .reg-field label { color: #8b9ab3; }
[data-bs-theme="dark"] .reg-field input:focus+label, [data-bs-theme="dark"] .reg-field input:not(:placeholder-shown)+label { color: #aab6cc; }
[data-bs-theme="dark"] .reg-opt input:checked+.reg-opt-body { background: rgba(255,163,2,.12); border-color: #ffa302; }
[data-bs-theme="dark"] .reg-chip input:checked+span { background: #f1f5fb; color: #03162f; border-color: #f1f5fb; }
[data-bs-theme="dark"] .reg-show, [data-bs-theme="dark"] .reg-foot a { color: #7fb2ff; }
[data-bs-theme="dark"] .idv-step span, [data-bs-theme="dark"] .idv-btn--ghost { background: #1d2a44; color: #dbe4f3; }
[data-bs-theme="dark"] .idv-step.is-on span, [data-bs-theme="dark"] .idv-btn { background: #ffa302; color: #03162f; }
[data-bs-theme="dark"] .idv-line { background: #2a3855; }
[data-bs-theme="dark"] .idv-found { background: #0d1628; border-color: #2a3855; }
[data-bs-theme="dark"] .idv-found-row { border-bottom-color: #2a3855; }
[data-bs-theme="dark"] .idv-warn { background: #3a2c08; border-color: #6b5214; color: #ffe2a0; }
[data-bs-theme="dark"] .reg-alert--error { background: #3a1613; border-color: #7a2a24; color: #ffb4ac; }
[data-bs-theme="dark"] .reg-alert--info { background: #11243f; border-color: #25446f; color: #a9c8ff; }
[data-bs-theme="dark"] .reg-field--select select { background-color: #0d1628; }

/* generic catches so nothing stays glaringly white */
[data-bs-theme="dark"] .bg-body, [data-bs-theme="dark"] .list-group-item { background-color: #121a2b; color: #e6ebf2; }
[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: #e6ebf2; --bs-table-striped-bg: rgba(255,255,255,.04); --bs-table-border-color: rgba(255,255,255,.12); }
[data-bs-theme="dark"] .text-muted { color: rgba(230,235,242,.66) !important; }
[data-bs-theme="dark"] hr { border-color: rgba(255,255,255,.14); opacity: 1; }
[data-bs-theme="dark"] .alert-light { background: #121a2b; border-color: rgba(255,255,255,.14); color: #e6ebf2; }
[data-bs-theme="dark"] .modal-header, [data-bs-theme="dark"] .modal-footer { border-color: rgba(255,255,255,.12); }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
[data-bs-theme="dark"] .navbar-toggler { border-color: rgba(255,255,255,.3); }

/* ===== Growth features: timeline, hearts, saved addresses, referrals ===== */
.jt-card{padding:1.1rem 1rem .9rem;border-radius:16px}
.jt-steps{display:flex;list-style:none;margin:0 0 .9rem;padding:0}
.jt-step{flex:1;text-align:center;position:relative;min-width:0}
.jt-step::before{content:"";position:absolute;top:17px;left:-50%;width:100%;height:3px;background:#dfe3ea;z-index:0}
.jt-step:first-child::before{display:none}
.jt-step.is-done::before,.jt-step.is-current::before{background:#ffa302}
.jt-dot{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#eef0f4;color:#8a94a6;font-size:1rem;border:3px solid #fff;box-shadow:0 0 0 1px #dfe3ea}
.jt-step.is-done .jt-dot{background:#0f1b2d;color:#fff;box-shadow:0 0 0 1px #0f1b2d}
.jt-step.is-current .jt-dot{background:#ffa302;color:#0f1b2d;box-shadow:0 0 0 4px rgba(255,163,2,.28);animation:jtPulse 1.8s infinite}
.jt-label{display:block;margin-top:.35rem;font-size:.68rem;font-weight:700;color:#8a94a6;line-height:1.15}
.jt-step.is-done .jt-label,.jt-step.is-current .jt-label{color:#0f1b2d}
.jt-headline{font-weight:600;font-size:.92rem;color:#0f1b2d;text-align:center}
.jt-live{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;margin-right:.35rem;animation:jtPulse 1.8s infinite}
@keyframes jtPulse{0%,100%{opacity:1}50%{opacity:.55}}
[data-bs-theme="dark"] .jt-dot{border-color:#161d2b;background:#243044;color:#9aa6bb;box-shadow:0 0 0 1px #2f3b52}
[data-bs-theme="dark"] .jt-step::before{background:#2f3b52}
[data-bs-theme="dark"] .jt-step.is-done .jt-dot{background:#ffa302;color:#0f1b2d}
[data-bs-theme="dark"] .jt-step.is-done .jt-label,[data-bs-theme="dark"] .jt-step.is-current .jt-label,[data-bs-theme="dark"] .jt-headline{color:#f1f4fa}
@media(max-width:420px){.jt-dot{width:30px;height:30px;font-size:.85rem}.jt-step::before{top:14px}.jt-label{font-size:.6rem}}

.fav-heart{border:0;background:#fff;color:#c4cbd8;width:36px;height:36px;border-radius:50%;font-size:1.1rem;line-height:1;box-shadow:0 1px 4px rgba(15,27,45,.18);cursor:pointer;transition:transform .15s,color .15s}
.fav-heart.is-fav{color:#e11d48}
.fav-heart:hover{transform:scale(1.1)}
.fav-heart.pop{animation:heartPop .35s}
.fav-lg .fav-heart{width:42px;height:42px;font-size:1.25rem}
@keyframes heartPop{0%{transform:scale(1)}50%{transform:scale(1.35)}100%{transform:scale(1)}}
[data-bs-theme="dark"] .fav-heart{background:#243044}

.sa-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.9rem}
.sa-chip{border:2px solid #0f1b2d;background:#fff;color:#0f1b2d;border-radius:999px;padding:.45rem .95rem;font-weight:700;font-size:.9rem;text-decoration:none;cursor:pointer}
.sa-chip.active{background:#0f1b2d;color:#fff}
.sa-chip.sa-manage{border-style:dashed;border-color:#9aa6bb;color:#5b667a}
[data-bs-theme="dark"] .sa-chip{background:#161d2b;color:#f1f4fa;border-color:#ffa302}
[data-bs-theme="dark"] .sa-chip.active{background:#ffa302;color:#0f1b2d}

.ref-hero{background:linear-gradient(135deg,#0f1b2d,#052755);color:#fff;border-radius:18px;padding:1.4rem}
.ref-code{font-family:monospace;font-size:1.6rem;font-weight:800;letter-spacing:.12em;color:#ffa302}
.ref-banner{display:flex;align-items:center;gap:.8rem;background:#fff8e6;border:1px solid #ffd88a;border-radius:14px;padding:.8rem 1rem;color:#0f1b2d;text-decoration:none;font-weight:700;margin-top:1rem}
.ref-banner small{display:block;font-weight:500;color:#5b667a}
[data-bs-theme="dark"] .ref-banner{background:#2a2412;border-color:#5c4a14;color:#f1f4fa}

/* ---- Bolt-style place search ---- */
.ps-box { position: relative; }
.ps-box .ps-ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8a97a8; z-index: 2; pointer-events: none; }
.ps-box .ps-input { padding-left: 2.6rem; border-radius: 14px; }
.ps-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .25rem; list-style: none;
    background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #dee2e6); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); max-height: 320px; overflow-y: auto; }
.ps-list[hidden] { display: none; }
.ps-item { display: flex; gap: .65rem; align-items: flex-start; padding: .65rem .75rem; border-radius: 10px; cursor: pointer; }
.ps-item:hover, .ps-item:focus, .ps-item.active { background: rgba(255,163,2,.12); outline: none; }
.ps-item i { color: #ffa302; margin-top: .15rem; }
.ps-item b { display: block; font-weight: 700; line-height: 1.25; }
.ps-item small { color: #8a97a8; display: block; line-height: 1.25; }
.ps-empty { padding: .75rem; color: #8a97a8; font-size: .9rem; }
.ps .ps-result.text-danger { font-weight: 700; }

/* ---- "Coming soon" card for states we have not launched in ---- */
.ps-soon { margin-top: .75rem; padding: 1.25rem 1rem; text-align: center; border-radius: 18px; border: 1px dashed #ffb52e;
    background: linear-gradient(160deg, #fff7e4 0%, #ffeccc 100%); color: #0f1b2d; }
.ps-soon[hidden] { display: none; }
.ps-soon-emoji { font-size: 2rem; line-height: 1; margin-bottom: .35rem; }
.ps-soon-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.ps-soon-text { font-size: .9rem; margin: .4rem 0 .9rem; color: #4a5568; }
.ps-soon-done { color: #1a7f3c; }
[data-bs-theme="dark"] .ps-soon { background: linear-gradient(160deg, #2a2412 0%, #1f1a0c 100%); border-color: #7a5a14; color: #f1f4fa; }
[data-bs-theme="dark"] .ps-soon-text { color: #b9c1d0; }
