* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e293b, #020617 55%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  color: #f8fafc;
}

.app-container {
  width: min(960px, 100%);
  display: grid;
  gap: 24px;
}

.page {
  display: block;
}

.form-card {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(59,130,246,0.08);
  box-shadow: 0 25px 60px -30px rgba(15, 23, 42, 0.9);
  text-align: center;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 5px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(2,6,23,0.8);
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(56,189,248,0.8);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
}

button {
  cursor: pointer;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 5px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(2,6,23,0.65);
  color: #f8fafc;
  resize: vertical;
  min-height: 88px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hidden {
  display: none;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.btn {
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  color: #020617;
}

.btn.secondary {
  background: transparent;
  color: #38bdf8;
  border: 1px solid #38bdf8;
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  text-align: left;
  margin-bottom: 12px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(8,47,73,0.3);
  color: rgba(224,242,254,0.95);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-grid label:hover {
  border-color: rgba(56,189,248,0.8);
  background: rgba(8,47,73,0.5);
}

.checkbox-grid input[type="checkbox"] {
  width: auto;
  accent-color: #38bdf8;
}

.interest-btn, .skill-btn {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.45);
  background: rgba(8,47,73,0.35);
  color: #e0f2fe;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.interest-btn.active, .skill-btn.active {
  background: #38bdf8;
  color: #020617;
  box-shadow: 0 8px 20px -10px rgba(56,189,248,0.8);
}

.chosen {
  color: rgba(165,243,252,0.9);
  margin-top: 10px;
}

.result-card h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.result-card p {
  margin: 5px 0;
}

.auth-card {
  text-align: left;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.8);
}

.auth-title {
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: rgba(226,232,240,0.75);
  margin-bottom: 20px;
}

.section-subtitle {
  color: rgba(226,232,240,0.7);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.auth-tab {
  padding: 10px 0;
  border-radius: 10px;
  background: rgba(2,6,23,0.6);
  color: rgba(226,232,240,0.85);
  border: 1px solid transparent;
}

.auth-tab.active {
  background: #38bdf8;
  color: #020617;
  font-weight: 600;
}

.auth-form {
  animation: fadeIn 0.25s ease;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.input-group label {
  font-size: 0.9rem;
  color: rgba(226,232,240,0.8);
  margin-bottom: 6px;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 15px;
}

.personality-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.full-width {
  width: 100%;
  margin-top: 10px;
}

.auth-hint {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(226,232,240,0.7);
}

.auth-hint span {
  color: #38bdf8;
  cursor: pointer;
}

.result-extras {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.quote-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(8,47,73,0.35);
  border: 1px solid rgba(56,189,248,0.25);
  font-style: italic;
  color: rgba(226,232,240,0.85);
}

.quote-card span {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  color: #38bdf8;
}

.resources-grid {
  display: grid;
  gap: 12px;
}

.skill-builder {
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(8,47,73,0.35);
  border: 1px solid rgba(56,189,248,0.25);
  text-align: left;
  display: grid;
  gap: 16px;
}

.skill-builder h4 {
  color: #38bdf8;
}

.progress-wrapper {
  margin-top: 18px;
  text-align: left;
  display: grid;
  gap: 8px;
}

.progress-wrapper small {
  color: rgba(226,232,240,0.6);
}

.challenge-list {
  margin-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(226,232,240,0.78);
}

.challenge-list li::marker {
  color: #38bdf8;
}

.mentorship-tip button {
  margin-top: 10px;
}

.career-grid {
  display: grid;
  gap: 18px;
}

.career-card {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(8,47,73,0.35);
  border: 1px solid rgba(56,189,248,0.25);
  text-align: left;
}

.career-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.career-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 6px 12px rgba(56,189,248,0.4));
}

.career-meta {
  font-size: 0.9rem;
  color: rgba(226,232,240,0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.career-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(56,189,248,0.25);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-bar {
  position: relative;
  background: rgba(15,23,42,0.8);
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(56,189,248,0.25);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  transition: width 0.4s ease;
}

.skill-gap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-gap-item {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(248,113,113,0.35);
  color: rgba(248,113,113,0.85);
  background: rgba(69,10,10,0.4);
  font-size: 0.85rem;
}

.course-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2,132,199,0.25);
  border: 1px solid rgba(56,189,248,0.3);
  color: rgba(226,232,240,0.9);
  text-decoration: none;
  margin: 4px 4px 0 0;
  font-size: 0.85rem;
}

.course-pill:hover {
  border-color: rgba(56,189,248,0.6);
}

.badge-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.badge-item {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52,211,153,0.25);
  border: 1px solid rgba(52,211,153,0.5);
  color: rgba(236,253,245,0.9);
  font-size: 0.85rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.pulse-quiz {
  margin-top: 24px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(8,47,73,0.35);
  border: 1px solid rgba(56,189,248,0.2);
  text-align: left;
  display: grid;
  gap: 18px;
}

.pulse-quiz h3 {
  color: #38bdf8;
}

.quiz-question {
  display: grid;
  gap: 8px;
}

.quiz-question span {
  font-weight: 600;
  color: rgba(226,232,240,0.85);
}

.quiz-question label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(226,232,240,0.75);
}

.pulse-result {
  min-height: 20px;
  color: rgba(52,211,153,0.9);
  font-weight: 600;
}

.points-banner {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(24,24,27,0.6);
  border: 1px solid rgba(52,211,153,0.3);
  color: rgba(187,247,208,0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resume-block {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(8,47,73,0.3);
  border: 1px solid rgba(56,189,248,0.2);
  text-align: left;
}

.resume-block pre {
  background: rgba(15,23,42,0.9);
  border-radius: 12px;
  padding: 16px;
  white-space: pre-wrap;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-top: 12px;
}

.mentorship-tip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.35);
  color: rgba(191,219,254,0.95);
}

.resource-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(2,6,23,0.6);
  border: 1px solid rgba(148,163,184,0.18);
  color: rgba(226,232,240,0.88);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-link:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.5);
}

.resource-link small {
  color: rgba(148,163,184,0.85);
  font-size: 0.8rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,0.2);
  background: rgba(15,23,42,0.8);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.potential-game {
  background: rgba(2,6,23,0.65);
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(56,189,248,0.15);
  text-align: left;
}

.potential-game h4 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.potential-game p {
  margin-bottom: 12px;
  color: rgba(226,232,240,0.75);
}

.game-options {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.game-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8,47,73,0.35);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.game-options label:hover {
  border-color: rgba(56,189,248,0.5);
}

.game-result {
  margin-top: 12px;
  color: rgba(125,211,252,0.9);
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
