/* =====================================================================
   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;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--helpa-bg-soft);
    color: var(--helpa-text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Navbar */
.helpa-navbar {
    background: linear-gradient(135deg, var(--helpa-primary-dark), var(--helpa-primary));
}
.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: 800;
}
.hero-cta .btn-accent {
    background-color: var(--helpa-accent);
    border-color: var(--helpa-accent);
    color: #2b1d00;
    font-weight: 600;
}
.hero-cta .btn-accent:hover {
    background-color: var(--helpa-accent-dark);
    border-color: var(--helpa-accent-dark);
}

/* =====================================================================
   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 {
    min-height: 480px;
}
.hero-slider.hero-slider-slim {
    min-height: 220px;
}
@media (max-width: 576px) {
    .hero-slider.hero-slider-tall {
        min-height: 560px;
    }
}
.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. */
main.has-bottom-nav {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0));
}

/* =====================================================================
   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: 260px;
    opacity: 1;
}
.floating-help-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.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; }
}
