:root {
  --primary: #16803a;
  --primary-dark: #0b5d2a;
  --primary-soft: #ecf9d6;
  --accent: #eab308;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #fffdf3;
  --surface: #ffffff;
  --surface-soft: #f5f9e9;
  --ink: #17351f;
  --muted: #667567;
  --line: #dce8c7;
  --shadow: 0 8px 24px rgba(17, 24, 39, .06);
  --shadow-lg: 0 18px 50px rgba(22, 128, 58, .18);
  --radius: 16px;
  --radius-sm: 11px;
  --max-width: 1180px;
  --header-height: 72px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 8% 0%, #edf9cf 0, transparent 32%), radial-gradient(circle at 98% 10%, #fff1b8 0, transparent 29%), var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
body.dark-mode { --bg: #102117; --surface: #173221; --surface-soft: #21462a; --ink: #f8ffe9; --muted: #c5d6b9; --line: #376344; background: radial-gradient(circle at 15% 0%, #1c6b38 0, transparent 34%), #102117; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(22, 128, 58, .35); outline-offset: 3px; }

.container, .topbar-inner, .account-strip { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 1000; min-height: var(--header-height); background: rgba(255,255,246,.94); border-bottom: 1px solid rgba(220,232,199,.9); backdrop-filter: blur(18px); }
.dark-mode .topbar { background: rgba(16,33,23,.94); border-bottom-color: var(--line); }
.topbar-inner { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; color: var(--ink); }
.brand-logo { width: 42px; height: 42px; display: block; flex: 0 0 42px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgba(17,24,39,.12); }
.brand-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #eab308); color: white; font-size: .8rem; font-weight: 900; box-shadow: 0 7px 18px rgba(22,128,58,.26); }
.brand b { display: block; letter-spacing: .12em; font-size: .9rem; line-height: 1.05; }
.brand small { display: block; color: var(--muted); font-size: .56rem; letter-spacing: .16em; line-height: 1.15; }
.header-tools { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.icon-button, .menu-toggle, .drawer-close { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.icon-button:hover, .menu-toggle:hover, .drawer-close:hover { background: var(--primary-soft); color: var(--primary); transform: translateY(-1px); }
.profile-chip { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #eab308); color: #fff; font-weight: 800; }
.menu-toggle { display: none; order: -1; background: var(--primary); color: #fff; font-size: 1.35rem; box-shadow: 0 6px 16px rgba(22,128,58,.25); }
.menu-toggle:hover { background: var(--primary-dark); color: #fff; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.drawer-brand { display: none; }
.drawer-brand .brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
.drawer-social-links { margin-top: auto; padding: 14px 0 8px; border-top: 2px solid var(--primary-soft); background: linear-gradient(180deg, transparent, rgba(236,252,203,.72)); }
.drawer-social-title { display: block; padding: 0 12px 7px; color: var(--primary-dark); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.drawer-social-links a { color: var(--muted); }
.drawer-social-links a:hover { color: var(--primary-dark); background: var(--primary-soft); }
.drawer-social-links a + a { margin-top: 2px; }
.drawer-logout { margin-top: 5px; border-top: 1px solid var(--line); }
.footer-brand .brand-logo { width: 46px; height: 46px; flex-basis: 46px; }

/* Notification bar refinement */
.notification-link { position:relative; background:rgba(250,204,21,.18); color:#fff!important; border:1px solid rgba(250,204,21,.7); box-shadow:0 4px 14px rgba(11,93,42,.16); }
.notification-link:hover { background:#facc15!important; color:#365314!important; transform:translateY(-1px); }
.notification-link sup, .drawer-notification-link sup { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; margin-left:3px; padding:0 4px; border-radius:999px; background:#dc2626; color:#fff; font-size:10px; font-weight:900; line-height:1; }
.drawer-notification-link { position:relative; display:flex; align-items:center; gap:7px; background:rgba(250,204,21,.13); border-left:3px solid #facc15; font-weight:800; }
.notification-list { display:grid; gap:10px; }
.notification-item { position:relative; padding:14px 16px 13px 18px; border:1px solid #d9edb5; border-left:4px solid #15803d; border-radius:14px; background:linear-gradient(135deg,#ffffff 0%,#f7fee7 100%); box-shadow:0 8px 20px rgba(22,128,58,.08); }
.notification-item::before { content:'🔔'; position:absolute; top:13px; right:14px; font-size:16px; }
.notification-item b { display:block; padding-right:28px; color:#0b5d2a; font-size:15px; }
.notification-item p { margin:6px 0 7px; color:#365314; line-height:1.55; }
.notification-item small { color:#6b7f65; font-size:11px; }
@media(max-width:640px){ .notification-item{padding:13px 13px 12px 15px;} .notification-item b{font-size:14px;} }

.account-strip { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
  .account-strip > div { min-width: 0; padding: 15px 18px; border: 0; border-radius: 15px; color: white; background: linear-gradient(135deg, #0b5d2a, #16803a 62%, #eab308); box-shadow: var(--shadow-lg); }
  .account-strip > div:nth-child(2) { background: linear-gradient(135deg, #15803d, #65a30d); }
  .account-strip > div:nth-child(3) { background: linear-gradient(135deg, #ca8a04, #facc15); }
.account-strip span, .account-strip strong { display: block; }
.account-strip span { color: rgba(255,255,255,.78); font-size: .72rem; font-weight: 700; }
.account-strip strong { margin-top: 2px; font-size: 1.15rem; }

main.container { min-height: 58vh; padding-top: 18px; padding-bottom: 46px; }
.page-head { margin: 0 0 20px; }
.page-head h1 { margin: 4px 0 6px; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -.04em; }
.page-head p:last-child { max-width: 720px; margin: 0; color: var(--muted); }
.eyebrow, .ad-kicker { margin: 0; color: var(--primary); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.banner-slot { display: block; margin: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.banner-slot img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
  .banner-placeholder { min-height: 132px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 22px 26px; background: linear-gradient(110deg, #edf9cf, #fffdf3 55%, #fff1b8); }
.dark-mode .banner-placeholder { background: linear-gradient(110deg, #14532d, #365314 55%, #713f12); }
.banner-placeholder strong, .banner-placeholder span { display: block; }
.banner-placeholder strong { margin-top: 3px; color: var(--ink); font-size: 1.1rem; }
.banner-placeholder span:last-child { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.ad-orbit { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-size: 1.4rem; box-shadow: 0 8px 18px rgba(22,128,58,.24); }

.hero { margin-bottom: 22px; padding: clamp(24px, 5vw, 48px); overflow: hidden; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #0b5d2a, #eab308); box-shadow: var(--shadow-lg); }
.hero h1 { max-width: 760px; margin: 8px 0 10px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.05em; }
.hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.button, .btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-soft); color: var(--ink); cursor: pointer; font-size: .83rem; font-weight: 800; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover, .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.button:active, .btn:active { transform: scale(.97); }
  .button-dark, .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 7px 16px rgba(22,128,58,.24); }
.button-outline, .btn-outline { border-color: var(--primary); background: transparent; color: var(--primary); }
.button-outline:hover, .btn-outline:hover { background: var(--primary); color: white; }
.button.success, .button-success, .btn-success { background: var(--success); color: white; }
.button.danger, .button-danger, .btn-danger { background: var(--danger); color: white; }
.button.warning, .button-warning, .btn-warning { background: var(--warning); color: #111827; }
.button:disabled, .btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.flash { margin: 0 0 18px; padding: 12px 15px; border-radius: 10px; font-weight: 700; font-size: .86rem; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }

.market-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.job-card, .form-card, .dashboard-panel, .wallet-balance, .spin-card, .admin-table, .metric-card, .empty, .auth-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.job-card { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--accent); }
.job-card:nth-child(3n+2) { border-top-color: var(--primary); }
.job-card:nth-child(3n+3) { border-top-color: #d9a400; }
.job-card h2, .form-card h2, .dashboard-panel h2, .spin-card h2, .admin-table h2 { margin: 0; font-size: 1.06rem; line-height: 1.25; }
.job-card p { margin: 0; color: var(--muted); }
.job-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--muted); font-size: .8rem; }
.job-meta strong { color: var(--primary); font-size: 1rem; }
.pill, .badge { width: fit-content; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .66rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.muted, .text-muted { color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 42px 20px; color: var(--muted); text-align: center; }

.progress-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 6px; }
.progress { height: 9px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #eab308); }
.progress-label { color: var(--muted); font-size: .74rem; font-weight: 800; }

.form-card { display: flex; flex-direction: column; gap: 12px; }
.form-card label, .auth-card label { display: block; color: var(--ink); font-size: .82rem; font-weight: 800; }
.form-card input, .form-card select, .form-card textarea, .auth-card input { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-height: 43px; }
.form-card textarea { min-height: 116px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus, .auth-card input:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(22,128,58,.13); }
.form-card .button, .auth-card .button { align-self: flex-start; }
.application-row { margin-top: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(22,128,58,.045); }
.application-row b, .application-row span, .application-row small { display: block; }
.application-row span { margin: 2px 0; color: var(--primary); font-size: .75rem; font-weight: 800; text-transform: capitalize; }
.application-row small { color: var(--muted); }
.application-row .inline-form { margin-top: 10px; }
details { border-top: 1px solid var(--line); padding-top: 10px; }
summary { cursor: pointer; color: var(--primary); font-weight: 800; font-size: .83rem; }

  .wallet-balance { margin-bottom: 18px; background: linear-gradient(135deg, #0b5d2a, #16803a 62%, #eab308); color: white; }
.wallet-balance span, .wallet-balance small { display: block; color: rgba(255,255,255,.8); }
.wallet-balance strong { display: block; margin: 3px 0; font-size: clamp(2rem,5vw,3rem); line-height: 1; }
.spin-card { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ledger { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.ledger > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.ledger > div:last-child { border-bottom: 0; }
.positive { color: var(--success); }
.negative { color: var(--danger); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.steps > div { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.steps b { color: var(--primary); font-size: .75rem; }
.steps span { color: var(--muted); font-size: .8rem; }
.profile-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-chip.large { width: 54px; height: 54px; font-size: 1.2rem; }

.auth-card { position: relative; width: min(100%, 470px); margin: 38px auto; padding: clamp(24px,5vw,38px); overflow: hidden; }
body.guest { min-height: 100vh; background: radial-gradient(circle at 15% 15%, rgba(22,128,58,.2), transparent 32%), radial-gradient(circle at 85% 85%, rgba(234,179,8,.14), transparent 28%), #f7f7fb; }
body.guest::before, body.guest::after { content: ""; position: fixed; width: 220px; height: 220px; border-radius: 50%; filter: blur(2px); opacity: .26; pointer-events: none; animation: float 9s ease-in-out infinite alternate; }
body.guest::before { top: 8%; left: -70px; background: #65a30d; }
body.guest::after { right: -60px; bottom: 8%; background: #eab308; animation-delay: -3s; }
@keyframes float { to { transform: translate3d(28px,-20px,0) scale(1.08); } }
.auth-card h1 { margin: 7px 0 18px; font-size: clamp(1.75rem,4vw,2.35rem); line-height: 1.1; }
.auth-card form { display: grid; gap: 14px; }
.auth-card p { color: var(--muted); font-size: .86rem; }
.auth-card a { color: var(--primary); font-weight: 800; }

.admin-shell { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 22px; align-items: start; }
.admin-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.admin-sidebar a { padding: 9px 10px; border-radius: 8px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--primary-soft); color: var(--primary); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card span, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: .76rem; }
.metric-card strong { margin-top: 4px; font-size: 1.6rem; }
.admin-table { margin-top: 14px; overflow: hidden; }
.admin-table > div:not(:first-child) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .82rem; }

.footer { padding: 34px max(20px, calc((100% - var(--max-width))/2)); border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 26px; }
.footer-grid p, .footer-grid span, .footer-grid a { display: block; margin: 5px 0; color: var(--muted); font-size: .8rem; }
.footer-grid h3 { margin: 0 0 9px; font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

body.authenticated main.container > .app-hero { display: none!important; }
body.authenticated .footer { display: none; }

@media (min-width: 1024px) { .main-nav { justify-content: flex-end; } .drawer-nav { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; } }
@media (max-width: 1023px) {
  :root { --header-height: 64px; }
  .container, .topbar-inner, .account-strip { width: min(100% - 32px, var(--max-width)); }
  .topbar-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand { justify-self: center; }
  .menu-toggle { display: inline-flex; }
  .main-nav.drawer-nav { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); height: 100vh; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 14px 14px 20px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); box-shadow: 18px 0 46px rgba(17,24,39,.18); transform: translateX(-110%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility .2s ease; }
  .main-nav.drawer-nav.open { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav.drawer-nav::after { content: ""; position: fixed; inset: 0 -100vw 0 100%; z-index: -1; background: rgba(17,24,39,.42); }
  .drawer-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 2px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .drawer-brand b { margin-right: auto; }
  .main-nav.drawer-nav a { padding: 11px 12px; font-size: .86rem; }
  .drawer-social-links { margin-top: auto; padding-top: 16px; }
  .drawer-social-links a { padding-block: 10px!important; font-size: .8rem!important; }
  .drawer-social-title { padding-bottom: 8px; }
  .header-tools { margin-left: auto; }
  .market-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-sidebar a { text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container, .topbar-inner, .account-strip { width: min(100% - 32px, var(--max-width)); }
  .topbar-inner { gap: 7px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand b { font-size: .77rem; }
  .brand small { font-size: .48rem; }
  .icon-button, .menu-toggle, .profile-chip { width: 38px; height: 38px; min-width: 38px; }
  .header-tools { gap: 3px; }
  .header-tools > a:first-of-type { display: none; }
  .account-strip { gap: 6px; margin-top: 10px; }
  .account-strip > div { padding: 12px 11px; border-radius: 12px; }
  .account-strip span { font-size: .64rem; }
  .account-strip strong { font-size: .98rem; }
  main.container { padding-top: 12px; }
  .banner-slot { margin-bottom: 14px; border-radius: 13px; }
  .banner-placeholder { min-height: 112px; padding: 17px; }
  .banner-placeholder strong { font-size: .98rem; }
  .ad-orbit { width: 42px; height: 42px; font-size: 1.1rem; }
  .job-card, .form-card, .dashboard-panel, .wallet-balance, .spin-card, .auth-card { padding: 16px; border-radius: 13px; }
  .job-card h2 { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms!important; transition-duration: .01ms!important; scroll-behavior: auto!important; } }

.password-field { position: relative; display: flex; align-items: center; }
.password-field input { margin-top: 5px; padding-right: 48px; }
.password-field .password-toggle { position: absolute; right: 4px; bottom: 4px; width: 34px; height: 34px; border-radius: 8px; }
.check-row { display: flex!important; align-items: center; gap: 8px; color: var(--muted)!important; font-weight: 600!important; }
.check-row input { width: 16px!important; min-height: 16px!important; margin: 0!important; accent-color: var(--primary); }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.progress-label { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 18px; align-items: start; }
.job-detail-copy { display: grid; gap: 12px; margin-top: 16px; }
.job-detail-copy > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-wrap: anywhere; word-break: break-word; }
.job-detail-copy h1, .job-detail-copy p { margin: 4px 0 0; overflow-wrap: anywhere; word-break: break-word; }
.detail-label { display: block; color: var(--primary); font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.proof-card form { display: grid; gap: 10px; }
.proof-card input[type=file] { width: 100%; min-width: 0; }
.task-detail { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.task-detail h2, .task-detail h3 { margin: 18px 0 8px; }
.proof-card { align-self: start; }
.task-toolbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; margin-top: 16px; }
.task-toolbar input, .task-toolbar select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -.02em; }
.feed-heading { margin: 18px 0 12px; padding: 15px 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.wizard-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 18px; }
.wizard-step { padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .74rem; }
.wizard-step.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.wizard-pane[hidden] { display: none; }
.wizard-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.review-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.review-summary > div { padding: 10px 12px; border-radius: 9px; background: var(--surface-soft); }
.review-summary b, .review-summary span { display: block; }
.review-summary b { color: var(--muted); font-size: .7rem; text-transform: capitalize; }
.review-summary span { margin-top: 2px; overflow-wrap: anywhere; }
body.drawer-open { overflow: hidden; }
@media (max-width: 820px) { .detail-layout { grid-template-columns: 1fr; } .task-toolbar { grid-template-columns: 1fr 1fr; } .task-toolbar input { grid-column: 1 / -1; } }
@media (max-width: 640px) { .grid-2, .review-summary { grid-template-columns: 1fr; } .wizard-steps { gap: 5px; } .wizard-step { padding: 8px 5px; font-size: .66rem; } .task-toolbar { grid-template-columns: 1fr; } .task-toolbar input { grid-column: auto; } .section-head { align-items: flex-start; flex-direction: column; } .detail-layout { gap: 12px; } .job-detail-copy > div { padding: 10px 11px; } .job-detail-copy h1 { font-size: 1.25rem; line-height: 1.3; } .job-detail-copy p { line-height: 1.55; } }


/* Admin-configured deposit instructions */
.payment-instructions { display:grid; gap:16px; margin:0 0 18px; padding:20px; border:1px solid #d9edb5; border-left:5px solid var(--accent); border-radius:var(--radius); background:linear-gradient(135deg,#f7fee7,#fffdf0); box-shadow:var(--shadow); }
.payment-instructions h2 { margin:3px 0 4px; font-size:1.08rem; }
.payment-number-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.payment-number { min-width:0; padding:15px; border-radius:13px; color:#fff; box-shadow:0 8px 18px rgba(22,128,58,.14); }
.payment-number b,.payment-number strong { display:block; }
.payment-number b { font-size:.72rem; letter-spacing:.09em; text-transform:uppercase; opacity:.82; }
.payment-number strong { margin-top:5px; overflow-wrap:anywhere; font-size:1rem; }
.payment-number.bkash { background:linear-gradient(135deg,#15803d,#65a30d); }
.payment-number.nagad { background:linear-gradient(135deg,#ca8a04,#facc15); color:#352500; }
.category-fee-note { display:block; margin-top:5px; color:var(--primary-dark); font-size:.74rem; font-weight:800; }
@media(max-width:620px){.payment-number-grid{grid-template-columns:1fr}.payment-instructions{padding:16px}}


/* Compact marketplace refinement */
.topbar { background: linear-gradient(135deg, #0b5d2a 0%, #15803d 58%, #ca8a04 100%); border-bottom: 2px solid #eab308; color: #fff; }
.topbar .brand, .topbar .brand small, .topbar .icon-button, .topbar .menu-toggle { color: #fff; }
.topbar .icon-button:hover, .topbar .menu-toggle:hover { background: rgba(255,255,255,.18); color: #fff; }
.topbar .profile-chip { background: #facc15; color: #365314; }
.button, .btn { min-height: 34px; padding: 7px 12px; border-radius: 8px; font-size: .76rem; line-height: 1.1; }
.icon-button, .menu-toggle, .drawer-close { width: 38px; height: 38px; border-radius: 10px; }
.job-card { padding: 14px; gap: 8px; border: 1px solid #d9edb5; border-top: 3px solid var(--accent); background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(22,128,58,.08); }
.job-card:nth-child(3n+2) { border-top-color: var(--primary); }
.job-card:nth-child(3n+3) { border-top-color: var(--accent); }
.job-card .pill { display: none; }
.job-card h2 { font-size: .98rem; margin: 0; }
.job-card p { display: none; }
.job-card .progress-wrap { margin-top: 2px; display: block; }
.job-card .progress-track { height: 7px; }
.job-card .progress-wrap small { display: block; margin-top: 5px; font-size: .69rem; color: var(--muted); }
.job-card .job-meta { padding-top: 2px; margin-top: 0; }
.job-card .job-meta strong { font-size: .98rem; }
.job-card .job-meta span { display: none; }
.job-card details { border: 0; padding: 0; margin-top: 2px; }
.job-card summary { display: inline-flex; min-height: 32px; align-items: center; padding: 6px 11px; border-radius: 8px; background: var(--primary); color: #fff; font-size: .74rem; }
.job-card details form { margin-top: 8px; }
.job-card > .muted { display: none; }
@media (max-width: 640px) { .topbar { min-height: 60px; } .topbar-inner { min-height: 60px; } .job-card { padding: 12px; } .market-grid { gap: 10px; } .job-card h2 { font-size: .92rem; } }

.job-card > .button, .job-card > .btn { width: fit-content; align-self: flex-start; }


/* Compact dashboard summary: keep the marketplace feed dense and readable. */
.market-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0 2px; }
.market-summary > div { display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; min-width: 0; padding: 7px 2px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.market-summary span { font-size: .82rem; }
.market-summary strong { color: var(--primary-dark); font-size: .86rem; font-weight: 850; }
.account-strip { margin-top: 4px; }
main.container { padding-top: 8px; }
@media (max-width: 620px) {
  .market-summary { gap: 8px; margin-bottom: 12px; }
  .market-summary > div { padding-block: 5px; font-size: .78rem; }
  .market-summary span, .market-summary strong { font-size: .78rem; }
  .account-strip { margin-top: 2px; }
}


/* Dashboard-only information footer: compact, readable, and separate from navigation. */
.dashboard-bottom-info { display: grid; gap: 14px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.minimum-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.minimum-rates > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: .78rem; }
.minimum-rates strong { color: var(--primary-dark); font-size: .82rem; }
.dashboard-social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: .76rem; }
.dashboard-social-links > span { width: 100%; color: var(--primary-dark); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-social-links a { color: var(--primary); font-weight: 750; }
.dashboard-social-links a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) {
  .dashboard-bottom-info { margin-top: 16px; padding-top: 10px; }
  .minimum-rates > div { padding: 7px 8px; font-size: .72rem; }
  .minimum-rates strong { font-size: .76rem; }
  .dashboard-social-links { gap: 6px 9px; font-size: .7rem; }
}

/* TaskPoint language and compact official channels */
.language-settings-panel { border-top: 3px solid var(--primary); }
.language-card { display:flex; gap:10px; align-items:end; flex-wrap:wrap; }
.language-card label { flex:1 1 180px; }
.dashboard-social-links { align-items:stretch; }
.social-button { flex:1 1 0; min-width:0; display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:7px 5px; border:1px solid var(--line); border-radius:9px; background:var(--surface); text-decoration:none!important; font-size:.68rem; font-weight:800; line-height:1.1; text-align:center; white-space:nowrap; }
.social-button b { display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%; background:var(--primary); color:#fff; font-size:.65rem; }
.social-button:hover { transform:translateY(-1px); box-shadow:0 3px 10px rgba(22,128,58,.16); }
.social-youtube b { background:#d72638; }
.social-telegram b { background:#16803a; }
.social-support b { background:#f2b705; color:#173b24; }
/* TaskPoint navigation and mobile advertisement refinement */
body.authenticated a.header-logout{display:none!important}
body.authenticated .drawer-nav a[href*="referrals"],body.authenticated .drawer-nav a[href*="support"]{display:none!important}
body.authenticated .drawer-nav .drawer-logout{display:flex!important;order:99!important;margin-top:12px!important;border-top:1px solid rgba(22,128,58,.18)!important;padding-top:12px!important;color:#b42318!important;font-weight:900!important}
body.authenticated .public-ad-card{align-items:stretch!important;gap:4px!important;padding:8px 10px!important;min-height:0!important}
body.authenticated .public-ad-card .ad-kicker{font-size:.68rem!important}
body.authenticated .public-ad-card strong{font-size:.82rem!important;line-height:1.2!important}
body.authenticated .public-ad-card img{display:block!important;width:100%!important;height:auto!important;max-height:64px!important;object-fit:cover!important;border-radius:6px!important}
@media (max-width:560px){body.authenticated .banner-slot{width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;padding:0!important}body.authenticated .public-ad-card{width:100%!important;border-radius:0!important;border-left:0!important;border-right:0!important}}

/* Job information, proof review and unread notification refinement */
.job-info-header { position:relative; z-index:1; overflow:visible; }
.job-info-stack { display:grid!important; gap:10px!important; width:100%!important; margin-top:12px!important; visibility:visible!important; opacity:1!important; }
.job-info-stack > div { display:block!important; width:100%!important; box-sizing:border-box; padding:13px 14px!important; border:1px solid #cfe6c7!important; border-left:4px solid #16803a!important; border-radius:12px!important; background:#fff!important; color:#173b24!important; box-shadow:0 6px 16px rgba(22,128,58,.07)!important; }
.job-info-stack span { display:block!important; color:#087337!important; font-size:.75rem!important; font-weight:900!important; letter-spacing:.04em!important; }
.job-info-stack h1 { display:block!important; margin:5px 0 0!important; color:#173b24!important; font-size:1.3rem!important; line-height:1.28!important; overflow-wrap:anywhere!important; }
.job-info-stack p { display:block!important; margin:5px 0 0!important; color:#405d44!important; line-height:1.55!important; overflow-wrap:anywhere!important; }
.submitted-proof-block { display:grid; gap:7px; margin:10px 0; }
.submitted-proof-link { display:block; width:min(180px,100%); overflow:hidden; border:1px solid #cfe6c7; border-radius:10px; background:#f7fff3; }
.submitted-proof-preview { display:block!important; width:100%!important; max-width:180px!important; height:150px!important; max-height:150px!important; object-fit:cover!important; object-position:top center; }
.worker-proof-note { margin:8px 0!important; color:#405d44!important; overflow-wrap:anywhere; }
body.authenticated .notification-bar { position:relative!important; overflow:visible!important; }
body.authenticated .notification-bar sup { position:absolute!important; top:-8px!important; right:-7px!important; min-width:18px!important; height:18px!important; margin:0!important; padding:0 4px!important; border:2px solid #fff!important; border-radius:999px!important; background:#dc2626!important; color:#fff!important; font-size:10px!important; font-weight:900!important; line-height:14px!important; z-index:2!important; }
@media(max-width:640px){.job-info-stack > div{padding:11px 12px!important}.job-info-stack h1{font-size:1.16rem!important}.submitted-proof-link{width:min(132px,100%)}.submitted-proof-preview{max-width:132px!important;height:132px!important;max-height:132px!important}}

.job-info-editor { margin:0 0 16px; }
.job-info-editor summary { cursor:pointer; color:#087337; font-weight:900; }
.job-info-editor form { display:grid; gap:12px; margin-top:14px; }
.submission-row-head, .submission-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.submission-actions { margin-top:10px; }
.decision-locked { display:inline-flex; align-items:center; min-height:34px; padding:0 10px; border-radius:9px; background:#edf3ed; color:#607565; font-size:.8rem; font-weight:800; }
.submission-detail { max-width:760px; }
.submission-detail-image { display:block; width:220px; max-width:100%; height:210px; max-height:210px; margin:10px 0; object-fit:cover; object-position:top center; border:1px solid #cfe6c7; border-radius:10px; background:#f7fff3; }
.proof-note-panel { margin-top:12px; padding:13px; border:1px solid #cfe6c7; border-radius:12px; background:#f7fff3; overflow-wrap:anywhere; }
.proof-note-panel p { margin:7px 0 0; color:#405d44; line-height:1.6; }
@media(max-width:640px){.submission-detail-image{width:180px;max-width:180px;height:180px;max-height:180px;margin:8px 0}.submission-actions{align-items:flex-start;flex-direction:column}.submission-actions .inline-form{width:100%;display:flex;gap:8px}.submission-actions .inline-form .button{flex:1}}


/* TaskPoint limited UI patch: balances + marketplace summary only 2026-09-22 */
/* A) Pending / Earning / Deposit: preserve existing colors/icons, only tighten layout. */
.account-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;align-items:stretch!important}
.account-strip>div{min-width:0!important;height:34px!important;min-height:34px!important;padding:5px 7px!important;gap:4px!important;align-items:center!important;white-space:nowrap!important;overflow:hidden!important}
.account-strip>div>span,.account-strip>div>strong{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.account-strip>div>span{flex:0 1 auto!important}
.account-strip>div>strong{flex:0 0 auto!important}
.account-strip>div::after{content:'Apply Now'!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;margin-left:auto!important;padding:3px 5px!important;min-height:20px!important;border:1px solid currentColor!important;border-radius:5px!important;background:transparent!important;color:inherit!important;font-size:.58rem!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important}
/* B) Total Jobs / Total Earn: compact labels/values with one soft center divider. */
.market-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0!important;align-items:stretch!important}
.market-summary>div{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;padding:7px 10px!important;white-space:nowrap!important}
.market-summary>div+div{border-left:1px solid rgba(102,117,103,.28)!important;min-height:24px!important}
.market-summary>div>span,.market-summary>div>strong{margin:0!important;white-space:nowrap!important}
@media(max-width:640px){.account-strip{gap:3px!important}.account-strip>div{padding:4px 4px!important;gap:2px!important}.account-strip>div::after{padding:3px 3px!important;font-size:.5rem!important}.market-summary>div{padding:6px 5px!important;gap:3px!important}}

/* fix: prevent horizontal overflow / page zoom-out */
html{overflow-x:hidden!important;max-width:100%!important}
body{overflow-x:hidden!important;max-width:100vw!important}
#taskpoint-drawer,.drawer-nav{max-width:100vw!important}
.drawer-nav{will-change:transform}

/* Balance strip top gap: exactly 10px below the header. */
body.authenticated main.container { padding-top: 10px !important; }
body.authenticated .account-strip { margin-top: 0 !important; }

/* Job description URLs: clickable, readable, and wrapped safely. */
.job-description-link, .job-description-link:visited { color: #2563eb !important; text-decoration: underline !important; text-underline-offset: 2px; overflow-wrap: anywhere; font-weight: 700; }
.job-description-link:hover { color: #1d4ed8 !important; }


/* My Jobs: remove the entire status/action filter row without changing job data. */
body.authenticated main.container > nav.owner-status-tabs { display: none !important; }
