
:root {
  --bg: #eef6fb;
  --card: #ffffff;
  --ink: #12303b;
  --accent: #1f6f8b;
  --accent-2: #2a9d8f;
  --accent-3: #9be7c4;
  --muted: #4c6b76;
  --border: #d9e6ee;
  --success: #2a9d8f;
  --danger: #c44536;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", "Tahoma", "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #eef6fb 0%, #e7f6f0 100%);
  min-height: 100vh;
}

/* Auth-aware nav without JS flicker:
   - We apply `auth-in` / `auth-out` / `auth-unknown` on <html>.
   - No `!important` so inline JS toggles can still override when needed. */
html.auth-unknown [data-auth="in"],
html.auth-out [data-auth="in"] {
  display: none;
}

html.auth-unknown [data-auth="out"],
html.auth-in [data-auth="out"] {
  display: none;
}

/* Prevent login/register/forgot flash while Firebase Auth state is loading */
html.auth-pending body[data-page="login"] main,
html.auth-pending body[data-page="register"] main,
html.auth-pending body[data-page="forgot"] main {
  visibility: hidden;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  background: #fff7d6;
  border-bottom: 1px solid var(--border);
  box-shadow:
    0 10px 20px rgba(21, 53, 68, 0.08),
    inset 0 -4px 0 #e63946,
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1200;
  transform: translateZ(0);
}

.user-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin: -6px 0 6px;
  background: transparent;
  border: none;
  color: rgba(23, 41, 79, 0.82);
  font-size: 13px;
}

.user-strip .user-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68%;
}

.user-strip .user-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 32%;
  color: rgba(19, 94, 125, 0.95);
}

.user-strip .user-name::before {
  content: "";
}

.brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  background: linear-gradient(90deg, rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255));
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  animation: brandRgb 4.5s linear infinite;
  transform-origin: left center;
}

.sparkle {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Trebuchet MS", "Segoe UI", sans-serif;
  color: #f4c95d;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(244, 201, 93, 0.45);
  display: inline-block;
  animation: sparklePulse 2s ease-in-out infinite;
  will-change: transform, color;
}

@keyframes brandRgb {
  0% {
    background-position: 0% 50%;
    transform: scale(0.98);
    filter: hue-rotate(0deg);
  }
  50% {
    background-position: 100% 50%;
    transform: scale(1.02);
    filter: hue-rotate(120deg);
  }
  100% {
    background-position: 0% 50%;
    transform: scale(0.98);
    filter: hue-rotate(240deg);
  }
}

@keyframes sparklePulse {
  0% {
    transform: scale(0.85);
    color: #f4c95d;
  }
  50% {
    transform: scale(1.2);
    color: #ffd166;
  }
  100% {
    transform: scale(0.85);
    color: #f4c95d;
  }
}

.brand-text small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.brand-logo {
  width: 44px;
  height: 44px;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

nav a.active,
nav a[aria-current="page"] {
  color: #0f4f66;
  position: relative;
}

nav a.active::after,
nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a9d8f, #7b2cbf);
}

/* Desktop header: keep menu on one row and aligned right. */
@media (min-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    grid-template-areas:
      "user-strip user-strip"
      "brand nav";
    align-items: center;
    column-gap: 18px;
  }

  .user-strip { grid-area: user-strip; }
  .brand { grid-area: brand; min-width: 0; }
  nav { grid-area: nav; justify-content: flex-end; flex-wrap: nowrap; }
  nav a,
  .nav-link { white-space: nowrap; }
}

/* Default auth visibility before Firebase loads */
html.auth-unknown [data-auth="in"],
html.auth-out [data-auth="in"] {
  display: none;
}

html.auth-unknown [data-auth="out"],
html.auth-in [data-auth="out"] {
  display: none;
}

html.auth-in [data-auth="in"],
html.auth-out [data-auth="out"] {
  display: inline-flex;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(21, 53, 68, 0.12);
  display: none;
  z-index: 20;
  padding: 6px 0;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 600;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: #f2f9ff;
  color: var(--accent);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  display: block;
}

.user-pill {
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.container {
  max-width: 1040px;
  margin: 28px auto 60px;
  padding: 0 20px;
}

.hero {
  background: #fff7d6;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 18px 30px rgba(21, 53, 68, 0.14), 0 2px 6px rgba(21, 53, 68, 0.08);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.profile-card {
  margin-top: 18px;
  background: linear-gradient(135deg, #f2c94c, #a8e063);
  border: 1px solid rgba(28, 40, 74, 0.10);
}

.profile-head h3 {
  margin: -6px 0 6px;
}

.profile-grid {
  margin-top: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr 1.2fr auto;
  align-items: end;
}

.profile-grid .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-grid input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(28, 40, 74, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.profile-actions {
  min-width: 180px;
}

.profile-actions .form-hint {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(21, 53, 68, 0.08);
}

.home-card {
  border: none;
  box-shadow: 0 18px 30px rgba(21, 53, 68, 0.18), 0 2px 6px rgba(21, 53, 68, 0.08);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 40px rgba(21, 53, 68, 0.22), 0 4px 10px rgba(21, 53, 68, 0.12);
}

.home-card-smart {
  background: linear-gradient(135deg, #fff1c7, #ffe3a1);
}

.home-card-stream {
  background: linear-gradient(135deg, #d7f5ff, #b5e8ff);
}

.home-card-roadmap {
  background: linear-gradient(135deg, #dff7e6, #b9efd1);
}

.career-card-page {
  background: linear-gradient(135deg, #fff7d6 0%, #e9f7ff 45%, #f7ecff 100%);
  border-color: #e7d6b6;
}

.card h3 {
  margin-top: 0;
}

.auth-card {
  max-width: 420px;
  margin: 20px auto;
  background: #fff7d6;
  padding: 16px;
}

.auth-login {
  padding: 12px;
}

.auth-login form {
  gap: 12px;
}

.auth-login .form-hint {
  margin-top: 2px;
}

.auth-card h2 {
  margin: 0 0 14px;
}

.rgb-text {
  background: linear-gradient(90deg, rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255));
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  animation: rgbFlow 4s linear infinite;
}

.auth-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.auth-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f3ff, #d9f3e7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-icon--right {
  margin-left: 6px;
}

.auth-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}

.auth-links {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff7d6;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 30px rgba(21, 53, 68, 0.14), 0 2px 6px rgba(21, 53, 68, 0.08);
  margin-bottom: 20px;
}

/* Dashboard layout: use full desktop width and evenly stretched cards. */
body[data-page="dashboard"] .container {
  width: 100%;
  max-width: none;
  margin: 28px 0 60px;
  padding: 0 clamp(16px, 2.4vw, 36px);
}

body[data-page="dashboard"] .profile-card,
body[data-page="dashboard"] .dashboard-hero,
body[data-page="dashboard"] .grid {
  width: 100%;
}

body[data-page="dashboard"] .profile-card {
  background: linear-gradient(135deg, #f2c94c, #a8e063);
  border: 1px solid rgba(28, 40, 74, 0.10);
}

body[data-page="dashboard"] .profile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="dashboard"] .profile-actions {
  min-width: 0;
}

body[data-page="dashboard"] .grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body[data-page="dashboard"] .grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body[data-page="dashboard"] .grid > .card:nth-child(4) {
  grid-column: 1 / -1;
}

body[data-page="dashboard"] .grid > .card .button-link {
  margin-top: auto;
}

@media (max-width: 980px) {
  body[data-page="dashboard"] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="dashboard"] .grid > .card:nth-child(4) {
    grid-column: auto;
  }

  body[data-page="dashboard"] .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="dashboard"] .profile-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body[data-page="dashboard"] .grid {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .profile-grid {
    grid-template-columns: 1fr;
  }
}

.action-card {
  position: relative;
  padding-top: 54px;
  background: linear-gradient(135deg, #f2c94c, #a8e063);
  box-shadow: 0 18px 28px rgba(21, 53, 68, 0.16), 0 2px 6px rgba(21, 53, 68, 0.08);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px rgba(21, 53, 68, 0.2), 0 4px 10px rgba(21, 53, 68, 0.12);
}

.icon-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d7f0ff, #c7f5e5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.card-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

form {
  display: grid;
  gap: 14px;
}

form[data-counseling] {
  counter-reset: counseling-section;
}

form[data-counseling] fieldset {
  counter-increment: counseling-section;
}

.field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field.full {
  grid-column: 1 / -1;
}

.field .choice-grid {
  margin-top: 6px;
}

.field .form-error {
  margin-top: -2px;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 16px 26px rgba(21, 53, 68, 0.12), 0 2px 6px rgba(21, 53, 68, 0.08);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

fieldset:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 36px rgba(21, 53, 68, 0.16), 0 4px 10px rgba(21, 53, 68, 0.1);
}

.section-basic {
  background: linear-gradient(135deg, #fff6d9, #ffeec0);
  border-color: #efd7a1;
}

.section-interests {
  background: linear-gradient(135deg, #e9f9ff, #d6f1ff);
  border-color: #b7dcf0;
}

.section-skills {
  background: linear-gradient(135deg, #f3edff, #e3d9ff);
  border-color: #c8b7f2;
}

.section-career {
  background: linear-gradient(135deg, #e9fff2, #d6f5e3);
  border-color: #b6e2c8;
}

.section-academic {
  background: linear-gradient(135deg, #fef2e8, #fde2cc);
  border-color: #f2c7a3;
}

.section-aspirations {
  background: linear-gradient(135deg, #fff3df, #ffe4b5);
  border-color: #e8c37b;
}

.section-preferences {
  background: linear-gradient(135deg, #eef9ff, #dbeeff);
  border-color: #b7d4ea;
}

.section-values {
  background: linear-gradient(135deg, #fff0f4, #ffd9e6);
  border-color: #e8b4c5;
}

.section-achievements {
  background: linear-gradient(135deg, #f4fbf3, #dff4dc);
  border-color: #bcdcbc;
}

.section-language {
  background: linear-gradient(135deg, #eef2ff, #dde5ff);
  border-color: #c0c9ee;
}

.section-financial {
  background: linear-gradient(135deg, #fff9e8, #fff0c9);
  border-color: #e5ce8d;
}

.section-technology {
  background: linear-gradient(135deg, #edf8ff, #d7f0ff);
  border-color: #b5d9ee;
}

.section-readiness {
  background: linear-gradient(135deg, #edf7ff, #d8ebff);
  border-color: #b3d2f0;
}

.section-personality-summary {
  background: linear-gradient(135deg, #f8f2ff, #eadcff);
  border-color: #ceb9ef;
}

.section-action-plan {
  background: linear-gradient(135deg, #f3fff8, #ddf8ea);
  border-color: #bce6cb;
}

.section-family {
  background: linear-gradient(135deg, #eef7ff, #dcecff);
  border-color: #c1d8f5;
}

.section-confidence {
  background: linear-gradient(135deg, #fff0f5, #ffe0ec);
  border-color: #f2bfd7;
}

.section-needs {
  background: linear-gradient(135deg, #f2fff4, #dcf7e3);
  border-color: #bfe4c9;
}

.section-personality {
  background: linear-gradient(135deg, #f7f3ff, #e9ddff);
  border-color: #cdbdf3;
}

.section-aptitude {
  background: linear-gradient(135deg, #eafcff, #d3f3ff);
  border-color: #b4dfef;
}

.section-digital {
  background: linear-gradient(135deg, #eef9ff, #d9efff);
  border-color: #bfd9f2;
}

.section-study {
  background: linear-gradient(135deg, #f6fff1, #e5f9dc);
  border-color: #cbe6bf;
}

.section-stress {
  background: linear-gradient(135deg, #fff3eb, #ffe0cf);
  border-color: #f2c2a4;
}

.section-awareness {
  background: linear-gradient(135deg, #eef3ff, #d9e4ff);
  border-color: #bccdf2;
}

.section-backup {
  background: linear-gradient(135deg, #fef6ff, #f0dcff);
  border-color: #d8b8f0;
}

.section-questions {
  background: linear-gradient(135deg, #f7fbff, #e7f1ff);
  border-color: #c9dcf2;
}

legend {
  font-weight: 700;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: #c79a6a;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
}

form[data-counseling] legend::before {
  content: counter(counseling-section) ".";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  font-weight: 900;
  margin-right: 2px;
  color: rgba(255, 255, 255, 0.98);
}

.legend-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f4ff, #c9f5e4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legend-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  background: #f9fbfc;
}

select[multiple] {
  min-height: 140px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 111, 139, 0.25);
}

.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.choice {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

button,
.button-link {
  background: var(--accent-2);
  border: none;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-link.outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.report-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.report-section {
  position: relative;
  background: linear-gradient(135deg, #fff7d6 0%, #f2f9ff 45%, #f7ecff 100%);
  border: 1px solid #ead9b7;
  box-shadow: 0 20px 32px rgba(21, 53, 68, 0.14), 0 4px 10px rgba(21, 53, 68, 0.08);
  overflow: hidden;
}

.report-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #f2c94c, #2a9d8f, #7b2cbf);
}

.report-section h3 {
  margin-top: 8px;
  font-size: 20px;
  color: #183846;
}

.report-section .section-note {
  font-size: 14px;
}

.report-actions .button-link {
  box-shadow: 0 10px 18px rgba(21, 53, 68, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-actions .button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(21, 53, 68, 0.18);
}

.rgb-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255));
  background-size: 300% 300%;
  animation: rgbFlow 4s linear infinite;
}

/* Fast, highly-compatible red→orange→green CTA label animation */
.animate-text {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.18),
    0 10px 24px rgba(0,0,0,0.20);
  animation: ctaTextROG 0.55s linear infinite;
}

@keyframes ctaTextROG {
  0% { color: #ff1744; }
  33% { color: #ff6d00; }
  66% { color: #00c853; }
  100% { color: #ff1744; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-text { animation: none !important; }
}

@keyframes rgbFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.notice {
  padding: 12px 16px;
  border-radius: 10px;
  background: #f1fbff;
  border: 1px solid #cfe7f5;
}

.notice.success {
  background: #e8f7f3;
  border-color: #bfe7dc;
}

.notice.error {
  background: #fdecea;
  border-color: #f6c1b8;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
}

.progress-bar {
  flex: 1;
  height: 10px;
  background: #dfeff7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--success);
  transition: width 0.3s ease;
}

.form-hint {
  font-size: 13px;
  color: var(--muted);
}

.section-note {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.form-error {
  font-size: 13px;
  color: var(--danger);
}

.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.captcha-box {
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f2e2d2;
  border: 1px dashed #c79a6a;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  color: #6d4a2a;
}

.captcha-hint {
  font-size: 13px;
  color: var(--muted);
}

.report-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 20px;
}

.selection-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.selection-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f4ff, #f3f7ff);
  color: #1c3b52;
  border: 1px solid #c7dff4;
  font-weight: 600;
  font-size: 13px;
}

.selection-empty {
  color: var(--muted);
  font-size: 14px;
}

.generated-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.generated-metric {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 40, 74, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.generated-metric span {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.generated-metric--overall {
  grid-column: 1 / -1;
}

.generated-list {
  min-height: 60px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.report-generate-btn {
  background: linear-gradient(135deg, #1f6f8b, #2a9d8f);
  box-shadow: 0 12px 22px rgba(31, 111, 139, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.report-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(31, 111, 139, 0.28);
}

.report-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dashboard-insights {
  background: linear-gradient(135deg, #f8fbff, #eef8ff);
  border: 1px solid #d5e7f5;
}

.dashboard-insights-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.insight-box {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(28, 40, 74, 0.08);
}

.insight-box h4 {
  margin: 0 0 8px;
}

.dashboard-metrics {
  display: grid;
  gap: 12px;
}

.readiness-stack {
  display: grid;
  gap: 12px;
}

.readiness-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr auto;
  gap: 12px;
  align-items: center;
}

.readiness-label {
  font-weight: 700;
  color: var(--ink);
}

.readiness-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(28, 40, 74, 0.08);
  overflow: hidden;
}

.readiness-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a9d8f, #1f6f8b);
}

.readiness-score {
  font-weight: 800;
  color: var(--accent);
  min-width: 52px;
  text-align: right;
}

.readiness-overall .readiness-bar span {
  background: linear-gradient(90deg, #f2c94c, #7b2cbf);
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-toolbar input,
.admin-toolbar select {
  min-width: 180px;
}

.admin-status {
  margin: 6px 0 14px;
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.admin-pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  min-width: 96px;
  border: 1px solid transparent;
  background: #eef4fb;
  color: #22445d;
}

.status-pill.is-on {
  background: #e7f8ef;
  color: #0e6b3a;
  border-color: #b9e6cc;
}

.status-pill.is-off {
  background: #fdecec;
  color: #9f1f1f;
  border-color: #f3c2c2;
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 24, 36, 0.56);
  z-index: 1200;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-card {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(10, 25, 40, 0.24);
  padding: 18px;
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  background: #eff5fa;
  color: #27435a;
}

.inline-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.report-card {
  border: none;
  box-shadow: 0 18px 28px rgba(21, 53, 68, 0.16), 0 2px 6px rgba(21, 53, 68, 0.08);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px rgba(21, 53, 68, 0.2), 0 4px 10px rgba(21, 53, 68, 0.12);
}

.report-careers {
  background: linear-gradient(135deg, #fff1c7, #ffe3a1);
}

.report-streams {
  background: linear-gradient(135deg, #d7f5ff, #b5e8ff);
}

.report-skills {
  background: linear-gradient(135deg, #e9ddff, #d7c9ff);
}

.report-courses {
  background: linear-gradient(135deg, #dff7e6, #b9efd1);
}

.report-next {
  background: linear-gradient(135deg, #ffe0ec, #ffc8dd);
}

.report-gov {
  background: linear-gradient(135deg, #fde2cc, #f7c8a7);
}

.report-text {
  margin-top: 18px;
}

.report-body {
  white-space: pre-line;
  line-height: 1.6;
  color: #1b2c34;
}

.report-body.report-body-html {
  white-space: normal;
}

.report-cover {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf2 0%, #eef8ff 50%, #f7ecff 100%);
  border: 1px solid #eadfc3;
  box-shadow: 0 22px 34px rgba(21, 53, 68, 0.15), 0 4px 12px rgba(21, 53, 68, 0.08);
  margin-bottom: 18px;
}

.report-cover-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.report-cover-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(21, 53, 68, 0.18));
}

.report-cover-copy {
  min-width: 0;
  flex: 1 1 280px;
}

.report-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a6e7b;
}

.report-cover-copy h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  color: #173645;
  line-height: 1.15;
}

.report-subline {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1f6f8b;
}

.report-cover-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(58, 110, 123, 0.25);
  font-size: 14px;
  color: #2b4954;
  line-height: 1.6;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.report-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 111, 139, 0.14);
  box-shadow: 0 10px 18px rgba(21, 53, 68, 0.08);
}

.report-meta-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d6a75;
  margin-bottom: 4px;
}

.report-meta-value {
  font-size: 16px;
  font-weight: 700;
  color: #173645;
}

.report-section-block {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(21, 53, 68, 0.1);
  box-shadow: 0 16px 28px rgba(21, 53, 68, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.report-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, rgba(255, 242, 209, 0.9), rgba(215, 245, 255, 0.9), rgba(233, 221, 255, 0.9));
}

.report-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(21, 53, 68, 0.08), 0 8px 14px rgba(21, 53, 68, 0.08);
  font-size: 22px;
  flex: 0 0 auto;
}

.report-section-heading h4 {
  margin: 0;
  font-size: 20px;
  color: #153544;
}

.report-section-body {
  padding: 18px;
}

.report-section-intro {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #23404a;
}

.report-list {
  margin-top: 0;
}

.report-academic .report-section-heading {
  background: linear-gradient(135deg, #fff1c7, #d7f5ff);
}

.report-readiness .report-section-heading {
  background: linear-gradient(135deg, #f8ebd9, #e2f2ff);
}

.report-personality .report-section-heading {
  background: linear-gradient(135deg, #ebe0ff, #f3ecff);
}

.report-action .report-section-heading {
  background: linear-gradient(135deg, #dff7e6, #eefce8);
}

.report-streams .report-section-heading {
  background: linear-gradient(135deg, #d7f5ff, #c2ecff);
}

.report-careers .report-section-heading {
  background: linear-gradient(135deg, #fff1c7, #ffe3a1);
}

.report-suggestions .report-section-heading {
  background: linear-gradient(135deg, #f1e4ff, #e6ddff);
}

.report-remarks .report-section-heading {
  background: linear-gradient(135deg, #fde2cc, #f7c8a7);
}

.report-footer {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #173645, #1f6f8b);
  color: #f4fbff;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 14px 24px rgba(21, 53, 68, 0.16);
}

.report-title {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  margin: 12px 0 6px;
  color: #1f2933;
}

.report-title-1 {
  background: #fff1c7;
}

.report-title-2 {
  background: #d7f5ff;
}

.report-title-3 {
  background: #e9ddff;
}

.report-title-4 {
  background: #dff7e6;
}

.report-title-5 {
  background: #ffe0ec;
}

.report-title-6 {
  background: #fde2cc;
}

.report-subtitle {
  font-weight: 600;
  margin: 6px 0 4px;
  color: #2b4954;
}

.report-line {
  margin: 2px 0;
  text-align: justify;
}

.report-spacer {
  height: 6px;
}

.welcome-gradient {
  background: linear-gradient(90deg, #e63946, #1d4ed8);
  -webkit-background-clip: text;
  color: transparent;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.data-table th,
.data-table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
}

.data-table th {
  background: #f0f7fb;
}

.details-box {
  background: #f7fbfd;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  margin-top: 8px;
}

.resource-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  margin-top: 16px;
}

.resource-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(21, 53, 68, 0.16), 0 2px 6px rgba(21, 53, 68, 0.08);
}

.resource-card::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 72px;
  height: 72px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
  background-image: var(--card-illustration);
}

.resource-vocational {
  background: linear-gradient(135deg, #ffe7a6, #ffd36b);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='24' width='44' height='24' rx='4'/%3E%3Crect x='22' y='16' width='20' height='8' rx='2'/%3E%3Cline x1='10' y1='34' x2='54' y2='34'/%3E%3C/svg%3E");
}
.resource-sports {
  background: linear-gradient(135deg, #b7f7cc, #6ee7b7);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='18'/%3E%3Cpath d='M14 32h36'/%3E%3Cpath d='M32 14v36'/%3E%3Cpath d='M20 20c6 5 18 5 24 0'/%3E%3Cpath d='M20 44c6-5 18-5 24 0'/%3E%3C/svg%3E");
}
.resource-social {
  background: linear-gradient(135deg, #d9b8ff, #b48cff);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='24' r='6'/%3E%3Ccircle cx='44' cy='24' r='6'/%3E%3Ccircle cx='32' cy='18' r='6'/%3E%3Cpath d='M10 46c2-8 18-8 20 0'/%3E%3Cpath d='M34 46c2-8 18-8 20 0'/%3E%3C/svg%3E");
}
.resource-science {
  background: linear-gradient(135deg, #b8e6ff, #66c3ff);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='4'/%3E%3Cellipse cx='32' cy='32' rx='18' ry='8'/%3E%3Cellipse cx='32' cy='32' rx='8' ry='18'/%3E%3Cellipse cx='32' cy='32' rx='18' ry='8' transform='rotate(60 32 32)'/%3E%3C/svg%3E");
}
.resource-media {
  background: linear-gradient(135deg, #ffc7a6, #ff9a6b);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='20' width='40' height='28' rx='4'/%3E%3Ccircle cx='32' cy='34' r='8'/%3E%3Crect x='20' y='16' width='12' height='6' rx='2'/%3E%3C/svg%3E");
}
.resource-management {
  background: linear-gradient(135deg, #c9f2ff, #8bd6f5);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='22' width='40' height='26' rx='4'/%3E%3Cpath d='M24 22v-4a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v4'/%3E%3Cpath d='M12 34h40'/%3E%3C/svg%3E");
}
.resource-logistics {
  background: linear-gradient(135deg, #ffe0b2, #ffc56b);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='28' width='28' height='16' rx='2'/%3E%3Cpath d='M36 32h12l8 8v4H36z'/%3E%3Ccircle cx='20' cy='46' r='4'/%3E%3Ccircle cx='48' cy='46' r='4'/%3E%3C/svg%3E");
}
.resource-legal {
  background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 12v28'/%3E%3Cpath d='M18 20h28'/%3E%3Ccircle cx='18' cy='36' r='6'/%3E%3Ccircle cx='46' cy='36' r='6'/%3E%3Cpath d='M18 30v-10M46 30v-10'/%3E%3C/svg%3E");
}
.resource-language {
  background: linear-gradient(135deg, #ffd1e8, #ff9ecf);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='14' width='44' height='28' rx='6'/%3E%3Cpath d='M20 46l-4 8'/%3E%3Cpath d='M26 46l-4 8'/%3E%3Cpath d='M22 30h20'/%3E%3Cpath d='M32 24v12'/%3E%3C/svg%3E");
}
.resource-it {
  background: linear-gradient(135deg, #c4f0ff, #7dd3fc);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='24 20 12 32 24 44'/%3E%3Cpolyline points='40 20 52 32 40 44'/%3E%3Cline x1='30' y1='16' x2='34' y2='48'/%3E%3C/svg%3E");
}
.resource-hospitality {
  background: linear-gradient(135deg, #fff1b6, #ffd36b);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='18' width='36' height='30' rx='4'/%3E%3Cpath d='M22 24h20'/%3E%3Cpath d='M32 24v16'/%3E%3Cpath d='M26 34h12'/%3E%3C/svg%3E");
}
.resource-health {
  background: linear-gradient(135deg, #c7f9cc, #84e1a8);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 48s-16-10-16-22a10 10 0 0 1 18-6 10 10 0 0 1 18 6c0 12-20 22-20 22z'/%3E%3C/svg%3E");
}
.resource-government {
  background: linear-gradient(135deg, #ffd6a5, #ffb85c);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 24h32l-16-10z'/%3E%3Crect x='16' y='24' width='32' height='22' rx='2'/%3E%3Cpath d='M22 24v22M32 24v22M42 24v22'/%3E%3C/svg%3E");
}
.resource-general {
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='20'/%3E%3Cpath d='M12 32h40'/%3E%3Cpath d='M32 12c6 6 6 34 0 40'/%3E%3Cpath d='M32 12c-6 6-6 34 0 40'/%3E%3C/svg%3E");
}
.resource-fisheries {
  background: linear-gradient(135deg, #b3ecff, #66c7ff);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='30' cy='32' rx='16' ry='10'/%3E%3Cpath d='M46 32l10-8v16z'/%3E%3Ccircle cx='24' cy='30' r='2'/%3E%3C/svg%3E");
}
.resource-fine-arts {
  background: linear-gradient(135deg, #fbcfe8, #f472b6);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 14c12 0 20 8 18 18-2 10-10 18-18 18-10 0-18-8-18-18 0-10 8-18 18-18z'/%3E%3Ccircle cx='24' cy='28' r='3'/%3E%3Ccircle cx='32' cy='24' r='3'/%3E%3Ccircle cx='40' cy='28' r='3'/%3E%3Ccircle cx='28' cy='36' r='3'/%3E%3C/svg%3E");
}
.resource-engineering {
  background: linear-gradient(135deg, #c7d2fe, #8b9bff);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='10'/%3E%3Cpath d='M32 12v8M32 44v8M12 32h8M44 32h8M18 18l6 6M40 40l6 6M18 46l6-6M40 24l6-6'/%3E%3C/svg%3E");
}
.resource-education {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 26l20-10 20 10-20 10z'/%3E%3Cpath d='M20 34v8c4 4 20 4 24 0v-8'/%3E%3Cpath d='M52 26v12'/%3E%3C/svg%3E");
}
.resource-design {
  background: linear-gradient(135deg, #fecaca, #f87171);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 10l14 14-10 20H28L18 24z'/%3E%3Ccircle cx='32' cy='24' r='4'/%3E%3Cpath d='M28 44l-4 10h16l-4-10'/%3E%3C/svg%3E");
}
.resource-defence {
  background: linear-gradient(135deg, #d1fae5, #6ee7b7);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 12l16 6v12c0 12-8 20-16 24-8-4-16-12-16-24V18z'/%3E%3Cpath d='M32 22v20'/%3E%3Cpath d='M24 30h16'/%3E%3C/svg%3E");
}
.resource-bfsi {
  background: linear-gradient(135deg, #fde2e4, #f9c2c7);
  --card-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 24h32l-16-10z'/%3E%3Crect x='18' y='24' width='28' height='20' rx='2'/%3E%3Ccircle cx='46' cy='44' r='6'/%3E%3Cpath d='M46 40v8M42 44h8'/%3E%3C/svg%3E");
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px rgba(21, 53, 68, 0.2), 0 4px 10px rgba(21, 53, 68, 0.12);
}

.resource-card h3 {
  background: linear-gradient(90deg, #1d4ed8, #e11d48, #16a34a);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
  letter-spacing: 0.3px;
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 18px;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .brand {
    font-size: 22px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .container {
    margin: 20px auto 40px;
  }

  .dashboard-hero {
    padding: 18px;
  }

  .card {
    padding: 16px;
  }

  .auth-card {
    margin: 10px auto;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    width: 100%;
  }

  .admin-toolbar input,
  .admin-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .data-table {
    min-width: 700px;
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    gap: 12px;
  }

  nav a,
  .nav-link {
    font-size: 13px;
  }

  nav a {
    font-size: 14px;
  }

  .brand {
    font-size: 24px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal-card {
    padding: 16px;
  }

  .admin-modal-head {
    align-items: flex-start;
  }

  .auth-links {
    text-align: left;
  }

  .captcha-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    margin: 18px auto 40px;
    padding: 0 16px;
  }

  .hero {
    padding: 20px;
  }

  .hero .grid {
    grid-template-columns: 1fr;
  }

  .button-link,
  button {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    align-items: flex-start;
  }

  .card {
    padding: 16px;
  }

  .auth-card {
    max-width: 92%;
  }

  .dashboard-hero {
    padding: 18px;
  }

  .report-actions {
    flex-direction: column;
  }

  .report-actions a,
  .report-actions button {
    width: 100%;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 420px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .user-pill {
    font-size: 12px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-text small {
    font-size: 10px;
  }
}
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 78px;
  min-width: 78px;
  height: 78px;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  border: none;
  font-size: 0;
  cursor: pointer;
  box-shadow: none;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.2px;
  overflow: hidden;
  transform: translateY(var(--bot-y, 0px)) scale(var(--bot-scale, 1));
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  will-change: transform, box-shadow;
  animation: botFloat 4.6s ease-in-out infinite, botGlow 3.6s ease-in-out infinite;
}

.chat-launcher::selection { background: transparent; }

.chat-launcher:hover {
  --bot-scale: 1.06;
  filter: saturate(1.06) contrast(1.02);
}

.chat-launcher:active {
  --bot-scale: 0.98;
}

.chat-launcher::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-image: url("../assets/chatbot-full.svg?v=20260607ah");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: transparent;
  box-shadow: none;
  animation: botBreath 2.8s ease-in-out infinite;
}

.chat-launcher::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 46px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
  animation: botSparkle 2.2s ease-in-out infinite;
}

@media (max-width: 520px) {
  .chat-launcher {
    width: 72px;
    min-width: 72px;
    height: 72px;
    padding: 0;
    justify-content: center;
    color: transparent;
    text-shadow: none;
  }
  .chat-launcher::after { left: unset; right: 10px; }
}

@keyframes botFloat {
  0% { --bot-y: 0px; }
  50% { --bot-y: -7px; }
  100% { --bot-y: 0px; }
}

@keyframes botGlow {
  0% { box-shadow: 0 14px 26px rgba(10, 107, 220, 0.18), 0 0 0 rgba(255, 215, 102, 0.0); }
  45% { box-shadow: 0 20px 32px rgba(10, 107, 220, 0.22), 0 0 22px rgba(255, 215, 102, 0.30); }
  100% { box-shadow: 0 14px 26px rgba(10, 107, 220, 0.18), 0 0 0 rgba(255, 215, 102, 0.0); }
}

@keyframes botBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes botSparkle {
  0%, 100% { opacity: 0.55; transform: translateY(0) scale(1); }
  50% { opacity: 0.95; transform: translateY(-1px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher,
  .chat-launcher::before,
  .chat-launcher::after {
    animation: none !important;
  }
}

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 320px;
  max-height: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 30px rgba(21, 53, 68, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 40;
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
}

.chat-body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  gap: 12px;
  background: #f5fbfa;
}

.chat-message {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message.user {
  background: #fff;
  border: 1px solid var(--border);
  justify-self: end;
}

.chat-message.bot {
  background: #edf7f6;
  border: 1px solid #cfe7e2;
}

.chat-message.thinking {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  width: fit-content;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 246, 0.96));
  border: 1px solid rgba(77, 180, 167, 0.22);
  box-shadow: 0 10px 24px rgba(25, 64, 61, 0.08), inset 0 1px 0 rgba(255,255,255,0.75);
}

.chat-message.thinking .thinking-label {
  font-weight: 700;
  color: #16544f;
  letter-spacing: 0.2px;
}

.chat-message.thinking .thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chat-message.thinking .thinking-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fd4a6, #2aa9ff);
  box-shadow: 0 0 10px rgba(42, 169, 255, 0.35);
  animation: chatThinkingWave 1s infinite ease-in-out;
}

.chat-message.thinking .thinking-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-message.thinking .thinking-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatThinkingWave {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.chat-input input {
  flex: 1;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 30px 20px 40px;
}

@media (max-width: 720px) {
  .site-header {
    padding: 16px 20px;
  }

  .chat-panel {
    right: 12px;
    width: calc(100% - 24px);
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* -----------------------------
   Home Page (UI Enhancements)
   Scoped to data-page="home"
-------------------------------- */

body[data-page="home"] {
  background: radial-gradient(880px 520px at 55% -10%, rgba(255, 215, 102, 0.22), transparent 62%),
    radial-gradient(900px 500px at 15% 10%, rgba(124, 77, 255, 0.16), transparent 60%),
    radial-gradient(760px 520px at 85% 18%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(900px 650px at 50% 100%, rgba(107, 255, 178, 0.12), transparent 65%),
    linear-gradient(135deg, #f7fbff 0%, #eef7ff 35%, #f6f2ff 70%, #ffffff 100%);
}

  border-radius: 14px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.16);
}

body[data-page="home"] .container {
  max-width: 1120px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 246, 217, 0.72), rgba(240, 247, 255, 0.68));
  box-shadow: 0 24px 55px rgba(16, 24, 40, 0.12);
}

.home-hero .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.9;
  transform: translateZ(0);
}

.hero-bg .orb-1 {
  width: 320px;
  height: 320px;
  left: -70px;
  top: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 77, 255, 0.85), rgba(124, 77, 255, 0));
}

.hero-bg .orb-2 {
  width: 380px;
  height: 380px;
  right: -120px;
  top: -110px;
  background: radial-gradient(circle at 40% 40%, rgba(0, 229, 255, 0.75), rgba(0, 229, 255, 0));
}

.hero-bg .orb-3 {
  width: 520px;
  height: 380px;
  right: 12%;
  bottom: -260px;
  background: radial-gradient(circle at 50% 50%, rgba(95, 255, 185, 0.55), rgba(95, 255, 185, 0));
}

.hero-bg .gridlines {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(rgba(22, 34, 66, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 34, 66, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
}

.hero-copy {
  position: relative;
}

.hero-kicker {
  margin: 0 0 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(23, 41, 79, 0.86);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

body[data-page="home"] .hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: rgba(15, 23, 42, 0.96);
}

.hero-sub {
  margin: 0;
  color: rgba(23, 41, 79, 0.78);
  font-size: 16px;
  line-height: 1.55;
  max-width: 54ch;
}

.hero-actions {
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body[data-page="home"] .home-hero .button-link,
body[data-page="home"] .home-hero button {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.92), rgba(0, 229, 255, 0.80));
  box-shadow: 0 14px 28px rgba(124, 77, 255, 0.18);
  border: 1px solid rgba(124, 77, 255, 0.18);
}

body[data-page="home"] .home-hero .button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(0, 229, 255, 0.18), 0 18px 35px rgba(124, 77, 255, 0.12);
}

body[data-page="home"] .home-hero .button-link:not(.rgb-cta) {
  background: rgba(255, 255, 255, 0.76);
  color: rgba(23, 41, 79, 0.92);
  border: 1px solid rgba(28, 40, 74, 0.14);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.10);
}

body[data-page="home"] .home-hero .button-link:not(.rgb-cta):hover {
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .hero .notice {
  margin-top: 16px;
  color: rgba(23, 41, 79, 0.72);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-illustration {
  position: relative;
  height: 100%;
}

.illus-screen {
  position: absolute;
  inset: 14px 0 0 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(28, 40, 74, 0.12);
  box-shadow: 0 28px 55px rgba(16, 24, 40, 0.18);
  overflow: hidden;
}

.illus-screen-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.18), rgba(0, 229, 255, 0.14));
  border-bottom: 1px solid rgba(28, 40, 74, 0.10);
}

.illus-screen-top .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.illus-screen-top .d1 { background: rgba(255, 90, 122, 0.9); }
.illus-screen-top .d2 { background: rgba(255, 202, 40, 0.95); }
.illus-screen-top .d3 { background: rgba(64, 220, 155, 0.9); }

.illus-screen-body {
  padding: 16px 16px 18px;
}

.illus-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 41, 79, 0.08);
  margin: 10px 0;
}

.illus-bar.short { width: 62%; }

.illus-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 12px;
}

.illus-badges .badge {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.illus-badges .b1 { box-shadow: 0 10px 18px rgba(0, 229, 255, 0.12); }
.illus-badges .b2 { box-shadow: 0 10px 18px rgba(124, 77, 255, 0.12); }
.illus-badges .b3 { box-shadow: 0 10px 18px rgba(95, 255, 185, 0.12); }

.illus-chart {
  height: 110px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(0, 229, 255, 0.08));
  border: 1px solid rgba(28, 40, 74, 0.10);
}

.illus-chart span {
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.85), rgba(0, 229, 255, 0.65));
  box-shadow: 0 18px 30px rgba(124, 77, 255, 0.16);
}

.illus-chart .c1 { height: 52%; }
.illus-chart .c2 { height: 78%; }
.illus-chart .c3 { height: 64%; }
.illus-chart .c4 { height: 88%; }

.illus-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 40, 74, 0.12);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
  backdrop-filter: blur(10px);
}

.illus-card-1 { left: -8px; top: 14px; }
.illus-card-2 { right: 10px; top: 60px; }
.illus-card-3 { right: 28px; bottom: 14px; }

@media (min-width: 641px) {
  body[data-page="home"] .illus-card-1 { top: 66px; }
  body[data-page="home"] .illus-card-2 { top: 156px; }
}


.illus-icon {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Trebuchet MS", "Segoe UI", sans-serif;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.18), rgba(0, 229, 255, 0.16));
  font-size: 16px;
}

.illus-title {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.1;
  font-size: 13px;
}

.illus-sub {
  color: rgba(23, 41, 79, 0.70);
  font-size: 12px;
  margin-top: 2px;
}

.home-section {
  margin-top: 34px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.section-head p {
  margin: 0;
  color: rgba(23, 41, 79, 0.72);
}

.features-grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* For 5 cards, keep the last row as two equal cards on desktop (3 + 2 layout). */
@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .features-grid > .home-card:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .features-grid > .home-card:nth-child(4),
  .features-grid > .home-card:nth-child(5) {
    grid-column: span 3;
  }
}

.feature-icon {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Trebuchet MS", "Segoe UI", sans-serif;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.16), rgba(0, 229, 255, 0.14));
  border: 1px solid rgba(28, 40, 74, 0.12);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.10);
  margin-bottom: 10px;
}

body[data-page="home"] .home-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

body[data-page="home"] .home-card:hover {
  transform: translateY(-8px);
}

.how-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.how-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.10);
}

.how-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.95);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.22), rgba(0, 229, 255, 0.18));
  border: 1px solid rgba(28, 40, 74, 0.12);
}

.how-title {
  font-weight: 900;
}

.how-desc {
  color: rgba(23, 41, 79, 0.72);
  margin-top: 4px;
  line-height: 1.45;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cat-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(240, 247, 255, 0.62));
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.10);
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(280px 160px at 10% 0%, rgba(124, 77, 255, 0.14), transparent 65%),
    radial-gradient(260px 180px at 100% 20%, rgba(0, 229, 255, 0.14), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(16, 24, 40, 0.14);
}

.cat-ico {
  position: relative;
  z-index: 1;
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(28, 40, 74, 0.12);
  margin-bottom: 10px;
}

.cat-title {
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.cat-sub {
  position: relative;
  z-index: 1;
  color: rgba(23, 41, 79, 0.72);
  margin-top: 4px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.10);
}

.stat-num {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.95), rgba(0, 229, 255, 0.9));
  -webkit-background-clip: text;
  color: transparent;
}

.stat-label {
  color: rgba(23, 41, 79, 0.72);
  font-weight: 800;
  margin-top: 6px;
}

.stats-note {
  margin: 10px 0 0;
  color: rgba(23, 41, 79, 0.62);
  font-size: 12px;
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.t-card {
  border-radius: 18px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.10);
  padding: 18px;
}

.t-quote {
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.6;
}

.t-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.t-avatar {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.18), rgba(0, 229, 255, 0.14));
  border: 1px solid rgba(28, 40, 74, 0.12);
}

.t-name {
  font-weight: 900;
}

.t-role {
  color: rgba(23, 41, 79, 0.68);
  font-size: 12px;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(28, 40, 74, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.10);
  padding: 14px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
}

.faq-item p {
  margin: 10px 0 0;
  color: rgba(23, 41, 79, 0.72);
  line-height: 1.55;
}

/* Reveal elements should stay visible if JS is blocked/fails. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-anim .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.reveal-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="home"] .site-footer {
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 16px;
  text-align: center;
  letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .home-hero .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 360px;
  }
  .illus-screen {
    inset: 14px 0 0 0;
  }
  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .illus-card-1 { left: 0; top: 10px; }
  .illus-card-2 { right: 0; top: 54px; }
  .illus-card-3 { right: 0; bottom: 10px; }
}

/* Career Card page premium 3D treatment only */
body[data-page="career_card"] .career-library {
  padding-top: 18px;
  padding-bottom: 28px;
}

body[data-page="career_card"] .career-hero,
body[data-page="career_card"] .featured-banner,
body[data-page="career_card"] .premium-panel,
body[data-page="career_card"] .career-stats .stat-card {
  border-radius: 24px;
  border: 1px solid rgba(21, 53, 68, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 44px rgba(21, 53, 68, 0.12), 0 4px 10px rgba(21, 53, 68, 0.06);
}

body[data-page="career_card"] .career-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  transform-style: preserve-3d;
  perspective: 1200px;
  background: linear-gradient(135deg, #f2c94c, #a8e063);
  border-color: rgba(28, 40, 74, 0.10);
}

body[data-page="career_card"] .career-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 38%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

body[data-page="career_card"] .career-hero-copy,
body[data-page="career_card"] .career-hero-visual,
body[data-page="career_card"] .featured-banner,
body[data-page="career_card"] .premium-panel {
  position: relative;
  z-index: 1;
}

body[data-page="career_card"] .career-hero-copy h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  margin: 8px 0 12px;
  color: #153544;
}

body[data-page="career_card"] .career-hero-copy .section-note {
  font-size: 15px;
  line-height: 1.7;
}

body[data-page="career_card"] .career-hero-visual {
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), transparent 34%);
  border: 1px solid rgba(21, 53, 68, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

body[data-page="career_card"] .career-hero-image {
  position: absolute;
  inset: 14px 14px 14px 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0.95;
  filter: saturate(1.04) contrast(1.02);
  mix-blend-mode: normal;
}

body[data-page="career_card"] .hero-orb {
  filter: blur(2px);
  opacity: 0.92;
}

body[data-page="career_card"] .hero-figure {
  box-shadow: 0 18px 34px rgba(21, 53, 68, 0.22);
  animation: careerCardFloat 6s ease-in-out infinite;
}

body[data-page="career_card"] .career-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body[data-page="career_card"] .stat-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  transform: translateY(0) translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

body[data-page="career_card"] .stat-card:hover {
  transform: translateY(-8px) rotateX(4deg);
  box-shadow: 0 28px 48px rgba(21, 53, 68, 0.18), 0 8px 18px rgba(21, 53, 68, 0.10);
}

body[data-page="career_card"] .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(31, 111, 139, 0.16), rgba(124, 58, 237, 0.16));
  box-shadow: inset 0 0 0 1px rgba(21, 53, 68, 0.08);
  font-size: 28px;
  flex: 0 0 auto;
}

body[data-page="career_card"] .featured-banner {
  margin-top: 18px;
  padding: 18px 20px;
}

body[data-page="career_card"] .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #173645, #1f6f8b);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(21, 53, 68, 0.18);
}

body[data-page="career_card"] .featured-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page="career_card"] .featured-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(21, 53, 68, 0.10);
  box-shadow: 0 10px 18px rgba(21, 53, 68, 0.08);
  font-weight: 700;
  color: #173645;
}

body[data-page="career_card"] .premium-panel {
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
}

body[data-page="career_card"] .premium-panel .section-note {
  margin-bottom: 16px;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card {
  min-height: 248px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, #f2c94c, #a8e063);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card:hover,
body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card:focus-visible {
  transform: translateY(-10px) rotateX(5deg) scale(1.02);
  box-shadow: 0 24px 42px rgba(21, 53, 68, 0.22), 0 8px 18px rgba(21, 53, 68, 0.12);
  filter: saturate(1.03);
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  pointer-events: none;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(21, 53, 68, 0.08), 0 12px 20px rgba(21, 53, 68, 0.10);
  font-size: 32px;
  margin-top: 2px;
  animation: careerCardIconBounce 4s ease-in-out infinite;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card p {
  margin: 0;
  color: rgba(18, 31, 55, 0.72);
  line-height: 1.55;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-action {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #173645, #1f6f8b 50%, #7c4dff);
  color: #fff;
  box-shadow: 0 12px 22px rgba(31, 111, 139, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card:hover .resource-action,
body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card:focus-visible .resource-action {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(31, 111, 139, 0.30);
}

body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card::after {
  opacity: 0.12;
  width: 92px;
  height: 92px;
  bottom: 10px;
  right: 10px;
}

@keyframes careerCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes careerCardIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 1100px) {
  body[data-page="career_card"] .resource-grid.resource-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="career_card"] .career-hero {
    grid-template-columns: 1fr;
  }
  body[data-page="career_card"] .career-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body[data-page="career_card"] .career-stats,
  body[data-page="career_card"] .resource-grid.resource-grid-premium {
    grid-template-columns: 1fr;
  }
  body[data-page="career_card"] .premium-panel {
    padding: 18px;
  }
  body[data-page="career_card"] .resource-grid.resource-grid-premium .resource-card {
    min-height: 220px;
  }
}

body[data-page="dashboard"] .selection-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(247, 252, 255, 0.94));
  border: 1px solid rgba(34, 82, 120, 0.10);
  box-shadow: 0 20px 42px rgba(16, 40, 72, 0.09);
  backdrop-filter: blur(16px);
}

body[data-page="dashboard"] .selection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 30%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.84), transparent 28%);
  pointer-events: none;
}

body[data-page="dashboard"] .selection-card > .profile-head,
body[data-page="dashboard"] .selection-card > .selection-summary-grid {
  position: relative;
  z-index: 1;
}

body[data-page="dashboard"] .selection-card .profile-head h3 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.15;
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 42%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 18px rgba(249, 115, 22, 0.12);
}

body[data-page="dashboard"] .selection-card .form-hint {
  color: #5f7280;
  font-size: 14px;
  max-width: 62ch;
}

body[data-page="dashboard"] .selection-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

body[data-page="dashboard"] .selection-summary-grid > div {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.88));
  box-shadow: 0 16px 32px rgba(16, 40, 72, 0.10);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, filter 240ms ease;
}

body[data-page="dashboard"] .selection-summary-grid > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--selection-card-accent, linear-gradient(90deg, #f97316, #fbbf24));
}

body[data-page="dashboard"] .selection-summary-grid > div::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--selection-card-glow, rgba(249, 115, 22, 0.18)), transparent 68%);
  pointer-events: none;
}

body[data-page="dashboard"] .selection-summary-grid > div:hover,
body[data-page="dashboard"] .selection-summary-grid > div:focus-within {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 42px rgba(16, 40, 72, 0.16), 0 8px 18px rgba(16, 40, 72, 0.10);
  border-color: rgba(255, 255, 255, 0.88);
  filter: saturate(1.03);
}

body[data-page="dashboard"] .selection-summary-grid > div h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--selection-card-title, #173645);
}

body[data-page="dashboard"] .selection-summary-grid > div:nth-child(1) {
  --selection-card-accent: linear-gradient(90deg, #f97316, #fbbf24);
  --selection-card-glow: rgba(249, 115, 22, 0.20);
  --selection-card-title: #c2410c;
  background: linear-gradient(135deg, #fff4cf, #dff1b6);
}


body[data-page="dashboard"] .selection-summary-grid > div .selection-wrap {
  margin-top: 0;
  gap: 12px;
}

body[data-page="dashboard"] .selection-summary-grid > div:nth-child(2) {
  --selection-card-accent: linear-gradient(90deg, #0ea5e9, #22d3ee);
  --selection-card-glow: rgba(14, 165, 233, 0.20);
  --selection-card-title: #0369a1;
  background: linear-gradient(135deg, #fff4cf, #dff1b6);
}


body[data-page="dashboard"] .selection-summary-grid > div .selection-pill {
  padding: 9px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92));
  border: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.08);
  color: #9a3412;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body[data-page="dashboard"] .selection-summary-grid > div:nth-child(2) .selection-pill {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(236, 254, 255, 0.92));
  border-color: rgba(14, 165, 233, 0.18);
  box-shadow: 0 10px 18px rgba(14, 165, 233, 0.08);
  color: #0f766e;
}

body[data-page="dashboard"] .selection-summary-grid > div .selection-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(16, 40, 72, 0.12);
  filter: saturate(1.02);
}

body[data-page="dashboard"] .selection-summary-grid > div .selection-empty {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(28, 40, 74, 0.14);
  color: var(--muted);
}

@media (max-width: 1080px) {
  body[data-page="dashboard"] .selection-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-page="dashboard"] .selection-summary-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="dashboard"] .dashboard-insights {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f2c94c, #a8e063);
  border: 1px solid rgba(224, 194, 104, 0.35);
  box-shadow: 0 24px 48px rgba(16, 40, 72, 0.10);
  backdrop-filter: blur(16px);
}

body[data-page="dashboard"] .dashboard-insights::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.30), transparent 28%),
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.78), transparent 28%);
  pointer-events: none;
}
body[data-page="dashboard"] .dashboard-insights > .profile-head,
body[data-page="dashboard"] .dashboard-insights > .dashboard-insights-grid {
  position: relative;
  z-index: 1;
}

body[data-page="dashboard"] .dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "readiness action"
    "personality action";
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.84));
  box-shadow: 0 16px 34px rgba(16, 40, 72, 0.10);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--dashboard-accent, linear-gradient(90deg, #2563eb, #60a5fa));
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--dashboard-glow, rgba(37, 99, 235, 0.18)), transparent 68%);
  pointer-events: none;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1)::after {
  left: 18px;
  right: 18px;
  bottom: 16px;
  width: auto;
  height: 78px;
  padding: 12px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.84)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  content: "Readiness Tracker\A Aptitude \2022 Confidence \2022 Awareness \2022 Digital";
  white-space: pre-line;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(2)::after {
  left: 18px;
  right: 18px;
  bottom: 16px;
  width: auto;
  height: 78px;
  padding: 12px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 255, 0.84)),
    linear-gradient(90deg, rgba(124, 58, 237, 0.10), rgba(192, 132, 252, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  content: "Personality Highlights\A Analytical \2022 Creative \2022 Communicator \2022 Independent";
  white-space: pre-line;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1) {
  grid-area: readiness;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(2) {
  grid-area: personality;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(3) {
  grid-area: action;
  grid-row: 1 / span 2;
  align-self: stretch;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:hover,
body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:focus-within {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 44px rgba(16, 40, 72, 0.16), 0 8px 18px rgba(16, 40, 72, 0.10);
  border-color: rgba(255, 255, 255, 0.86);
  filter: saturate(1.03);
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--dashboard-title, #173645);
  letter-spacing: 0.01em;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1) {
  --dashboard-accent: linear-gradient(90deg, #2563eb, #60a5fa);
  --dashboard-glow: rgba(37, 99, 235, 0.20);
  --dashboard-title: #1d4ed8;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.92));
  border-color: rgba(96, 165, 250, 0.20);
  background-image:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 160' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232563eb' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%2360a5fa' stop-opacity='.08'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='420' height='160' fill='url(%23g1)'/%3E%3Cg opacity='.65'%3E%3Cpath d='M24 124h84' stroke='%232563eb' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M124 108h84' stroke='%2360a5fa' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M224 94h84' stroke='%2322d3ee' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M324 76h72' stroke='%237c3aed' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M26 84c36-30 70-24 104-8s66 26 104 4 68-42 142-18' stroke='%232563eb' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='24' cy='124' r='6' fill='%232563eb'/%3E%3Ccircle cx='124' cy='108' r='6' fill='%2360a5fa'/%3E%3Ccircle cx='224' cy='94' r='6' fill='%2322d3ee'/%3E%3Ccircle cx='324' cy='76' r='6' fill='%237c3aed'/%3E%3Ccircle cx='372' cy='58' r='8' fill='%232563eb' fill-opacity='.18'/%3E%3Ccircle cx='344' cy='38' r='4' fill='%2322d3ee' fill-opacity='.26'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% 146px;
  background-position: 0 0, center bottom 6px;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(2) {
  --dashboard-accent: linear-gradient(90deg, #7c3aed, #c084fc);
  --dashboard-glow: rgba(124, 58, 237, 0.20);
  --dashboard-title: #6d28d9;
  background: linear-gradient(135deg, rgba(255, 247, 214, 0.92), rgba(232, 247, 243, 0.88));
  border-color: rgba(28, 40, 74, 0.10);
  background-image:
    linear-gradient(135deg, rgba(255, 247, 214, 0.92), rgba(232, 247, 243, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 160' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f2c94c' stop-opacity='.14'/%3E%3Cstop offset='1' stop-color='%23a8e063' stop-opacity='.08'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='420' height='160' fill='url(%23g2)'/%3E%3Cg opacity='.55'%3E%3Cpath d='M52 118h84' stroke='%23f2c94c' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M154 98h110' stroke='%23a8e063' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M284 76h88' stroke='%23f2c94c' stroke-width='10' stroke-linecap='round'/%3E%3Ccircle cx='52' cy='118' r='7' fill='%23f2c94c'/%3E%3Ccircle cx='154' cy='98' r='7' fill='%23a8e063'/%3E%3Ccircle cx='284' cy='76' r='7' fill='%23f2c94c'/%3E%3Ccircle cx='366' cy='58' r='6' fill='%23a8e063'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% 146px;
  background-position: 0 0, center bottom 6px;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(3) {
  --dashboard-accent: linear-gradient(90deg, #10b981, #6ee7b7);
  --dashboard-glow: rgba(16, 185, 129, 0.20);
  --dashboard-title: #047857;
  background: linear-gradient(135deg, rgba(255, 247, 214, 0.92), rgba(232, 247, 243, 0.88));
  border-color: rgba(28, 40, 74, 0.10);
  background-image:
    linear-gradient(135deg, rgba(255, 247, 214, 0.92), rgba(232, 247, 243, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 160' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g3' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f2c94c' stop-opacity='.14'/%3E%3Cstop offset='1' stop-color='%23a8e063' stop-opacity='.08'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='420' height='160' fill='url(%23g3)'/%3E%3Cg opacity='.55'%3E%3Cpath d='M48 120C92 94 126 94 166 120s74 26 112 0 72-34 138-18' stroke='%23f2c94c' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='52' cy='120' r='7' fill='%23f2c94c'/%3E%3Ccircle cx='160' cy='120' r='7' fill='%23a8e063'/%3E%3Ccircle cx='270' cy='100' r='7' fill='%23f2c94c'/%3E%3Ccircle cx='360' cy='82' r='7' fill='%23a8e063'/%3E%3Cpath d='M80 56h68M80 70h108M80 84h88' stroke='%23f2c94c' stroke-opacity='.18' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M342 38l14 14 26-30' stroke='%23a8e063' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% 146px;
  background-position: 0 0, center bottom 6px;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1),
body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(2),
body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(3) {
  background: linear-gradient(135deg, #f2c94c, #a8e063) !important;
  border-color: rgba(28, 40, 74, 0.10) !important;
  background-image: none !important;
}

body[data-page="dashboard"] .dashboard-metrics {
  gap: 12px;
}

body[data-page="dashboard"] .generated-metrics {
  gap: 12px;
}

body[data-page="dashboard"] .generated-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.86));
  border: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80), 0 8px 16px rgba(16, 40, 72, 0.06);
}

body[data-page="dashboard"] .generated-metric strong {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #173645;
}

body[data-page="dashboard"] .generated-metric span {
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 800;
  text-align: center;
}

body[data-page="dashboard"] .generated-metric--overall {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.12));
  border-color: rgba(124, 58, 237, 0.16);
}

body[data-page="dashboard"] .generated-metric--overall span {
  background: rgba(255, 255, 255, 0.74);
  color: #6d28d9;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1) .dashboard-metrics .readiness-bar {
  background: rgba(37, 99, 235, 0.10);
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1) .dashboard-metrics .readiness-bar span {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.30);
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1) .readiness-score {
  color: #1d4ed8;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(1) .readiness-overall .readiness-bar span {
  background: linear-gradient(90deg, #2563eb, #22d3ee, #60a5fa);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.30);
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(2) .selection-pill {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(237, 233, 254, 0.94));
  border-color: rgba(124, 58, 237, 0.18);
  color: #6d28d9;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(2) .selection-pill:hover {
  box-shadow: 0 14px 22px rgba(124, 58, 237, 0.12);
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(3) .selection-pill {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.94));
  border-color: rgba(16, 185, 129, 0.18);
  color: #047857;
}

body[data-page="dashboard"] .dashboard-insights-grid > .insight-box:nth-child(3) .selection-pill:hover {
  box-shadow: 0 14px 22px rgba(16, 185, 129, 0.12);
}

body[data-page="dashboard"] .selection-wrap {
  margin-top: 0;
  gap: 12px;
}

body[data-page="dashboard"] .selection-pill {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.08);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body[data-page="dashboard"] .selection-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(37, 99, 235, 0.12);
}

body[data-page="dashboard"] .selection-empty {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(28, 40, 74, 0.14);
}

body[data-page="dashboard"] .dashboard-insights .card-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  gap: 12px;
}

body[data-page="dashboard"] .dashboard-insights .card-list li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(16, 40, 72, 0.08);
  box-shadow: 0 10px 18px rgba(16, 40, 72, 0.06);
  line-height: 1.45;
  color: #173645;
}

body[data-page="dashboard"] .dashboard-insights .card-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #6ee7b7);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

body[data-page="dashboard"] .dashboard-insights .card-list li + li {
  margin-top: 0;
}

@media (max-width: 1080px) {
  body[data-page="dashboard"] .dashboard-insights-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "readiness action"
      "personality action";
  }
}

@media (max-width: 700px) {
  body[data-page="dashboard"] .dashboard-insights-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  body[data-page="dashboard"] .dashboard-insights-grid > .insight-box {
    min-height: auto;
    grid-area: auto;
    grid-row: auto;
  }
}


body[data-page="dashboard"] [data-dashboard-action-plan] .card-list {
  list-style: none;
  padding-left: 0;
  gap: 12px;
}

body[data-page="dashboard"] [data-dashboard-action-plan] .card-list > li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(16, 40, 72, 0.08);
  box-shadow: 0 10px 18px rgba(16, 40, 72, 0.06);
  line-height: 1.45;
  color: #173645;
}

body[data-page="dashboard"] [data-dashboard-action-plan] .card-list > li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #6ee7b7);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

body[data-page="dashboard"] [data-dashboard-action-plan] .card-list > li:first-child {
  list-style: none;
  padding: 10px 14px 10px 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(110, 231, 183, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: 0 10px 18px rgba(16, 185, 129, 0.08);
  font-weight: 800;
  color: #047857;
}

body[data-page="dashboard"] [data-dashboard-action-plan] .card-list > li:first-child::before {
  display: none;
}

body[data-page="dashboard"] [data-dashboard-action-plan] .card-list > li:nth-child(3) {
  padding-left: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 255, 250, 0.96));
  border: 1px solid rgba(16, 185, 129, 0.16);
  box-shadow: 0 12px 22px rgba(16, 185, 129, 0.08);
  font-weight: 800;
  color: #0f766e;
}

body[data-page="dashboard"] [data-dashboard-action-plan] .card-list > li:nth-child(3)::before {
  display: none;
}
/* Mobile hamburger navigation */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(42, 157, 143, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(242, 249, 255, 0.92));
  box-shadow: 0 12px 28px rgba(20, 60, 100, 0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(20, 60, 100, 0.16);
  border-color: rgba(42, 157, 143, 0.28);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #153954, #2a9d8f);
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}

.nav-toggle-input:checked + .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle-input:checked + .nav-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle-input:checked + .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .user-strip {
    order: 1;
    width: 100%;
  }

  .brand {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle {
    order: 3;
    display: flex;
  }

  nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    margin-top: 6px;
  }

  .nav-toggle-input:checked ~ nav {
    display: flex;
  }

  nav a,
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }
}

.hero-message {
  overflow: hidden;
  display: block;
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 201, 76, 0.30) 35%, rgba(168, 224, 99, 0.32) 70%, rgba(89, 185, 255, 0.20) 100%);
  border: 1px solid rgba(168, 224, 99, 0.28);
  color: #1f4d55;
  box-shadow: 0 10px 24px rgba(21, 53, 68, 0.08);
  max-width: 760px;
}

.hero-message-track {
  display: inline-flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.45;
  animation: heroMessageScroll 18s linear infinite;
  will-change: transform;
}

.hero-message-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 16px;
}

@keyframes heroMessageScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .hero-message {
    padding: 10px 12px;
  }

  .hero-message-track span {
    font-size: 14px;
  }
}

.home-announcement {
  padding: 12px 36px 0;
}

.home-announcement .hero-message {
  margin: 0;
  max-width: none;
}

.cache-consent {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 36px 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 201, 76, 0.28), rgba(168, 224, 99, 0.28));
  border: 1px solid rgba(168, 224, 99, 0.34);
  box-shadow: 0 14px 34px rgba(21, 53, 68, 0.12);
}

.cache-consent.show {
  display: flex;
}

.cache-consent-copy {
  min-width: 0;
}

.cache-consent-copy strong {
  display: block;
  font-size: 18px;
  color: #1f4d55;
  margin-bottom: 4px;
}

.cache-consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cache-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cache-consent-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cache-consent-btn:hover,
.cache-consent-btn:focus-visible {
  transform: translateY(-1px);
}

.cache-consent-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #2a9d8f, #1f6f8b);
  box-shadow: 0 10px 20px rgba(31, 111, 139, 0.20);
}

.cache-consent-btn.secondary {
  color: #1f4d55;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 111, 139, 0.16);
}

@media (max-width: 900px) {
  .home-announcement,
  .cache-consent {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 640px) {
  .cache-consent {
    align-items: flex-start;
    flex-direction: column;
  }

  .cache-consent-actions {
    width: 100%;
  }

  .cache-consent-btn {
    width: 100%;
  }
}

body[data-page="dashboard"] .dashboard-hero-side {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

body[data-page="dashboard"] .dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: 24px;
}

body[data-page="dashboard"] .dashboard-hero-panel {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-top: 0.75in;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 25, 58, 0.98), rgba(14, 49, 98, 0.96), rgba(28, 84, 151, 0.92));
  border: 1px solid rgba(77, 123, 195, 0.44);
  box-shadow: 0 18px 30px rgba(21, 53, 68, 0.12);
  color: #eef6ff;
}

body[data-page="dashboard"] .dashboard-hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="dashboard"] .dashboard-hero-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #eef6ff;
}

body[data-page="dashboard"] .dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f7fbff;
  font-size: 12px;
  font-weight: 700;
}

body[data-page="dashboard"] .dashboard-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="dashboard"] .dashboard-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9dd, #f2c94c, #a8e063);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #5f4300;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(245, 158, 11, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body[data-page="dashboard"] .dashboard-hero-action:hover,
body[data-page="dashboard"] .dashboard-hero-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(21, 53, 68, 0.12);
  filter: saturate(1.03);
}

body[data-page="dashboard"] .dashboard-hero-note {
  margin: 12px 0 0;
  color: rgba(239, 247, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  body[data-page="dashboard"] .dashboard-hero-side {
    align-items: stretch;
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-hero-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body[data-page="dashboard"] .dashboard-hero-actions {
    grid-template-columns: 1fr;
  }
}
body[data-page="dashboard"] .dashboard-hero-left {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  margin-top: -10px;
}

body[data-page="dashboard"] .dashboard-hero-left .welcome-gradient {
  margin-bottom: 0;
}

body[data-page="dashboard"] .dashboard-hero-left .form-hint {
  margin-top: 0;
  font-size: 28px;
}

body[data-page="dashboard"] .dashboard-snapshot {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 25, 58, 0.98), rgba(14, 49, 98, 0.96), rgba(28, 84, 151, 0.92));
  border: 1px solid rgba(77, 123, 195, 0.44);
  box-shadow: 0 18px 30px rgba(21, 53, 68, 0.12);
  height: 100%;
  color: #eef6ff;
}

body[data-page="dashboard"] .dashboard-snapshot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="dashboard"] .dashboard-snapshot-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #eef6ff;
}

body[data-page="dashboard"] .dashboard-snapshot-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f7fbff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="dashboard"] .dashboard-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="dashboard"] .dashboard-snapshot-item {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbe6, #fff4b8, #f2c94c);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 20px rgba(245, 158, 11, 0.10);
}

body[data-page="dashboard"] .dashboard-snapshot-item--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 84px;
  background: linear-gradient(135deg, #fffbe6, #fff4b8, #f2c94c);
}

body[data-page="dashboard"] .dashboard-snapshot-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7280;
  margin-bottom: 8px;
}

body[data-page="dashboard"] .dashboard-snapshot-value {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #8a4b00;
}

body[data-page="dashboard"] .dashboard-snapshot-value--text {
  font-size: 16px;
  line-height: 1.35;
  color: #5f4300;
}

body[data-page="dashboard"] .dashboard-snapshot-item--wide .dashboard-snapshot-value--text {
  font-size: 15px;
  color: #5f4300;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-page="dashboard"] .dashboard-snapshot-bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 111, 139, 0.10);
  overflow: hidden;
}

body[data-page="dashboard"] .dashboard-snapshot-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #fbbf24, #a8e063);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transition: width 0.4s ease;
}

body[data-page="dashboard"] .dashboard-snapshot-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

body[data-page="dashboard"] .dashboard-snapshot-note[data-dashboard-summary-note] {
  color: rgba(239, 247, 255, 0.88);
  font-weight: 500;
}

@media (max-width: 900px) {
  body[data-page="dashboard"] .dashboard-hero {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-hero-left {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-hero-panel {
    max-width: none;
    margin-left: 0;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body[data-page="dashboard"] .dashboard-snapshot-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-snapshot-value {
    font-size: 24px;
  }
}

body[data-page="career_card"] .career-card-banner {
  margin: 4px 0 18px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 53, 68, 0.10);
  box-shadow: 0 24px 48px rgba(21, 53, 68, 0.14), 0 6px 16px rgba(21, 53, 68, 0.08);
}

body[data-page="career_card"] .career-card-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 22px;
  transform: scaleX(1.28);
  transform-origin: center center;
}

@media (max-width: 760px) {
  body[data-page="career_card"] .career-card-banner {
    margin-bottom: 14px;
  }

  body[data-page="career_card"] .career-card-banner-image {
    max-height: 360px;
    transform: scaleX(1.16);
  }
}

@media (max-width: 520px) {
  body[data-page="career_card"] .career-card-banner-image {
    max-height: 280px;
    transform: scaleX(1.10);
  }
}
