/* ==========================================================================
   TASKA — Design System
   Tokens, base, and shared components used across every page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Color: grounded in the brand green from the source screenshot ---- */
  --ink:        #12201A;   /* primary text, slight green-black cast */
  --ink-soft:   #33403A;   /* secondary text */
  --muted:      #6B776E;   /* tertiary text, captions */
  --paper:      #F6F7F3;   /* app background */
  --surface:    #FFFFFF;   /* card surface */
  --surface-2:  #FBFCF9;   /* nested surface */
  --line:       #E4E7E0;   /* hairline borders */
  --line-soft:  #EDEFE9;

  --green-900:  #0E3A22;
  --green-700:  #146C34;
  --green-600:  #1B7F3E;
  --green-500:  #229150;
  --mint-150:   #CDEEDA;
  --mint-100:   #E1F5E8;
  --mint-050:   #F1FAF4;

  --amber:      #A6720B;
  --amber-bg:   #FBF0DA;
  --red:        #B23A2E;
  --red-bg:     #FBEAE7;

  --shadow-sm: 0 1px 2px rgba(18, 32, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 32, 26, 0.08);
  --shadow-lg: 0 16px 48px rgba(14, 58, 34, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus, always */
:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-600); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--green-600); color: var(--green-700); }

.btn-ghost {
  background: transparent;
  color: var(--green-700);
  padding: 13px 16px;
}
.btn-ghost:hover { background: var(--mint-050); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Badges / chips / status ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--mint-100);
  color: var(--green-700);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--green-600); color: var(--green-700); }
.chip.is-active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.status-open   { background: var(--mint-100); color: var(--green-700); }
.status-pending{ background: var(--amber-bg); color: var(--amber); }
.status-closed { background: var(--line-soft); color: var(--muted); }
.status-issue  { background: var(--red-bg); color: var(--red); }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Receipt-style dashed divider — used for ledger/transaction rows */
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.receipt-row:last-child { border-bottom: none; }

/* ==========================================================================
   NAVIGATION (marketing site)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-900);
  text-decoration: none;
}
.logo img, .site-logo {
  height: 38px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--mint-050); color: var(--green-700); }
.nav-link.is-active { color: var(--green-700); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-link-login, .nav-link-signup { display: none !important; }

@media (max-width: 860px) {
  .site-header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; }
  .nav-links { 
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: auto;
    background: #FFFFFF !important;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 8px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 16px 36px rgba(14, 58, 34, 0.14);
    z-index: 9999;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { 
    padding: 14px 16px; 
    font-size: 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
  }
  .nav-link-login {
    display: flex !important;
    justify-content: center;
    font-weight: 700;
    color: #FFFFFF !important;
    background: var(--green-700) !important;
    border: none !important;
    margin-top: 6px;
  }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   TICKER — signature element: live payout tape
   ========================================================================== */
.ticker {
  background: var(--green-900);
  color: #DDEFE1;
  overflow: hidden;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.ticker-item .t-id { color: #7FB694; }
.ticker-item .t-amt { color: #fff; font-weight: 500; }
.ticker-item .t-time { color: #5C8A6C; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--green-900);
}
.hero h1 em {
  font-style: normal;
  color: var(--green-600);
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.trust-stat .num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-900);
  display: block;
}
.trust-stat .label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero visual: wallet mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--mint-100) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.wallet-mock {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  border: 1px solid var(--line-soft);
}
.wallet-mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.wallet-mock-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
}
.wallet-mock-balance-label { font-size: 0.78rem; color: var(--muted); }
.wallet-mock-balance {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-900);
  margin-top: 2px;
}
.wallet-mock-list { margin-top: 6px; }
.wallet-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.wallet-mock-row:last-child { border-bottom: none; }
.wallet-mock-row-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--mint-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
  font-size: 0.9rem;
}
.wallet-mock-row-text { flex: 1; }
.wallet-mock-row-title { font-size: 0.88rem; font-weight: 500; }
.wallet-mock-row-sub { font-size: 0.74rem; color: var(--muted); }
.wallet-mock-row-amt {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-700);
}

.floating-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.floating-chip.chip-a { top: 6%; left: -4%; animation-delay: 0s; }
.floating-chip.chip-b { bottom: 10%; right: -6%; animation-delay: 1.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; }
  .floating-chip { display: none; }
}

/* ==========================================================================
   SECTIONS (marketing)
   ========================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--mint-050); }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--green-900);
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* How it works — a genuine numbered sequence */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.flow-step {
  padding: 32px 26px;
  border-right: 1px dashed var(--line);
  position: relative;
}
.flow-step:last-child { border-right: none; }
.flow-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-600);
  margin-bottom: 18px;
  display: block;
}
.flow-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: none; border-bottom: 1px dashed var(--line); }
  .flow-step:last-child { border-bottom: none; }
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.category-card {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, transform .15s ease;
}
.category-card:hover { border-color: var(--green-600); transform: translateY(-3px); }
.category-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--mint-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.category-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.category-card p { font-size: 0.82rem; color: var(--muted); }
.category-count {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--green-700);
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.testimonial-quote { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mint-150);
  color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-display);
}
.testimonial-name { font-weight: 600; font-size: 0.88rem; }
.testimonial-role { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* Final CTA */
.cta-band {
  background: var(--green-900);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34,145,80,0.35), transparent 55%);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  position: relative;
}
.cta-band p {
  color: #B9D6C2;
  margin-top: 14px;
  position: relative;
}
.cta-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}
.cta-band .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.cta-band .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 32ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--green-700); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a.syslar-link {
  color: var(--green-700);
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-bottom a.syslar-link:hover {
  color: var(--green-600);
  text-decoration: underline;
}

.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

@media (max-width: 980px) {
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
}



/* ==========================================================================
   GLOBAL SCROLLBAR & OVERFLOW STYLES
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 32, 26, 0.2) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(18, 32, 26, 0.2);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 32, 26, 0.38);
}

/* ==========================================================================
   MODAL & BACKDROP (all modals across the app)
   ========================================================================== */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 20, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(4px);
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .2s ease;
}

.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"],
.modal-backdrop[style*="display: none"],
.modal-backdrop[style*="display:none"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal-overlay.is-open,
.modal-backdrop.is-open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal,
.modal-backdrop > div,
.modal-overlay > .modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 40px);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 32px;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  transform: translateY(12px);
  transition: transform .2s ease;
}

.modal-overlay.is-open .modal,
.modal-backdrop[style*="display: flex"] > div,
.modal-backdrop[style*="display:flex"] > div {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  transition: all .15s ease;
  z-index: 10;
}
.modal-close:hover {
  background: var(--line-soft);
  color: var(--ink);
}

/* Custom modal scrollbars */
.modal::-webkit-scrollbar,
.modal-backdrop > div::-webkit-scrollbar,
.modal-overlay > .modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-thumb,
.modal-backdrop > div::-webkit-scrollbar-thumb,
.modal-overlay > .modal::-webkit-scrollbar-thumb {
  background: rgba(18, 32, 26, 0.25);
  border-radius: 999px;
}
.modal::-webkit-scrollbar-thumb:hover,
.modal-backdrop > div::-webkit-scrollbar-thumb:hover,
.modal-overlay > .modal::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 32, 26, 0.45);
}

/* ==========================================================================
   FORMS (post a task / auth)
   ========================================================================== */
.field-group { margin-bottom: 22px; }
.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.field-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 6px;
  display: none;
}
.field-group.has-error .field-error { display: block; }
.field-group.has-error .text-input,
.field-group.has-error .textarea-input,
.field-group.has-error .select-input { border-color: var(--red); }

.text-input, .textarea-input, .select-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.text-input:focus, .textarea-input:focus, .select-input:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
}
.field-hint {
  display: block;
  width: 100%;
  clear: both;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .input-row { grid-template-columns: 1fr; } }

.toggle-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  background: var(--paper);
}
.toggle-option {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.toggle-option.is-active {
  background: var(--surface);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.dropzone.is-dragover { border-color: var(--green-600); background: var(--mint-050); }
.dropzone-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.dropzone h4 { font-size: 0.92rem; margin-bottom: 4px; }
.dropzone p { font-size: 0.8rem; color: var(--muted); }
.dropzone input { display: none; }

.form-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) { .form-two-col { grid-template-columns: 1fr; } }

.summary-card {
  position: sticky;
  top: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line-soft);
}
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 600; text-align: right; }



/* ---- Toast Notification (Elevated above all modals & backdrops) ---- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink, #12201A);
  color: #fff;
  padding: 13px 22px 16px;
  border-radius: var(--radius-md, 14px);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 2147483647; /* Highest possible z-index to appear on top of modals, drawers, and blurred backdrops */
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-width: min(92vw, 480px);
  box-sizing: border-box;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto; /* Allows mouse hover to pause */
  cursor: default;
}
.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500, #229150);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34, 145, 80, 0.7);
}
.toast-msg {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}
.toast-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.toast-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--green-500, #229150);
  border-radius: 0 2px 2px 0;
  will-change: width;
}

/* ==========================================================================
   APP SHELL LAYOUT, SIDEBAR, TOPBAR & HEADER (Shared across all app pages)
   ========================================================================== */

.app-shell, .dashboard-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--green-900);
  color: #DDEFE1;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.12);
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
}
.sidebar-logo .logo-mark {
  background: rgba(255,255,255,0.14);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: #A9CBB3;
  transition: background .15s ease, color .15s ease;
  text-decoration: none;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.sidebar-link.is-active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-icon svg {
  width: 100%;
  height: 100%;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 18px 4px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  transition: background .15s ease;
}
.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint-150);
  color: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--font-display);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.sidebar-user-role, .sidebar-user-username {
  font-size: 0.72rem;
  color: #8FB89C;
}

/* Sidebar Account Mode Switcher Dropdown */
.sidebar-switcher-menu {
  animation: sidebarMenuFadeIn 0.18s ease-out;
}
@keyframes sidebarMenuFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.switcher-menu-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
.switcher-menu-item.is-active {
  background: rgba(255, 255, 255, 0.14) !important;
}

.switcher-menu-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* Notification Bell Shake Animation */
@keyframes bellShake {
  0% { transform: rotate(0); }
  12% { transform: rotate(14deg); }
  24% { transform: rotate(-14deg); }
  36% { transform: rotate(10deg); }
  48% { transform: rotate(-10deg); }
  60% { transform: rotate(6deg); }
  72% { transform: rotate(-6deg); }
  84% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

.bell-icon-svg.has-unread, .taska-notif-bell-btn.has-unread svg {
  animation: bellShake 2.2s infinite ease-in-out;
  transform-origin: top center;
}

/* Mobile topbar */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--green-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 90;
}
.hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content Area */
.app-main, .main-content {
  padding: 34px 40px 80px;
  max-width: 1240px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Page Header */
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.app-header h1 {
  font-size: 1.7rem;
  color: var(--green-900);
}
.app-header .sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Bottom Tab Bar (Mobile Navigation) */
.tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  z-index: 95;
  box-shadow: 0 -4px 16px rgba(18,32,26,0.06);
}
.tab-bar-inner {
  display: flex;
  justify-content: space-between;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.tab-item.is-active { color: var(--green-700); }
.tab-item svg { width: 20px; height: 20px; }

/* Active sub-navigation button state */
.btn-secondary.is-active {
  background: var(--green-900) !important;
  color: #fff !important;
  border-color: var(--green-900) !important;
}

/* Dashboard Grid & Panels */
.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.panel-head h2 { font-size: 1.1rem; }
.panel-link { font-size: 0.82rem; font-weight: 600; color: var(--green-700); }

/* Stat Cards Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-900);
  margin-top: 10px;
}
.stat-delta {
  font-size: 0.76rem;
  margin-top: 8px;
  color: var(--green-700);
  font-weight: 500;
}
.stat-delta.negative { color: var(--red); }

@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* Task & Ledger Rows */
.task-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.task-row:last-child { border-bottom: none; }
.task-row-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--mint-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.task-row-body { flex: 1; min-width: 0; }
.task-row-title { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.task-row-meta { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.task-row-amt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green-900);
  font-size: 0.98rem;
  white-space: nowrap;
}

/* Phone Prefix Input Group */
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.18s ease;
}
.phone-input-wrap:focus-within {
  border-color: var(--green-600);
  background: #fff;
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.phone-prefix-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  outline: none;
}
.phone-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--line);
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.phone-action-btn:hover {
  color: var(--green-700);
  background: var(--mint-050);
}
.phone-action-btn.is-cancel:hover {
  color: #DC2626;
  background: #FEF2F2;
}
.phone-input-wrap.is-verified-wrap {
  background: var(--paper);
  border-color: #A7F3D0;
}
.phone-input-wrap.is-verified-wrap .phone-prefix {
  background: #ECFDF5;
  color: #059669;
  border-right-color: #A7F3D0;
}
.phone-input-wrap.is-verified-wrap input[readonly] {
  cursor: default;
  color: var(--green-900);
  font-weight: 600;
}
.phone-input-wrap.is-editing-wrap {
  border-color: var(--green-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 108, 52, 0.08);
}

/* Wallet Components */
.wallet-hero {
  background: var(--green-900);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  max-width: 100%;
  box-sizing: border-box;
}
.wallet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(34,145,80,0.4), transparent 55%);
}
.wallet-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  flex-wrap: wrap;
  gap: 20px;
}
.wallet-hero-label { color: #A9CBB3; font-size: 0.85rem; }
.wallet-hero-balance {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: 8px;
  word-break: break-all;
}
.wallet-hero-actions { display: flex; gap: 10px; position: relative; }
.wallet-hero .btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.wallet-hero .btn-secondary:hover { background: rgba(255,255,255,0.14); }
.wallet-hero .btn-primary { background: #fff; color: var(--green-900); }
.wallet-hero .btn-primary:hover { background: #EAF6EE; }

.wallet-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.wallet-tab {
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.wallet-tab:hover {
  color: var(--green-900);
}
.wallet-tab.is-active {
  color: var(--green-700);
  border-bottom-color: var(--green-700);
}

/* Browse / Filtering Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-input-wrap svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 16px; height: 16px;
}
.search-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
}
.search-input:focus { outline: none; border-color: var(--green-600); background: #fff; }

.select-field {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.gig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .gig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .gig-grid { grid-template-columns: 1fr; } }

.gig-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.gig-card:hover { border-color: var(--green-600); box-shadow: var(--shadow-md); }
.gig-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.gig-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gig-card h3 { font-size: 1.02rem; line-height: 1.35; }
.gig-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.gig-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.gig-budget { font-family: var(--font-mono); font-weight: 600; color: var(--green-900); }
.gig-loc { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* Responsive utility classes */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

/* Responsive Layout Rules */
@media (max-width: 980px) {
  .mobile-only { display: block !important; }
  a.mobile-only, .sidebar-link.mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }
  .app-shell, .dashboard-layout { display: block !important; grid-template-columns: 1fr !important; width: 100% !important; }
  .app-main, .main-content { padding: 22px 18px 96px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .mobile-topbar { display: flex !important; }
  .tab-bar { display: block !important; }
  .app-header, .wallet-hero-top { flex-direction: column; }
  .sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: -290px !important;
    width: 270px !important;
    height: 100vh !important;
    z-index: 99999 !important;
    transition: left 0.3s ease !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3) !important;
  }
  .sidebar.is-mobile-open, .sidebar.is-open {
    left: 0 !important;
  }
}

/* ── Responsive Chats & Messaging Component ───────────────────────────── */
.chat-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 580px;
  height: calc(100vh - 190px);
  max-height: 840px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.chat-threads-panel {
  border-right: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-width: 0;
  height: 100%;
}
.chat-conversation-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--paper);
}
.chat-mobile-back-btn {
  display: none;
}
.chat-thread-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
}
.chat-thread-item:hover {
  background: var(--mint-050);
}
.chat-thread-item.is-active {
  background: var(--mint-100) !important;
}
.chat-thread-item.has-unread {
  background: rgba(16, 185, 129, 0.05);
}
.chat-thread-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-600, #16a34a);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}
.taska-chats-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #10B981;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.taska-chats-badge-mobile {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  font-size: 0.62rem;
  padding: 0 3px;
  border: 2px solid #0E3A22;
}
.chat-msg-wrapper {
  position: relative;
}
.chat-msg-delete-btn {
  opacity: 0;
  pointer-events: none;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 50%;
  color: #ef4444;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.chat-msg-wrapper:hover .chat-msg-delete-btn,
.chat-msg-wrapper:focus-within .chat-msg-delete-btn {
  opacity: 1;
  pointer-events: auto;
}
.chat-msg-delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .chat-msg-delete-btn {
    opacity: 0.6;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .chat-container {
    grid-template-columns: 1fr !important;
    height: calc(100vh - 150px) !important;
    min-height: 480px !important;
  }
  .chat-container:not(.has-active-chat) .chat-conversation-panel {
    display: none !important;
  }
  .chat-container.has-active-chat .chat-threads-panel {
    display: none !important;
  }
  .chat-mobile-back-btn {
    display: inline-flex !important;
  }
}

/* ── Horizontal Scrollable Tabs on Mobile and Desktop ───────────────────── */
.settings-subnav,
.settings-inner-tabs,
.profile-tabs,
.wallet-tabs,
.nav-tabs-scroll,
.horizontal-tabs-scroll,
#profileInnerTabNav,
#profileTabNav,
#wallet-tabs-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
  padding-bottom: 8px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.settings-subnav::-webkit-scrollbar,
.settings-inner-tabs::-webkit-scrollbar,
.profile-tabs::-webkit-scrollbar,
.wallet-tabs::-webkit-scrollbar,
.nav-tabs-scroll::-webkit-scrollbar,
.horizontal-tabs-scroll::-webkit-scrollbar,
#profileInnerTabNav::-webkit-scrollbar,
#profileTabNav::-webkit-scrollbar,
#wallet-tabs-bar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.settings-subnav > *,
.settings-inner-tabs > *,
.profile-tabs > *,
.wallet-tabs > *,
.nav-tabs-scroll > *,
.horizontal-tabs-scroll > *,
#profileInnerTabNav > *,
#profileTabNav > *,
#wallet-tabs-bar > * {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Panel and grid overflow bounds */
.panel,
.profile-card,
.profile-content,
.dash-grid {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.modal,
.modal-overlay > .modal,
.modal-backdrop > div {
  width: 100% !important;
  max-width: 520px;
  margin: auto;
  box-sizing: border-box !important;
}

/* ==========================================================================
   Taska Dynamic Responsive Notifications (Modal & Drawer)
   ========================================================================== */

.taska-notif-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
  box-sizing: border-box;
}

.taska-notif-modal-card {
  background: var(--paper, #ffffff);
  border-radius: var(--radius-md, 16px);
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.taska-notif-modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #ffffff);
  flex-shrink: 0;
  box-sizing: border-box;
}

.taska-notif-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.taska-notif-modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.taska-notif-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--green-900, #064E3B);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.taska-notif-modal-count-pill {
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--mint-100, #E1F5E8);
  color: var(--green-700, #146C34);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--mint-200, #bbf0cb);
}

.taska-notif-modal-subtitle {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  display: block;
}

.taska-notif-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted, #64748b);
  padding: 6px;
  border-radius: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.taska-notif-modal-close-btn:hover {
  background: var(--bg-soft, #f1f5f9);
  color: var(--ink, #0f172a);
}

.taska-notif-modal-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft, #f1f5f9);
  justify-content: flex-end;
}

.taska-notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 11px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.taska-notif-action-read {
  color: var(--green-700, #146C34);
}
.taska-notif-action-read:hover {
  background: var(--mint-050, #f0fdf4);
  border-color: var(--mint-200, #bbf0cb);
}

.taska-notif-action-clear {
  color: var(--red, #b23a2e);
}
.taska-notif-action-clear:hover {
  background: #FEF2F2;
  border-color: #FECACA;
}

.taska-notif-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.taska-modal-notif-row {
  padding: 14px 16px;
  border-radius: var(--radius-sm, 12px);
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
  width: 100%;
}

.taska-modal-notif-row.is-unread {
  background: rgba(34, 145, 80, 0.04);
  border-color: var(--mint-150, #CDEEDA);
}

.taska-modal-notif-row:hover {
  border-color: var(--mint-300, #86efac);
}

.taska-notif-icon-col {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.taska-notif-content-col {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.taska-notif-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.taska-notif-row-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-900, #064E3B);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.taska-notif-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.taska-notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
  display: inline-block;
}

.taska-notif-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted, #94a3b8);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.taska-notif-delete-btn:hover {
  color: var(--red, #b23a2e);
  background: #FEE2E2;
}

.taska-notif-row-meta {
  font-size: 0.74rem;
  color: var(--muted, #64748b);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.taska-notif-row-body {
  font-size: 0.84rem;
  color: var(--ink-soft, #334155);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Mobile Responsiveness for Notification Modal & Drawer */
@media (max-width: 600px) {
  .taska-notif-modal-overlay {
    padding: 8px !important;
    align-items: flex-end !important;
  }

  .taska-notif-modal-card {
    max-height: 92vh !important;
    max-width: 100% !important;
    border-radius: 18px 18px 10px 10px !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3) !important;
  }

  .taska-notif-modal-header {
    padding: 14px 14px 10px !important;
  }

  .taska-notif-modal-title {
    font-size: 1.05rem !important;
  }

  .taska-notif-modal-actions-bar {
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
  }

  .taska-notif-action-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 7px 8px !important;
    font-size: 0.76rem !important;
  }

  .taska-notif-modal-body {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .taska-modal-notif-row {
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 10px !important;
  }

  .taska-notif-icon-col {
    width: 32px !important;
    height: 32px !important;
  }

  .taska-notif-icon-col svg {
    width: 16px !important;
    height: 16px !important;
  }

  .taska-notif-row-title {
    font-size: 0.88rem !important;
  }

  .taska-notif-row-body {
    font-size: 0.81rem !important;
    line-height: 1.45 !important;
  }

  /* Drawer Mobile Full Width */
  #taska-notification-drawer > div {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   Password Visibility Toggle & Eye Animation
   ========================================================================== */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrap input {
  padding-right: 44px !important;
  width: 100%;
}
.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--muted, #94A3B8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.taska-modal-notif-row:hover {
  border-color: var(--mint-300, #86efac);
}

.taska-notif-icon-col {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.taska-notif-content-col {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.taska-notif-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.taska-notif-row-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-900, #064E3B);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.taska-notif-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.taska-notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
  display: inline-block;
}

.taska-notif-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted, #94a3b8);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.taska-notif-delete-btn:hover {
  color: var(--red, #b23a2e);
  background: #FEE2E2;
}

.taska-notif-row-meta {
  font-size: 0.74rem;
  color: var(--muted, #64748b);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.taska-notif-row-body {
  font-size: 0.84rem;
  color: var(--ink-soft, #334155);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Mobile Responsiveness for Notification Modal & Drawer */
@media (max-width: 600px) {
  .taska-notif-modal-overlay {
    padding: 8px !important;
    align-items: flex-end !important;
  }

  .taska-notif-modal-card {
    max-height: 92vh !important;
    max-width: 100% !important;
    border-radius: 18px 18px 10px 10px !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3) !important;
  }

  .taska-notif-modal-header {
    padding: 14px 14px 10px !important;
  }

  .taska-notif-modal-title {
    font-size: 1.05rem !important;
  }

  .taska-notif-modal-actions-bar {
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
  }

  .taska-notif-action-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 7px 8px !important;
    font-size: 0.76rem !important;
  }

  .taska-notif-modal-body {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .taska-modal-notif-row {
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 10px !important;
  }

  .taska-notif-icon-col {
    width: 32px !important;
    height: 32px !important;
  }

  .taska-notif-icon-col svg {
    width: 16px !important;
    height: 16px !important;
  }

  .taska-notif-row-title {
    font-size: 0.88rem !important;
  }

  .taska-notif-row-body {
    font-size: 0.81rem !important;
    line-height: 1.45 !important;
  }

  /* Drawer Mobile Full Width */
  #taska-notification-drawer > div {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   Password Visibility Toggle & Eye Animation
   ========================================================================== */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrap input {
  padding-right: 44px !important;
  width: 100%;
}
.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--muted, #94A3B8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.15s ease, background 0.15s ease;
  z-index: 5;
  user-select: none;
  -webkit-user-select: none;
}
.btn-toggle-password:hover {
  color: var(--green-800, #065F46);
  background: var(--mint-050, rgba(16, 185, 129, 0.08));
}
.btn-toggle-password:active {
  transform: translateY(-50%) scale(0.9);
}
.btn-toggle-password.is-active {
  color: var(--green-700, #047857);
}
@keyframes eyePop {
  0% { transform: scale(0.65); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.eye-animate-pop {
  animation: eyePop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==========================================================================
   SPA Page Transition & Persistent Layout Shell Styles
   ========================================================================== */
@keyframes taskaPageFadeIn {
  from {
    opacity: 0.82;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content-fadein {
  animation: taskaPageFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#taska-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #10B981, #059669, #34D399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  z-index: 9999999;
  pointer-events: none;
}

/* ==========================================================================
   Universal Skeleton Loader & Shimmer Animation System
   Applied across all data-loading surfaces in Taska
   ========================================================================== */
@keyframes taskaSkeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.taska-skeleton,
.skeleton {
  background: linear-gradient(
    90deg,
    #F1F5F9 0%,
    #E2E8F0 25%,
    #F8FAFC 50%,
    #E2E8F0 75%,
    #F1F5F9 100%
  ) !important;
  background-size: 250% 100% !important;
  animation: taskaSkeletonShimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  border-radius: 6px;
  color: transparent !important;
  user-select: none !important;
  pointer-events: none !important;
  border-color: transparent !important;
}

/* Skeleton Atomic Primitives */
.taska-skeleton-line {
  height: 12px;
  border-radius: 4px;
  display: block;
  margin-bottom: 8px;
}
.taska-skeleton-line:last-child {
  margin-bottom: 0;
}
.taska-skeleton-line.short { width: 35%; }
.taska-skeleton-line.medium { width: 65%; }
.taska-skeleton-line.long { width: 90%; }
.taska-skeleton-line.full { width: 100%; }

.taska-skeleton-title {
  height: 20px;
  width: 70%;
  border-radius: 6px;
  margin-bottom: 12px;
}

.taska-skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.taska-skeleton-avatar.sm {
  width: 32px;
  height: 32px;
}
.taska-skeleton-avatar.lg {
  width: 64px;
  height: 64px;
}

.taska-skeleton-badge {
  height: 22px;
  width: 72px;
  border-radius: 999px;
  display: inline-block;
}

.taska-skeleton-btn {
  height: 38px;
  width: 110px;
  border-radius: 10px;
}

/* Skeleton Card Layout (Browse Tasks, My Tasks, Gigs) */
.taska-skeleton-card,
.skeleton-card {
  background: #FFFFFF;
  border: 1px solid var(--line, #E2E8F0);
  border-radius: var(--radius-md, 14px);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.taska-skeleton-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.taska-skeleton-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.taska-skeleton-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft, #F1F5F9);
}

/* Skeleton List/Table Row Layout (Transactions, Activity, Small Task Rows) */
.taska-skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft, #EDEFE9);
  background: #FFFFFF;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 6px;
  box-sizing: border-box;
}

.taska-skeleton-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.taska-skeleton-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* Skeleton Stat Metric Box (Dashboard, Wallet Top Stats) */
.taska-skeleton-stat {
  background: #FFFFFF;
  border: 1px solid var(--line, #E2E8F0);
  border-radius: var(--radius-md, 14px);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
