/* ==========================================================================
   JustJi "Midnight Pro" theme — loaded AFTER app.css and only restyles.
   Dark ink header/footer/sidebar, emerald accents, glass cards, bigger
   radii. No markup/feature changes are needed for existing pages.
   ========================================================================== */

:root {
  --ink: #0a0f1c;
  --ink-2: #111827;
  --ink-3: #1e293b;
  --em: #10b981;
  --em-2: #059669;
  --lime: #a3e635;
  --violet: #8b5cf6;
  --slate: #94a3b8;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-height: 72px;
}

body { font-family: var(--font-sans); }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- Brand: always on a white pill so ANY logo stays visible ---------- */
.brand {
  background: #ffffff;
  border-radius: 14px;
  padding: 5px 14px 5px 6px;
  gap: 0.5rem;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45);
  color: var(--color-brand-navy);
}
.brand__mark {
  width: auto;
  height: 40px;
  max-width: 170px;
  border-radius: 10px;
  object-fit: contain;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-links { gap: 0.25rem; }
.nav-links a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}
.nav-links a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.site-header .btn-outline,
.site-header .btn-login {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.site-header .btn-outline:hover,
.site-header .btn-login:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-toggle { border-color: rgba(255, 255, 255, 0.25); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after { background: #ffffff; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }

@media (max-width: 860px) {
  .brand__mark { width: auto; height: 34px; }
  .brand { font-size: 1.15rem; padding: 4px 12px 4px 5px; }
  .main-nav { background: var(--ink); }
  .nav-links a { color: #e2e8f0; border-bottom-color: rgba(255, 255, 255, 0.08); border-radius: 0; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 700; }
.btn-primary {
  background: linear-gradient(135deg, var(--em), var(--em-2));
  border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.6);
}
.btn-primary:hover { background: linear-gradient(135deg, #0ea371, #047857); }

/* ---------- Section headings ---------- */
.section-heading h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.card { border-radius: var(--radius-lg); }

/* ---------- Footer ---------- */
.site-footer {
  background: #070b14;
  color: var(--slate);
  border-top: none;
}
.site-footer p,
.site-footer .footer-col a,
.site-footer .footer-bottom,
.site-footer .footer-legal-row a { color: var(--slate); }
.site-footer .footer-col a:hover,
.site-footer .footer-legal-row a:hover { color: #ffffff; }
.site-footer h4 { color: #ffffff; letter-spacing: 0.12em; }
.site-footer .footer-bottom { border-top-color: #1e293b; }
.site-footer .footer-bottom__copyright { color: #cbd5e1; }
.site-footer .brand { display: inline-flex; }

/* ==========================================================================
   Home page (mp-*)
   ========================================================================== */
.mp-hero {
  background: var(--ink);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}
.mp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 78% 35%, rgba(16, 185, 129, 0.28), transparent 60%),
    radial-gradient(500px 380px at 95% 85%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(500px 300px at 10% 0%, rgba(16, 185, 129, 0.12), transparent 60%);
  pointer-events: none;
}
.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.mp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.mp-pill {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  font-size: 0.85rem;
  font-weight: 600;
}
.mp-pill b { background: var(--em); color: #04281c; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.72rem; }
.mp-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 1.4rem 0 1.25rem;
}
.mp-grad { background: linear-gradient(90deg, #34d399, #a3e635); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-lead { font-size: 1.15rem; line-height: 1.6; color: var(--slate); max-width: 520px; }
.mp-ctas { display: flex; gap: 0.85rem; margin: 2rem 0; flex-wrap: wrap; }

.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.mp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.mp-btn--primary { background: linear-gradient(135deg, var(--em), var(--em-2)); color: #ffffff; box-shadow: 0 10px 30px -8px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.mp-btn--primary:hover { color: #ffffff; }
.mp-btn--ghost { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.mp-btn--ghost:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.mp-btn--dark { background: var(--ink); color: #ffffff; }
.mp-btn--dark:hover { color: #ffffff; }
.mp-btn--client { border: 1.5px solid #7c3aed; color: #7c3aed; background: #ffffff; }
.mp-btn--client:hover { background: #f5f3ff; color: #6d28d9; }
.mp-btn--block { width: 100%; }

.mp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; max-width: 600px; }
.mp-trust__item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mp-trust__item strong { display: block; font-size: 0.84rem; color: #ffffff; line-height: 1.25; }
.mp-trust__item small { color: var(--slate); font-size: 0.78rem; }
.mp-trust__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(16, 185, 129, 0.15); color: #34d399; flex: none; }
.mp-trust__icon .icon { width: 18px; height: 18px; }

.mp-hero__visual { position: relative; min-height: 500px; }
.mp-code {
  position: absolute; top: 0; right: 0; width: 300px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: #cbd5e1;
}
.mp-code__dots { display: flex; gap: 6px; margin-bottom: 0.5rem; }
.mp-code__dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mp-code .k { color: #c084fc; } .mp-code .s { color: #86efac; } .mp-code .f { color: #60a5fa; } .mp-code .c { color: #64748b; }
.mp-glass {
  position: absolute; left: 0; top: 190px; width: 360px; max-width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 1.3rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.mp-glass__head { display: flex; gap: 0.8rem; align-items: center; }
.mp-glass__head strong { display: block; color: #ffffff; }
.mp-glass__head small { color: var(--slate); font-size: 0.8rem; }
.mp-glass__avatar { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #f59e0b, #ef4444); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.mp-glass__live { margin-left: auto; font-size: 0.7rem; font-weight: 700; color: #a7f3d0; background: rgba(16, 185, 129, 0.15); padding: 0.3rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.mp-glass__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.mp-glass__chips span { font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.mp-glass__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mp-glass__meta small { display: block; color: var(--slate); font-size: 0.7rem; }
.mp-glass__meta b { color: #ffffff; font-size: 0.9rem; }
.mp-glass__btn { display: block; margin-top: 1rem; text-align: center; padding: 0.7rem; border-radius: 12px; background: #ffffff; color: var(--ink); font-weight: 700; font-size: 0.88rem; }
.mp-float { position: absolute; display: flex; gap: 0.6rem; align-items: center; padding: 0.7rem 1rem; border-radius: 14px; background: #ffffff; color: #0f172a; font-size: 0.82rem; font-weight: 700; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.mp-float span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #dcfce7; color: #15803d; }
.mp-float span .icon { width: 16px; height: 16px; }
.mp-float--1 { right: 0; top: 400px; }
.mp-float--2 { left: -10px; top: 60px; }
.mp-float--2 span { background: #fef3c7; color: #b45309; }

.mp-marquee { background: #0b1222; border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 1.1rem 0; }
.mp-marquee__row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; overflow: hidden; color: #64748b; font-weight: 700; }
.mp-marquee__row em { font-style: normal; color: #475569; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.mp-marquee__row span { white-space: nowrap; }

.mp-pricing { background: linear-gradient(180deg, #f8fafc, #ffffff); }
.mp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 920px; margin: 0 auto; }
.mp-plan { position: relative; border-radius: 26px; padding: 2.2rem; background: #ffffff; border: 1px solid #e2e8f0; }
.mp-plan--featured { background: var(--ink); color: #ffffff; border: 1.5px solid rgba(52, 211, 153, 0.55); box-shadow: 0 40px 80px -30px rgba(16, 185, 129, 0.45); }
.mp-plan__badge { position: absolute; top: 1.4rem; right: 1.4rem; font-size: 0.72rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(163, 230, 53, 0.15); color: #bef264; }
.mp-plan__tag { display: inline-flex; gap: 0.45rem; align-items: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #34d399; }
.mp-plan__tag--client { color: #7c3aed; }
.mp-plan__price { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.05em; margin: 1rem 0 0.2rem; line-height: 1.05; }
.mp-plan__price small { font-size: 1rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.mp-plan__gst { color: var(--slate); font-size: 0.85rem; margin: 0; }
.mp-plan__features { list-style: none; padding: 1.3rem 0 0; margin: 1.3rem 0 1.6rem; border-top: 1px solid #f1f5f9; display: grid; gap: 0.85rem; }
.mp-plan--featured .mp-plan__features { border-top-color: rgba(255, 255, 255, 0.1); }
.mp-plan__features li { display: flex; gap: 0.7rem; align-items: center; font-weight: 600; }
.mp-plan__features li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; background: #f3e8ff; color: #7c3aed; flex: none; }
.mp-plan--featured .mp-plan__features li::before { background: rgba(16, 185, 129, 0.18); color: #34d399; }

.mp-skills { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.85rem; }
.mp-skill { border: 1px solid #e2e8f0; border-radius: 18px; padding: 1.1rem 0.6rem; text-align: center; background: #ffffff; color: var(--color-text); text-decoration: none; transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.mp-skill:hover { border-color: var(--em); box-shadow: 0 14px 30px -14px rgba(16, 185, 129, 0.5); transform: translateY(-3px); text-decoration: none; }
.mp-skill__icon { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 0.65rem; display: grid; place-items: center; font-size: 1.3rem; }
.mp-skill b { display: block; font-size: 0.9rem; }
.mp-skill small { color: #94a3b8; font-size: 0.75rem; }

.mp-how { background: #f8fafc; }
.mp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mp-step { background: #ffffff; border-radius: 24px; padding: 2rem; border: 1px solid #e2e8f0; }
.mp-step__num { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; color: #ffffff; background: linear-gradient(135deg, var(--em), #047857); box-shadow: 0 12px 24px -10px rgba(16, 185, 129, 0.7); margin-bottom: 1.3rem; }
.mp-step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.mp-step p { color: #64748b; line-height: 1.65; margin: 0; }

.mp-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.2rem; }
.mp-bento__item { border-radius: 24px; padding: 1.7rem; border: 1px solid #e2e8f0; background: #ffffff; }
.mp-bento__item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.mp-bento__item p { color: #64748b; line-height: 1.6; margin: 0; }
.mp-bento__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #ecfdf5; color: #047857; margin-bottom: 1.1rem; flex: none; }
.mp-bento__icon .icon { width: 22px; height: 22px; }
.mp-bento__item--big { grid-row: span 3; background: var(--ink); color: #ffffff; border: none; position: relative; overflow: hidden; }
.mp-bento__item--big::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -140px; background: radial-gradient(circle, rgba(16, 185, 129, 0.45), transparent 65%); }
.mp-bento__item--big h3 { color: #ffffff; }
.mp-bento__item--big p { color: var(--slate); position: relative; z-index: 1; max-width: 320px; }
.mp-bento__item--big .mp-bento__icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.mp-bento__zero { font-size: clamp(5rem, 11vw, 8.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin: 1.5rem 0 0.6rem; background: linear-gradient(135deg, #34d399, #a3e635); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-bento__item--wide { grid-column: 2 / span 2; display: flex; gap: 1.2rem; align-items: center; }
.mp-bento__item--wide .mp-bento__icon { margin-bottom: 0; }

.mp-cta { border-radius: 32px; padding: 4rem 2rem; text-align: center; color: #ffffff; background: var(--ink); position: relative; overflow: hidden; }
.mp-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 20% 120%, rgba(16, 185, 129, 0.45), transparent), radial-gradient(500px 300px at 85% -20%, rgba(139, 92, 246, 0.4), transparent); }
.mp-cta > * { position: relative; }
.mp-cta h2 { color: #ffffff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; }
.mp-cta p { color: var(--slate); font-size: 1.1rem; margin: 0.8rem auto 0.4rem; max-width: 560px; }

/* ==========================================================================
   Directory / profile / auth — dark header bands
   ========================================================================== */
.directory-header,
.profile-hero,
.blog-hero,
.cr-hero {
  background: var(--ink);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}
.directory-header::before,
.profile-hero::before,
.blog-hero::before,
.cr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 85% 20%, rgba(16, 185, 129, 0.25), transparent 65%), radial-gradient(400px 260px at 100% 100%, rgba(139, 92, 246, 0.2), transparent 60%);
  pointer-events: none;
}
.directory-header > .container,
.profile-hero > .container,
.blog-hero > .container,
.cr-hero > .container { position: relative; z-index: 1; }
.directory-header h1,
.profile-hero h1,
.blog-hero h1,
.cr-hero h1 { color: #ffffff; }
.directory-header .text-muted,
.blog-hero p,
.cr-hero .lead { color: var(--slate); }
.directory-header .filter-bar { background: #ffffff; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); color: var(--color-text); }
.directory-header .btn-ghost,
.profile-hero .profile-back,
.cr-hero .profile-back { color: #cbd5e1; }
.directory-header .filter-toggle { color: #ffffff; border-color: rgba(255, 255, 255, 0.25); background: transparent; }

.profile-hero .profile-meta,
.profile-hero .profile-meta__item { color: #cbd5e1; }
.profile-hero .profile-rate-box { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #ffffff; }
.profile-hero .profile-rate-box * { color: inherit; }
.profile-hero .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.3); background: transparent; }

.dev-card { border-radius: 22px; transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.dev-card:hover { border-color: #6ee7b7; box-shadow: 0 24px 40px -24px rgba(16, 185, 129, 0.55); transform: translateY(-3px); }
.dev-card__avatar { border-radius: 16px; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #ffffff; }

.auth-shell { background: var(--ink); position: relative; }
.auth-shell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 80% 10%, rgba(16, 185, 129, 0.25), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(139, 92, 246, 0.2), transparent 60%); pointer-events: none; }
.auth-card { position: relative; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.auth-card .brand { box-shadow: none; border: 1px solid var(--color-border); }

/* ==========================================================================
   Dashboards (freelancer / client / admin)
   ========================================================================== */
.dashboard-topbar { background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.dashboard-topbar__name { color: #e2e8f0; }
.dashboard-topbar__link { color: #cbd5e1; }
.dashboard-topbar .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.25); background: transparent; }
.dashboard-topbar .brand__mark { height: 34px; }
.dashboard-topbar .brand { font-size: 1.1rem; padding: 4px 12px 4px 5px; }
.dashboard-topbar__avatar { background: linear-gradient(135deg, var(--em), #047857); color: #ffffff; }
.dashboard-sidebar-toggle span,
.dashboard-sidebar-toggle span::before,
.dashboard-sidebar-toggle span::after { background: #ffffff; }
.dashboard-sidebar-toggle { border-color: rgba(255, 255, 255, 0.25); }

#main-content:has(.dashboard-shell) { background: #f6f8fa; }
.dashboard-sidebar { background: var(--ink); border-radius: 22px; }
.dashboard-sidebar nav a.is-active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.06));
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--em);
}
.dashboard-sidebar__avatar { background: linear-gradient(135deg, var(--em), #047857); color: #ffffff; }
.dashboard-header h1 { font-weight: 800; letter-spacing: -0.035em; }

.stat-card { border-radius: 20px; border: 1px solid #e2e8f0; background: #ffffff; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.stat-card--clickable:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.35); }
.stat-card__value { font-weight: 800; letter-spacing: -0.03em; }
.progress-bar__fill { background: linear-gradient(90deg, var(--em), var(--lime)); }

/* Freelancer membership / validity card */
.mp-member {
  background: var(--ink);
  color: #ffffff;
  border-radius: 24px;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  max-width: 460px;
}
.mp-member::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px 220px at 100% 0%, rgba(16, 185, 129, 0.4), transparent 65%), radial-gradient(260px 200px at 0% 100%, rgba(139, 92, 246, 0.3), transparent 60%); pointer-events: none; }
.mp-member > * { position: relative; }
.mp-member h3 { color: #ffffff; margin: 0.9rem 0 0.2rem; font-size: 1.45rem; }
.mp-member p { color: var(--slate); margin: 0; font-size: 0.9rem; }
.mp-member__tag { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.mp-member__tag--expired { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.mp-member__tag--inactive { background: rgba(250, 204, 21, 0.16); color: #fde68a; }
.mp-member__ring { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0; padding: 1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.mp-member__dial { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mp-member__dial span { width: 62px; height: 62px; border-radius: 50%; background: #0f172a; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; line-height: 1.05; text-align: center; }
.mp-member__dial small { display: block; font-size: 0.55rem; color: var(--slate); font-weight: 600; }
.mp-member__dates { display: grid; gap: 0.35rem; font-size: 0.88rem; }
.mp-member__dates div { display: flex; justify-content: space-between; gap: 1rem; }
.mp-member__dates span { color: var(--slate); }
.mp-member__dates strong { color: #ffffff; }
.mp-member .btn { width: 100%; margin-top: 0.4rem; }
.mp-member .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.25); background: transparent; }
.mp-member__link { display: block; text-align: center; color: #6ee7b7; font-weight: 700; font-size: 0.85rem; margin-top: 0.9rem; }
.mp-member .field-hint { color: var(--slate); }

/* ==========================================================================
   Careers (cr-*)
   ========================================================================== */
.cr-hero { padding: 3rem 0 3.2rem; }
.cr-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.04em; margin: 0.6rem 0; }
.cr-hero__stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.cr-hero__stats div { padding: 0.8rem 1.2rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.cr-hero__stats strong { display: block; font-size: 1.5rem; color: #ffffff; }
.cr-hero__stats span { color: var(--slate); font-size: 0.82rem; }
.cr-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; color: #cbd5e1; margin-top: 0.4rem; align-items: center; }
.cr-notice { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 1.4rem; line-height: 1.6; font-size: 0.92rem; }
.cr-notice strong { color: #7c2d12; }
.cr-h2 { font-size: 1.5rem; font-weight: 800; margin: 1.8rem 0 1rem; }
.cr-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; }
.cr-city { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid #e2e8f0; border-radius: 16px; background: #ffffff; color: var(--color-text); text-decoration: none; transition: border-color var(--transition-fast), transform var(--transition-fast); }
.cr-city:hover { border-color: var(--em); transform: translateY(-2px); text-decoration: none; }
.cr-city__name { font-weight: 800; }
.cr-city__count { color: #047857; font-size: 0.82rem; font-weight: 600; }
.cr-role-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cr-chip { font-size: 0.82rem; padding: 0.4rem 0.75rem; border-radius: 10px; background: #f0fdf9; border: 1px solid #d1fae5; color: #065f46; font-weight: 600; }
.cr-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cr-filter a { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid #e2e8f0; font-size: 0.85rem; font-weight: 600; color: #334155; background: #ffffff; }
.cr-filter a.is-active { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.cr-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.cr-job { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem; border: 1px solid #e2e8f0; border-radius: 20px; background: #ffffff; color: var(--color-text); text-decoration: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.cr-job:hover { border-color: #6ee7b7; box-shadow: 0 24px 40px -24px rgba(16, 185, 129, 0.55); transform: translateY(-3px); text-decoration: none; }
.cr-job h3 { font-size: 1.05rem; margin: 0.2rem 0 0; }
.cr-job p { color: #64748b; font-size: 0.88rem; margin: 0; }
.cr-job__top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.cr-job__cat { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #047857; background: #ecfdf5; padding: 0.25rem 0.6rem; border-radius: 999px; }
.cr-job__open { font-size: 0.75rem; font-weight: 700; color: #b45309; background: #fef3c7; padding: 0.25rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.cr-job__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; color: #475569; font-size: 0.8rem; }
.cr-job__cta { margin-top: auto; color: #047857; font-weight: 700; font-size: 0.88rem; }
.cr-detail { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.5rem; align-items: start; }
.cr-list { margin: 0; padding-left: 1.2rem; color: #475569; line-height: 1.8; }
.cr-apply h3 { margin-bottom: 1rem; }
.cr-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; margin: 0.8rem 0; color: #334155; }
.cr-consent input { margin-top: 0.25rem; width: auto; flex: none; }
.cr-success { text-align: center; padding: 1rem 0; }
.cr-success__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 1.8rem; color: #ffffff; background: linear-gradient(135deg, var(--em), #047857); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .mp-skills { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .mp-hero__grid { grid-template-columns: 1fr; }
  .mp-hero__visual { min-height: 430px; max-width: 460px; width: 100%; margin: 0 auto; }
  .mp-bento { grid-template-columns: 1fr 1fr; }
  .mp-bento__item--big { grid-row: auto; grid-column: 1 / -1; }
  .mp-bento__item--wide { grid-column: 1 / -1; }
  .cr-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mp-hero { padding: 2.5rem 0 3rem; }
  .mp-plans, .mp-steps { grid-template-columns: 1fr; }
  .mp-plan { padding: 1.6rem; }
  .mp-skills { grid-template-columns: repeat(2, 1fr); }
  .mp-bento { grid-template-columns: 1fr; }
  .mp-bento__item--wide { flex-direction: column; align-items: flex-start; }
  .mp-marquee__row span:nth-of-type(n+4) { display: none; }
  .mp-cta { padding: 2.6rem 1.2rem; border-radius: 24px; }
  .mp-trust { grid-template-columns: 1fr; }
  .mp-ctas .mp-btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .mp-hero__visual { min-height: 400px; }
  .mp-code { width: 85%; font-size: 0.72rem; }
  .mp-glass { top: 120px; width: 100%; }
  .mp-float--1 { top: auto; bottom: 0; right: 0; }
  .mp-float--2 { left: 0; top: 52px; }
  .mp-plan__price { font-size: 2.7rem; }
  .cr-job-grid { grid-template-columns: 1fr; }
}
.cr-hero .profile-back { display: inline-block; margin-bottom: 0.9rem; }
.cr-hero .cr-job__cat { display: table; margin-bottom: 0.2rem; }

/* Topbar brand: same compact white pill for every role (overrides the
   older admin "chip" + oversized 76px mark rules in app.css). */
.dashboard-topbar .dashboard-topbar__brand,
.dashboard-topbar--admin .dashboard-topbar__brand { color: var(--color-brand-navy); }
.dashboard-topbar .dashboard-topbar__brand .brand__mark,
.dashboard-topbar--admin .dashboard-topbar__brand .brand__mark {
  width: auto;
  height: 34px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 8px;
}
.dashboard-topbar--admin { background: var(--ink); border-bottom-color: rgba(255, 255, 255, 0.06); }

/* Auth pages: dark background fills the whole screen. */
.auth-shell { min-height: 100vh; }
body:has(.auth-shell) { background: var(--ink); }

/* Mobile dashboards: keep the topbar within the screen and let the
   content column shrink (grid items default to min-width: auto). */
.dashboard-shell > section,
.dashboard-shell > * { min-width: 0; }
@media (max-width: 640px) {
  .dashboard-topbar__name,
  .dashboard-topbar__badge,
  .dashboard-topbar__link { display: none; }
  .dashboard-topbar__actions { gap: 0.6rem; }
  .dashboard-topbar .brand { font-size: 1rem; padding: 3px 10px 3px 4px; }
  .dashboard-topbar .dashboard-topbar__brand .brand__mark { height: 28px; }
}
@media (max-width: 640px) {
  .enquiry-row { flex-wrap: wrap; gap: 0.5rem; }
  .enquiry-row > div:first-child { min-width: 0; flex: 1 1 100%; overflow-wrap: anywhere; }
  .enquiry-row__meta { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; }
}

/* Hero visual on tablets/phones: just the glass profile card + one tag, stacked. */
@media (max-width: 960px) {
  .mp-hero__visual { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .mp-code, .mp-float--2 { display: none; }
  .mp-glass { position: relative; top: 0; left: 0; width: 100%; }
  .mp-float--1 { position: relative; top: auto; right: auto; bottom: auto; align-self: flex-start; }
}
@media (max-width: 720px) {
  .mp-plan__badge { position: static; display: table; margin-bottom: 0.8rem; }
}
@media (max-width: 860px) {
  .main-nav .nav-links li { width: 100%; }
  .main-nav .nav-links a { display: block; width: 100%; padding: 0.9rem 1rem; font-size: 1.02rem; border-radius: 12px; border-bottom: none; }
  .main-nav .nav-links a[aria-current="page"] { background: rgba(16, 185, 129, 0.15); color: #ffffff; }
  .main-nav .nav-actions .btn { padding-top: 0.75rem; padding-bottom: 0.75rem; font-size: 0.95rem; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .stat-card { padding: 0.9rem; }
  .stat-card__value { font-size: 1.6rem; }
  .stat-card__label { font-size: 0.78rem; }
  .mp-member__dates strong { white-space: nowrap; }
  .mp-member__ring { gap: 0.8rem; padding: 0.8rem; }
}

/* ---------- Chat (client <-> freelancer) ---------- */
.chat-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-bottom: 1rem; border-radius: 20px; background: var(--ink); color: #ffffff; flex-wrap: wrap; }
.chat-head__party { display: flex; gap: 0.7rem; align-items: center; }
.chat-head__party small { display: block; color: var(--slate); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.chat-head__party strong { color: #ffffff; }
.chat-head__avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #ffffff; background: linear-gradient(135deg, var(--em), #047857); flex: none; }
.chat-head__avatar--client { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.chat-head__link { color: #34d399; font-size: 1.3rem; }
.chat-warning { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: 16px; background: #fef2f2; border: 2px solid #fca5a5; color: #7f1d1d; font-size: 0.95rem; line-height: 1.55; }
.chat-warning strong { color: #991b1b; font-weight: 800; }
.chat-warning a { color: #991b1b; text-decoration: underline; }
.chat-warning__icon { font-size: 1.4rem; line-height: 1; flex: none; }
.chat-composer-note { margin: 0.75rem 1rem 0; font-size: 0.82rem; color: #991b1b; }
.conversation-thread { background: #f8fafc; }
.conversation-message__bubble { border-radius: 18px 18px 18px 6px; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); }
.conversation-message--mine .conversation-message__bubble { border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, var(--em), var(--em-2)); border-color: transparent; color: #ffffff; }
.conversation-message--mine .conversation-message__sender,
.conversation-message--mine .conversation-message__meta { color: rgba(255, 255, 255, 0.8); }
.conversation-composer textarea { border-radius: 14px; }

/* Uploaded (custom) logo = full wordmark (e.g. "Jj JustJi"), trimmed on
   upload: show it a little larger, on the white pill. */
.brand:has(.brand__mark--custom) { padding: 6px 14px; }
.brand__mark--custom { height: 42px; max-width: 220px; border-radius: 0; }
.dashboard-topbar .dashboard-topbar__brand .brand__mark--custom { height: 34px; max-width: 170px; }
.auth-card .brand__mark--custom { height: 48px; max-width: 240px; }
.site-footer .brand__mark--custom { height: 44px; }
@media (max-width: 860px) {
  .brand__mark--custom { height: 34px; max-width: 170px; }
}
@media (max-width: 640px) {
  .dashboard-topbar .dashboard-topbar__brand .brand__mark--custom { height: 28px; max-width: 130px; }
}
.site-footer .footer-brand .brand { margin-bottom: 1rem; }

/* Blog article images */
.blog-article__body figure { margin: 1.8rem 0; }
.blog-article__body figure img { width: 100%; height: auto; border-radius: 18px; border: 1px solid #e2e8f0; display: block; }
.blog-article__body figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: #64748b; text-align: center; }
.blog-article__body blockquote { margin: 1.4rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--em); background: #f0fdf9; border-radius: 0 14px 14px 0; font-style: italic; color: #065f46; }
.blog-article__body ul,
.blog-article__body ol { padding-left: 1.4rem; margin: 0.8rem 0 1.2rem; }
.blog-article__body ul { list-style: disc; }
.blog-article__body ol { list-style: decimal; }
.blog-article__body li { margin: 0.35rem 0; line-height: 1.65; }
.blog-article__body li::marker { color: var(--em); font-weight: 700; }
.blog-article__body h3 { margin-top: 1.3rem; }

/* ===== Admin → Career Applications (table like HR Enquiries) ===== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ca-card { padding:0; overflow:hidden; }
.ca-tabs { display:flex; gap:0.25rem; padding:0 1rem; border-bottom:1px solid var(--color-border); overflow-x:auto; }
.ca-tab { display:inline-flex; align-items:center; gap:0.45rem; padding:0.9rem 0.75rem; font-weight:600; font-size:0.9rem; color:var(--color-text-muted); border-bottom:2px solid transparent; white-space:nowrap; text-decoration:none; }
.ca-tab span { font-size:0.75rem; padding:0.1rem 0.45rem; border-radius:999px; background:var(--color-bg-muted); color:var(--color-text-muted); }
.ca-tab:hover { color:var(--color-text); }
.ca-tab.is-active { color:var(--color-primary-dark); border-bottom-color:var(--color-primary); }
.ca-tab.is-active span { background:var(--color-primary-light); color:var(--color-primary-dark); }
.ca-filters { display:flex; flex-wrap:wrap; gap:0.5rem; padding:0.9rem 1rem; border-bottom:1px solid var(--color-border); align-items:center; }
.ca-filters input, .ca-filters select { width:auto; min-width:0; margin:0; }
.ca-filters__search { flex:1 1 260px; }
.ca-filters select { flex:0 1 190px; }
.ca-bulkbar { display:flex; flex-wrap:wrap; gap:0.75rem 1rem; align-items:center; padding:0.65rem 1rem; background:var(--color-bg-subtle); border-bottom:1px solid var(--color-border); font-size:0.88rem; }
.ca-bulkbar #ca-open-email { margin-left:auto; }
.ca-bulkbar__count { color:var(--color-text-muted); font-weight:600; }
.ca-check { display:inline-flex; align-items:center; gap:0.4rem; cursor:pointer; margin:0; font-weight:500; }
.ca-check input, .ca-col-check input { width:18px; height:18px; margin:0; accent-color:var(--color-primary); cursor:pointer; }
.ca-table-wrap { position:relative; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ca-table { width:100%; border-collapse:collapse; font-size:0.88rem; min-width:900px; }
.ca-table th { text-align:left; font-size:0.72rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--color-text-faint); font-weight:700; padding:0.75rem 0.9rem; background:var(--color-bg-subtle); border-bottom:1px solid var(--color-border); white-space:nowrap; }
.ca-table td { padding:0.8rem 0.9rem; border-bottom:1px solid var(--color-border); vertical-align:middle; color:var(--color-text); }
.ca-table tbody tr:hover { background:var(--color-bg-subtle); }
.ca-table tr.is-unread td:first-child { box-shadow:inset 3px 0 0 var(--color-primary); }
.ca-table tr.is-unread strong { font-weight:800; }
.ca-col-check { width:44px; }
.ca-sub { font-size:0.8rem; color:var(--color-text-faint); margin-top:0.1rem; }
.ca-nowrap { white-space:nowrap; }
.ca-pill { display:inline-block; font-size:0.75rem; font-weight:700; padding:0.15rem 0.55rem; border-radius:999px; background:var(--color-primary-light); color:var(--color-primary-dark); }
.ca-dialog { width:min(620px, calc(100vw - 32px)); border:1px solid var(--color-border); border-radius:16px; padding:1.5rem; background:var(--color-surface); color:var(--color-text); }
.ca-dialog::backdrop { background:rgba(10,14,25,0.55); }
@media (max-width: 640px) {
  .ca-filters select, .ca-filters input[type=date] { flex:1 1 45%; }
  .ca-bulkbar #ca-open-email { margin-left:0; width:100%; }
}
.ca-filters input[type=date] { border:1px solid var(--color-border); border-radius:10px; padding:0.6rem 0.7rem; background:var(--color-surface); color:var(--color-text); font:inherit; font-size:0.88rem; }

/* ===== Admin → Users: paid / live badges and freelancer segments ===== */
.us-segments { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; margin:0 0 1rem; }
.us-segments__label { font-size:0.8rem; font-weight:700; color:var(--color-text-faint); text-transform:uppercase; letter-spacing:0.05em; margin-right:0.25rem; }
.us-chip { display:inline-flex; align-items:center; gap:0.4rem; padding:0.4rem 0.75rem; border-radius:999px; border:1px solid var(--color-border); background:var(--color-surface); color:var(--color-text); font-size:0.84rem; font-weight:600; text-decoration:none; }
.us-chip strong { font-size:0.78rem; padding:0.05rem 0.45rem; border-radius:999px; background:var(--color-bg-muted); }
.us-chip:hover { border-color:var(--color-border-strong); }
.us-chip.is-active { border-color:var(--color-primary); box-shadow:0 0 0 3px var(--color-focus-ring); }
.us-dot { width:8px; height:8px; border-radius:50%; background:#94a3b8; flex:none; }
.us-chip--live .us-dot, .us-badge--live .us-dot { background:#10b981; }
.us-chip--incomplete .us-dot, .us-chip--paid_hidden .us-dot, .us-badge--warn .us-dot { background:#f59e0b; }
.us-chip--unpaid .us-dot, .us-chip--expired .us-dot, .us-badge--off .us-dot { background:#ef4444; }
.us-badges { display:flex; flex-wrap:wrap; gap:0.35rem; margin-top:0.4rem; }
.us-badge { display:inline-flex; align-items:center; gap:0.35rem; font-size:0.74rem; font-weight:700; padding:0.18rem 0.55rem; border-radius:999px; background:var(--color-bg-muted); color:var(--color-text-muted); }
.us-badge--live { background:#dcfce7; color:#166534; }
.us-badge--warn { background:#fef3c7; color:#92400e; }
.us-badge--off { background:#fee2e2; color:#991b1b; }
.us-badge--muted { background:var(--color-bg-muted); color:var(--color-text-muted); font-weight:600; }
.us-check { width:18px; height:18px; margin:0; accent-color:var(--color-primary); flex:none; cursor:pointer; }

/* Payment settings: saved Razorpay keys are locked until "Change keys" is ticked. */
.rzp-key:disabled { background:var(--color-bg-muted); color:var(--color-text-faint); cursor:not-allowed; opacity:.75; }

/* Admin reminder while maintenance mode is on */
.maint-admin-bar { position:relative; z-index:60; background:#b91c1c; color:#fff; text-align:center; font-size:0.88rem; padding:0.5rem 1rem; }
.maint-admin-bar a { color:#fff; text-decoration:underline; font-weight:700; margin-left:0.5rem; }
.ca-select { width:auto; min-width:170px; margin:0; padding:0.45rem 2rem 0.45rem 0.75rem; font-weight:600; font-size:0.88rem; border-radius:10px; }
.ca-select-notice { padding:0.6rem 1rem; background:#ecfdf5; color:#065f46; border-bottom:1px solid #a7f3d0; font-size:0.88rem; }

/* ===== Premium choice cards (Join as Freelancer / Client, Individual / Company) ===== */
.pick { display:grid; gap:0.75rem; }
.pick--2 { grid-template-columns:1fr 1fr; }
@media (max-width:420px) { .pick--2 { grid-template-columns:1fr; } }
.pick__opt { position:relative; display:block; cursor:pointer; margin:0; }
.pick__opt input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:1; }
.pick__card { position:relative; display:flex; align-items:flex-start; gap:0.9rem; height:100%; padding:1rem 1.1rem; border:1.5px solid var(--color-border); border-radius:16px; background:var(--color-surface); text-align:left; transition:border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.pick__opt:hover .pick__card { border-color:var(--color-border-strong); transform:translateY(-1px); box-shadow:0 10px 24px -14px rgba(15,23,42,.35); }
.pick__icon { flex:none; width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 8px 18px -8px rgba(5,150,105,.6); }
.pick__icon svg { width:24px; height:24px; }
.pick__icon--green { background:linear-gradient(135deg,#10b981,#047857); }
.pick__icon--blue { background:linear-gradient(135deg,#3b82f6,#1d4ed8); box-shadow:0 8px 18px -8px rgba(29,78,216,.6); }
.pick__icon--violet { background:linear-gradient(135deg,#8b5cf6,#6d28d9); box-shadow:0 8px 18px -8px rgba(109,40,217,.6); }
.pick__body { flex:1; min-width:0; }
.pick__title { display:flex; flex-wrap:wrap; align-items:center; gap:0.4rem; font-size:1rem; font-weight:700; color:var(--color-text); line-height:1.3; }
.pick__badge { font-size:0.68rem; font-weight:700; letter-spacing:.03em; padding:0.15rem 0.5rem; border-radius:999px; background:#dcfce7; color:#166534; text-transform:uppercase; }
.pick__badge--blue { background:#dbeafe; color:#1e40af; }
.pick__desc { display:block; margin-top:0.2rem; font-size:0.82rem; line-height:1.45; color:var(--color-text-muted); }
.pick__points { display:flex; flex-wrap:wrap; gap:0.35rem; margin-top:0.55rem; }
.pick__points span { font-size:0.72rem; font-weight:600; padding:0.18rem 0.5rem; border-radius:8px; background:var(--color-bg-muted); color:var(--color-text-muted); }
.pick__check { position:absolute; top:12px; right:12px; width:22px; height:22px; border-radius:50%; border:2px solid var(--color-border-strong); background:var(--color-surface); display:flex; align-items:center; justify-content:center; transition:all .15s; }
.pick__check svg { width:12px; height:12px; opacity:0; color:#fff; }
.pick__opt input:checked + .pick__card { border-color:var(--color-primary); background:linear-gradient(180deg, rgba(16,185,129,.07), rgba(16,185,129,.02)); box-shadow:0 0 0 3px rgba(16,185,129,.15), 0 14px 30px -18px rgba(5,150,105,.55); }
.pick__opt input:checked + .pick__card .pick__check { border-color:var(--color-primary); background:var(--color-primary); }
.pick__opt input:checked + .pick__card .pick__check svg { opacity:1; }
.pick__opt input:focus-visible + .pick__card { box-shadow:0 0 0 3px var(--color-focus-ring); }
.pick--2 .pick__card { flex-direction:column; align-items:flex-start; gap:0.65rem; padding:1rem; }
.pick--2 .pick__title { font-size:0.95rem; padding-right:1.6rem; }
.pick__title { padding-right:1.7rem; }
@media (max-width:420px) { .pick__card { padding:0.9rem; gap:0.75rem; } .pick__icon { width:40px; height:40px; border-radius:11px; } }

/* Date / URL / file inputs inside forms look like every other field (they were browser-default). */
.field input[type="date"], .field input[type="datetime-local"], .field input[type="url"], .field input[type="month"] {
  width:100%; padding:0.7rem 0.85rem; border:1px solid var(--color-border-strong); border-radius:var(--radius-sm);
  font-size:0.95rem; font-family:inherit; color:var(--color-text); background:var(--color-surface); min-height:46px;
}
.field input[type="file"] {
  width:100%; padding:0.55rem; border:1.5px dashed var(--color-border-strong); border-radius:var(--radius-sm);
  background:var(--color-bg-subtle); font-family:inherit; font-size:0.88rem; color:var(--color-text-muted); cursor:pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right:0.75rem; padding:0.5rem 0.9rem; border:0; border-radius:8px; background:var(--color-text); color:#fff;
  font-family:inherit; font-weight:600; font-size:0.85rem; cursor:pointer;
}
.field input[type="file"]:hover { border-color:var(--color-primary); }

/* Full name on freelancer cards / profile, with the headline under it */
.dev-card__headline { font-size:0.84rem; font-weight:600; color:var(--color-primary-dark); margin-top:0.1rem; line-height:1.35; }
.profile-headline { margin:0.15rem 0 0.4rem; font-size:1.05rem; font-weight:600; color:#34d399; }

/* Dashboard → Connections & Chat */
.conn-row { display:flex; align-items:center; gap:1rem; padding:1rem 1.25rem; border-bottom:1px solid var(--color-border); }
.conn-row:last-child { border-bottom:0; }
.conn-row__avatar { flex:none; width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,#10b981,#047857); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; }
.conn-row__main { flex:1; min-width:0; }
.conn-row__name { font-weight:700; color:var(--color-text); }
.conn-row__topic { font-size:0.85rem; color:var(--color-primary-dark); font-weight:600; margin-top:0.1rem; }
.conn-row__last { font-size:0.85rem; color:var(--color-text-muted); margin-top:0.2rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conn-row__actions { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; justify-content:flex-end; }
.conn-row__unread { font-size:0.75rem; font-weight:700; color:#fff; background:#ef4444; border-radius:999px; padding:0.15rem 0.55rem; }
.nav-count { margin-left:auto; font-size:0.72rem; font-weight:700; background:#10b981; color:#fff; border-radius:999px; padding:0.05rem 0.5rem; }
@media (max-width:640px) { .conn-row { flex-wrap:wrap; } .conn-row__actions { width:100%; justify-content:flex-start; } }

/* Homepage "Meet the developers" heading */
.fl-head { display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; margin-bottom:2.25rem; flex-wrap:wrap; }
.fl-head__text { max-width:620px; }
.fl-head__eyebrow { display:inline-flex; align-items:center; gap:0.5rem; font-size:0.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#047857; background:linear-gradient(90deg,#ecfdf5,#f0fdfa); border:1px solid #a7f3d0; padding:0.4rem 0.85rem; border-radius:999px; }
.fl-head__pulse { width:8px; height:8px; border-radius:50%; background:#10b981; box-shadow:0 0 0 0 rgba(16,185,129,.6); animation:flpulse 1.8s infinite; }
@keyframes flpulse { 70% { box-shadow:0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow:0 0 0 0 rgba(16,185,129,0); } }
@media (prefers-reduced-motion:reduce) { .fl-head__pulse { animation:none; } }
.fl-head__title { font-size:clamp(2rem,4.2vw,3.1rem); line-height:1.05; letter-spacing:-0.035em; margin:0.9rem 0 0.75rem; color:var(--color-text); }
.fl-head__brand { background:linear-gradient(90deg,#059669,#10b981 45%,#14b8a6); -webkit-background-clip:text; background-clip:text; color:transparent; position:relative; white-space:nowrap; }
.fl-head__brand::after { content:""; position:absolute; left:0; right:0; bottom:-0.08em; height:0.14em; border-radius:999px; background:linear-gradient(90deg,#10b981,#14b8a6); opacity:.35; }
.fl-head__sub { color:var(--color-text-muted); font-size:1.02rem; line-height:1.6; margin:0; }
.fl-head__side { display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; }
.fl-head__stat { background:var(--color-surface); border:1px solid var(--color-border); border-radius:14px; padding:0.65rem 1rem; min-width:96px; box-shadow:0 10px 24px -18px rgba(15,23,42,.35); }
.fl-head__stat strong { display:block; font-size:1.35rem; line-height:1.1; color:var(--color-text); }
.fl-head__stat span { font-size:0.76rem; color:var(--color-text-muted); font-weight:600; }
.fl-head__link { font-weight:700; color:#047857; padding:0.65rem 0.25rem; white-space:nowrap; }
.fl-head__link:hover { color:#065f46; }
@media (max-width:720px) { .fl-head { align-items:flex-start; } .fl-head__stat { min-width:0; flex:1; } }

/* Whole freelancer card is clickable (name link stretches over the card) */
.dev-card { position:relative; cursor:pointer; }
.dev-card__name a::after { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; }
.dev-card .btn, .dev-card a:not(.dev-card__name a) { position:relative; z-index:2; }
.dev-card:hover { border-color:#a7f3d0; box-shadow:0 18px 40px -24px rgba(5,150,105,.45); transform:translateY(-2px); }
.fl-head__text { max-width:560px; }
@media (max-width:720px) {
  .fl-head__side { width:100%; display:grid; grid-template-columns:repeat(3,1fr); gap:0.5rem; }
  .fl-head__stat { padding:0.6rem 0.7rem; }
  .fl-head__stat strong { font-size:1.15rem; }
  .fl-head__stat span { font-size:0.7rem; }
  .fl-head__link { grid-column:1/-1; padding:0.25rem 0; }
}

/* ===== How it works: Freelancer track + Client track ===== */
.hw { display:grid; grid-template-columns:1fr auto 1fr; gap:1.25rem; align-items:stretch; }
.hw-track { border-radius:24px; padding:1.75rem; display:flex; flex-direction:column; gap:1.25rem; }
.hw-track--fl { background:radial-gradient(500px 260px at 100% 0%, rgba(16,185,129,.28), transparent 60%), linear-gradient(160deg,#0b1020,#0f1b2e); color:#e5e7eb; box-shadow:0 30px 60px -30px rgba(5,150,105,.55); }
.hw-track--cl { background:#fff; border:1px solid var(--color-border); box-shadow:0 30px 60px -36px rgba(109,40,217,.35); }
.hw-track__tag { display:inline-block; font-size:0.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:0.35rem 0.8rem; border-radius:999px; }
.hw-track--fl .hw-track__tag { background:rgba(16,185,129,.18); color:#6ee7b7; border:1px solid rgba(110,231,183,.35); }
.hw-track--cl .hw-track__tag { background:#f3e8ff; color:#6d28d9; border:1px solid #e9d5ff; }
.hw-track__head h3 { font-size:1.45rem; line-height:1.2; margin:0.75rem 0 0.75rem; letter-spacing:-0.02em; }
.hw-track--fl h3 { color:#fff; }
.hw-track__price { display:flex; align-items:baseline; flex-wrap:wrap; gap:0.4rem 0.6rem; }
.hw-track__price strong { font-size:2rem; line-height:1; letter-spacing:-0.03em; }
.hw-track--fl .hw-track__price strong { color:#34d399; }
.hw-track--cl .hw-track__price strong { color:#6d28d9; }
.hw-track__price span { font-size:0.9rem; opacity:.8; font-weight:600; }
.hw-track__price em { font-style:normal; font-size:0.75rem; font-weight:800; padding:0.2rem 0.6rem; border-radius:999px; }
.hw-track--fl .hw-track__price em { background:#10b981; color:#04261a; }
.hw-track--cl .hw-track__price em { background:#ede9fe; color:#5b21b6; }
.hw-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0; flex:1; }
.hw-steps li { position:relative; display:flex; gap:0.9rem; padding:0 0 1.1rem; }
.hw-steps li:not(:last-child)::before { content:""; position:absolute; left:17px; top:36px; bottom:2px; width:2px; }
.hw-track--fl .hw-steps li:not(:last-child)::before { background:linear-gradient(#10b981,rgba(16,185,129,.15)); }
.hw-track--cl .hw-steps li:not(:last-child)::before { background:linear-gradient(#8b5cf6,rgba(139,92,246,.15)); }
.hw-steps__n { flex:none; width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:0.95rem; }
.hw-track--fl .hw-steps__n { background:rgba(16,185,129,.16); color:#6ee7b7; border:1px solid rgba(110,231,183,.35); }
.hw-track--cl .hw-steps__n { background:#f5f3ff; color:#6d28d9; border:1px solid #ddd6fe; }
.hw-steps li b { display:block; font-size:1rem; line-height:1.3; }
.hw-track--fl .hw-steps li b { color:#fff; }
.hw-steps li small { display:block; font-size:0.86rem; line-height:1.5; margin-top:0.15rem; }
.hw-track--fl .hw-steps li small { color:#9ca3af; }
.hw-track--cl .hw-steps li small { color:var(--color-text-muted); }
.hw-track--fl .hw-steps__win .hw-steps__n { background:#10b981; color:#04261a; border-color:#10b981; box-shadow:0 0 0 6px rgba(16,185,129,.18); }
.hw-track--cl .hw-steps__win .hw-steps__n { background:#7c3aed; color:#fff; border-color:#7c3aed; box-shadow:0 0 0 6px rgba(124,58,237,.14); }
.hw-bridge { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.5rem; }
.hw-bridge__line { flex:1; width:2px; background:repeating-linear-gradient(to bottom, #a7f3d0 0 6px, transparent 6px 12px); min-height:40px; }
.hw-bridge__pill { display:flex; flex-direction:column; align-items:center; gap:0.3rem; text-align:center; font-size:0.72rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#047857; background:#ecfdf5; border:1px solid #a7f3d0; border-radius:16px; padding:0.7rem 0.6rem; line-height:1.25; }
.hw-pay { margin-top:1.5rem; display:grid; grid-template-columns:auto 1fr 1fr 1fr; gap:0.75rem; align-items:stretch; background:#fff; border:1px solid var(--color-border); border-radius:18px; padding:1rem; }
.hw-pay__title { display:flex; align-items:center; font-weight:800; font-size:1rem; padding:0 0.75rem; color:var(--color-text); }
.hw-pay__row { display:flex; flex-direction:column; gap:0.15rem; background:var(--color-bg-subtle); border-radius:12px; padding:0.75rem 1rem; }
.hw-pay__row span { font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--color-text-faint); }
.hw-pay__row b { font-size:1.05rem; color:var(--color-text); }
.hw-pay__row em { font-style:normal; font-size:0.8rem; font-weight:700; color:#047857; }
@media (max-width:900px) {
  .hw { grid-template-columns:1fr; }
  .hw-bridge { flex-direction:row; }
  .hw-bridge__line { height:2px; width:auto; min-height:0; background:repeating-linear-gradient(to right, #a7f3d0 0 6px, transparent 6px 12px); }
  .hw-bridge__pill { flex-direction:row; }
  .hw-bridge__pill br { display:none; }
  .hw-pay { grid-template-columns:1fr; }
  .hw-pay__title { padding:0.25rem 0.25rem 0; }
}

/* Admin → Client Requests */
.cr-meta { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:0.75rem; }
.cr-meta div { background:var(--color-bg-subtle); border-radius:12px; padding:0.65rem 0.85rem; }
.cr-meta span { display:block; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--color-text-faint); margin-bottom:0.2rem; }
.cr-meta b { font-size:0.92rem; }
.cr-side { border-top:4px solid #10b981; }
.cr-side--client { border-top-color:#7c3aed; }
.cr-side__head { display:flex; justify-content:space-between; align-items:center; }
.cr-side__tag { font-size:0.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:0.25rem 0.65rem; border-radius:999px; background:#dcfce7; color:#166534; }
.cr-side--client .cr-side__tag { background:#ede9fe; color:#5b21b6; }
.cr-mail { margin-top:1rem; display:flex; flex-direction:column; gap:0.5rem; background:var(--color-bg-subtle); border:1px solid var(--color-border); border-radius:14px; padding:0.9rem; }
.cr-mail__head { display:flex; justify-content:space-between; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.cr-mail__head select { width:auto; margin:0; padding:0.35rem 2rem 0.35rem 0.6rem; font-size:0.85rem; }
.cr-mail .btn { align-self:flex-start; }
.no-guarantee-note { margin:0.75rem 0 0; font-size:0.8rem; line-height:1.5; color:#78350f; background:#fffbeb; border:1px solid #fcd34d; border-radius:10px; padding:0.6rem 0.75rem; }
.resend-card { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1rem; border-left:4px solid #10b981; }
.resend-card form { margin:0; }

/* Chat: refresh, presence, new-message bar */
.chat-tools { display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap; }
.chat-tools__auto { font-size:0.78rem; color:var(--color-text-faint); }
.chat-presence { display:inline-flex; align-items:center; gap:0.35rem; margin-left:0.6rem; font-size:0.74rem; font-weight:600; color:#94a3b8; vertical-align:middle; }
.chat-presence i { width:8px; height:8px; border-radius:50%; background:#64748b; display:inline-block; }
.chat-presence.is-online { color:#34d399; }
.chat-presence.is-online i { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.25); }
.chat-newbar { display:flex; align-items:center; justify-content:space-between; gap:0.75rem; margin-bottom:0.75rem; padding:0.6rem 0.9rem; border-radius:12px; background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; font-weight:600; font-size:0.9rem; }
.conversation-thread { max-height:60vh; overflow-y:auto; }

/* Desktop dashboard sidebar scrolls on its own, so the menu stays where you
   clicked (position is restored on the next page; see layouts/dashboard). */
@media (min-width: 861px) {
  .dashboard-sidebar {
    max-height: calc(100vh - var(--dashboard-header-height) - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
  }
  .dashboard-sidebar::-webkit-scrollbar { width: 6px; }
  .dashboard-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }
}
