/* HomeHands Kenya - design system from rc_u Member Portal (memberportal/base.html),
   moved out of the template and rebranded. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #E3F5F2;
    --primary-glow: rgba(13,148,136,0.15);
    --brand-gradient: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    --accent: #F59E0B;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --bg: #FBF7F1;
    --bg-warm: #F6EBDD;
    --card: #ffffff;
    --text: #1C2430;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E8E2D9;
    --border-light: #F1ECE4;
    --shadow-sm: 0 1px 2px rgba(60,40,20,0.05);
    --shadow: 0 1px 2px rgba(60,40,20,0.04), 0 4px 14px -6px rgba(60,40,20,0.10);
    --shadow-md: 0 2px 4px rgba(60,40,20,0.05), 0 12px 28px -10px rgba(60,40,20,0.18);
    --shadow-lg: 0 4px 10px rgba(60,40,20,0.06), 0 24px 48px -16px rgba(60,40,20,0.22);
    --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 6px;
    --bottom-nav: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
body {
    font-family: var(--font);
    /* Homey: warm cream with a faint pattern of houses, hearts and plants. */
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 100% -10%, rgba(245,158,11,0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(13,148,136,0.08), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 160 160' fill='none' stroke='%23D8C3A0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.22'%3E%3Cpath d='M14 34 L30 20 L46 34 V50 H14 Z M26 50 V40 H34 V50'/%3E%3Cpath d='M112 44 c-7-5-12-9-12-14 a6 6 0 0 1 12-2 a6 6 0 0 1 12 2 c0 5-5 9-12 14z'/%3E%3Cpath d='M40 128 c0-14 9-21 21-21 c0 12-7 21-21 21z M40 128 l12-12'/%3E%3Cpath d='M118 112 h22 v6 a11 11 0 0 1-22 0z M140 114 h4 a3 3 0 0 1 0 6 h-3'/%3E%3C/svg%3E");
    background-attachment: fixed, fixed, scroll;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav) + var(--safe-bottom) + 16px);
    overflow-x: hidden;
}
a { color: var(--primary-dark); }
img { max-width: 100%; }

/* ── Top Header ── */
.mp-header {
    background: rgba(255,253,249,0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    color: var(--text);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(232,226,217,0.8);
}
.mp-header .brand-area { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.mp-header .brand-logo {
    width: 38px; height: 38px; background: var(--brand-gradient); color: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
    box-shadow: 0 6px 14px -6px rgba(13,148,136,0.7);
}
.mp-header .brand-text .brand { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; }
.mp-header .brand-text .user-info { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.mp-header nav { display: flex; align-items: center; gap: 6px; }
.mp-header nav a, .mp-header nav button {
    color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    background: transparent; border: none; cursor: pointer; font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.mp-header nav a:hover, .mp-header nav button:hover { background: var(--primary-light); color: var(--primary-dark); }
.mp-header nav .desktop-only { display: none; }
@media (min-width: 760px) {
    .mp-header nav .desktop-only { display: inline-flex; }
    .mp-bottom-nav { display: none !important; }
    body { padding-bottom: 0; }
}

/* ── Bottom Tab Nav (mobile / installed app) ── */
.mp-bottom-nav {
    position: fixed; bottom: calc(8px + var(--safe-bottom)); left: 10px; right: 10px;
    background: rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--border-light); border-radius: 22px; display: flex; justify-content: space-around;
    padding: 6px 4px; z-index: 100; box-shadow: var(--shadow-lg);
}
.mp-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: var(--text-light); font-size: 10.5px; font-weight: 700; padding: 6px 12px; border-radius: 16px;
    position: relative; letter-spacing: 0.1px; transition: background 0.2s, color 0.2s;
}
.mp-bottom-nav a i { font-size: 20px; margin-bottom: 3px; }
.mp-bottom-nav a.active { color: var(--primary-dark); background: var(--primary-light); }
.mp-bottom-nav a.active::before { content: none; }

/* ── Content ── */
.mp-content { padding: 16px; max-width: 600px; margin: 0 auto; }
.mp-content.wide { max-width: 1120px; }
.page-title { font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 8px 0 6px; }
.page-sub { color: var(--text-secondary); font-size: 15px; margin-bottom: 18px; }

/* ── Cards ── */
.mp-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; margin-bottom: 14px; border: 1px solid var(--border-light);
}
.mp-card h3 {
    font-size: 12px; color: var(--primary-dark); margin-bottom: 12px; text-transform: uppercase;
    letter-spacing: 0.9px; font-weight: 800;
}

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap;
}
.badge-seeking, .badge-verified, .badge-live { background: var(--success-light); color: #065F46; }
.badge-pending, .badge-short, .badge-waiting { background: var(--warning-light); color: #B45309; }
.badge-hired, .badge-info { background: var(--info-light); color: #1D4ED8; }
.badge-rejected, .badge-suspended, .badge-held, .badge-danger { background: var(--danger-light); color: #991B1B; }
.badge-paused, .badge-stale, .badge-muted, .badge-dismissed, .badge-used { background: var(--border-light); color: var(--text-secondary); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none;
    border-radius: var(--radius-sm); padding: 12px 22px; font-size: 15px; font-weight: 700;
    cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 18px -8px rgba(13,148,136,0.75); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 22px -8px rgba(13,148,136,0.8); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: none; color: var(--primary-dark); cursor: pointer; font: inherit; text-decoration: underline; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label, .label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.form-help { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }
.form-control {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 16px; font-family: inherit; background: #fff; outline: none; color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.form-control::placeholder { color: var(--text-light); }
select.form-control {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 80px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { display: none; }
.chip span {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--border);
    font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; user-select: none; transition: all 0.15s;
}
.chip input:checked + span { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); }

/* ── Flash / alerts ── */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.flash-success { background: var(--success-light); color: #065F46; }
.flash-error { background: var(--danger-light); color: #991B1B; }
.flash-info { background: var(--info-light); color: #1E40AF; }
.notice { background: var(--warning-light); color: #92400E; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; }

/* ── Home hero ── */
.hero {
    position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 34px 26px; margin-bottom: 18px;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(245,158,11,0.35), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(16,185,129,0.35), transparent 60%),
        linear-gradient(135deg, #0F766E 0%, #0D9488 55%, #14B8A6 100%);
    box-shadow: var(--shadow-lg);
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 12px; }
.hero p { opacity: 0.94; margin-bottom: 20px; font-size: 16px; max-width: 46ch; }
.hero .btn-light { background: #fff; color: var(--primary-dark); }
.hero .btn-ghost { background: rgba(255,255,255,0.15); color: #fff; }
.price-tag { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 12px; }
.hero-split { display: grid; gap: 8px; align-items: center; overflow: hidden; }
.hero-art { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
@media (min-width: 760px) { .hero-split { grid-template-columns: 1.2fr 1fr; padding: 34px 32px; } .hero-art { max-width: 420px; } }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-row > div { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 10px; font-size: 12px; color: var(--text-secondary); text-align: center; }
.trust-row i { display: block; font-size: 20px; color: var(--primary); margin-bottom: 4px; }
.trust-row strong { color: var(--text); font-size: 15px; margin-right: 3px; }
.icon-tile { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 10px; }
.icon-tile.teal { background: var(--primary-light); color: var(--primary); }
.icon-tile.amber { background: var(--warning-light); color: #B45309; }
.icon-tile.rose { background: #FFE4E6; color: #E11D48; }
.worker-cta { display: grid; gap: 12px; align-items: center; }
.worker-cta img { width: 160px; margin: 0 auto; }
@media (min-width: 640px) { .worker-cta { grid-template-columns: 200px 1fr; } .worker-cta img { width: 200px; } }
.steps { display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .hero h1 { font-size: 34px; } }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }

/* ── Worker cards ── */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.w-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-light);
    padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; color: var(--text);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.w-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(13,148,136,0.25); }
.avatar { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; background: var(--primary-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 28px; font-weight: 800; }
.avatar-lg { width: 120px; height: 120px; border-radius: 20px; font-size: 44px; }
.w-card .w-top { display: flex; gap: 14px; min-width: 0; }
.w-card .services { margin: 0; }
.w-card .name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.w-card .meta, .meta { font-size: 13px; color: var(--text-secondary); }
.w-card .salary, .salary { font-weight: 800; color: var(--primary-dark); }
.stars { color: #F59E0B; font-size: 13px; }
.fresh { font-size: 11px; color: var(--success); font-weight: 600; }

/* ── Filters ── */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(6, 1fr); } }
.filters .form-control { padding: 9px 12px; font-size: 14px; }
.filters .full { grid-column: 1 / -1; }

/* ── Profile page ── */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact .k { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.fact .v { font-size: 14px; font-weight: 600; }
.contact-box { background: var(--primary-light); border-radius: var(--radius); padding: 16px; }
.locked { text-align: center; padding: 22px 16px; border: 2px dashed var(--border); border-radius: var(--radius); }
.locked i { font-size: 30px; color: var(--primary); margin-bottom: 8px; }

/* ── Lists & tables ── */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.list-item:last-child { border-bottom: none; }
.list-item .details { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: 14px; }
.list-item .subtitle { font-size: 12px; color: var(--text-light); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-secondary); padding: 8px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 8px; border-bottom: 1px solid var(--border-light); vertical-align: top; }

/* ── Stat tiles (admin) ── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--border-light); text-decoration: none; color: var(--text); }
.stat .n { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.stat .l { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 7px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-secondary); background: var(--card); border: 1px solid var(--border); }
.tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Star input ── */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 32px; color: #E5E7EB; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F59E0B; }

/* ── Pagination ── */
.pager { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.d-flex { display: flex; } .justify-between { justify-content: space-between; } .align-center { align-items: center; }
.gap-1 { gap: 8px; } .wrap { flex-wrap: wrap; } .hidden { display: none !important; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state i { font-size: 44px; margin-bottom: 12px; display: block; color: var(--border); }
.section-label::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.section-label {
    display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text); margin: 26px 0 12px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
}
.site-footer { text-align: center; color: var(--text-light); font-size: 13px; padding: 24px 16px 8px; }
.site-footer a { color: var(--text-secondary); margin: 0 6px; }
.spinner { width: 34px; height: 34px; border: 4px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: slideUp 0.3s ease forwards; }

/* ── Hidden attribute always wins (JS toggles it) ── */
[hidden] { display: none !important; }

/* ── Services on cards and profiles ── */
.services { list-style: none; margin: 8px 0 6px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.services li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; background: var(--bg-warm); border-radius: 10px; padding: 6px 10px; }
.services li i { color: var(--primary); width: 16px; text-align: center; flex-shrink: 0; }
.services .svc-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.services .svc-rate { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.services .svc-more { background: none; padding: 0 9px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }

/* ── Profile form: one screen at a time ── */
.stepper { margin: 0 0 12px; }
.stepper-dots { display: flex; gap: 6px; margin-bottom: 6px; }
.stepper-dots span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.stepper-dots span.done { background: var(--primary); }
.stepper-label { font-size: 13px; font-weight: 700; color: var(--primary-dark); }
.step-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-bottom: 12px; }
.step-nav .btn, [data-submit] { padding: 15px 20px; font-size: 16px; }
.step-error { background: var(--danger-light); color: #991B1B; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.role-group { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.6px; margin: 14px 0 8px; }
.role-group:first-of-type { margin-top: 0; }
.chip span { padding: 10px 14px; font-size: 14px; }
.chip span i { color: var(--primary); margin-right: 3px; }
.chip input:checked + span i { color: var(--primary-dark); }
.chip input:checked + span::after { content: ' \2713'; font-weight: 800; }
.role-list { display: grid; gap: 8px; }
.role-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.role-pick { cursor: pointer; min-width: 0; }
.role-pick input { display: none; }
.role-pick span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; user-select: none; }
.role-pick span i { color: var(--primary); width: 18px; text-align: center; font-size: 16px; }
.role-pick span b { font-size: 14px; font-weight: 600; }
.role-pick span small { flex-basis: 100%; margin: -4px 0 0 28px; font-size: 11px; color: var(--text-light); }
.role-pick input:checked + span { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.role-pick input:checked + span b::after { content: ' \2713'; font-weight: 800; }
.rate-inline { display: grid; grid-template-columns: 88px 78px; gap: 6px; }
.rate-inline .form-control { padding: 11px 8px; font-size: 15px; }
.rate-inline select.form-control { padding-right: 22px; background-position: right 6px center; }
@media (min-width: 560px) { .rate-inline { grid-template-columns: 120px 96px; } }
.dob { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 8px; }
.file-btn { cursor: pointer; padding: 15px; }
.file-btn.has-file { border-color: var(--success); color: #065F46; background: var(--success-light); }
details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--primary-dark); }

/* ── Camera ── */
.camera-stage { position: relative; width: 220px; height: 220px; margin: 4px auto 10px; border-radius: 50%; overflow: hidden; background: var(--primary-light); border: 4px solid #fff; box-shadow: var(--shadow-md); }
.camera-stage video, .camera-stage .camera-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera-stage video { transform: scaleX(-1); }   /* a mirror, like every selfie camera */
.camera-empty { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 84px; color: rgba(13,148,136,0.35); }
.camera-oval { position: absolute; inset: 16% 22% 12%; border: 3px dashed rgba(255,255,255,0.9); border-radius: 50%; pointer-events: none; }
.camera .btn-row { justify-content: center; }
.camera .btn-row .btn { padding: 14px 22px; font-size: 16px; }
.camera-status { text-align: center; font-size: 14px; font-weight: 600; min-height: 20px; margin-bottom: 8px; }
.camera-status.good { color: var(--success); }
.camera-status.bad { color: var(--danger); }
.camera-status.busy { color: var(--text-secondary); }

/* ── Install banner (phone app / computer app) ── */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav) + var(--safe-bottom) + 10px); z-index: 120; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; }
.install-bar .txt { flex: 1; font-size: 13px; }
.install-bar .txt strong { display: block; font-size: 14px; }
.install-bar .close { background: none; border: none; font-size: 18px; color: var(--text-light); cursor: pointer; padding: 4px; }
@media (min-width: 760px) { .install-bar { bottom: 18px; right: 18px; left: auto; width: 420px; } }
.how-install { counter-reset: s; list-style: none; }
.how-install li { counter-increment: s; position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.how-install li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Listing heading, centred above the filters ── */
[data-results-head] { text-align: center; max-width: 760px; margin: 0 auto 4px; }
[data-results] { transition: opacity 0.15s; }

/* ── Job requests (inbox) ── */
.request-facts { list-style: none; display: grid; gap: 6px; margin: 12px 0; font-size: 14px; }
.request-facts li { display: flex; align-items: center; gap: 10px; }
.request-facts li > i { width: 18px; text-align: center; color: var(--primary); }
.request-from img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); }
.answer-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-buttons .btn { padding: 15px; font-size: 16px; }
.answer-no { border-top: 1px solid var(--border-light); margin-top: 12px; padding-top: 6px; }
.code-input { font-size: 26px; letter-spacing: 8px; text-align: center; font-weight: 800; }

/* ── Available / not available switch ── */
.switch2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-warm); padding: 6px; border-radius: 16px; }
.switch2 button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: transparent; border-radius: 12px; padding: 12px 8px; font: inherit; font-weight: 800; font-size: 15px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.switch2 button i { font-size: 22px; }
.switch2 button small { font-weight: 600; font-size: 12px; }
.switch2 button.on { background: #fff; color: var(--success); box-shadow: var(--shadow); }
.switch2 button.on.off { color: var(--text); }
.why .label { margin-bottom: 8px; }

/* ── Home: the job-seeker band ── */
.work-band { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; text-decoration: none; color: var(--text);
    background: linear-gradient(120deg, #FFF4E0 0%, #FFE7C2 100%); border: 1px solid #F6D39B; border-radius: var(--radius);
    padding: 18px 20px; margin: 4px 0 8px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.work-band:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.work-band-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.work-band-text { flex: 1; min-width: 200px; }
.work-band-text strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.work-band-text span { font-size: 14px; color: #7C5A1E; }
.how-steps { padding-left: 20px; display: grid; gap: 10px; font-size: 14.5px; }
.join-pick { text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.join-pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Password box with an eye button; tidy checkboxes ── */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: none; background: transparent; border-radius: 10px; color: var(--text-secondary); cursor: pointer; font-size: 17px; }
.pw-toggle:hover { background: var(--primary-light); color: var(--primary-dark); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--text); cursor: pointer; }
.form-group label.check { display: flex; margin: 10px 0 0; font-weight: 500; }
.check input[type=checkbox], .check input[type=radio] { flex-shrink: 0; margin-top: 1px; width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }

.home-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
@media (max-width: 520px) { .home-row { grid-template-columns: 1fr; } }

/* ── New-request counts in the menus ── */
.mp-header nav .count { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.mp-bottom-nav .dot { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; display: flex; align-items: center; justify-content: center; }

/* ── Phones: fewer filters at first; stat labels on two lines ── */
.stat .l small { display: block; font-weight: 500; color: var(--text-light); }
.filters .more-filters { display: none; }
@media (max-width: 759px) {
    .filters .more-filters { display: inline-flex; grid-column: 1 / -1; padding: 9px; }
    .filters .extra { display: none; }
    .filters.show-extra .extra { display: block; }
}

/* ── Phones: a short banner, so the people show up quickly ── */
.show-phone { display: none; }
@media (max-width: 640px) {
    .hide-phone { display: none; }
    .show-phone { display: inline; }
    .hero { padding: 22px 18px; border-radius: 22px; }
    .hero h1 { font-size: 27px; margin-bottom: 8px; }
    .hero p { font-size: 14.5px; margin-bottom: 14px; }
    .hero-art { display: none; }
    .hero .btn-row { flex-wrap: nowrap; }
    .hero .btn-row .btn { flex: 1; padding: 11px 10px; font-size: 14px; }
    .price-tag { margin-bottom: 10px; }
    .trust-row { display: none; }
    .work-band { flex-wrap: nowrap; gap: 10px; padding: 12px 14px; }
    .work-band-icon { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
    .work-band-text { min-width: 0; }
    .work-band-text strong { font-size: 15px; }
    .work-band-text span { display: none; }
    .work-band .btn { padding: 9px 12px; font-size: 13px; white-space: nowrap; }
}

/* ── How you work: four big tiles ── */
.wt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; border-radius: 16px; transition: box-shadow 0.2s; }
.wt-grid.needs-answer { box-shadow: 0 0 0 3px var(--danger-light), 0 0 0 5px var(--danger); }
.wt-tile { cursor: pointer; }
.wt-tile input { display: none; }
.wt-tile span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; padding: 14px 10px; text-align: center; background: #fff; border: 2px solid var(--border); border-radius: 16px; transition: all 0.15s; }
.wt-tile span i { font-size: 26px; color: var(--primary); margin-bottom: 4px; }
.wt-tile span b { font-size: 16px; font-weight: 800; color: var(--text); }
.wt-tile span small { font-size: 12px; color: var(--text-secondary); line-height: 1.3; }
.wt-tile:hover span { border-color: rgba(13,148,136,0.45); }
.wt-tile input:checked + span { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 6px 16px -8px rgba(13,148,136,0.6); }
.wt-tile input:checked + span::after { content: '\2713'; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
@media (min-width: 560px) { .wt-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Bell, notifications, jobs ── */
.mp-header nav .bell { position: relative; }
.mp-header nav .bell .dot { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--border-light); text-decoration: none; color: var(--text); }
.note:last-child { border-bottom: none; }
.note > i { margin-top: 5px; font-size: 9px; color: var(--text-light); width: 12px; }
.note-new > i { color: var(--primary); }
.note-new .note-text { font-weight: 700; }
.note-text { display: block; font-size: 14px; }
.note-when { display: block; font-size: 12px; color: var(--text-light); }
.push-card { border-color: rgba(13,148,136,0.3); background: linear-gradient(120deg, #F0FBF9, #fff); }
.job-card.job-match { border-color: rgba(13,148,136,0.35); }
.interest-post { border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 10px; }

/* ── Admin: visitors (one teal series; bars start at the baseline) ── */
.vchart { position: relative; padding: 18px 0 0; }
.vchart-top { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--text-light); }
.vchart-bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--border); }
.vchart-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.vchart-col span { display: block; width: 100%; min-height: 1px; background: var(--primary); border-radius: 4px 4px 0 0; }
.vchart-col:hover span, .vchart-col:focus span { background: var(--primary-dark); }
.vchart-col:hover::after, .vchart-col:focus::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; white-space: nowrap; background: var(--text); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; z-index: 5; pointer-events: none; }
.vchart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-light); margin-top: 4px; }
.funnel { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.funnel > div { display: flex; flex-direction: column; }
.funnel b { font-size: 24px; font-weight: 800; }
.funnel span { font-size: 12px; color: var(--text-secondary); }
.funnel > i { color: var(--text-light); }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 900px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vgrid .table td.num { text-align: right; font-weight: 700; width: 48px; }
.vgrid .table td.barcol { width: 34%; }
.vgrid .table td.path { word-break: break-all; }
.cell-bar { display: block; height: 8px; background: var(--border-light); border-radius: 4px; }
.cell-bar span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* Back to the CPA admin's app chooser (admin/base.html) */
.hub-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--text-secondary); text-decoration: none; }
.hub-back:hover { color: var(--primary); }

/* Labelled sample profiles (flask samples add): never mistaken for real people */
.sample-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent-light, #FEF3C7); color: #92400E; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }
.w-card.is-sample { border-style: dashed; }
.sample-note { font-size: 11px; color: #92400E; font-weight: 600; }
.sample-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: #FEF3C7; color: #78350F; font-size: 14px; line-height: 1.45; }
.sample-banner i { margin-top: 3px; }
.badge-sample { background: #FEF3C7; color: #92400E; }

/* Home: real open jobs, for job seekers deciding to join */
.jobs-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.job-chip { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--card-bg, #fff); border: 1px solid var(--border, #E5E7EB); color: var(--text); text-decoration: none; }
.job-chip:hover { border-color: var(--primary); }
.job-chip i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.job-chip strong { display: block; font-size: 14px; }
.job-chip span { font-size: 12px; color: var(--text-secondary); }

/* Home hero: real families still looking (public.families_looking) */
.hero-live { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--text); font-size: 13px; }
.hero-live strong { color: var(--primary-dark); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
