/* ============================================================
   TUTORLINK KENYA — MAIN STYLESHEET
   Design: Vibrant Afro-Modern · Syne + DM Sans
   ============================================================ */

:root {
  --primary: #1A1040;
  --primary-light: #2D1B69;
  --accent: #FF6B35;
  --accent2: #4ECDC4;
  --accent3: #A855F7;
  --accent4: #F59E0B;
  --white: #FFFFFF;
  --off-white: #F8F7FF;
  --text: #1A1040;
  --text-light: #6B7280;
  --border: rgba(26,16,64,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 40px rgba(26,16,64,0.12);
  --shadow-lg: 0 20px 60px rgba(26,16,64,0.18);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ========== UTILITIES ========== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center-cta { text-align: center; margin-top: 40px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
.btn-primary:hover { background: #e85a22; border-color: #e85a22; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.35); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--primary); border-color: transparent;
}
.btn-ghost:hover { background: var(--off-white); }
.btn-white {
  background: var(--white); color: var(--primary); border-color: var(--white);
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.btn-success { background: #10B981; color: var(--white); border-color: #10B981; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #EF4444; color: var(--white); border-color: #EF4444; }
.btn-danger:hover { background: #DC2626; }
.btn-secondary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ========== TAGS / PILLS ========== */
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px; background: rgba(78,205,196,0.15);
  color: #0d9488; letter-spacing: 0.02em;
}
.tag-green { background: rgba(16,185,129,0.15); color: #059669; }
.tag-orange { background: rgba(255,107,53,0.15); color: var(--accent); }
.tag-purple { background: rgba(168,85,247,0.15); color: var(--accent3); }
.pill {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  padding: 6px 16px; border-radius: 50px;
  background: var(--white); color: var(--primary);
  border: 1.5px solid var(--border); white-space: nowrap;
  transition: all 0.2s;
}
.pill:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(26,16,64,0.08);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--primary);
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem; flex-shrink: 0;
}
.logo strong { color: var(--accent); }
.nav-links {
  display: flex; gap: 8px; margin-left: auto;
}
.nav-links a {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; color: var(--text-light);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--off-white); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--primary); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: 0 8px 24px rgba(26,16,64,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 12px 8px; color: var(--text); border-bottom: 1px solid var(--border);
}
.mobile-actions { display: flex; gap: 10px; margin-top: 12px; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex; align-items: center;
  max-width: 1180px; margin: 0 auto;
  gap: 60px; position: relative;
}
.hero-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25;
  animation: float 10s ease-in-out infinite;
}
.blob-1 { width: 600px; height: 600px; background: var(--accent3); top: -200px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--accent2); bottom: -100px; left: -100px; animation-delay: -3s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 30%; animation-delay: -6s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,16,64,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(26,16,64,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.97); }
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; font-family: var(--font-head);
  padding: 8px 16px; border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(168,85,247,0.12));
  color: var(--accent); border: 1px solid rgba(255,107,53,0.2);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  color: var(--primary); margin-bottom: 20px;
}
.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-light);
  max-width: 480px; margin-bottom: 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-light); font-weight: 500; }
.stat-div { width: 1px; height: 36px; background: var(--border); }
.hero-visual {
  flex: 0 0 auto; width: 360px;
  position: relative; height: 400px;
}
.hero-card {
  position: absolute; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 20px;
  animation: cardFloat 6s ease-in-out infinite;
}
.card-main {
  width: 300px; left: 50%; transform: translateX(-50%);
  top: 50px; z-index: 2;
}
.card-mini {
  width: 160px; padding: 16px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px;
}
.card-mini strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); }
.card-mini span { font-size: 0.75rem; color: var(--text-light); }
.card-top-right { top: 0; right: 0; animation-delay: -2s; }
.card-bottom-left { bottom: 20px; left: 0; animation-delay: -4s; }
.star-ic { color: var(--accent4); font-size: 1.5rem; }
.book-ic { color: var(--accent3); font-size: 1.5rem; }
@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.card-main { animation-name: none; }
.card-top-right { animation: cardFloat2 7s ease-in-out infinite; }
@keyframes cardFloat2 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--off-white); }
.online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #10B981; border: 2px solid var(--white);
}
.card-top strong { display: block; font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 4px; }
.card-subject {
  font-size: 0.85rem; color: var(--text-light);
  background: var(--off-white); padding: 8px 12px;
  border-radius: 8px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center;
}
.card-bar {
  height: 6px; background: var(--off-white); border-radius: 3px; margin-bottom: 12px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  transition: width 2s ease;
}
.card-footer {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-light); gap: 8px;
}
.card-footer i { color: var(--accent2); margin-right: 4px; }

/* ========== BAND ========== */
.band {
  background: var(--off-white); padding: 32px 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.band-label {
  text-align: center; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-light); margin-bottom: 16px; font-family: var(--font-head);
}
.band-scroll {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-alt { background: var(--off-white); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; font-family: var(--font-head); font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); background: rgba(255,107,53,0.1);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
  color: var(--primary); margin-bottom: 12px;
}
.section-head p { color: var(--text-light); font-size: 1.05rem; }

/* ========== STEPS ========== */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 24px; border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: all 0.3s; cursor: default;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 800;
  color: rgba(26,16,64,0.04); line-height: 1;
}
.step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c, var(--accent)), rgba(255,255,255,0.5));
  background-color: var(--c, var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--c, var(--accent)) 35%, transparent);
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.step-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ========== TUTORS GRID ========== */
.tutors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
.tutor-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.3s; position: relative;
}
.tutor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tutor-bg {
  height: 80px;
  background: linear-gradient(135deg, var(--tc, var(--accent2)), color-mix(in srgb, var(--tc, var(--accent2)) 60%, #A855F7));
}
.tutor-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid var(--white); margin: -40px 0 0 20px;
  display: block; background: var(--off-white);
}
.tutor-body { padding: 12px 20px 20px; }
.tutor-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.tutor-spec { font-size: 0.85rem; color: var(--text-light); display: block; margin-bottom: 10px; }
.tutor-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tutor-meta {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 0.82rem; color: var(--text-light); margin-bottom: 16px;
}
.tutor-meta i { margin-right: 5px; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; border: 1px solid var(--border);
  position: relative; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pricing-featured {
  background: var(--primary); color: var(--white); border-color: var(--primary);
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-featured h3, .pricing-featured p, .pricing-featured li { color: rgba(255,255,255,0.9); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--white);
  font-size: 0.75rem; font-weight: 700; font-family: var(--font-head);
  padding: 4px 16px; border-radius: 50px; white-space: nowrap;
}
.pricing-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: color-mix(in srgb, var(--pc, var(--accent)) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--pc, var(--accent)); margin-bottom: 20px;
}
.pricing-featured .pricing-icon { background: rgba(255,255,255,0.15); color: var(--white); }
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.pricing-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; }
.pricing-card li { font-size: 0.9rem; color: var(--text-light); display: flex; gap: 10px; align-items: flex-start; }
.pricing-card li i { color: var(--accent2); margin-top: 3px; flex-shrink: 0; }
.pricing-featured li i { color: var(--accent4); }

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start;
}
.review-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
  transition: all 0.3s;
}
.review-card:hover { box-shadow: var(--shadow); }
.review-featured {
  background: var(--primary); border-color: var(--primary);
}
.review-featured p, .review-featured .reviewer strong, .review-featured .reviewer span { color: rgba(255,255,255,0.9); }
.stars { color: var(--accent4); font-size: 0.85rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-card > p { font-size: 0.95rem; color: var(--text-light); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.reviewer { display: flex; gap: 12px; align-items: center; }
.reviewer img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); }
.reviewer strong { display: block; font-size: 0.9rem; font-family: var(--font-head); color: var(--primary); }
.reviewer span { font-size: 0.75rem; color: var(--text-light); }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #3B1FA0);
  padding: 100px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-blob {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: var(--accent3); opacity: 0.15; filter: blur(80px);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800;
  color: var(--white); margin-bottom: 16px;
}
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.85);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 60px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: all 0.2s;
}
.social-links a:hover { background: var(--accent); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin-bottom: 20px; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
}

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh; display: flex;
  background: var(--off-white);
}
.auth-left {
  flex: 0 0 460px;
  background: linear-gradient(160deg, var(--primary), var(--primary-light), #3B1FA0);
  padding: 60px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; width: 400px; height: 400px;
  border-radius: 50%; background: var(--accent3); opacity: 0.15; filter: blur(60px);
  top: -100px; right: -100px;
}
.auth-left::after {
  content: ''; position: absolute; width: 300px; height: 300px;
  border-radius: 50%; background: var(--accent); opacity: 0.12; filter: blur(60px);
  bottom: -80px; left: -80px;
}
.auth-left-content { position: relative; z-index: 1; }
.auth-left .logo { color: var(--white); margin-bottom: 48px; }
.auth-tagline h2 {
  font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px;
}
.auth-tagline p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.7; }
.auth-features { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.auth-feature {
  display: flex; gap: 14px; align-items: flex-start;
}
.af-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.12); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.af-text strong { display: block; color: var(--white); font-size: 0.9rem; font-weight: 600; }
.af-text span { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; overflow-y: auto;
}
.auth-box {
  background: var(--white); border-radius: 24px;
  padding: 48px; box-shadow: var(--shadow); width: 100%; max-width: 460px;
}
.auth-box h1 {
  font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 6px;
}
.auth-box p.auth-sub {
  color: var(--text-light); font-size: 0.95rem; margin-bottom: 32px;
}
.auth-box a.link { color: var(--accent); font-weight: 600; }
.auth-box a.link:hover { text-decoration: underline; }

/* Role Tabs */
.role-tabs {
  display: flex; gap: 6px; background: var(--off-white);
  border-radius: 12px; padding: 5px; margin-bottom: 28px;
}
.role-tab {
  flex: 1; text-align: center; padding: 10px 8px;
  border-radius: 9px; font-family: var(--font-head); font-size: 0.85rem;
  font-weight: 600; cursor: pointer; border: none; background: transparent;
  color: var(--text-light); transition: all 0.25s; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.role-tab.active {
  background: var(--white); color: var(--primary);
  box-shadow: 0 2px 10px rgba(26,16,64,0.1);
}

/* Form */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; font-family: var(--font-head);
  color: var(--primary); margin-bottom: 8px;
}
.form-group .required { color: var(--accent); }
.form-control {
  width: 100%; padding: 12px 16px; font-family: var(--font-body);
  font-size: 0.95rem; color: var(--text); background: var(--off-white);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  outline: none; transition: all 0.2s;
}
.form-control:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }
.form-control::placeholder { color: #AAA; }
.input-icon { position: relative; }
.input-icon i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 0.9rem; pointer-events: none;
}
.input-icon .form-control { padding-left: 40px; }
.input-icon .toggle-pw {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: var(--text-light); background: none; border: none;
  font-size: 0.9rem;
}
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 5px; }
.form-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.form-divider span { font-size: 0.82rem; color: var(--text-light); white-space: nowrap; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.form-check label { font-size: 0.85rem; color: var(--text-light); cursor: pointer; }
.auth-footer-text { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-light); }

/* Progress Step */
.signup-progress {
  display: flex; gap: 8px; align-items: center; margin-bottom: 32px;
}
.sp-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; font-family: var(--font-head);
}
.sp-num {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.78rem; font-weight: 700;
  background: var(--off-white); color: var(--text-light); border: 1.5px solid var(--border);
  transition: all 0.3s;
}
.sp-step.active .sp-num { background: var(--accent); color: var(--white); border-color: var(--accent); }
.sp-step.done .sp-num { background: #10B981; color: var(--white); border-color: #10B981; }
.sp-step.active .sp-label { color: var(--primary); }
.sp-label { color: var(--text-light); }
.sp-line { flex: 1; height: 2px; background: var(--border); border-radius: 1px; }
.sp-line.done { background: #10B981; }

/* File Upload */
.file-upload {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px; text-align: center; cursor: pointer; transition: all 0.2s;
  background: var(--off-white);
}
.file-upload:hover, .file-upload.drag { border-color: var(--accent); background: rgba(255,107,53,0.04); }
.file-upload i { font-size: 2rem; color: var(--text-light); margin-bottom: 8px; }
.file-upload p { font-size: 0.85rem; color: var(--text-light); }
.file-upload span { color: var(--accent); font-weight: 600; }
.file-upload input[type=file] { display: none; }

/* Alert / Notice */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 0.88rem; display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 20px;
}
.alert-info { background: rgba(78,205,196,0.12); color: #0d9488; border: 1px solid rgba(78,205,196,0.3); }
.alert-warning { background: rgba(245,158,11,0.12); color: #b45309; border: 1px solid rgba(245,158,11,0.3); }
.alert-success { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.3); }
.alert-danger { background: rgba(239,68,68,0.12); color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }

/* ========== DASHBOARD SHELL ========== */
.dashboard-wrap { display: flex; min-height: 100vh; padding-top: var(--nav-h); }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--primary);
  position: fixed; top: var(--nav-h); bottom: 0; left: 0;
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
  transition: transform 0.3s;
}
.sidebar-top {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex; gap: 12px; align-items: center;
}
.sidebar-user img {
  width: 46px; height: 46px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2); object-fit: cover;
}
.sidebar-user-info strong {
  display: block; color: var(--white); font-family: var(--font-head);
  font-size: 0.95rem;
}
.sidebar-user-info span {
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
}
.sidebar-nav { flex: 1; padding: 12px 12px; }
.sidebar-section-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.35);
  padding: 14px 8px 6px; font-family: var(--font-head);
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s; cursor: pointer; margin-bottom: 2px;
}
.sidebar-link i { width: 18px; text-align: center; font-size: 0.95rem; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-link.active { background: rgba(255,107,53,0.2); color: var(--accent); }
.sidebar-link .badge {
  margin-left: auto; font-size: 0.7rem; font-weight: 700;
  background: var(--accent); color: var(--white);
  padding: 2px 7px; border-radius: 50px;
}
.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.main-content {
  flex: 1; margin-left: 260px;
  background: var(--off-white); min-height: 100%;
}
.main-header {
  background: var(--white); padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.main-header h1 { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.header-right { display: flex; gap: 12px; align-items: center; }
.notif-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  background: var(--off-white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); cursor: pointer; transition: all 0.2s;
}
.notif-btn:hover { background: var(--primary); color: var(--white); }
.notif-dot {
  position: absolute; top: 6px; right: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--white);
}
.main-inner { padding: 32px; }

/* Stats Cards */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.stat-card-icon.orange { background: rgba(255,107,53,0.12); color: var(--accent); }
.stat-card-icon.teal { background: rgba(78,205,196,0.12); color: var(--accent2); }
.stat-card-icon.purple { background: rgba(168,85,247,0.12); color: var(--accent3); }
.stat-card-icon.yellow { background: rgba(245,158,11,0.12); color: var(--accent4); }
.stat-card-icon.green { background: rgba(16,185,129,0.12); color: #10B981; }
.stat-card-body strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-card-body span { font-size: 0.8rem; color: var(--text-light); }
.stat-card-body small { display: block; font-size: 0.75rem; color: #10B981; font-weight: 600; margin-top: 4px; }

/* Cards / Panels */
.panel {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px;
}
.panel-head {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.panel-head h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.panel-body { padding: 24px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-family: var(--font-head); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light);
  padding: 12px 16px; background: var(--off-white); border-bottom: 1px solid var(--border);
}
.data-table td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(248,247,255,0.8); }
.data-table .user-cell { display: flex; align-items: center; gap: 10px; }
.data-table .user-cell img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }

/* Status Badges */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 700; font-family: var(--font-head);
  padding: 4px 10px; border-radius: 50px;
}
.status-active { background: rgba(16,185,129,0.12); color: #059669; }
.status-pending { background: rgba(245,158,11,0.12); color: #b45309; }
.status-suspended { background: rgba(239,68,68,0.12); color: #dc2626; }
.status-live { background: rgba(255,107,53,0.12); color: var(--accent); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* Tutor Browse Grid */
.tutor-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tutor-browse-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  transition: all 0.3s; cursor: pointer;
}
.tutor-browse-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent2); }
.tbc-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.tbc-avatar { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.tbc-info strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--primary); }
.tbc-info span { font-size: 0.82rem; color: var(--text-light); }
.tbc-rating { margin-left: auto; text-align: right; }
.tbc-rating strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--primary); }
.tbc-rating span { font-size: 0.72rem; color: var(--text-light); }
.tbc-price {
  background: var(--off-white); border-radius: 8px; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-size: 0.85rem;
}
.tbc-price strong { font-family: var(--font-head); color: var(--primary); }
.tbc-actions { display: flex; gap: 8px; }

/* Bid Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(26,16,64,0.6);
  backdrop-filter: blur(6px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white); border-radius: 24px;
  padding: 36px; max-width: 500px; width: 100%;
  box-shadow: var(--shadow-lg); transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.show .modal-box { transform: translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-head h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.modal-close { width: 34px; height: 34px; border-radius: 8px; background: var(--off-white); border: none; cursor: pointer; color: var(--text-light); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #EF4444; color: var(--white); }

/* Wallet */
.wallet-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.wallet-hero::before {
  content: ''; position: absolute; width: 250px; height: 250px;
  border-radius: 50%; background: var(--accent3); opacity: 0.15; filter: blur(40px);
  top: -80px; right: -60px;
}
.wallet-balance { position: relative; z-index: 1; }
.wallet-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-head); font-weight: 700; }
.wallet-amount { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--white); }
.wallet-sub { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.wallet-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-chip {
  background: rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.1);
}
.wallet-chip i { color: var(--accent4); }
.wallet-chip span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.wallet-chip strong { font-size: 0.95rem; color: var(--white); font-family: var(--font-head); }

/* Filter Bar */
.filter-bar {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; margin-bottom: 24px;
}
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }
.filter-group label { font-size: 0.78rem; font-weight: 700; font-family: var(--font-head); color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.filter-group select, .filter-group input {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.88rem; background: var(--off-white);
  color: var(--text); outline: none; cursor: pointer;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--accent); }

/* Rating Stars */
.rating-input { display: flex; gap: 4px; }
.rating-input label { font-size: 1.5rem; cursor: pointer; color: #DDD; transition: color 0.15s; }
.rating-input input[type=radio]:checked ~ label,
.rating-input input[type=radio]:checked + label { color: var(--accent4); }
.rating-input label:hover, .rating-input label:hover ~ label { color: var(--accent4); }
.rating-input { flex-direction: row-reverse; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .auth-left { flex: 0 0 380px; padding: 48px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; padding-bottom: 60px; }
  .hero-visual { width: 100%; height: 260px; }
  .card-main { width: 260px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .auth-left { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .main-inner { padding: 20px 16px; }
  .main-header { padding: 16px 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .filter-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .auth-box { padding: 28px 20px; }
  .hero-stats { justify-content: center; }
  .stat-div { display: none; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }
.fade-in-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-4 { animation-delay: 0.4s; opacity: 0; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,16,64,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,16,64,0.4); }

/* ========== SIDEBAR TOGGLE BTN (Mobile) ========== */
.sidebar-toggle-btn {
  display: none; position: fixed; bottom: 24px; left: 24px; z-index: 200;
  width: 52px; height: 52px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--accent); color: var(--white); font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
  align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .sidebar-toggle-btn { display: flex; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(26,16,64,0.5);
    z-index: 99;
  }
  .sidebar-overlay.show { display: block; }
}
