/* ===== Base ===== */
:root {
  --primary: #2f5bea;
  --primary-dark: #1e40af;
  --accent: #00c2a8;
  --dark: #0b1026;
  --dark-2: #141a3a;
  --text: #1f2544;
  --muted: #5e6687;
  --light: #f5f7fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(15, 23, 72, 0.25);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.container.narrow { max-width: 800px; }

/* ===== Loader ===== */
.loader { position: fixed; inset: 0; background: var(--dark); display: grid; place-items: center; z-index: 9999; transition: opacity .6s, visibility .6s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo { font-size: 2.5rem; font-weight: 800; color: #fff; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, var(--primary), var(--accent)); animation: pulse 1.2s infinite var(--ease); }
.loader-logo span { color: var(--dark); }
@keyframes pulse { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem; transition: all .3s var(--ease); position: relative; overflow: hidden; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 25px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--primary); }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-primary:hover::after { left: 140%; }
.btn-outline { border: 2px solid #d4daf0; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 30px -10px rgba(0,0,0,.4); }
.arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(5px); }

/* ===== Navbar ===== */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--dark); }
.logo.light { color: #fff; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.nav-login { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 80px 0 40px; overflow: hidden; background: linear-gradient(180deg, #eef2ff 0%, #fff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: blob 14s infinite ease-in-out; }
.b1 { width: 420px; height: 420px; background: #93a8ff; top: -120px; right: -80px; }
.b2 { width: 320px; height: 320px; background: #7af0dd; bottom: 40px; left: -100px; animation-delay: -4s; }
.b3 { width: 260px; height: 260px; background: #f5a8ff; top: 40%; right: 30%; animation-delay: -8s; opacity: .3; }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.1); } 66% { transform: translate(-30px,30px) scale(.95); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(47,91,234,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(47,91,234,.06) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 50px; background: #fff; box-shadow: 0 6px 20px -8px rgba(47,91,234,.3); font-size: .85rem; font-weight: 600; color: var(--primary); margin-bottom: 22px; }
.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; font-weight: 800; color: var(--dark); margin-bottom: 22px; letter-spacing: -1.5px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .15s; }
body.loading .hero-title .line > span { animation-play-state: paused; }
@keyframes lineUp { to { transform: translateY(0); } }
.rotator { font-style: normal; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; transition: opacity .4s, transform .4s var(--ease); }
.rotator.out { opacity: 0; transform: translateY(-20px); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 16px; }
.hero-trust p { font-size: .9rem; line-height: 1.4; }
.hero-trust small { color: var(--muted); }
.avatars { display: flex; }
.avatars span { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 3px solid #fff; margin-left: -10px; }
.avatars span:first-child { margin-left: 0; }

.hero-visual { position: relative; height: 480px; }
.talent-card { position: absolute; width: 280px; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .3s; }
.talent-card:hover { z-index: 5; }
.tc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tc-head h4 { font-size: 1rem; }
.tc-head p { font-size: .82rem; color: var(--muted); }
.verified { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span { font-size: .75rem; padding: 4px 10px; border-radius: 6px; background: var(--light); color: var(--primary); font-weight: 600; }
.tc-foot { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); border-top: 1px solid #eef0f7; padding-top: 12px; }
.f1 { top: 10px; left: 0; }
.f2 { top: 150px; right: 0; }
.f3 { bottom: 10px; left: 40px; }
.stat-bubble { position: absolute; top: 40px; right: 20px; background: var(--dark); color: #fff; padding: 14px 20px; border-radius: 14px; text-align: center; box-shadow: var(--shadow); }
.stat-bubble strong { display: block; font-size: 1.4rem; color: var(--accent); }
.stat-bubble span { font-size: .75rem; opacity: .8; }
.float { opacity: 0; animation: popIn .8s var(--ease) forwards, float 6s ease-in-out infinite; }
.f1 { animation-delay: .5s, 1.3s; }
.f2 { animation-delay: .7s, 1.5s; }
.f3 { animation-delay: .9s, 1.7s; }
.f4 { animation-delay: 1.1s, 1.9s; }
body.loading .float { animation-play-state: paused; }
@keyframes popIn { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Marquee */
.marquee { position: relative; margin-top: 70px; text-align: center; }
.marquee-label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.marquee-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-row { display: flex; gap: 60px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-row span { font-size: 1.3rem; font-weight: 700; color: #9aa3c4; white-space: nowrap; transition: color .3s; }
.marquee-row span:hover { color: var(--primary); }
.marquee-track:hover .marquee-row { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Stats ===== */
.stats { padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 20px; border-radius: var(--radius); background: var(--light); transition: transform .3s var(--ease), box-shadow .3s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat h3 { font-size: 2.6rem; font-weight: 800; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); font-size: .95rem; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section.alt { background: var(--light); }
.section.dark { background: var(--dark); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 12px; }
.dark .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.2; font-weight: 800; letter-spacing: -.8px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.dark .section-head p { color: #a9b1d6; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ===== Steps ===== */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-line { position: absolute; top: 32px; left: 16%; right: 16%; height: 2px; background: rgba(255,255,255,.1); }
.step-progress { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1.5s var(--ease); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; background: var(--dark-2); border: 2px solid var(--primary); color: #fff; transition: all .4s var(--ease); }
.step:hover .step-num { background: var(--primary); transform: scale(1.12) rotate(-8deg); box-shadow: 0 0 0 10px rgba(47,91,234,.2); }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: #a9b1d6; }
.step:nth-child(3) { transition-delay: .15s; }
.step:nth-child(4) { transition-delay: .3s; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid #eceff8; position: relative; overflow: hidden; transition: all .4s var(--ease); }
.feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .4s; z-index: 0; }
.feature > * { position: relative; z-index: 1; }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: #fff; }
.feature:hover::before { opacity: 1; }
.feature:hover p { color: rgba(255,255,255,.85); }
.feature .icon { font-size: 2rem; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--light); margin-bottom: 18px; transition: transform .4s var(--ease); }
.feature:hover .icon { transform: rotate(-10deg) scale(1.1); }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; transition: color .4s; }
.feature-grid .feature:nth-child(3n+2) { transition-delay: .1s; }
.feature-grid .feature:nth-child(3n+3) { transition-delay: .2s; }

/* ===== Slider ===== */
.slider { max-width: 820px; margin: 0 auto; overflow: hidden; }
.slides { display: flex; transition: transform .7s var(--ease); }
.slide { min-width: 100%; padding: 50px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); text-align: center; }
.quote { font-size: 1.3rem; font-weight: 500; color: var(--dark); margin-bottom: 30px; line-height: 1.6; }
.author { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.author strong { display: block; }
.author span { color: var(--muted); font-size: .9rem; }
.slider-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }
.sc-btn { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px -8px rgba(15,23,72,.3); font-size: 1.1rem; transition: all .3s; }
.sc-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 10px; background: #cfd5ea; transition: all .4s var(--ease); }
.dots button.active { width: 30px; background: var(--primary); }

/* ===== Accordion ===== */
.acc-item { border-bottom: 1px solid #e6e9f4; }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 1.08rem; font-weight: 600; text-align: left; color: var(--dark); transition: color .3s; }
.acc-q:hover { color: var(--primary); }
.acc-q span { font-size: 1.5rem; transition: transform .4s var(--ease); color: var(--primary); }
.acc-item.open .acc-q span { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-a p { padding-bottom: 22px; color: var(--muted); }

/* ===== CTA ===== */
.cta { padding: 90px 0; background: linear-gradient(120deg, var(--primary), #5b3ff5, var(--accent)); background-size: 200% 200%; animation: gradientMove 10s ease infinite; color: #fff; text-align: center; }
@keyframes gradientMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 1.1rem; opacity: .9; margin-bottom: 30px; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #a9b1d6; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.5fr; gap: 32px; margin-bottom: 50px; }
.footer-about { margin-top: 16px; max-width: 300px; font-size: .92rem; }
.footer h4 { color: #fff; margin-bottom: 16px; }
.footer-grid a:not(.logo) { display: block; margin-bottom: 10px; font-size: .92rem; transition: color .3s, transform .3s; }
.footer-grid a:not(.logo):hover { color: #fff; transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; background: rgba(11,16,38,.6); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 500; opacity: 0; visibility: hidden; transition: all .35s; padding: 16px; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 20px; padding: 36px; transform: translateY(40px) scale(.95); transition: transform .45s var(--ease); max-height: 90vh; overflow-y: auto; }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 1.8rem; color: var(--muted); transition: transform .3s; }
.modal-close:hover { transform: rotate(90deg); color: var(--dark); }
.modal-body h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-body > p { color: var(--muted); margin-bottom: 22px; }
#hireForm > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
#hireForm input[type=email], #hireForm input[type=text], #hireForm select { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #dde2f3; border-radius: 10px; font: inherit; font-weight: 400; transition: border-color .3s, box-shadow .3s; }
#hireForm input:focus, #hireForm select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,91,234,.12); }
.chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chips input { display: none; }
.chips label { padding: 8px 14px; border: 1.5px solid #dde2f3; border-radius: 50px; font-weight: 500; font-size: .85rem; cursor: pointer; transition: all .3s; }
.chips input:checked + label { background: var(--primary); color: #fff; border-color: var(--primary); }
.success { text-align: center; padding: 20px 0; animation: fadeUp .6s var(--ease); }
.check { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2.4rem; display: grid; place-items: center; animation: popIn .6s var(--ease); }

/* Back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 25px -8px var(--primary); opacity: 0; transform: translateY(20px); transition: all .4s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ===== Auth: navbar ===== */
.user-only { display: none !important; }
body.logged-in .user-only { display: block !important; }
body.logged-in .guest-only { display: none !important; }
.btn-signup { border: 2px solid var(--primary); color: var(--primary); padding: 10px 20px; }
.btn-signup:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 50px; background: #fff; box-shadow: 0 4px 16px -6px rgba(15,23,72,.2); font-weight: 600; color: var(--dark); transition: box-shadow .3s, transform .3s; }
.user-btn:hover { box-shadow: 0 8px 24px -8px rgba(15,23,72,.35); transform: translateY(-1px); }
.avatar.sm { width: 34px; height: 34px; font-size: .75rem; }
.caret { font-size: .7rem; color: var(--muted); transition: transform .3s; }
.user-menu.open .caret { transform: rotate(180deg); }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 12px); width: 240px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: top right; transition: all .3s var(--ease); z-index: 120; }
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.ud-head { padding: 12px; border-bottom: 1px solid #eef0f7; margin-bottom: 6px; }
.ud-head strong { display: block; color: var(--dark); }
.ud-head small { display: block; color: var(--muted); word-break: break-all; }
.role-badge { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 50px; background: #e8eeff; color: var(--primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.user-dropdown a, .user-dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: .92rem; color: var(--text); transition: background .2s, color .2s; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--light); color: var(--primary); }
.user-dropdown .logout { color: #dc2626; }
.user-dropdown .logout:hover { background: #fef2f2; color: #dc2626; }

/* ===== Auth modal ===== */
.auth-box { max-width: 460px; padding: 30px 32px 32px; overflow-x: hidden; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--light); border-radius: 12px; padding: 5px; margin: 22px 0 24px; }
.auth-tab { position: relative; z-index: 1; padding: 10px; font-weight: 600; color: var(--muted); transition: color .3s; }
.auth-tab.active { color: #fff; }
.auth-tab-indicator { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: calc(100% - 10px); background: var(--primary); border-radius: 9px; transition: transform .45s var(--ease); }
#authModal[data-mode="signup"] .auth-tab-indicator { transform: translateX(100%); }
.auth-slider { display: grid; grid-template-columns: 100% 100%; align-items: start; transition: transform .5s var(--ease); }
.auth-slider.signup { transform: translateX(-100%); }
.auth-form { transition: opacity .4s; }
.auth-slider:not(.signup) #signupForm, .auth-slider.signup #signinForm { opacity: 0; pointer-events: none; max-height: 0; overflow: hidden; }
.auth-form h3 { font-size: 1.45rem; margin-bottom: 4px; color: var(--dark); }
.auth-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.auth-form > label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; }
.auth-form input[type=email], .auth-form input[type=text], .auth-form input[type=password] { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #dde2f3; border-radius: 10px; font: inherit; font-weight: 400; transition: border-color .3s, box-shadow .3s; }
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,91,234,.12); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 8px; top: calc(50% + 3px); transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; }
.pw-toggle:hover { background: var(--light); }
.pw-meter { height: 5px; background: #eef0f7; border-radius: 5px; margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .4s var(--ease), background .4s; }
.remember { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; color: var(--muted); cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--primary); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.role-pick input { display: none; }
.role-pick label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border: 1.5px solid #dde2f3; border-radius: 12px; cursor: pointer; transition: all .3s var(--ease); }
.role-pick label span { font-size: 1.5rem; transition: transform .3s var(--ease); }
.role-pick label strong { font-size: .92rem; color: var(--dark); }
.role-pick label small { color: var(--muted); font-size: .78rem; }
.role-pick label:hover { border-color: var(--primary); }
.role-pick input:checked + label { border-color: var(--primary); background: #eef2ff; box-shadow: 0 0 0 3px rgba(47,91,234,.12); }
.role-pick input:checked + label span { transform: scale(1.2) rotate(-6deg); }
.auth-switch { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.link { color: var(--primary); font-weight: 600; font-size: inherit; }
.link:hover { text-decoration: underline; }

/* Field-level errors */
.auth-form input.invalid, #hireForm input.invalid { border-color: #ef4444 !important; background: #fff7f7; box-shadow: 0 0 0 4px rgba(239,68,68,.1) !important; }
.field-err { display: block; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-4px); color: #dc2626; font-size: .8rem; font-weight: 500; transition: all .3s var(--ease); }
.field-err.show { max-height: 40px; opacity: 1; transform: none; margin-top: 6px; }
.field-err::before { content: '⚠ '; }

/* "No account found" / "Already registered" notice card */
.auth-notice { display: flex; gap: 14px; padding: 16px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(135deg, #eef2ff, #ecfeff); border: 1px solid #c7d2fe; }
.auth-notice[hidden] { display: none; }
.auth-notice.show { animation: noticeIn .5s var(--ease); }
@keyframes noticeIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
.an-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 4px 12px -4px rgba(47,91,234,.3); }
.an-body strong { display: block; color: var(--dark); font-size: .95rem; margin-bottom: 2px; }
.an-body p { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-bottom: 10px; word-break: break-word; }
.an-body p b { color: var(--dark); }
.an-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; font-size: .86rem; box-shadow: 0 8px 18px -8px var(--primary); transition: all .3s var(--ease); }
.an-action:hover { background: var(--primary-dark); transform: translateY(-2px); }
.an-action:hover .arrow { transform: translateX(4px); }

/* Success variant of the notice (after sign up) */
.auth-notice.is-success { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border-color: #a7f3d0; }
.auth-notice.is-success .an-icon { box-shadow: 0 4px 12px -4px rgba(16,185,129,.4); }

/* Welcome banner on the landing page (logged-in users) */
.welcome-banner { display: none; width: fit-content; margin-bottom: 18px; padding: 10px 18px; border-radius: 50px; background: linear-gradient(90deg, #ecfdf5, #eef2ff); border: 1px solid #c7d2fe; color: var(--dark); font-size: .95rem; box-shadow: 0 8px 20px -10px rgba(47,91,234,.35); }
body.logged-in .welcome-banner { display: flex !important; align-items: center; gap: 8px; }
.welcome-banner.pop { animation: bannerPop .8s var(--ease); }
.wb-wave { display: inline-block; transform-origin: 70% 70%; }
.welcome-banner.pop .wb-wave { animation: wave 1.2s ease .3s 2; }
@keyframes bannerPop { 0% { opacity: 0; transform: translateY(-14px) scale(.9); } 60% { transform: translateY(2px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes wave { 0%,100% { transform: rotate(0); } 20%,60% { transform: rotate(18deg); } 40%,80% { transform: rotate(-10deg); } }

/* Caps Lock pill inside password box */
.pw-wrap.caps-on::after { content: '⇪ Caps Lock on'; position: absolute; right: 48px; top: calc(50% + 3px); transform: translateY(-50%); padding: 3px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: .72rem; font-weight: 600; pointer-events: none; animation: noticeIn .3s var(--ease); }
.pw-label { display: block; margin-top: 4px; font-size: .76rem; font-weight: 600; }
.pw-label:empty { display: none; }

/* Nicer browser autofill (removes Chrome's blue fill) */
.auth-form input:-webkit-autofill, #hireForm input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--text); }
.auth-form input.invalid:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff7f7 inset, 0 0 0 4px rgba(239,68,68,.1); }

/* Slim modal scrollbar */
.modal-box { scrollbar-width: thin; scrollbar-color: #cfd5ea transparent; }
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-thumb { background: #cfd5ea; border-radius: 6px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }

/* Compact auth modal on short screens / laptops */
@media (max-height: 760px) {
  .auth-box { padding: 22px 26px 24px; }
  .auth-tabs { margin: 20px 0 16px; }
  .auth-form h3 { font-size: 1.3rem; }
  .auth-sub { margin-bottom: 14px; }
  .auth-form > label { margin-bottom: 10px; }
  .auth-form input[type=email], .auth-form input[type=text], .auth-form input[type=password] { padding: 10px 14px; }
  .role-pick label { padding: 10px; }
  .role-pick label span { font-size: 1.2rem; }
}

/* Form messages, spinner, shake */
.form-msg { max-height: 0; overflow: hidden; font-size: .88rem; border-radius: 8px; transition: max-height .3s, padding .3s, margin .3s; }
.form-msg.show { max-height: 80px; padding: 10px 12px; margin-bottom: 14px; }
.form-msg.error { background: #fef2f2; color: #b91c1c; }
.form-msg.success { background: #ecfdf5; color: #047857; }
.shake { animation: shake .45s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: .8; cursor: wait; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); background: var(--dark); color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .4s var(--ease); z-index: 1000; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid #ef4444; }

/* ===== Responsive ===== */
@media (max-width: 1150px) {
  .hire-nav { display: none; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; max-width: 520px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .user-name { display: none; }
  .hamburger { display: flex; z-index: 110; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { padding-top: 50px; }
  .hero-visual { height: 520px; }
  .talent-card { width: 250px; }
  .f2 { top: 170px; }
  .f3 { left: 10px; }
  .stat-bubble { top: auto; bottom: 170px; right: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .slide { padding: 30px 22px; }
  .quote { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dashboard links on the landing page (signed-in clients) */
.wb-link { margin-left: 6px; padding: 4px 12px; border-radius: 50px; background: var(--primary); color: #fff; font-size: .82rem; font-weight: 600; transition: background .2s, transform .2s; white-space: nowrap; }
.wb-link:hover { background: var(--primary-dark); transform: translateX(2px); }
@media (max-width: 560px) { .welcome-banner { flex-wrap: wrap; border-radius: 16px; } }

/* =========================================================
   Freelancer card (talent-card.js) – landing page, dashboards, profile preview
   ========================================================= */
.talent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.tcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e7ef; border-radius: 6px; padding: 16px 16px 22px; box-shadow: 0 2px 12px -8px rgba(15,23,72,.2); transition: transform .35s var(--ease), box-shadow .35s; animation: fadeUp .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); text-align: left; }
.tcard.no-anim { animation: none; }
.tcard:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -24px rgba(15,23,72,.38); }
.tcard-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #dfe3eb; }
.tcard-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tcard:hover .tcard-photo img { transform: scale(1.05); }
.tcard-photo.no-photo { display: grid; place-items: center; background: #e4e8f0; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, #eef1f6), #dfe3eb); }
.tcard-initials { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: 2px; color: var(--c); transition: transform .5s var(--ease); }
.tcard:hover .tcard-initials { transform: scale(1.08); }
.tcard-notch { position: absolute; left: 0; bottom: 0; width: 46px; height: 46px; background: #fff; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.tcard-notch span { position: absolute; left: 4px; bottom: 5px; font-size: .62rem; font-weight: 800; letter-spacing: .5px; color: var(--primary); }
.tcard-body { display: flex; flex-direction: column; flex: 1; padding: 22px 4px 0; }
.tcard-name { color: var(--primary); font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; word-break: break-word; }
.tcard-verified { font-size: .9rem; line-height: 1.5; color: #047857; }
.tcard-verified svg { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.tcard-verified b { font-weight: 700; }
.tcard-verified .in { color: #059669; }
.tcard-role { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; color: #4b5563; }
.tcard-role svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tcard-label { margin-top: 24px; font-size: .72rem; font-weight: 500; letter-spacing: .9px; text-transform: uppercase; color: #4b5563; }
.tcard-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tcard-chips span { padding: 4px 11px; border: 1px solid #c5cad5; border-radius: 50px; background: #fff; font-size: .75rem; color: #374151; transition: border-color .25s, color .25s; }
.tcard:hover .tcard-chips span { border-color: #a5b4fc; color: var(--primary-dark); }
.tcard-prev { margin-top: 8px; font-size: 1.3rem; font-weight: 800; letter-spacing: .6px; line-height: 1.2; text-transform: uppercase; color: #1f2937; word-break: break-word; }
.tcard-foot { margin-top: auto; padding-top: 18px; }

/* Landing page section */
.top-talent { background: var(--light); }
.tt-cta { text-align: center; margin-top: 40px; }

@media (max-width: 1100px) { .talent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .talent-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 520px)  { .talent-grid { grid-template-columns: 1fr; } }

/* Navbar avatar with a profile photo */
.avatar.has-photo { background-size: cover; background-position: center; }
/* Landing page: keep cards centred when there are fewer than four */
.top-talent .talent-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 285px)); justify-content: center; }
@media (max-width: 520px) { .top-talent .talent-grid { grid-template-columns: 1fr; } }

/* Card → full profile link */
a.tcard-photo { display: block; color: #fff; }
.tcard-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 42, 120, .72); color: #fff; font-size: 1.2rem; font-weight: 700; opacity: 0; transition: opacity .35s var(--ease); }
a.tcard-photo:hover .tcard-overlay, a.tcard-photo:focus-visible .tcard-overlay { opacity: 1; }
.tcard-notch { z-index: 1; }
.tcard-name a { color: inherit; transition: color .2s; }
.tcard-name a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Hero promises (replaces the old initials + rating) */
.trust-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-points li { padding: 8px 14px; border-radius: 50px; background: #fff; box-shadow: 0 6px 18px -10px rgba(47,91,234,.35); font-size: .9rem; font-weight: 600; color: var(--dark); }

/* Compact freelancer card */
.tcard.compact { flex-direction: row; gap: 16px; padding: 14px; border-radius: 12px; }
.tcard.compact .tcard-photo { width: 104px; flex-shrink: 0; align-self: flex-start; border-radius: 4px; }
.tcard.compact .tcard-initials { font-size: 1.8rem; }
.tcard.compact .tcard-notch { width: 28px; height: 28px; }
.tcard.compact .tcard-notch span { font-size: .5rem; left: 2px; bottom: 3px; }
.tcard.compact .tcard-overlay { font-size: .75rem; text-align: center; padding: 6px; }
.tcard.compact .tcard-body { padding: 0; min-width: 0; }
.tcard.compact .tcard-name { font-size: 1rem; margin-bottom: 4px; }
.tcard.compact .tcard-verified { font-size: .78rem; }
.tcard.compact .tcard-verified svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.tcard.compact .tcard-role { font-size: .82rem; margin-top: 4px; }
.tcard.compact .tcard-label { margin-top: 10px; font-size: .64rem; }
.tcard.compact .tcard-chips { gap: 5px; margin-top: 6px; }
.tcard.compact .tcard-chips span { font-size: .7rem; padding: 2px 9px; }
.tcard.compact .tcard-prev { font-size: .95rem; margin-top: 4px; }
@media (max-width: 560px) { .tcard.compact .tcard-photo { width: 84px; } }

/* Footer links: no black box on mouse click, soft ring for keyboard users */
.footer a:focus { outline: none; }
.footer a:focus-visible { outline: 2px solid rgba(120,150,255,.6); outline-offset: 3px; border-radius: 4px; }
.footer-grid a:not(.logo) { width: fit-content; }

/* =========================================================
   Shared navbar (site.js) – the same on every page
   ========================================================= */
html { scroll-padding-top: 84px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid #eceff6; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(15,23,72,.25); }
.sh-inner { display: flex; align-items: center; gap: 40px; height: 70px; }
.sh-nav { display: flex; gap: 40px; }
.sh-nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.sh-nav a:hover { color: var(--dark); background: var(--light); }
.sh-nav a.active { color: var(--primary); background: #eef2ff; font-weight: 600; }
.sh-nav a:focus { outline: none; }
.sh-nav a:focus-visible { outline: 2px solid rgba(47,91,234,.45); outline-offset: 2px; }
.sh-nav-auth { display: none; }
.sh-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sh-auth { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.sh-link { padding: 8px 12px; font-weight: 600; color: var(--dark); border-radius: 8px; transition: color .2s; }
.sh-link:hover, .sh-link.current { color: var(--primary); }
.sh-auth .user-menu { display: block; }
.site-header [hidden] { display: none !important; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.avatar-img { object-fit: cover; padding: 0; background: #e4e8f0; }
@media (max-width: 960px) {
  /* backdrop-filter would make the fixed menu belong to the header and stick out of the page */
  .site-header { backdrop-filter: none; background: #fff; }
  .sh-nav { visibility: hidden; position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px; flex-direction: column; gap: 6px; padding: 90px 22px; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.12); clip-path: inset(0 0 0 100%); transition: clip-path .4s var(--ease), visibility 0s .4s; z-index: 105; }
  /* clip-path (not transform) so the closed menu never makes the page wider than the screen */
  .sh-nav.open { clip-path: inset(0 0 0 -60px); visibility: visible; transition: clip-path .4s var(--ease); }
  .sh-nav a { font-size: 1.02rem; padding: 10px 12px; }
  .sh-nav-auth { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #eef0f6; padding-top: 10px; margin-top: 6px; }
  .sh-right .hamburger { display: flex; z-index: 110; }
  .sh-auth .sh-link, .sh-auth .sh-signup { display: none; }
}
@media (max-width: 640px) {
  .sh-hire { display: none; }
  .sh-inner { gap: 12px; }
  .sh-auth .user-name { display: none; }
}
.sh-nav-auth:empty { display: none !important; }

/* =========================================================
   Explore popular categories + Direct hire (direct-hire.js)
   ========================================================= */
.btn-xs { padding: 7px 12px; font-size: .82rem; border-radius: 8px; }
.btn-light { background: #fff; color: var(--text); border: 1.5px solid #dde2f0; }
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.spinner.dark { border-color: rgba(47,91,234,.2); border-top-color: var(--primary); display: inline-block; vertical-align: middle; }
[data-role="freelancer"] .dh-hire-btn { display: none; }

.explore { padding-top: 70px; }
.ex-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.ex-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--dark); font-weight: 800; letter-spacing: -.5px; }
.ex-head p { color: var(--muted); margin-top: 6px; }
.ex-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ex-all { font-weight: 700; color: var(--dark); text-decoration: underline; text-underline-offset: 4px; margin-right: 6px; }
.ex-all:hover { color: var(--primary); }
.ex-arrow { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #e3e7f1; font-size: 1.5rem; line-height: 1; color: var(--dark); box-shadow: 0 4px 14px -8px rgba(15,23,72,.35); transition: all .25s; display: grid; place-items: center; padding-bottom: 3px; }
.ex-arrow:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.ex-arrow:disabled { opacity: .35; cursor: default; }

.ex-body-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.ex-cats { display: flex; flex-direction: column; gap: 6px; }
.ex-cats button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid transparent; background: none; font-weight: 600; color: var(--dark); font-size: .98rem; transition: background .2s, border-color .2s; }
.ex-cats button:hover { background: var(--light); }
.ex-cats button.active { border-color: var(--dark); background: #fff; box-shadow: 0 6px 20px -14px rgba(15,23,72,.5); }
.ex-cat-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ex-cat-name { flex: 1; }
.ex-cat-count { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--light); border-radius: 50px; padding: 2px 9px; }
.ex-cats button.active .ex-cat-count { background: var(--dark); color: #fff; }

.ex-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-left: 4px; padding: 4px 4px 14px; min-width: 0; scrollbar-width: none; }
.ex-track::-webkit-scrollbar { display: none; }
.ex-card { flex: 0 0 255px; scroll-snap-align: start; background: #fff; border-radius: 14px; border: 1px solid #e8ebf3; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.ex-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(15,23,72,.45); }
.ex-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8ecf6; }
.ex-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ex-card:hover .ex-cover img { transform: scale(1.05); }
.ex-cover.no-photo { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b1026)); display: grid; place-items: center; }
.ex-initials { color: #fff; font-size: 2.6rem; font-weight: 800; letter-spacing: 1px; opacity: .95; }
.ex-role { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--dark); box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }
.ex-role svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ex-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ex-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--c); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
.ex-name { font-weight: 700; color: var(--dark); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ex-name:hover { text-decoration: underline; }
.ex-level { flex-shrink: 0; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fff1d6; color: #8a4b00; }
.ex-level.new { background: #e8eeff; color: var(--primary); }
.ex-title { color: var(--text); font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.ex-title:hover { text-decoration: underline; }
.ex-meta { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.ex-price, .dh-price { font-size: .92rem; color: var(--dark); }
.ex-price b, .dh-price b { font-size: 1.05rem; font-weight: 800; }
.ex-empty { flex: 1; min-height: 260px; border: 1.5px dashed #d8deec; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; }
.ex-empty h3 { color: var(--dark); font-size: 1.1rem; }
.ex-empty p { color: var(--muted); font-size: .92rem; max-width: 340px; margin-bottom: 6px; }
.ex-empty-ic svg { width: 40px; height: 40px; fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Price + Hire under a freelancer card (talent.html) */
.dh-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #eef0f6; }

/* ---------- Offer form (modal) ---------- */
.dh-box { max-width: 600px; padding: 30px 30px 26px; }
.dh-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 26px; }
.dh-head h3 { font-size: 1.35rem; color: var(--dark); line-height: 1.25; }
.dh-head p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.dh-pic { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--c); color: #fff; font-weight: 700; display: grid; place-items: center; }
.dh-form { display: flex; flex-direction: column; gap: 14px; }
.dh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dh-field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.dh-label { font-weight: 600; color: var(--dark); }
.dh-field input, .dh-field select, .dh-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid #dde2f0; border-radius: 10px; font: inherit; font-size: .93rem; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.dh-field textarea { resize: vertical; min-height: 96px; }
.dh-field input:focus, .dh-field select:focus, .dh-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,91,234,.12); }
.dh-field .invalid { border-color: #ef4444; }
.dh-field small { color: var(--muted); font-size: .78rem; }
.dh-err { display: none; color: #dc2626; font-size: .8rem; font-weight: 500; }
.dh-err.show { display: block; }
.dh-err.show::before { content: '⚠ '; }
.dh-fine { font-size: .8rem; color: var(--muted); background: var(--light); border-radius: 10px; padding: 10px 12px; }
.dh-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.dh-actions.center { justify-content: center; }
.dh-note { color: var(--muted); margin-bottom: 18px; }
.dh-note.error { color: #b91c1c; }
.dh-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 0; justify-content: center; }
.dh-done { text-align: center; padding: 10px 0; }
.dh-done h3 { font-size: 1.4rem; color: var(--dark); margin: 6px 0 8px; }
.dh-done p { color: var(--muted); margin-bottom: 22px; }
.dh-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #10b981; color: #fff; font-size: 2rem; font-weight: 800; display: grid; place-items: center; animation: popIn .5s var(--ease); }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .ex-body-wrap { grid-template-columns: 1fr; gap: 16px; }
  .ex-cats { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .ex-cats::-webkit-scrollbar { display: none; }
  .ex-cats button { flex-shrink: 0; padding: 10px 14px; white-space: nowrap; }
}
@media (max-width: 640px) {
  .ex-head { flex-direction: column; align-items: flex-start; }
  .ex-card { flex-basis: 78%; }
  .dh-box { padding: 24px 18px 20px; }
  .dh-grid { grid-template-columns: 1fr; }
}

/* ---------- Show the right message for who is signed in ----------
   site.js sets <html data-role="guest|client|freelancer">.
   .for-guest  → visitors only (e.g. "Join as a freelancer")
   .for-client → signed-in clients only (e.g. "Post a hire request")      */
html[data-role="client"] .for-guest,
html[data-role="freelancer"] .for-guest,
html:not([data-role="client"]) .for-client,
html[data-role="freelancer"] .hide-freelancer,
html:not([data-role="freelancer"]) .for-freelancer { display: none !important; }

/* Price + "Hire …" under a freelancer card on the home page (opens the 10-step hire form) */
.tc-hire-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; width: 100%; }
.tc-rate { font-size: .85rem; font-weight: 700; color: var(--dark); white-space: nowrap; }
.tc-hire { white-space: nowrap; }

/* ===== Build Amazing Teams, On Demand (home page, Toptal style) ===== */
.team-sec { background: #fafbfd; overflow: hidden; }
.team-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.team-info { padding-top: 10px; position: sticky; top: 110px; }  /* stays beside the taller card column */
.team-info h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: var(--dark); margin: 10px 0 12px; max-width: 480px; }
.team-sub { color: var(--muted); font-size: 1.05rem; }
.team-features { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; margin-top: 56px; }
.team-feat svg { width: 64px; height: 64px; margin-bottom: 18px; fill: none; stroke: #7b8cf0; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.team-feat svg .fill { fill: #e6eaff; }
.team-feat svg .tick { stroke: var(--primary); stroke-width: 2; }
.team-feat:hover svg { transform: translateY(-4px); }
.team-feat h3 { font-size: 1.12rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.team-feat p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.team-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; padding: 4px; }
.team-cards.single { grid-template-columns: minmax(0, 300px); justify-content: center; }
.team-cards.is-empty { display: block; }
.team-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.team-col.shift { margin-top: 160px; }
.team-cards .tcard { border-radius: 4px; padding: 0 0 18px; }
.team-cards .tcard-body { padding: 18px 16px 0; }
.team-cards .tcard-prev { font-size: 1.1rem; }
.team-empty { text-align: center; padding: 56px 24px; border: 1.5px dashed #d6dcef; border-radius: 16px; background: #fff; margin-top: 40px; }
.team-empty .te-icon { font-size: 2.2rem; margin-bottom: 8px; animation: float 4s ease-in-out infinite; }
.team-empty p { color: var(--muted); max-width: 360px; margin: 0 auto 16px; }

@media (max-width: 1024px) {
  .team-wrap { grid-template-columns: 1fr; gap: 40px; }
  .team-info { position: static; }
  .team-col.shift { margin-top: 60px; }
}
@media (max-width: 560px) {
  .team-features { grid-template-columns: 1fr; gap: 30px; margin-top: 36px; }
  .team-cards { grid-template-columns: 1fr; }
  .team-col.shift { margin-top: 0; }
  .team-cards .tcard { flex-direction: row; gap: 14px; padding: 12px; border-radius: 12px; }
  .team-cards .tcard-photo { width: 96px; flex-shrink: 0; align-self: flex-start; }
  .team-cards .tcard-body { padding: 0; min-width: 0; }
  .team-cards .tcard-notch { width: 26px; height: 26px; }
  .team-cards .tcard-notch span { font-size: .5rem; left: 2px; bottom: 3px; }
  .team-cards .tcard-initials { font-size: 1.7rem; }
  .team-cards .tcard-label { margin-top: 10px; }
  .team-cards .tcard-prev { font-size: .95rem; }
  .team-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* Prolance logo */
.logo-img { height: 28px; width: auto; max-width: 100%; display: block; }
.logo:has(.logo-img) { gap: 0; line-height: 0; }
@media (max-width: 560px) { .logo-img { height: 28px; } }
.loader-logo { overflow: hidden; }
.loader-logo img { width: 62%; height: auto; display: block; filter: brightness(0) invert(1); }

/* Company name + Contact column (footer) */
.footer-company { margin-top: 16px; max-width: 300px; font-size: .95rem; font-weight: 700; letter-spacing: .04em; color: #fff; line-height: 1.5; }
.footer-contact a:not(.logo) { word-break: break-word; }
.footer-hours { margin: 0; font-size: .92rem; line-height: 1.6; }
.footer-address { margin: 16px 0 0; max-width: 300px; font-size: .92rem; line-height: 1.7; color: #8fb4ff; }
.footer-address strong { color: #fff; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-contact { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
