/* ============================================================
   VISHAL TECHNOPOWER PVT LTD — Main Stylesheet
   Design: Corporate Blue · Glassmorphism · Modern SaaS
   ============================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --blue: #2563EB;
  --blue-dark: #1E40AF;
  --blue-light: #3B82F6;
  --sky: #0EA5E9;
  --sky-light: #38BDF8;
  --green: #10B981;
  --orange: #F59E0B;
  --purple: #8B5CF6;
  --red: #EF4444;

  --bg: #F0F4FF;
  --bg-card: #FFFFFF;
  --bg-alt: #EBF0FC;
  --border: #E2E8F4;
  --border-dark: #CBD5E1;

  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --muted-light: #94A3B8;

  --shadow-sm: 0 1px 4px rgba(15,23,42,0.07);
  --shadow: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12);
  --shadow-blue: 0 8px 32px rgba(37,99,235,0.22);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --nav-h: 68px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- LOGO ---------- */
.nav-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; border: none; }
img { max-width: 100%; display: block; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- CONTAINER ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  color: white; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-blue); border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,99,235,0.35); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(12px);
  color: white; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--blue);
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 1.5px solid var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: white; }

.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: white;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.15); }

.btn-white-sm {
  background: white; color: var(--blue-dark);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; font-size: 0.85rem;
  transition: var(--transition); border: none;
}
.btn-white-sm:hover { transform: translateY(-1px); }

.btn-login {
  background: transparent; color: var(--text-2);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer; transition: var(--transition);
  border: 1.5px solid var(--border-dark);
}
.btn-login:hover { border-color: var(--blue); color: var(--blue); }

.btn-signup {
  background: var(--blue); color: white;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: none; box-shadow: var(--shadow-blue);
}
.btn-signup:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-admin {
  background: transparent;
  color: var(--blue);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid rgba(37, 99, 235, 0.35);
}
.btn-admin:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--blue);
}
.btn-admin:disabled {
  color: var(--muted);
  border-color: var(--border-dark);
  background: #f8fafc;
  box-shadow: none;
  cursor: not-allowed;
}

.w-full { width: 100%; justify-content: center; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 24px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.brand-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text); line-height: 1.1; }
.brand-tagline { font-size: 0.65rem; color: var(--muted); font-weight: 400; }

.nav-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 8px 14px;
  position: relative; color: var(--muted); transition: var(--transition);
}
.nav-search:focus-within { border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.nav-search input { flex: 1; background: transparent; color: var(--text); }
.nav-search input::placeholder { color: var(--muted-light); }

.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 8px; display: none; z-index: 100;
}
.search-dropdown.active { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.search-item:hover { background: var(--bg-alt); }
.search-item .si-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.search-item strong { font-size: 0.875rem; display: block; }
.search-item span { font-size: 0.75rem; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; cursor: pointer;
  transition: var(--transition); font-size: 0.9rem;
}
.nav-link:hover { background: var(--bg-alt); color: var(--blue); }
.nav-link.active { background: rgba(37,99,235,0.08); color: var(--blue); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.notif-btn {
  position: relative; width: 38px; height: 38px;
  border-radius: var(--radius-sm); background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2); transition: var(--transition);
  border: 1px solid var(--border);
}
.notif-btn:hover { background: white; color: var(--blue); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: white; font-size: 0.65rem;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  border: 2px solid white;
}

.avatar-wrap { position: relative; cursor: pointer; }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue); }
.avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt);
  border: 1.5px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--muted);
}
.hidden { display: none !important; }

.notif-panel {
  position: fixed; top: var(--nav-h); right: 16px;
  width: 340px; background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  z-index: 999; display: none; overflow: hidden; animation: slideDown 0.2s ease;
}
.notif-panel.open { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.notif-clear { font-size: 0.8rem; color: var(--blue); cursor: pointer; background: none; font-weight: 500; }
.notif-item { display: flex; gap: 12px; padding: 14px 20px; transition: var(--transition); cursor: pointer; }
.notif-item:hover { background: var(--bg-alt); }
.notif-item.unread { background: rgba(37,99,235,0.04); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 4px; }
.notif-dot.read { background: var(--muted-light); }
.notif-item p { font-size: 0.875rem; margin-bottom: 2px; }
.notif-item span { font-size: 0.75rem; color: var(--muted); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 16px 24px; flex-direction: column; gap: 4px; z-index: 998;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; transition: var(--transition); }
.mobile-menu a:hover { background: var(--bg-alt); color: var(--blue); }

/* ---------- PAGES ---------- */
.page { display: none; padding-top: var(--nav-h); min-height: 100vh; }
.page.active { display: block; }
#page-home { padding-top: 0; }
#page-dashboard { padding-top: var(--nav-h); }
#page-login { padding-top: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(135deg, #0B1E5A 0%, #0D2B7A 40%, #0C3B8F 70%, #0B4FAA 100%);
  padding: var(--nav-h) 24px 60px;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
}
.blob1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.5) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.blob2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.6) 0%, transparent 70%);
  bottom: -50px; left: 100px;
  animation: float2 10s ease-in-out infinite;
}
.hero-grid {
  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: 60px 60px;
}
@keyframes float1 { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.05)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(20px)} }

.hero-content {
  position: relative; z-index: 2;
  max-width: 600px; flex: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); color: white;
  padding: 6px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-heading { color: white; margin-bottom: 20px; font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.5px; }
.hero-heading .gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
  padding: 20px 28px; display: inline-flex;
}
.stat { text-align: center; padding: 0 24px; }
.stat strong { display: block; color: white; font-size: 1.5rem; font-family: var(--font-display); font-weight: 800; }
.stat span { color: rgba(255,255,255,0.65); font-size: 0.78rem; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

.hero-visual {
  position: relative; flex: 1; display: flex; align-items: center;
  justify-content: center; z-index: 2; min-height: 360px;
}

.hero-card-float {
  position: absolute; background: rgba(255,255,255,0.12); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-lg);
  padding: 16px 20px; color: white; display: flex; align-items: center;
  gap: 14px; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.card-f1 { top: 40px; right: 20px; animation: floatCard1 6s infinite; }
.card-f2 { bottom: 80px; right: 60px; animation: floatCard2 7s infinite; }
.card-f3 { top: 180px; left: 20px; animation: floatCard3 8s infinite; flex-direction: column; align-items: flex-start; }
@keyframes floatCard1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes floatCard2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes floatCard3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.fc-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc-icon.blue { background: rgba(37,99,235,0.3); }
.fc-icon.green { background: rgba(16,185,129,0.3); }
.fc-title { font-weight: 600; font-size: 0.9rem; }
.fc-sub { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.tag-open { background: rgba(16,185,129,0.3); color: #86EFAC; font-size: 0.72rem; padding: 3px 10px; border-radius: 100px; font-weight: 600; margin-left: auto; }
.user-row { display: flex; align-items: center; }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; color: white; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: -6px; border: 2px solid rgba(255,255,255,0.2); }
.mini-avatar:first-child { margin-left: 0; }
.mini-avatar.plus { background: rgba(255,255,255,0.2); font-size: 0.65rem; }

/* ---------- SECTION HEADER ---------- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--blue); margin-bottom: 10px; }
.section-header h2 { margin-bottom: 12px; }
.section-desc { color: var(--muted); max-width: 520px; margin: 0 auto; }
.section-header .btn-ghost { margin-top: 16px; font-size: 0.9rem; }

/* ---------- HOW IT WORKS ---------- */
.how-works { background: white; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.step-card {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 36px 28px; position: relative; transition: var(--transition);
  border: 1.5px solid var(--border);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.step-num { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; color: rgba(37,99,235,0.1); line-height: 1; margin-bottom: 16px; }
.step-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; margin-bottom: 20px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.9rem; }
.step-arrow { position: absolute; top: 50%; right: -28px; transform: translateY(-50%); font-size: 1.5rem; color: var(--muted-light); z-index: 2; }
.steps-grid .step-card:last-child .step-arrow { display: none; }

/* ---------- PROJECT CARDS ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.project-card {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  border: 1.5px solid var(--border); transition: var(--transition);
  cursor: pointer; position: relative;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.pc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.pc-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.pc-status { font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.pc-status.open { background: rgba(16,185,129,0.1); color: var(--green); }
.pc-status.in-progress { background: rgba(245,158,11,0.1); color: var(--orange); }
.pc-status.closed { background: rgba(100,116,139,0.1); color: var(--muted); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.pc-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.pc-meta-item svg { flex-shrink: 0; }
.pc-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.skill-tag {
  background: rgba(37,99,235,0.08); color: var(--blue);
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 100px;
}
.pc-footer { display: flex; align-items: center; justify-content: space-between; }
.pc-budget { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.pc-actions { display: flex; gap: 8px; }
.save-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); color: var(--muted);
}
.save-btn:hover, .save-btn.saved { background: rgba(239,68,68,0.1); color: var(--red); border-color: var(--red); }
.pc-apply {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  color: white; padding: 8px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: var(--transition);
  border: none;
}
.pc-apply:hover { transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.pc-apps { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* ---------- TOP CONTRACTORS ---------- */
.top-contractors { background: var(--bg); }
.contractors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.contractor-card {
  background: white; border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; border: 1.5px solid var(--border); transition: var(--transition); cursor: pointer;
}
.contractor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky); }
.cc-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: white;
  position: relative;
}
.cc-verified { position: absolute; bottom: -2px; right: -2px; background: var(--green); color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.cc-name { font-weight: 700; margin-bottom: 4px; }
.cc-role { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.cc-location { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 12px; }
.cc-rating { font-size: 0.85rem; font-weight: 600; color: var(--orange); margin-bottom: 12px; }
.cc-skills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 16px; }
.cc-projects { font-size: 0.75rem; color: var(--muted); }

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: white; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 28px;
  border: 1.5px solid var(--border); transition: var(--transition);
}
.testi-card.featured-testi {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  border-color: transparent; color: white;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testi-stars { font-size: 1rem; margin-bottom: 14px; color: var(--orange); }
.featured-testi .testi-stars { color: #FEF08A; }
.testi-card p { font-size: 0.9rem; font-style: italic; margin-bottom: 20px; color: var(--text-2); line-height: 1.7; }
.featured-testi p { color: rgba(255,255,255,0.9); }
.testi-author { display: flex; align-items: center; gap: 12px; }
.ta-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.testi-author strong { font-size: 0.9rem; font-weight: 700; display: block; }
.testi-author span { font-size: 0.78rem; color: var(--muted); }
.featured-testi .testi-author span { color: rgba(255,255,255,0.7); }
.featured-testi .testi-author strong { color: white; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0B1E5A 0%, #0C3B8F 60%, #0B4FAA 100%);
  padding: 80px 0;
}
.cta-content { text-align: center; }
.cta-content h2 { color: white; margin-bottom: 14px; }
.cta-content p { color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: #0B1228; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 16px; line-height: 1.7; }
.footer-brand .brand-name { color: white; }
.footer-brand .brand-tagline { color: rgba(255,255,255,0.5); }
.footer-links h4 { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-links a { display: block; color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--sky-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; color: rgba(255,255,255,0.35); font-size: 0.8rem; text-align: center; }

/* ---------- SMALL PAGE HERO ---------- */
.page-hero-sm {
  background: linear-gradient(135deg, #0B1E5A 0%, #0C3B8F 100%);
  padding: 56px 0 52px;
}
.page-hero-sm h1 { color: white; margin-bottom: 10px; }
.page-hero-sm p { color: rgba(255,255,255,0.72); max-width: 520px; }

/* ---------- PROJECTS PAGE ---------- */
.projects-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 32px; padding-top: 36px; padding-bottom: 60px; align-items: start;
}

.filters-sidebar {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  border: 1.5px solid var(--border); position: sticky; top: 88px;
}
.filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filter-header h3 { font-size: 1rem; }
.clear-filters { font-size: 0.8rem; color: var(--blue); cursor: pointer; background: none; font-weight: 500; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.filter-group select, .filter-group input[type="text"] {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  transition: var(--transition);
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.skill-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.skill-checkboxes label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 400; cursor: pointer; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; }
#applyFilters { margin-top: 8px; }

.projects-main {}
.projects-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.projects-toolbar span { font-size: 0.9rem; color: var(--muted); }
.projects-toolbar select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: white; color: var(--text); cursor: pointer; }
.projects-list { display: flex; flex-direction: column; gap: 16px; }
.projects-list .project-card { cursor: pointer; }

/* ---------- POST PROJECT PAGE ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.post-form-wrap { background: white; border-radius: var(--radius-lg); padding: 36px; border: 1.5px solid var(--border); }

.form-progress { display: flex; align-items: center; margin-bottom: 36px; }
.progress-step { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.progress-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; transition: var(--transition); }
.progress-step.active { color: var(--blue); }
.progress-step.active span, .progress-step.done span { background: var(--blue); border-color: var(--blue); color: white; }
.progress-step.done { color: var(--green); }
.progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 12px; transition: var(--transition); }
.progress-line.done { background: var(--blue); }

.form-step { display: none; }
.form-step.active { display: block; }
.form-step h3 { margin-bottom: 24px; font-size: 1.1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text-2); }
.req { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  transition: var(--transition); resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-hint { font-size: 0.75rem; color: var(--muted); }
.form-nav { display: flex; gap: 12px; margin-top: 28px; }

.skill-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-option {
  padding: 7px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text-2);
  cursor: pointer; transition: var(--transition);
}
.skill-option:hover { border-color: var(--blue); color: var(--blue); background: rgba(37,99,235,0.05); }
.skill-option.selected { background: var(--blue); border-color: var(--blue); color: white; }

.exp-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.exp-btn {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text-2);
  cursor: pointer; transition: var(--transition);
}
.exp-btn.active { background: var(--blue); border-color: var(--blue); color: white; }
.exp-btn:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

.upload-zone {
  border: 2px dashed var(--border-dark); border-radius: var(--radius-lg);
  padding: 48px; text-align: center; cursor: pointer; transition: var(--transition);
  color: var(--muted); margin-bottom: 16px;
}
.upload-zone:hover { border-color: var(--blue); background: rgba(37,99,235,0.03); }
.upload-zone svg { margin: 0 auto 14px; color: var(--muted-light); }
.upload-link { color: var(--blue); font-weight: 600; cursor: pointer; }
.upload-hint { font-size: 0.78rem; color: var(--muted-light); margin-top: 8px; }
.uploaded-files { display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-alt); border-radius: var(--radius-sm); font-size: 0.85rem; }
.file-item svg { color: var(--blue); flex-shrink: 0; }
.file-item span { flex: 1; }
.file-remove { cursor: pointer; color: var(--red); background: none; font-size: 1rem; }

.project-review { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.review-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.review-row:last-child { border-bottom: none; }
.review-row span:first-child { color: var(--muted); }
.review-row span:last-child { font-weight: 600; }

.post-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: white; border-radius: var(--radius-lg); padding: 22px; border: 1.5px solid var(--border); }
.sidebar-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.insight-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.insight-row:last-child { border-bottom: none; }
.insight-row span { color: var(--muted); }
.insight-row strong { color: var(--blue); }
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tips-list li { font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.tips-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ---------- DASHBOARD ---------- */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--nav-h)); }

.dash-sidebar { background: white; border-right: 1px solid var(--border); padding: 32px 20px; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.dash-profile { text-align: center; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.dash-avatar-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.dash-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--sky)); color: white; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dash-avatar-badge { position: absolute; bottom: 0; right: 0; background: var(--green); color: white; width: 22px; height: 22px; border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.dash-profile h3 { font-size: 1rem; margin-bottom: 4px; }
.dash-role { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.dash-location { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 6px; }
.dash-rating { font-size: 0.82rem; color: var(--orange); font-weight: 600; margin-bottom: 14px; }
.dash-rating span { color: var(--muted); font-weight: 400; }
.profile-complete { text-align: left; }
.profile-complete span { font-size: 0.75rem; color: var(--muted); }
.progress-bar { height: 6px; background: var(--bg-alt); border-radius: 100px; margin: 6px 0 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); border-radius: 100px; transition: width 1s ease; }
.pct { font-size: 0.75rem; font-weight: 700; color: var(--blue); }

.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500;
  font-size: 0.88rem; cursor: pointer; transition: var(--transition);
}
.dash-nav-item:hover { background: var(--bg-alt); color: var(--blue); }
.dash-nav-item.active { background: rgba(37,99,235,0.08); color: var(--blue); font-weight: 600; }
.badge-sm { background: var(--red); color: white; font-size: 0.65rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: auto; font-weight: 700; }

.dash-main { padding: 36px; background: var(--bg); min-height: calc(100vh - var(--nav-h)); }
.dash-section { display: none; }
.dash-section.active { display: block; }
.dash-section h2 { margin-bottom: 24px; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.dstat-card { background: white; border-radius: var(--radius-lg); padding: 22px; border: 1.5px solid var(--border); display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.dstat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dstat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dstat-icon.blue { background: rgba(37,99,235,0.1); color: var(--blue); }
.dstat-icon.green { background: rgba(16,185,129,0.1); color: var(--green); }
.dstat-icon.orange { background: rgba(245,158,11,0.1); color: var(--orange); }
.dstat-icon.purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.dstat-card strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.dstat-card span { font-size: 0.8rem; color: var(--muted); }

.recent-activity { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1.5px solid var(--border); }
.recent-activity h3 { margin-bottom: 18px; font-size: 1rem; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.activity-item p { font-size: 0.875rem; margin-bottom: 2px; }
.activity-item span { font-size: 0.75rem; color: var(--muted); }

.applied-list { display: flex; flex-direction: column; gap: 14px; }
.applied-card { background: white; border-radius: var(--radius-lg); padding: 20px 24px; border: 1.5px solid var(--border); display: flex; align-items: center; gap: 20px; }
.applied-status { padding: 5px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.applied-status.pending { background: rgba(245,158,11,0.1); color: var(--orange); }
.applied-status.shortlisted { background: rgba(16,185,129,0.1); color: var(--green); }
.applied-status.rejected { background: rgba(239,68,68,0.1); color: var(--red); }
.applied-info { flex: 1; }
.applied-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.applied-info p { font-size: 0.8rem; color: var(--muted); }
.applied-date { font-size: 0.78rem; color: var(--muted); }

/* Profile Edit */
.profile-edit-layout { display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.avatar-upload-section { text-align: center; }
.large-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--sky)); color: white;
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  object-fit: cover; overflow: hidden;
}
.large-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.upload-avatar-btn { font-size: 0.82rem; padding: 8px 14px; }
.profile-skills { margin-top: 4px; }

/* ---------- CHAT ---------- */
.chat-layout { display: grid; grid-template-columns: 260px 1fr; height: 520px; background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); overflow: hidden; }
.chat-contacts { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-search { padding: 12px; border-bottom: 1px solid var(--border); }
.chat-search input { width: 100%; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--border); }
.contact-item:hover, .contact-item.active { background: var(--bg-alt); }
.contact-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; flex-shrink: 0; }
.contact-name { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.contact-last { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.contact-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.contact-meta span:first-child { font-size: 0.72rem; color: var(--muted); }
.chat-main { display: flex; flex-direction: column; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 70%; }
.msg.received { align-self: flex-start; }
.msg.sent { align-self: flex-end; }
.msg p { padding: 10px 14px; border-radius: var(--radius); font-size: 0.875rem; line-height: 1.5; }
.msg.received p { background: var(--bg-alt); color: var(--text); border-bottom-left-radius: 4px; }
.msg.sent p { background: var(--blue); color: white; border-bottom-right-radius: 4px; }
.msg span { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 4px; }
.msg.sent span { text-align: right; }
.chat-input-area { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.chat-input-area input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; background: var(--bg); transition: var(--transition); }
.chat-input-area input:focus { border-color: var(--blue); background: white; }
.chat-attach, .chat-send { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); border: none; }
.chat-attach { background: var(--bg-alt); color: var(--muted); }
.chat-attach:hover { color: var(--blue); }
.chat-send { background: var(--blue); color: white; }
.chat-send:hover { background: var(--blue-dark); }
.chat-notice { text-align: center; font-size: 0.8rem; color: var(--muted); background: var(--bg-alt); padding: 10px; border-radius: var(--radius-sm); margin-top: 16px; }

/* ---------- PROJECT DETAIL PAGE ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 36px 24px 60px; }
.detail-main { display: flex; flex-direction: column; gap: 20px; }
.detail-hero { background: white; border-radius: var(--radius-lg); padding: 36px; border: 1.5px solid var(--border); }
.detail-title { font-size: 1.6rem; margin-bottom: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.detail-section { background: white; border-radius: var(--radius-lg); padding: 28px; border: 1.5px solid var(--border); }
.detail-section h3 { font-size: 1rem; margin-bottom: 14px; }
.applicant-card { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.applicant-card:last-child { border-bottom: none; }
.applicant-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; flex-shrink: 0; }

.detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.detail-sidebar-card { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1.5px solid var(--border); }
.detail-sidebar-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.apply-btn-large {
  width: 100%; padding: 14px; background: linear-gradient(135deg, var(--blue), var(--sky));
  color: white; border-radius: var(--radius); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: var(--transition); margin-bottom: 12px;
}
.apply-btn-large:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--muted); }
.detail-row span:last-child { font-weight: 600; }

/* ---------- AUTH PAGE ---------- */
#page-login { min-height: 100vh; display: block !important; }
.auth-container { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual {
  background: linear-gradient(135deg, #0B1E5A 0%, #0C3B8F 60%, #0B4FAA 100%);
  display: flex; align-items: center; justify-content: center; padding: 60px; position: relative; overflow: hidden;
}
.auth-blob { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,0.35) 0%, transparent 70%); top: -100px; right: -100px; }
.auth-content { position: relative; z-index: 2; }
.auth-stats { display: flex; gap: 32px; margin-top: 32px; }
.auth-form-wrap { display: flex; flex-direction: column; justify-content: center; padding: 60px; background: white; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-alt); padding: 4px; border-radius: var(--radius); margin-bottom: 28px; }
.auth-tab { flex: 1; padding: 10px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: var(--transition); background: transparent; color: var(--muted); border: none; font-size: 0.9rem; }
.auth-tab.active { background: white; color: var(--blue); box-shadow: var(--shadow-sm); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
.auth-extra { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 0.85rem; }
.auth-extra label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.link { color: var(--blue); font-weight: 600; }
.auth-submit { margin-top: 8px; margin-bottom: 20px; }
.auth-divider { display: flex; align-items: center; gap: 14px; font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: var(--transition); background: white; font-size: 0.88rem; }
.social-btn:hover { border-color: var(--blue); background: var(--bg-alt); }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.role-card { padding: 18px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; text-align: center; transition: var(--transition); }
.role-card:hover, .role-card.active { border-color: var(--blue); background: rgba(37,99,235,0.04); }
.role-card.active { background: rgba(37,99,235,0.06); }
.role-card svg { margin: 0 auto 10px; color: var(--blue); }
.role-card strong { display: block; font-size: 0.88rem; margin-bottom: 4px; }
.role-card p { font-size: 0.75rem; color: var(--muted); }

.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 42px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; cursor: pointer; font-size: 1rem; color: var(--muted); }

.check-label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; cursor: pointer; margin-bottom: 16px; }
.check-label input { margin-top: 2px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--text); color: white; padding: 14px 22px;
  border-radius: var(--radius); font-size: 0.88rem; font-weight: 500;
  box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; min-height: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-visual { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .projects-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .auth-container { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-wrap { padding: 40px 32px; min-height: 100vh; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-links { display: none; }
  .btn-login, .btn-signup, .btn-admin { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .dash-stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-contacts { display: none; }
  .contractors-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .profile-edit-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}