/* ══════════════════════════════════════════════════════════════
   booktutor.css  —  Tutor Application Page
   Matches Jaromind site design: Poppins, purple→red gradient,
   glassmorphism cards, neon glows, dark mode support
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #32cd32;
  --secondary:    #af005d;
  --accent:       #c42e00;
  --purple-dark:  #4b134f;
  --purple-mid:   #6d1f72;
  --red-mid:      #c94b4b;
  --nav-gradient: linear-gradient(90deg, #4b134f, #c42e00);
  --brand-gradient: linear-gradient(135deg, #32cd32, #af005d);
  --card-gradient:  linear-gradient(135deg, rgba(75,19,79,0.08), rgba(196,46,0,0.06));
  --glow-green:   0 0 20px rgba(50,205,50,0.35);
  --glow-purple:  0 0 20px rgba(75,19,79,0.45);
  --shadow:       0 10px 30px rgba(0,0,0,0.10);
  --shadow-lg:    0 15px 45px rgba(0,0,0,0.18);
  --radius:       14px;
  --radius-sm:    8px;
  --bg:           #f8f9fa;
  --surface:      #ffffff;
  --text:         #212529;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --input-bg:     #ffffff;
}

body.dark-mode {
  --bg:        #121212;
  --surface:   #1e1e1e;
  --text:      #e0e0e0;
  --text-muted:#9ca3af;
  --border:    #2d2d2d;
  --input-bg:  #2a2a2a;
  --card-gradient: linear-gradient(135deg, rgba(75,19,79,0.20), rgba(196,46,0,0.12));
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-gradient);
  padding: 15px 50px;
  color: white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.name {
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar-right { display: flex; align-items: center; gap: 12px; }

.button_login {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 10px 22px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .3s;
  font-family: 'Poppins', sans-serif;
}
.button_login:hover { background: rgba(255,255,255,0.25); }

.button-neon {
  background: var(--brand-gradient);
  color: white;
  padding: 10px 22px;
  border: none;
  border-radius: 25px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s;
  box-shadow: var(--glow-green);
  font-family: 'Poppins', sans-serif;
}
.button-neon:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(50,205,50,0.55); }

/* ── HERO ── */
.apply-hero {
  background: var(--nav-gradient);
  padding: 130px 50px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  position: relative;
}

.apply-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(50,205,50,0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.apply-hero-content { flex: 1; max-width: 620px; color: white; z-index: 1; }

.apply-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeInUp .8s ease both;
}

.apply-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeInUp .8s .1s ease both;
}

.gradient-text {
  background: linear-gradient(90deg, #ffcc00, #32cd32);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apply-hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
  animation: fadeInUp .8s .2s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeInUp .8s .3s ease both;
}

.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: #ffcc00; }
.hero-stat span   { font-size: .82rem; color: rgba(255,255,255,0.7); }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.25); }

/* ── HERO VISUAL ── */
.apply-hero-visual {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  z-index: 1;
}

.hero-avatar-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 3px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(50,205,50,0.3); }
  50%      { box-shadow: 0 0 0 18px rgba(50,205,50,0); }
}

.hero-avatar { font-size: 80px; }

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: white;
  animation: float 4s ease-in-out infinite;
}

.fc1 { top: 10px; left: -10px; animation-delay: 0s; }
.fc2 { bottom: 40px; left: -30px; animation-delay: .8s; }
.fc3 { top: 30px; right: -10px; animation-delay: 1.5s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MAIN APPLICATION AREA ── */
.apply-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── PROGRESS ── */
.progress-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: .9rem;
  font-weight: 600;
}

.progress-pct { color: var(--purple-dark); }
body.dark-mode .progress-pct { color: var(--primary); }

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: 99px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--glow-green);
}

.step-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all .3s;
  position: relative;
}
.step-dot:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--purple-dark);
  color: white;
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}
.step-dot.active   { background: var(--purple-dark); transform: scale(1.3); }
.step-dot.complete { background: var(--primary); }
body.dark-mode .step-dot.active { background: var(--primary); }

/* ── STEP PANELS ── */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeInUp .4s ease; }

.step-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.step-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.step-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 4px;
}
body.dark-mode .step-head h2 { color: var(--primary); }

.step-head p { font-size: .9rem; color: var(--text-muted); }

/* ── FORM ELEMENTS ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.req { color: #ef4444; }

.field-hint {
  font-size: .78rem;
  color: var(--text-muted);
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  appearance: none;
}

.field-input:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(109,31,114,0.15);
}

body.dark-mode .field-input {
  border-color: #3d3d3d;
  background: var(--input-bg);
  color: var(--text);
}

.field-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  background: var(--input-bg);
  color: var(--text);
  resize: vertical;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  line-height: 1.7;
}
.field-textarea:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(109,31,114,0.15);
}

.textarea-wrap { position: relative; }
.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 0;
}

.bio-status {
  font-size: .78rem;
  color: #ef4444;
  font-weight: 500;
}
.bio-status.ok { color: var(--primary); }

.char-count { font-size: .78rem; color: var(--text-muted); }
.char-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── CHECKBOX ROW ── */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: .9rem;
}

.check-input { display: none; }

.check-custom {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  background: var(--input-bg);
}

.check-input:checked + .check-custom {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}
.check-input:checked + .check-custom::after {
  content: '✓';
  color: white;
  font-size: .75rem;
  font-weight: 700;
}

.link { color: var(--purple-dark); font-weight: 600; }
body.dark-mode .link { color: var(--primary); }

/* ── CHECK CARD GRID ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
  background: var(--input-bg);
}
.check-card:hover { border-color: var(--purple-mid); }
.check-card input[type=checkbox]:checked ~ * { color: var(--purple-dark); }
.check-card:has(input:checked) {
  border-color: var(--purple-dark);
  background: rgba(75,19,79,0.06);
  color: var(--purple-dark);
  font-weight: 600;
}

/* ── RADIO CARDS ── */
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }

.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  background: var(--input-bg);
}
.radio-card:has(input:checked) {
  border-color: var(--purple-dark);
  background: rgba(75,19,79,0.07);
  color: var(--purple-dark);
  font-weight: 600;
}

/* ── UPLOAD ZONE ── */
.upload-section { display: flex; flex-direction: column; gap: 10px; }
.upload-title { font-size: 1rem; font-weight: 700; }
.upload-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

.upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: var(--input-bg);
}

.upload-zone:hover {
  border-color: var(--purple-mid);
  background: rgba(75,19,79,0.04);
}

.upload-zone.has-file {
  border-color: var(--primary);
  border-style: solid;
  background: rgba(50,205,50,0.04);
}

.upload-zone-inner p {
  font-size: .9rem;
  font-weight: 500;
  margin: 10px 0 6px;
  color: var(--text);
}
.upload-zone-inner span { font-size: .78rem; color: var(--text-muted); }
.upload-icon { font-size: 2.4rem; line-height: 1; }

.mini-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
  transition: all .2s;
  background: var(--input-bg);
}
.mini-upload:hover { border-color: var(--purple-mid); color: var(--purple-dark); }

/* ── TIP CARD ── */
.tip-card {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, rgba(75,19,79,0.07), rgba(196,46,0,0.05));
  border: 1px solid rgba(75,19,79,0.15);
  border-left: 4px solid var(--purple-dark);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: .875rem;
  line-height: 1.6;
}

.tip-card.green {
  background: linear-gradient(135deg, rgba(50,205,50,0.07), rgba(50,205,50,0.03));
  border-color: rgba(50,205,50,0.2);
  border-left-color: var(--primary);
}

.tip-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.4; }
.tip-card ul { margin: 6px 0 0 16px; }
.tip-card li { margin: 4px 0; }

/* ── LANGUAGE ROWS ── */
.language-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.lang-select  { flex: 2; }
.level-select { flex: 1; }

.remove-row-btn {
  background: none;
  border: 2px solid #fca5a5;
  border-radius: 6px;
  color: #ef4444;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.remove-row-btn:hover { background: #fef2f2; }

.add-row-btn {
  background: none;
  border: 2px dashed var(--border);
  color: var(--purple-dark);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Poppins', sans-serif;
  width: 100%;
}
.add-row-btn:hover {
  border-color: var(--purple-mid);
  background: rgba(75,19,79,0.04);
}
body.dark-mode .add-row-btn { color: var(--primary); }

/* ── TAG PICKER ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 50px;
  background: var(--input-bg);
}

.tag-item {
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(75,19,79,0.1);
  border: 1.5px solid rgba(75,19,79,0.2);
  color: var(--purple-dark);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.tag-item:hover { background: rgba(75,19,79,0.2); }
.tag-item.selected {
  background: var(--purple-dark);
  color: white;
  border-color: var(--purple-dark);
}
body.dark-mode .tag-item { color: var(--primary); background: rgba(50,205,50,0.08); border-color: rgba(50,205,50,0.2); }
body.dark-mode .tag-item.selected { background: var(--primary); color: #111; }

/* ── CERT / EDU ENTRIES ── */
.cert-entry, .edu-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
}

body.dark-mode .cert-entry,
body.dark-mode .edu-entry { background: #1a1a1a; }

.cert-list, .edu-list { display: flex; flex-direction: column; gap: 16px; }

/* ── ACCORDION ── */
.accordion {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 600;
  background: var(--input-bg);
  transition: background .2s;
}
.accordion-header:hover { background: rgba(75,19,79,0.04); }

.accordion-arrow { transition: transform .3s; font-size: .75rem; color: var(--text-muted); }
.accordion.open .accordion-arrow { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 16px 18px;
  font-size: .875rem;
  line-height: 1.7;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.accordion.open .accordion-body { display: block; }

.guide-list { padding-left: 18px; }
.guide-list li { margin: 6px 0; }
.guide-dont {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: .82rem;
  color: #991b1b;
}
body.dark-mode .guide-dont { background: rgba(239,68,68,.08); color: #fca5a5; }

/* ── PROFILE PREVIEW ── */
.profile-preview-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card-gradient);
  border: 1.5px solid rgba(75,19,79,0.15);
  border-radius: var(--radius);
}

.pp-avatar {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(75,19,79,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.pp-name { font-weight: 700; font-size: 1rem; }
.pp-headline { font-size: .82rem; color: var(--purple-dark); font-weight: 600; margin: 4px 0; }
body.dark-mode .pp-headline { color: var(--primary); }
.pp-bio { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }

/* ── VIDEO TABS ── */
.video-tabs { display: flex; gap: 10px; }

.vtab {
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: 25px;
  background: none;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
  font-family: 'Poppins', sans-serif;
}
.vtab.active {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: white;
}

/* ── VIDEO GUIDE GRID ── */
.video-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vg-card {
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: .85rem;
  line-height: 1.7;
}

.vg-card h4 { margin-bottom: 10px; font-size: .9rem; font-weight: 700; }

.vg-card.do {
  background: rgba(50,205,50,0.07);
  border: 1.5px solid rgba(50,205,50,0.2);
}
.vg-card.dont {
  background: rgba(239,68,68,0.05);
  border: 1.5px solid rgba(239,68,68,0.15);
}
.vg-card.dont h4 { color: #dc2626; }
.vg-card ul { padding-left: 16px; }
.vg-card li { margin: 4px 0; }

/* ── AVAILABILITY GRID ── */
.avail-grid-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}

.avail-grid {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr);
  min-width: 600px;
}

.avail-header {
  padding: 10px 6px;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(75,19,79,0.07);
  color: var(--purple-dark);
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border);
}
body.dark-mode .avail-header { background: rgba(50,205,50,0.07); color: var(--primary); }

.avail-time-label {
  padding: 8px 10px;
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--input-bg);
}

.avail-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  background: var(--input-bg);
  min-height: 36px;
}
.avail-cell:hover  { background: rgba(75,19,79,0.08); }
.avail-cell.active { background: var(--purple-dark); }

body.dark-mode .avail-cell.active { background: var(--primary); }

.avail-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  padding: 8px 2px;
  flex-wrap: wrap;
  gap: 6px;
}

.avail-count {
  font-weight: 700;
  color: var(--purple-dark);
  background: rgba(75,19,79,0.09);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .82rem;
}
body.dark-mode .avail-count { color: var(--primary); background: rgba(50,205,50,0.09); }
.avail-hint { font-size: .78rem; color: var(--text-muted); }

/* ── RATE CARD ── */
.rate-card {
  background: var(--card-gradient);
  border: 2px solid rgba(75,19,79,0.15);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}

.rate-display {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.currency { font-size: 1.8rem; font-weight: 700; color: var(--text-muted); padding-bottom: 8px; }
.rate-value { font-size: 4rem; font-weight: 800; color: var(--purple-dark); line-height: 1; }
body.dark-mode .rate-value { color: var(--primary); }
.rate-unit { font-size: 1.2rem; font-weight: 600; color: var(--text-muted); padding-bottom: 10px; }

.rate-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, var(--purple-dark) 0%, var(--border) 20%);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--purple-dark);
  cursor: pointer;
  box-shadow: var(--glow-purple);
  border: 3px solid white;
}
body.dark-mode .rate-slider::-webkit-slider-thumb { background: var(--primary); }

.rate-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── EARNINGS PREVIEW ── */
.earnings-preview {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.earnings-preview h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; }

.earnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.earn-card {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: all .2s;
}

.earn-card.featured {
  border-color: var(--purple-dark);
  background: rgba(75,19,79,0.06);
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(75,19,79,0.15);
}
body.dark-mode .earn-card.featured { border-color: var(--primary); background: rgba(50,205,50,0.07); }

.earn-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.earn-amount { font-size: 1.6rem; font-weight: 800; color: var(--purple-dark); margin: 6px 0; }
body.dark-mode .earn-amount { color: var(--primary); }
.earn-note { font-size: .7rem; color: var(--text-muted); }
.earn-disclaimer { font-size: .76rem; color: var(--text-muted); line-height: 1.5; }

/* ── REVIEW SUMMARY ── */
.review-summary {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.review-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

.review-grid { display: flex; flex-direction: column; gap: 12px; }

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  flex-wrap: wrap;
  gap: 6px;
}
.review-row:last-child { border-bottom: none; }

.review-key { font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.review-val { font-weight: 500; text-align: right; }

/* ── SUBMIT BUTTON ── */
.btn-submit {
  width: 100%;
  background: var(--nav-gradient);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 25px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .3s;
  box-shadow: var(--glow-purple);
  margin-top: 4px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(75,19,79,0.5), 0 0 40px rgba(196,46,0,0.3);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.submit-note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── STEP NAV ── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.nav-btn {
  padding: 13px 30px;
  border-radius: 25px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .25s;
  border: none;
}

.back-btn {
  background: var(--input-bg);
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.back-btn:hover { border-color: var(--purple-mid); color: var(--purple-dark); }

.next-btn {
  background: var(--nav-gradient);
  color: white;
  margin-left: auto;
  box-shadow: var(--glow-purple);
  min-width: 160px;
  text-align: center;
}
.next-btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(75,19,79,0.5); }

/* ── SUCCESS MODAL ── */
.success-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.success-overlay.show { display: flex; animation: fadeInUp .4s ease; }

.success-modal {
  background: var(--surface);
  border-radius: 20px;
  padding: 46px 40px;
  max-width: 480px;
  width: 92%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.success-lottie { font-size: 64px; margin-bottom: 18px; animation: float 3s ease-in-out infinite; }

.success-modal h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 12px;
}
body.dark-mode .success-modal h2 { color: var(--primary); }

.success-modal p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

.success-steps { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 28px; text-align: left; }

.ss-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
}
.ss-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .apply-hero { flex-direction: column; padding: 110px 24px 50px; text-align: center; }
  .apply-hero-content h1 { font-size: 2.2rem; }
  .apply-hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .apply-main { padding: 24px 14px 60px; }
  .step-inner { padding: 24px 18px; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
  .video-guide-grid { grid-template-columns: 1fr; }
  .earnings-grid { grid-template-columns: 1fr; }
  .earn-card.featured { transform: none; }
  .step-nav { flex-direction: column; }
  .next-btn, .back-btn { width: 100%; text-align: center; margin-left: 0; }
}

@media (max-width: 480px) {
  .apply-hero-content h1 { font-size: 1.8rem; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .step-head { flex-direction: column; gap: 10px; }
}