/* ================================================================
   SOL PLATFORM — MAIN STYLESHEET
   Black & White Editorial Design
   Font: Bebas Neue (display) + DM Sans (body)
================================================================ */

:root {
  --black:   #000000;
  --white:   #ffffff;
  --gray-50: #fafafa;
  --gray-100:#f5f5f5;
  --gray-200:#e8e8e8;
  --gray-300:#d4d4d4;
  --gray-400:#a0a0a0;
  --gray-500:#737373;
  --gray-600:#525252;
  --gray-700:#404040;
  --gray-800:#262626;
  --gray-900:#171717;
  --accent:  #000000;
  --danger:  #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --info:    #2563eb;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --sidebar-w: 260px;
  --topbar-h:  64px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --transition:.2s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
.display-font { font-family: var(--font-display); letter-spacing: .02em; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); display: block; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-family: var(--font-display); line-height: 1.1; }
.brand-logo { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .08em; color: var(--white) !important; }
.brand-logo-lg { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: .1em; }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar { background: var(--gray-900); color: var(--white); text-align: center; padding: .5rem 1rem; font-size: .85rem; position: relative; display: flex; align-items: center; justify-content: center; gap: .75rem; }
.announcement-icon { color: #fbbf24; }
.announcement-close { position: absolute; right: 1rem; background: none; border: none; color: var(--white); font-size: 1.1rem; cursor: pointer; opacity: .7; }
.announcement-close:hover { opacity: 1; }

/* ── NAVBAR ── */
.navbar { border-bottom: 1px solid var(--gray-800); padding: .75rem 0; }
.navbar-country-flag { display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; line-height: 1; }
.webcrest-credit { display: inline-flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.webcrest-logo { display: inline-block; max-width: 120px; max-height: 24px; width: auto; height: auto; object-fit: contain; }
.dashboard-footer { padding: .9rem 2rem; border-top: 1px solid var(--gray-200); text-align: right; }
.dashboard-footer .webcrest-credit { justify-content: flex-end; }
.auth-footer { display: flex; justify-content: center; padding: 1rem; border-top: 1px solid var(--gray-200); }
.auth-footer .webcrest-credit { justify-content: center; }
.navbar-nav .nav-link { font-size: .9rem; font-weight: 500; padding: .4rem .85rem; border-radius: 4px; transition: var(--transition); color: var(--gray-300) !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--white) !important; background: rgba(255,255,255,.08); }
.btn-white { background: var(--white); color: var(--black); border: 1px solid var(--white); font-size: .85rem; font-weight: 600; }
.btn-white:hover { background: var(--gray-100); color: var(--black); }

/* ── HERO SLIDER ── */
.hero-section { background: var(--black); color: var(--white); min-height: 90vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hero-slider { flex: 1; position: relative; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s ease; pointer-events: none; padding: 4rem 0; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.slide-content { position: relative; z-index: 1; }
.slide-label { display: inline-block; background: var(--white); color: var(--black); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: .3rem .8rem; margin-bottom: 1.5rem; }
.slide-title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); line-height: .95; margin-bottom: 1.5rem; }
.slide-title em { font-style: normal; -webkit-text-stroke: 1px var(--white); color: transparent; }
.slide-text { font-size: 1.1rem; color: var(--gray-300); max-width: 480px; margin-bottom: 2rem; }
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.slider-controls { display: flex; align-items: center; gap: 1rem; padding: 2rem 0 3rem; }
.slider-dots { display: flex; gap: .5rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-600); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.slider-dot.active { background: var(--white); width: 24px; border-radius: 4px; }
.slider-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gray-700); background: transparent; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); font-size: .9rem; }
.slider-nav:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.slide-image { display: flex; align-items: center; justify-content: center; }
.slide-visual { width: min(420px, 100%); aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-800); background: var(--gray-900); display: flex; align-items: center; justify-content: center; }
.slide-visual i { font-size: 8rem; color: var(--gray-700); }

/* ── STATS BAR ── */
.stats-bar { background: var(--gray-900); padding: 1.5rem 0; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--white); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--black); color: var(--white); }
.section-header { margin-bottom: 3rem; }

/* ── CATEGORY CARDS ── */
.category-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: all var(--transition); display: block; color: inherit; }
.category-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; opacity: 1; }
.category-icon { width: 64px; height: 64px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; transition: var(--transition); }
.category-card:hover .category-icon { background: var(--black); color: var(--white); }
.category-name { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.category-count { font-size: .8rem; color: var(--gray-500); }

/* ── WORKER CARDS ── */
.worker-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.worker-card:hover { border-color: var(--black); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.worker-card-header { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.worker-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-200); flex-shrink: 0; }
.worker-info { flex: 1; min-width: 0; }
.worker-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worker-role { font-size: .8rem; color: var(--gray-500); }
.worker-verified { font-size: .7rem; color: var(--success); display: flex; align-items: center; gap: .25rem; margin-top: .25rem; }
.worker-card-body { padding: 0 1.5rem 1.5rem; }
.worker-rating { display: flex; align-items: center; gap: .35rem; font-size: .85rem; margin-bottom: .75rem; }
.worker-stars { color: #f59e0b; }
.worker-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.worker-tag { font-size: .72rem; background: var(--gray-100); border-radius: 4px; padding: .2rem .6rem; font-weight: 500; }
.worker-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.worker-rate { font-weight: 700; font-size: 1.1rem; }
.worker-rate small { font-size: .75rem; font-weight: 400; color: var(--gray-500); }

/* ── JOB CARDS ── */
.job-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; transition: all var(--transition); }
.job-card:hover { border-color: var(--black); box-shadow: var(--shadow); }
.job-title { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: var(--gray-500); margin-bottom: .75rem; }
.job-meta i { color: var(--gray-400); }
.job-budget { font-weight: 700; color: var(--success); font-size: 1.05rem; }
.job-type-badge { font-size: .72rem; font-weight: 600; padding: .2rem .7rem; border-radius: 20px; }
.badge-open { background: #dcfce7; color: #16a34a; }
.badge-closed { background: #fee2e2; color: #dc2626; }
.badge-inprogress { background: #fef9c3; color: #854d0e; }

/* ── HOW IT WORKS ── */
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-number { font-family: var(--font-display); font-size: 4rem; color: var(--gray-200); line-height: 1; margin-bottom: 1rem; }
.step-icon { width: 56px; height: 56px; background: var(--black); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 1rem; }
.step-title { font-weight: 700; margin-bottom: .5rem; }

/* ── ADS / BANNERS ── */
.ad-banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.ad-banner img { width: 100%; height: 100%; object-fit: cover; }
.ad-placeholder { background: var(--gray-100); padding: 2rem; text-align: center; color: var(--gray-500); font-size: .85rem; }

/* ── BUTTONS ── */
.btn { font-family: var(--font-body); font-weight: 600; border-radius: var(--radius); transition: all var(--transition); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-sol { background: var(--black); color: var(--white); border: 2px solid var(--black); padding: .65rem 1.75rem; font-size: .9rem; border-radius: var(--radius); }
.btn-sol:hover { background: var(--gray-800); color: var(--white); border-color: var(--gray-800); }
.btn-sol-outline { background: transparent; color: var(--black); border: 2px solid var(--black); padding: .65rem 1.75rem; font-size: .9rem; border-radius: var(--radius); }
.btn-sol-outline:hover { background: var(--black); color: var(--white); }
.btn-sol-white { background: var(--white); color: var(--black); border: 2px solid var(--white); padding: .65rem 1.75rem; font-size: .9rem; }
.btn-sol-white:hover { background: var(--gray-100); color: var(--black); border-color: var(--gray-100); }

/* ── FORMS ── */
.form-control, .form-select { border-radius: var(--radius); border: 1.5px solid var(--gray-200); font-size: .9rem; padding: .65rem 1rem; font-family: var(--font-body); transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); outline: none; }
.form-label { font-weight: 600; font-size: .85rem; color: var(--gray-700); margin-bottom: .4rem; }
.input-group-text { background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: var(--radius) 0 0 var(--radius); }
.form-check-input:checked { background-color: var(--black); border-color: var(--black); }
.form-text { font-size: .78rem; color: var(--gray-500); }
.invalid-feedback { font-size: .78rem; }
.form-required::after { content: ' *'; color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── AUTH PAGES ── */
.auth-wrapper { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: var(--black); display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem; color: var(--white); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--white); overflow-y: auto; }
.auth-form-container { width: 100%; max-width: 420px; }
.auth-form-title { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: .25rem; }
.auth-form-sub { color: var(--gray-500); font-size: .9rem; margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--gray-400); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-left-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; margin-bottom: 1.5rem; }
.auth-left-sub { color: var(--gray-400); font-size: 1rem; max-width: 360px; }
.auth-feature { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.auth-feature i { color: var(--white); background: var(--gray-800); border-radius: 50%; padding: .4rem; font-size: .85rem; flex-shrink: 0; margin-top: .1rem; }
.auth-feature-text { font-size: .9rem; color: var(--gray-300); }
.otp-inputs { display: flex; gap: .75rem; justify-content: center; margin: 1.5rem 0; }
.otp-input { width: 52px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 700; border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--black); }
.otp-input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); outline: none; }
.otp-input { transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s; caret-color: var(--black); }
.otp-input.is-filled { border-color: var(--black); }
.otp-input.is-checking { border-color: var(--gray-400); color: var(--gray-500); }
.otp-input.is-error { border-color: var(--danger); background: #fef2f2; color: var(--danger); }
.otp-input.is-success { border-color: var(--success); background: var(--success); color: var(--white); animation: otpPop .45s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 8px 20px rgba(22,163,74,.28); }
@keyframes otpPop { 0% { transform: scale(1); } 45% { transform: scale(1.18) rotate(-4deg); } 100% { transform: scale(1) rotate(0); } }
.otp-shake { animation: otpShake .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes otpShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.otp-card { position: relative; }
.otp-stage { transition: opacity .35s ease, transform .35s ease; }
.otp-stage-out { opacity: 0; transform: translateY(-14px) scale(.98); pointer-events: none; }
.otp-welcome { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .45s ease .05s, transform .45s ease .05s, visibility 0s .5s; }
.otp-welcome.show { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease; }
.otp-welcome-check { width: 92px; height: 92px; border-radius: 50%; background: var(--success); color: var(--white); display: grid; place-items: center; font-size: 3rem; box-shadow: 0 0 0 0 rgba(22,163,74,.45); }
.otp-welcome.show .otp-welcome-check { animation: otpCheckIn .6s cubic-bezier(.34,1.56,.64,1), otpRing 1.6s ease-out .4s infinite; }
@keyframes otpCheckIn { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes otpRing { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 100% { box-shadow: 0 0 0 26px rgba(22,163,74,0); } }
.otp-welcome-title { font-family: var(--font-display); font-size: 2.6rem; margin: 1.25rem 0 .25rem; letter-spacing: .03em; }
.otp-welcome.show .otp-welcome-title, .otp-welcome.show .otp-welcome-sub { animation: otpRise .5s ease both .25s; }
.otp-welcome.show .otp-welcome-sub { animation-delay: .4s; }
@keyframes otpRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.otp-welcome-sub { color: var(--gray-500); font-size: .95rem; }
.otp-welcome-bar { width: 180px; height: 4px; border-radius: 4px; background: var(--gray-200); overflow: hidden; margin-top: 1.25rem; }
.otp-welcome-bar span { display: block; height: 100%; width: 0; background: var(--black); }
.otp-welcome.show .otp-welcome-bar span { animation: otpBar 2.4s linear forwards .3s; }
@keyframes otpBar { to { width: 100%; } }
.otp-confetti { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.otp-confetti i { position: absolute; top: 45%; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: otpConfetti 1.6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes otpConfetti { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--rot)); } }
@media (prefers-reduced-motion: reduce) { .otp-input, .otp-stage, .otp-welcome, .otp-welcome *, .otp-confetti i { animation: none !important; transition: none !important; } }
@media (max-width: 768px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { padding: 2rem 1.5rem; }
}

/* ── DASHBOARD LAYOUT ── */
.dash-body { background: var(--gray-50); }
.dashboard-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); background: var(--black); color: var(--white); z-index: 1000; display: flex; flex-direction: column; overflow-y: auto; transition: transform var(--transition); }
.sidebar-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-800); display: flex; align-items: center; justify-content: space-between; }
.sidebar-brand { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .06em; color: var(--white) !important; }
.sidebar-close { background: none; border: none; color: var(--gray-400); font-size: 1rem; cursor: pointer; }
.sidebar-user { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-800); display: flex; align-items: center; gap: .75rem; }
.sidebar-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-700); flex-shrink: 0; }
.sidebar-user-name { font-size: .85rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--gray-800); color: var(--gray-300); padding: .15rem .5rem; border-radius: 3px; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; font-size: .875rem; color: var(--gray-400); transition: all var(--transition); position: relative; cursor: pointer; text-decoration: none; -webkit-user-select: none; user-select: none; }
.sidebar-link:hover { color: var(--white); background: rgba(255,255,255,.06); opacity: 1; }
.sidebar-link.active { color: var(--white); background: rgba(255,255,255,.1); border-right: 3px solid var(--white); }
.sidebar-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-badge { position: absolute; right: 1rem; background: var(--danger); color: var(--white); font-size: .65rem; font-weight: 700; padding: .15rem .4rem; border-radius: 10px; min-width: 18px; text-align: center; }
.sidebar-footer { border-top: 1px solid var(--gray-800); padding: .75rem 0; }
.dashboard-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.dash-topbar { height: var(--topbar-h); background: var(--white); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem; position: sticky; top: 0; z-index: 100; }
.topbar-toggle { background: none; border: none; color: var(--gray-600); font-size: 1.3rem; cursor: pointer; padding: .25rem; display: flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; }
.topbar-title { font-weight: 700; font-size: 1rem; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.topbar-btn { color: var(--gray-600); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); position: relative; transition: var(--transition); }
.topbar-btn:hover { color: var(--black); background: var(--gray-200); opacity: 1; }
.notif-dot { position: absolute; top: -2px; right: -2px; background: var(--danger); color: var(--white); font-size: .6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.topbar-user { display: flex; align-items: center; gap: .5rem; background: var(--gray-100); border: none; border-radius: var(--radius); padding: .35rem .75rem .35rem .35rem; font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.topbar-user:hover { background: var(--gray-200); }
.topbar-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.dash-content { flex: 1; padding: 2rem; max-width: 1400px; width: 100%; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; pointer-events: none; }
.sidebar-overlay.active { pointer-events: auto; }

/* ── STAT CARDS (dashboard) ── */
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; overflow: hidden; transition: var(--transition); }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-value { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; margin-bottom: .25rem; }
.stat-card-label { font-size: .82rem; color: var(--gray-500); font-weight: 500; }
.stat-card-icon { position: absolute; right: 1.5rem; top: 1.5rem; font-size: 2.5rem; opacity: .1; }
.stat-card-trend { font-size: .78rem; margin-top: .5rem; display: flex; align-items: center; gap: .25rem; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.stat-card.primary { border-color: var(--black); }
.stat-card.primary .stat-card-value { color: var(--black); }
.stat-card.success .stat-card-icon { color: var(--success); opacity: .15; }
.stat-card.warning .stat-card-icon { color: var(--warning); opacity: .15; }
.stat-card.danger .stat-card-icon { color: var(--danger); opacity: .15; }

/* ── TABLE ── */
.sol-table { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.sol-table .table td .btn { white-space: nowrap; }

/* Stack job tables into cards on phones (portrait & landscape) so action buttons stay visible */
@media (max-width: 767.98px) {
    .table.jobs-table-cards thead { display: none; }
    .sol-table .table.jobs-table-cards tbody tr { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--gray-200); }
    .sol-table .table.jobs-table-cards tbody td { display: inline-block; border: none; padding: .15rem .75rem .15rem 0; vertical-align: middle; }
    .sol-table .table.jobs-table-cards tbody td:first-child { display: block; padding: 0 0 .35rem; }
    .sol-table .table.jobs-table-cards tbody td:last-child { display: block; padding: .5rem 0 0; text-align: left !important; }
    .sol-table .table.jobs-table-cards tbody td:empty { display: none; }
    .sol-table .table.jobs-table-cards tbody tr:last-child { border-bottom: none; }
}
.sol-table .table { margin-bottom: 0; font-size: .875rem; }
.sol-table .table thead th { background: var(--gray-50); color: var(--gray-600); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--gray-200); white-space: nowrap; padding: .85rem 1rem; }
.sol-table .table tbody td { padding: .9rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--gray-100); }
.sol-table .table tbody tr:last-child td { border-bottom: none; }
.sol-table .table tbody tr:hover td { background: var(--gray-50); }
.sol-table-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); gap: 1rem; flex-wrap: wrap; }
.sol-table-title { font-weight: 700; font-size: 1rem; }
.sol-table-actions { display: flex; align-items: center; gap: .5rem; }

/* ── STATUS BADGES ── */
.badge-status { font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 20px; white-space: nowrap; }
.s-active    { background: #dcfce7; color: #16a34a; }
.s-inactive  { background: #f4f4f5; color: #71717a; }
.s-pending   { background: #fef9c3; color: #854d0e; }
.s-suspended { background: #fee2e2; color: #dc2626; }
.s-verified  { background: #dbeafe; color: #1d4ed8; }
.s-rejected  { background: #fee2e2; color: #dc2626; }
.s-completed { background: #dcfce7; color: #16a34a; }
.s-cancelled { background: #f4f4f5; color: #71717a; }
.s-open      { background: #dbeafe; color: #1d4ed8; }
.s-review    { background: #ede9fe; color: #6d28d9; }

/* ── JOB OFFERS (admin matching + worker offers) ── */
.worker-pick { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: var(--transition); margin: 0; }
.worker-pick:last-child { border-bottom: none; }
.worker-pick:hover { background: var(--gray-50); }
.worker-pick.is-checked { background: #f5f3ff; }
.worker-pick .form-check-input { width: 1.15rem; height: 1.15rem; margin: 0; flex-shrink: 0; cursor: pointer; }
.score-bar { display: flex; height: 6px; width: 100%; max-width: 320px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.score-seg { display: block; height: 100%; }
.score-rating       { background: #f59e0b; }
.score-completed    { background: #16a34a; }
.score-activity     { background: #0ea5e9; }
.score-location     { background: #8b5cf6; }
.score-availability { background: #14b8a6; }
.score-category     { background: #1a1a1a; }
.score-skills       { background: #ec4899; }
.offer-active { border-color: var(--warning); }
.offer-alert { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; box-shadow: 0 0 0 0 rgba(217,119,6,.6); animation: offerPulse 1.6s ease-out infinite; }
.offer-alert-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--warning); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; animation: offerRing 1.2s ease-in-out infinite; }
.offer-alert .btn-sol-white { padding: .5rem 1.25rem; font-size: .85rem; white-space: nowrap; }
.offer-card { border: 2px solid var(--warning); }
.offer-card .sol-card-header { background: #fffbeb; }
@keyframes offerPulse { 0% { box-shadow: 0 0 0 0 rgba(217,119,6,.55); } 70% { box-shadow: 0 0 0 14px rgba(217,119,6,0); } 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); } }
@keyframes offerRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(-18deg); } 30% { transform: rotate(16deg); } 45% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(0); } }

/* ── CARD ── */
.sol-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.sol-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.sol-card-title { font-weight: 700; font-size: .95rem; }
.sol-card-body { padding: 1.5rem; }

/* ── MODALS ── */
.modal-header { background: var(--black); color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-header .btn-close { filter: invert(1); }
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }
.onboarding-modal-header { padding: 1.5rem 1.5rem 1.25rem; align-items: flex-start; }
.onboarding-modal-header .modal-title { margin-top: .35rem; font-size: 1.8rem; }
.onboarding-eyebrow { color: #fbbf24; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.onboarding-intro { color: var(--gray-600); margin-bottom: 1.25rem; }
.onboarding-steps { display: grid; gap: .75rem; }
.onboarding-step { display: flex; align-items: center; gap: .85rem; padding: 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.onboarding-step-number { color: var(--gray-500); font-size: .75rem; font-weight: 700; width: 1.25rem; text-align: center; }
.onboarding-step-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 50%; background: #fef3c7; color: #92400e; font-size: 1.15rem; }
.onboarding-step h3 { margin: 0 0 .2rem; font-size: .95rem; font-weight: 700; }
.onboarding-step p { margin: 0; color: var(--gray-600); font-size: .82rem; line-height: 1.45; }
.onboarding-step-link { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 576px) {
    .onboarding-modal-header .modal-title { font-size: 1.45rem; }
    .onboarding-step { align-items: flex-start; flex-wrap: wrap; }
    .onboarding-step-link { margin-left: 4.1rem; }
}

/* ── ALERTS ── */
.alert { border-radius: var(--radius); border: none; font-size: .875rem; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-danger  { background: #fee2e2; color: #b91c1c; }
.alert-warning { background: #fef9c3; color: #92400e; }
.alert-info    { background: #dbeafe; color: #1e40af; }

/* ── MESSAGES / CHAT ── */
.chat-container { height: 500px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.chat-bubble { max-width: 70%; word-wrap: break-word; word-break: break-word; }
.chat-bubble.sent { align-self: flex-end; }
.chat-bubble.received { align-self: flex-start; }
.bubble-content { padding: .65rem 1rem; border-radius: 18px; font-size: .9rem; line-height: 1.5; word-wrap: break-word; }
.sent .bubble-content { background: var(--black); color: var(--white); border-bottom-right-radius: 4px; }
.received .bubble-content { background: var(--gray-100); color: var(--gray-900); border-bottom-left-radius: 4px; }
.bubble-time { font-size: .7rem; color: var(--gray-400); margin-top: .25rem; padding: 0 .5rem; }
.sent .bubble-time { text-align: right; }
.chat-input-area { padding: 1rem; border-top: 1px solid var(--gray-200); display: flex; gap: .75rem; align-items: flex-end; }
.conversation-item { display: flex; width: 100%; min-height: 56px; transition: background .15s ease; }
.conversation-item:hover, .conversation-item:focus { background: rgba(0, 0, 0, 0.03); }
.conversation-item { -webkit-tap-highlight-color: rgba(0,0,0,0.1); touch-action: manipulation; }
/* ── PROFILE / ID UPLOAD ── */
.id-upload-box { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 2rem; text-align: center; cursor: pointer; transition: all var(--transition); background: var(--gray-50); }
.id-upload-box:hover { border-color: var(--black); background: var(--white); }
.id-upload-icon { font-size: 2.5rem; color: var(--gray-400); margin-bottom: .75rem; }
.id-upload-text { font-size: .875rem; color: var(--gray-500); }
.id-preview { max-width: 100%; max-height: 180px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--gray-200); margin-top: .75rem; }

/* ── RATING STARS ── */
.star-rating { display: flex; gap: .25rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.5rem; color: var(--gray-300); cursor: pointer; transition: color var(--transition); }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* ── SEARCH BAR ── */
.search-hero { background: var(--white); border-radius: var(--radius-lg); padding: .5rem; display: flex; box-shadow: var(--shadow-lg); max-width: 600px; border: 2px solid var(--gray-200); }
.search-hero-input { display: flex; align-items: center; flex: 1; min-width: 0; }
.search-hero-logo { width: 32px; height: 32px; object-fit: contain; flex: 0 0 32px; margin: 0 .5rem; }
.search-hero-brand { flex: 0 0 auto; margin: 0 .5rem; font-family: var(--font-display); font-size: 1rem; white-space: nowrap; }
.search-hero input { border: none; flex: 1; min-width: 0; width: 100%; padding: .6rem .5rem; font-size: .95rem; background: transparent; }
.search-hero input:focus { outline: none; }
.search-hero select { border: none; border-left: 1px solid var(--gray-200); padding: .6rem 1rem; font-size: .875rem; background: transparent; color: var(--gray-600); cursor: pointer; min-width: 140px; }
.search-hero select:focus { outline: none; }
.search-hero button { background: var(--black); color: var(--white); border: none; border-radius: var(--radius); padding: .6rem 1.25rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.search-hero button:hover { background: var(--gray-800); }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--gray-800); }
.footer-heading { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-300); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--gray-500); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); opacity: 1; }
.social-link { width: 36px; height: 36px; background: var(--gray-800); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 1rem; transition: all var(--transition); }
.social-link:hover { background: var(--gray-700); color: var(--white); opacity: 1; }

/* ── RESPONSIVE ── */

/* Mobile (320px - 576px) */
@media (max-width: 576px) {
    :root {
        --topbar-h: 56px;
        --sidebar-w: 100%;
    }
    
    /* Typography */
    body { font-size: 14px; line-height: 1.6; }
    h1, h2, h3 { font-size: clamp(1rem, 5vw, 1.8rem); }
    .section-title { font-size: clamp(1.2rem, 4vw, 2rem); }
    .display-font { letter-spacing: .01em; }
    
    /* Search */
    .search-hero { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
    .search-hero-input { width: 100%; }
    .search-hero-logo { width: 28px; height: 28px; flex-basis: 28px; }
    .search-hero input { padding: 0.5rem 0.25rem; font-size: 0.9rem; }
    .search-hero select { border-left: none; padding: 0.5rem 0.75rem; font-size: 0.8rem; min-width: auto; width: 100%; }
    .search-hero button { width: 100%; padding: 0.5rem 1rem; font-size: 0.85rem; }
    
    /* Dashboard */
    .dashboard-main { margin-left: 0 !important; }
    .dash-content { padding: 0.75rem !important; max-width: 100% !important; }
    
    /* Messages/Chat */
    .chat-page { flex-direction: column !important; min-width: 0; }
    .chat-page > .sol-card { width: 100% !important; min-width: 0; }
    .chat-page > .sol-card:first-child { flex: 0 0 auto; max-height: 220px; }
    .chat-page > .sol-card:last-child { min-height: min(60vh, 520px); }
    .chat-bubble { max-width: 88%; }
    .bubble-content { padding: 0.5rem 0.75rem; font-size: 0.9rem; line-height: 1.4; }
    /* Ensure messages have bottom spacing so sticky input doesn't cover them */
    .chat-messages { padding: 0.5rem; gap: 0.4rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0)); }
    /* Make the input area scrollable on mobile and respect safe-area insets */
    .chat-input-area { padding: 0.75rem; gap: 0.5rem; flex-wrap: nowrap; align-items: flex-end; position: static; bottom: auto; background: var(--white); z-index: 30; padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0)); }
    .chat-input-area textarea { font-size: 0.95rem; padding: 0.5rem !important; line-height: 1.5; max-height: 140px; min-height: 52px; border-radius: 28px; flex: 1 1 auto; width: auto !important; min-width: 0; overflow-y: auto; }
    .chat-input-area .btn { padding: 0; font-size: 0.9rem; width: 44px !important; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .chat-page .sol-card { overflow: visible; }
    .chat-page .sol-card.flex-1 { min-height: auto; }
    .chat-page #chatMessages { max-height: calc(100vh - 320px); }
    
    /* Forms & Inputs */
    input, textarea, select { font-size: 16px !important; padding: 0.75rem !important; }
    .form-control, .form-select { font-size: 0.95rem; }
    .btn { font-size: 0.9rem; padding: 0.5rem 1rem; }
    
    /* Sections */
    .section { padding: 1.5rem 0; }
    .section-header { margin-bottom: 1.5rem; }
    .container { padding: 0 0.75rem; }
    
    /* Cards */
    .sol-card { border-radius: 8px; margin-bottom: 1rem; }
    .sol-card-body { padding: 1rem; }
    .sol-card-header { padding: 1rem; }
    
    /* Tables */
    .table { font-size: 0.85rem; }
    .table td, .table th { padding: 0.5rem; }
    
    /* Text */
    .text-truncate, .text-truncate-2 { word-break: break-word; }
    small, .small { font-size: 0.8rem; }
    
    /* Buttons */
    .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
    .btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
    
    /* Payment widget */
    [style*="border-top:1px solid"] { padding: 0.75rem !important; }
    
    /* Wallet */
    .wallet-balance { font-size: 2rem; }
    .wallet-card { padding: 1.5rem; }
    
    /* No data state */
    .no-data { padding: 1.5rem 0.5rem; font-size: 0.9rem; }
    .no-data i { font-size: 2rem; }
}

/* Tablet (577px - 991px) */
@media (max-width: 991px) {
    /* Dashboard Layout */
    .dashboard-sidebar { transform: translateX(-100%); }
    .dashboard-sidebar.open { transform: translateX(0); }
    .dashboard-main { margin-left: 0; }
    .sidebar-overlay.active { display: block; }
    .dash-content { padding: 1.25rem; }
    .topbar-toggle { display: flex; }
    
    /* Messages/Chat */
    .chat-bubble { max-width: 80%; }
    
    /* Responsive containers */
    .container { max-width: 100%; }
}

/* Large screens (992px and up) */
@media (min-width: 992px) {
    .chat-bubble { max-width: 70%; }
    .dash-content { padding: 2rem; }
}

/* ── UTILITIES ── */
.hover-lift:hover { transform: translateY(-4px); transition: transform var(--transition); }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider-label { text-align: center; position: relative; margin: 1.5rem 0; }
.divider-label::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.divider-label span { position: relative; background: var(--white); padding: 0 1rem; font-size: .8rem; color: var(--gray-500); }
.no-data { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.no-data i { font-size: 3rem; display: block; margin-bottom: 1rem; }
.password-toggle { cursor: pointer; }
.loading-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── WALLET / PAYMENTS ── */
.wallet-card { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden; }
.wallet-card::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.05); top: -80px; right: -40px; pointer-events: none; }
.wallet-card::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); bottom: -50px; left: -30px; pointer-events: none; }
.wallet-card .btn { position: relative; z-index: 1; }
.wallet-balance { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; margin-bottom: .25rem; }
.wallet-label { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.transaction-item { display: flex; align-items: center; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--gray-100); }
.transaction-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.ti-credit { background: #dcfce7; color: #16a34a; }
.ti-debit  { background: #fee2e2; color: #dc2626; }
.transaction-detail { flex: 1; min-width: 0; }
.transaction-title { font-weight: 600; font-size: .875rem; }
.transaction-date { font-size: .78rem; color: var(--gray-500); }
.transaction-amount { font-weight: 700; font-size: .95rem; }

/* ── REVIEW ── */
.review-card { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 1.25rem; }
.review-stars { color: #f59e0b; font-size: .9rem; }

/* ── SETTINGS TABS ── */
.settings-nav .nav-link { color: var(--gray-600); font-weight: 500; border-radius: var(--radius); }
.settings-nav .nav-link.active { color: var(--black); background: var(--gray-100); font-weight: 700; }
.settings-section-title { font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-100); }

/* ── ANNOUNCEMENT BADGE COLORS ── */
.announcement-info    { border-left: 4px solid var(--info); }
.announcement-warning { border-left: 4px solid var(--warning); }
.announcement-danger  { border-left: 4px solid var(--danger); }

/* ── RESPONSIVE BUTTON STYLES ── */
.w-sm-auto {
    width: auto;
}

@media (max-width: 640px) {
    .w-sm-auto {
        width: 100%;
    }
    
    /* Stack form fields full-width on small screens */
    .col-12 { width: 100%; }
    .col-sm-6 { width: 100%; }
    
    /* Ensure buttons are full-width for better mobile UX */
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    
    /* Improve spacing on mobile */
    .row.g-3 { --bs-gutter-x: 0.75rem; }
    
    /* Profile page improvements */
    .sol-card-body .row { gap: 1rem; }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* Tablet optimizations */
    .col-sm-6 { flex: 0 0 50%; }
    .col-lg-6 { flex: 0 0 50%; }
    .col-lg-3 { flex: 0 0 50%; }
}

/* ── PRINT ── */
@media print {
    .dashboard-sidebar, .dash-topbar, .navbar, .site-footer { display: none; }
    .dashboard-main { margin-left: 0; }
}

/* ── ADMIN JOB REVIEW / ASSIGN ── */
.review-head { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.review-steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.review-step { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: var(--gray-500); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 999px; padding: .3rem .85rem; }
.review-step span { width: 20px; height: 20px; border-radius: 50%; background: var(--gray-200); color: var(--gray-700); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.review-step.is-current { color: var(--black); border-color: var(--black); background: var(--white); }
.review-step.is-current span { background: var(--black); color: var(--white); }
.review-step.is-done { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.review-step.is-done span { background: #16a34a; color: var(--white); }
.review-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.rf-label { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }
.rf-value { font-weight: 700; font-size: .95rem; }
.wp-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wp-rank-top { background: var(--black); color: var(--white); }
.wp-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .2rem; }
.offer-sticky-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.5rem; background: var(--white); border-top: 1px solid var(--gray-200); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@media (max-width: 575px) { .worker-pick { padding: .9rem 1rem; gap: .6rem; } .offer-sticky-bar { justify-content: center; } }

/* ── CLIENT CHECKOUT (full vs deposit) ── */
.checkout-hero { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 1.35rem 1.5rem; }
.checkout-hero-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.checkout-kicker { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.checkout-timer { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: .5rem .9rem; min-width: 130px; }
.ct-label { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ct-clock { font-family: var(--font-heading, inherit); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ct-clock.is-late { color: #fca5a5; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.plan-card { position: relative; background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.35rem 1.35rem 1rem; cursor: pointer; transition: var(--transition); margin: 0; }
.plan-card:hover { border-color: var(--gray-400, #9ca3af); transform: translateY(-2px); }
.plan-card.is-selected { border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.plan-flag { position: absolute; top: -11px; left: 1.1rem; background: var(--black); color: var(--white); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; }
.plan-flag-soft { background: var(--gray-200); color: var(--gray-700); }
.plan-head { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.plan-amount { font-size: 2rem; font-weight: 800; line-height: 1.15; margin-top: .35rem; }
.plan-sub { font-size: .82rem; color: var(--gray-600); }
.plan-points { list-style: none; padding: 0; margin: .9rem 0 0; font-size: .8rem; color: var(--gray-700); }
.plan-points li { display: flex; gap: .45rem; align-items: flex-start; margin-bottom: .3rem; }
.plan-points i { color: #16a34a; }
.method-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.method-pill { display: inline-flex; align-items: center; gap: .45rem; border: 2px solid var(--gray-200); border-radius: 999px; padding: .45rem 1rem; font-size: .85rem; font-weight: 600; cursor: pointer; margin: 0; transition: var(--transition); }
.method-pill.is-selected { border-color: var(--black); background: var(--black); color: var(--white); }
.checkout-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: .9rem 1.25rem; box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
.pay-banner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fffbeb; border: 2px solid var(--warning); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.pay-banner .pb-clock { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ─── SWAP & BORROW MARKETPLACE ─────────────────────────── */
.market-hero { background: var(--black); color: var(--white); padding: 3rem 0 2.5rem; }
.market-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; letter-spacing: .02em; line-height: 1; margin-bottom: .5rem; }
.market-hero p { color: var(--gray-400); max-width: 560px; }
.market-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.market-tabs a { border: 2px solid var(--gray-200); border-radius: 999px; padding: .45rem 1.1rem; font-size: .875rem; font-weight: 600; color: var(--gray-700); text-decoration: none; transition: var(--transition); background: var(--white); }
.market-tabs a:hover { border-color: var(--black); color: var(--black); }
.market-tabs a.active { background: var(--black); border-color: var(--black); color: var(--white); }
.listing-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: var(--transition); }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gray-400); }
.listing-card .listing-img { position: relative; aspect-ratio: 4/3; background: var(--gray-100); overflow: hidden; }
.listing-card .listing-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-type { position: absolute; top: .75rem; left: .75rem; background: var(--black); color: var(--white); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--radius); }
.listing-type.borrow { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.listing-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.listing-body h6 { font-weight: 700; margin: 0; font-size: 1rem; line-height: 1.3; }
.listing-body h6 a { color: var(--black); text-decoration: none; }
.listing-meta { color: var(--gray-500); font-size: .8rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.listing-want { background: var(--gray-100); border-radius: var(--radius); padding: .5rem .75rem; font-size: .8rem; color: var(--gray-700); margin-top: auto; }
.listing-want strong { color: var(--black); }
.listing-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: var(--gray-100); }
.listing-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .5rem; }
.listing-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; }
.listing-thumbs img.active { border-color: var(--black); }
.subscribe-cta { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; }
.subscribe-cta h5 { font-weight: 700; color: var(--white); }
.subscribe-cta p { color: var(--gray-400); margin-bottom: 1rem; }
.subscribe-cta .price { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; line-height: 1; }
.subscribe-cta .price small { font-family: 'DM Sans', sans-serif; font-size: .85rem; color: var(--gray-400); }
.blur-locked { filter: blur(4px); user-select: none; pointer-events: none; }
.locked-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.6); border-radius: var(--radius-lg); text-align: center; padding: 1rem; }
.plan-card { border: 2px solid var(--black); border-radius: var(--radius-lg); padding: 2rem; background: var(--white); }
.plan-card .plan-price { font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem; line-height: 1; }
.plan-card ul { list-style: none; padding: 0; margin: 1.25rem 0; }
.plan-card li { padding: .4rem 0; display: flex; gap: .6rem; align-items: center; color: var(--gray-700); }
.plan-card li i { color: var(--black); }
.ad-banner { position: relative; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.ad-banner img { width: 100%; display: block; max-height: 160px; object-fit: cover; }
.ad-banner .ad-tag { position: absolute; top: .5rem; right: .5rem; background: rgba(0,0,0,.75); color: var(--white); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .5rem; border-radius: var(--radius); z-index: 1; }
.ad-banner-caption { padding: .5rem .75rem; font-size: .8rem; color: var(--gray-600); }
.ad-card { height: 100%; }
.ad-card img { max-height: none; aspect-ratio: 4/3; }
.s-completed { background: #e8f5e9; color: #1b5e20; }
.s-cancelled { background: var(--gray-200); color: var(--gray-700); }
@media (max-width: 768px) { .market-hero h1 { font-size: 2.25rem; } .listing-thumbs { grid-template-columns: repeat(4, 1fr); } }

/* Push notification toggle */
#push-toggle.push-off{opacity:.5}
#push-toggle.push-off i{color:#aaa}

/* ── ERRANDSOL MOMENTS ── */
.errandsol-moments-banner {
  position: relative;
  z-index: 1020;
  background: #111;
  color: #fff;
  text-align: center;
  padding: .55rem 3.5rem;
  font-size: .82rem;
  border-bottom: 1px solid rgba(212,175,55,.25);
}
.errandsol-moments-banner strong { color: #f2cf73; }
.errandsol-moments-country {
  position: relative;
  z-index: 1020;
  border: 0;
  background: transparent;
  color: #fff;
  margin-left: .35rem;
  font-size: .75rem;
  opacity: .8;
}
.errandsol-moment-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.errandsol-moment-overlay.is-open { opacity: 1; visibility: visible; }
.errandsol-moment-card {
  width: min(410px, calc(100vw - 2rem));
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242,207,115,.55);
  border-radius: 18px;
  background: linear-gradient(145deg,#171717,#090909);
  color: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
  transform: translateY(14px) scale(.98);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.errandsol-moment-card[data-theme="christmas"] {
  background:
    radial-gradient(ellipse at 50% 0,rgba(230,197,119,.18),transparent 58%),
    linear-gradient(155deg,#123b30 0%,#0b2922 56%,#101817 100%);
  border-color: rgba(235,207,147,.62);
}
.errandsol-moment-card[data-theme="christmas"]::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  pointer-events: none;
}
.is-open .errandsol-moment-card { transform: translateY(0) scale(1); }
.errandsol-moment-card[data-theme="ghana"] { background: linear-gradient(145deg,#8d1b36,#111 72%); }
.errandsol-moment-card[data-theme="nigeria"] { background: linear-gradient(145deg,#08783d,#111 72%); }
.errandsol-moment-card[data-theme="eid"] { background: linear-gradient(145deg,#25245d,#0c1026); border-color: rgba(242,207,115,.7); }
.errandsol-moment-card[data-theme="newyear"] { background: linear-gradient(145deg,#242424,#090909); }
.errandsol-moment-close {
  position: absolute;
  right: .75rem;
  top: .75rem;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  color: #fff;
  display: grid;
  place-items: center;
}
.errandsol-moment-art {
  height: 128px;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 100%,rgba(242,207,115,.28),transparent 58%);
  font-size: 4.3rem;
}
.errandsol-moment-card[data-theme="christmas"] .errandsol-moment-art {
  height: 146px;
  margin: .55rem .55rem 0;
  border-radius: 13px 13px 0 0;
  background:
    radial-gradient(ellipse at 50% 100%,rgba(240,207,135,.2),transparent 54%),
    linear-gradient(180deg,rgba(255,255,255,.035),transparent);
  font-size: 4.7rem;
  text-shadow: 0 7px 22px rgba(0,0,0,.32);
}
.errandsol-moment-art img { width: 100%; height: 100%; object-fit: cover; }
.errandsol-moment-content { padding: 1.25rem 1.5rem 1.35rem; text-align: center; }
.errandsol-moment-eyebrow { color: #f2cf73; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 700; }
.errandsol-moment-title { font-family: var(--font-display); font-size: 2rem; line-height: 1; margin: .55rem 0 .7rem; }
.errandsol-moment-card[data-theme="christmas"] .errandsol-moment-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem,5vw,2.1rem);
  font-weight: 500;
  letter-spacing: -.025em;
}
.errandsol-moment-message { color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.55; margin: 0 auto 1rem; max-width: 330px; }
.errandsol-moment-actions { display: flex; align-items: center; justify-content: center; gap: .55rem; flex-wrap: wrap; }
.errandsol-moment-play { border: 1px solid rgba(242,207,115,.7); background: rgba(242,207,115,.12); color: #f8dfa0; border-radius: 999px; padding: .45rem .8rem; font-size: .78rem; }
.errandsol-moment-dismiss { width: 100%; margin-top: .8rem; border: 0; background: transparent; color: rgba(255,255,255,.62); font-size: .75rem; }
.errandsol-snow-canvas {
  position: fixed;
  top: var(--moments-snow-top,0px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1010;
  width: 100%;
  height: calc(100vh - var(--moments-snow-top,0px));
  pointer-events: none;
  opacity: .8;
}
.errandsol-santa {
  position: fixed;
  z-index: 1011;
  left: clamp(8px,1.8vw,22px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.28));
  animation: moments-santa-float 3s ease-in-out infinite;
}
@keyframes moments-santa-float {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(5px) rotate(3deg); }
}
@media (max-width: 575.98px) {
  .errandsol-moment-overlay { align-items: end; }
  .errandsol-moment-card { width: 100%; border-radius: 16px 16px 8px 8px; }
  .errandsol-moment-art { height: 105px; }
  .errandsol-moment-card[data-theme="christmas"] .errandsol-moment-art { height: 118px; }
  .errandsol-santa { left: 5px; font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .errandsol-moment-overlay,.errandsol-moment-card,.errandsol-santa { transition: none; animation: none; }
}
