﻿/* ================================================================
   MINDSET SURVEY — Cheerful & Joyful Design System
   Font: Nunito + Inter (Google Fonts)
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Primary — Soft Indigo */
  --primary:        #4F46E5;
  --primary-dark:   #4338CA;
  --primary-light:  #E0E7FF;
  --primary-50:     #EEF2FF;

  /* Accent — Warm Amber/Peach */
  --accent:         #F59E0B;
  --accent-dark:    #D97706;
  --accent-light:   #FEF3C7;

  /* Success — Emerald */
  --success:        #059669;
  --success-dark:   #047857;
  --success-light:  #D1FAE5;

  /* Warning — Amber */
  --warning:        #D97706;
  --warning-dark:   #B45309;
  --warning-light:  #FEF3C7;

  /* Danger — Rose */
  --danger:         #E11D48;
  --danger-dark:    #BE123C;
  --danger-light:   #FFE4E6;

  /* Info — Sky */
  --info:           #0284C7;
  --info-light:     #E0F2FE;

  /* Purple — Violet */
  --purple:         #7C3AED;
  --purple-light:   #EDE9FE;

  /* Pink */
  --pink:           #DB2777;
  --pink-light:     #FCE7F3;

  /* Neutrals — warmer white */
  --bg:             #F9FAFB;
  --bg-card:        #FFFFFF;
  --text:           #1F2937;
  --text-light:     #6B7280;
  --text-muted:     #9CA3AF;
  --border:         #E0E7FF;
  --border-focus:   #818CF8;

  /* Legacy aliases */
  --color-primary:        var(--primary);
  --color-accent:         var(--accent);
  --color-text:           var(--text);
  --color-text-secondary: var(--text-light);
  --color-danger:         var(--danger);
  --color-success:        var(--success);

  /* Border Radius */
  --radius-xs:  0.5rem;
  --radius-sm:  0.875rem;
  --radius-md:  1.25rem;
  --radius-lg:  1.75rem;
  --radius-xl:  2.5rem;

  /* Shadows — indigo-tinted, softer */
  --shadow-xs:  0 1px 4px rgba(79,70,229,.06);
  --shadow-sm:  0 2px 12px rgba(79,70,229,.08);
  --shadow-md:  0 6px 24px rgba(79,70,229,.12);
  --shadow-lg:  0 12px 40px rgba(79,70,229,.15);
  --shadow-xl:  0 24px 64px rgba(79,70,229,.20);
  --shadow-primary: 0 8px 28px rgba(79,70,229,.35);

  --transition:      220ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 420ms cubic-bezier(.4,0,.2,1);
}

/* ----------------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
input, button, select, textarea { font-family: inherit; }

/* ----------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-family: 'Nunito', sans-serif; color: var(--text); }
h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem;     font-weight: 600; }
p  { color: var(--text-light); line-height: 1.75; }

.text-xs    { font-size: .75rem; }
.text-sm    { font-size: .875rem; }
.text-base  { font-size: 1rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-2xl   { font-size: 1.5rem; }
.text-3xl   { font-size: 1.875rem; }
.text-4xl   { font-size: 2.25rem; }
.text-5xl   { font-size: 3rem; }
.text-6xl   { font-size: 3.75rem; }

.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.font-mono    { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-light   { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.uppercase    { text-transform: uppercase; letter-spacing: .08em; }
.italic       { font-style: italic; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------------
   4. Layout
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.items-end    { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1       { flex: 1; }
.flex-shrink-0{ flex-shrink: 0; }
.gap-1  { gap: .25rem; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.hidden   { display: none !important; }
.block    { display: block; }
.inline-flex { display: inline-flex; align-items: center; }

/* Spacing */
.m-0{margin:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}
.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}
.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.mx-auto{margin-left:auto;margin-right:auto}
.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}
.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}
.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.relative { position: relative; }
.sticky-top { position: sticky; top: 1.5rem; }

/* ----------------------------------------------------------------
   5. Cards
   ---------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-sm { padding: 1.25rem; border-radius: var(--radius-md); }
.card-flat { box-shadow: none; border: 1px solid var(--border); }

.card-glass {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .015em;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(79,70,229,.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-light);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(16,185,129,.3);
}
.btn-success:hover {
  background: linear-gradient(135deg, var(--success-dark) 0%, var(--success) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,185,129,.45);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #F87171 100%);
  color: #fff;
  border-color: transparent;
}
.btn-danger:hover {
  background: linear-gradient(135deg, var(--danger-dark) 0%, var(--danger) 100%);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }

.btn-sm  { padding: .5rem 1rem;   font-size: .8rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 1rem 2rem;    font-size: 1rem;  border-radius: var(--radius-lg); }
.btn-xl  { padding: 1.25rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius-xl); font-weight: 800; }
.btn-block { width: 100%; }
.btn-icon { padding: .625rem; border-radius: var(--radius-sm); }

/* ----------------------------------------------------------------
   7. Forms
   ---------------------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: .5rem;
  letter-spacing: 0;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .875rem 1.125rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.form-input::placeholder { color: var(--text-muted); font-weight: 400; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .375rem; font-weight: 500; }
.form-hint  { font-size: .8rem; color: var(--text-muted); margin-top: .375rem; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 3rem; }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ----------------------------------------------------------------
   8. Tables
   ---------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.data-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
  color: #fff;
}
.data-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr { background: #fff; transition: background var(--transition); }
.data-table tbody tr:nth-child(even) { background: var(--primary-50); }
.data-table tbody tr:hover { background: var(--primary-light); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tfoot td {
  padding: 1rem 1.25rem;
  background: var(--bg);
  font-weight: 700;
  border-top: 2px solid var(--border);
}

/* ----------------------------------------------------------------
   9. Badges
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .7125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-warning { background: var(--warning-light); color: var(--warning-dark); }
.badge-danger  { background: var(--danger-light);  color: var(--danger-dark); }
.badge-info    { background: var(--info-light);    color: var(--info); }
.badge-purple  { background: var(--purple-light);  color: var(--purple); }
.badge-gray    { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.badge-lg { padding: .5rem 1.25rem; font-size: .8rem; border-radius: var(--radius-md); }

/* ----------------------------------------------------------------
   10. Alerts
   ---------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: fadeIn .3s ease;
}
.alert-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.alert-success { background: var(--success-light); border-color: #86efac; color: #14532d; }
.alert-danger  { background: var(--danger-light);  border-color: #fca5a5; color: #7f1d1d; }
.alert-warning { background: var(--warning-light); border-color: #fdba74; color: #7c2d12; }
.alert-info    { background: var(--info-light);    border-color: #67e8f9; color: #164e63; }

/* ----------------------------------------------------------------
   11. Navigation Bar
   ---------------------------------------------------------------- */
.navbar {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(79,70,229,.28);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.navbar-brand-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  border: 1.5px solid rgba(255,255,255,.3);
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.nav-link.nav-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}
.nav-link.nav-btn:hover { background: rgba(255,255,255,.3); color: #fff; }

/* Dashboard sidebar nav */
.sidebar-nav { list-style: none; }
.sidebar-nav li + li { margin-top: .25rem; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-weight: 600;
  font-size: .875rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.sidebar-nav-item:hover { background: var(--primary-50); color: var(--primary); }
.sidebar-nav-item.active { background: linear-gradient(135deg, var(--primary-light) 0%, #F5F3FF 100%); color: var(--primary); font-weight: 800; }
.sidebar-nav-item svg { flex-shrink: 0; }

/* ----------------------------------------------------------------
   12. Progress Bar
   ---------------------------------------------------------------- */
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--primary-light);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #818CF8, #6EE7B7);
  border-radius: 999px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 10px rgba(79,70,229,.3);
}
.progress-text {
  font-size: .8rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  margin-bottom: .25rem;
}

/* ----------------------------------------------------------------
   13. Stat Cards (Dashboard)
   ---------------------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon-blue   { background: var(--info-light);    color: var(--info); }
.stat-icon-green  { background: var(--success-light); color: var(--success); }
.stat-icon-orange { background: var(--accent-light);  color: var(--accent); }
.stat-icon-red    { background: var(--danger-light);  color: var(--danger); }
.stat-icon-purple { background: var(--purple-light);  color: var(--purple); }
.stat-body { min-width: 0; }
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: .25rem; }

/* ----------------------------------------------------------------
   14. Modal
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 540px;
  animation: scaleIn .2s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.modal-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: none; background: var(--bg);
  color: var(--text-muted); cursor: pointer; font-size: 1.25rem;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body   { padding: 1.5rem 2rem; }
.modal-footer { padding: 1rem 2rem 1.5rem; display: flex; gap: .75rem; justify-content: flex-end; }

/* ----------------------------------------------------------------
   15. Hero / Landing
   ---------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #F093FB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -15%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
  animation: floatBlob1 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  animation: floatBlob2 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.06); }
  66% { transform: translate(20px, -20px) scale(.94); }
}
@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}
.hero-card {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%; max-width: 520px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative; z-index: 1;
  animation: slideUp .5s ease;
}
.hero-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  font-size: 2rem;
  border: 1.5px solid rgba(255,255,255,.35);
}
.hero-title { font-size: 2.5rem; font-weight: 900; color: #fff; letter-spacing: -.04em; text-shadow: 0 2px 12px rgba(0,0,0,.1); }
.hero-subtitle { color: rgba(255,255,255,.88); margin-top: .5rem; font-size: .9375rem; line-height: 1.7; }

/* Level cards (SD-SMP / SMA) */
.level-card {
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.level-card:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.level-card.selected {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transform: translateY(-3px);
}
.level-card-icon { font-size: 1.75rem; }
.level-card-title { font-size: .9375rem; font-weight: 800; color: #fff; }
.level-card-sub   { font-size: .75rem; color: rgba(255,255,255,.78); }
.level-card.selected .level-card-sub { color: rgba(255,255,255,.95); }

/* ----------------------------------------------------------------
   16. Survey Layout
   ---------------------------------------------------------------- */
.survey-page-bg {
  min-height: 100vh;
  background: linear-gradient(160deg, #EEF2FF 0%, #FEF3C7 60%, #D1FAE5 100%);
  padding: 1.5rem;
}
.survey-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.survey-sidebar {
  position: sticky;
  top: 1.5rem;
}
.survey-header-bar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.survey-user-info h4 { font-size: .9375rem; font-weight: 700; color: var(--text); }
.survey-user-info p  { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Question navigation grid */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  margin: 1rem 0;
}
.nav-grid-item {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.nav-grid-item:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.nav-grid-item.active {
  background: linear-gradient(135deg, var(--primary), #A855F7);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-primary);
  transform: scale(1.12);
}
.nav-grid-item.answered { background: var(--success-light); border-color: #6EE7B7; color: var(--success-dark); }

.nav-legend { list-style: none; }
.nav-legend li { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.nav-legend li + li { margin-top: .375rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.legend-dot-active   { background: linear-gradient(135deg, var(--primary), #A855F7); }
.legend-dot-answered { background: var(--success-light); border: 2px solid #6EE7B7; }
.legend-dot-empty    { background: var(--bg); border: 2px solid var(--border); }

/* Main question card */
.survey-main-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 3rem 3.5rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.survey-main-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.05) 0%, transparent 70%);
  pointer-events: none;
}
.survey-q-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--primary-50);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  padding: .375rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--primary-light);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.survey-question-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  quotes: '\201C' '\201D';
}
.survey-question-text::before { content: open-quote; color: var(--primary); font-size: 2.5rem; line-height: 0; vertical-align: -.5rem; margin-right: .125rem; }
.survey-question-text::after  { content: close-quote; color: var(--primary); font-size: 2.5rem; line-height: 0; vertical-align: -.5rem; margin-left: .125rem; }

.survey-options { display: flex; flex-direction: column; gap: .875rem; }
.survey-option {
  width: 100%;
  padding: 1.1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.survey-option:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
  transform: translateX(4px);
}
.survey-option.selected {
  background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-primary);
  transform: translateX(6px) translateY(-2px);
}
.option-radio {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.survey-option:hover .option-radio { border-color: var(--primary); }
.survey-option.selected .option-radio { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.6); }
.option-radio-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; display: none; }
.survey-option.selected .option-radio-dot { display: block; }

/* Survey navigation footer */
.survey-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-top: 1rem;
}
.btn-prev { opacity: .6; }
.btn-prev:hover { opacity: 1; }
.btn-finish {
  background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(16,185,129,.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: none;
}
.btn-finish.visible { display: inline-flex; align-items: center; gap: .5rem; }
.btn-finish:hover   { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16,185,129,.55); }

/* ----------------------------------------------------------------
   17. Result Page
   ---------------------------------------------------------------- */
.result-wrapper { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.result-header {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 3rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.result-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.result-header-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.result-header h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .2em; opacity: .8; margin-bottom: .5rem; }
.result-header h1 { font-size: 2.25rem; font-weight: 900; letter-spacing: -.03em; }
.result-header p  { opacity: .8; margin-top: .5rem; font-size: 1.1rem; font-weight: 500; }

.result-body { background: var(--bg-card); border-radius: 0 0 var(--radius-xl) var(--radius-xl); padding: 3rem; box-shadow: var(--shadow-xl); border: 1px solid var(--border); border-top: none; }

.result-score-display {
  text-align: center;
  margin-bottom: 2rem;
}
.result-score-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.05em;
  line-height: 1;
}
.result-score-denom { font-size: 1.5rem; color: var(--text-muted); font-weight: 600; }
.result-score-label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-top: .5rem; }

.result-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 auto;
  border: 2px solid transparent;
  letter-spacing: .02em;
}
.result-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.result-score-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.result-score-box .big { font-size: 2.5rem; font-weight: 900; color: var(--text); line-height: 1; }
.result-score-box .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; margin-top: .375rem; }

.result-desc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.0625rem;
  margin: 2rem 0;
}
.result-desc-card::before { content: '\201C'; font-size: 2rem; color: var(--primary); line-height: 0; vertical-align: -.5rem; }
.result-desc-card::after  { content: '\201D'; font-size: 2rem; color: var(--primary); line-height: 0; vertical-align: -.5rem; }

.result-table-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
}
.result-actions { display: flex; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.result-actions .btn { flex: 1; }

/* Result colors — harmonious gradients */
.result-header-f  { background: linear-gradient(135deg, #E11D48, #F59E0B); }
.result-header-fg { background: linear-gradient(135deg, #D97706, #059669); }
.result-header-gf { background: linear-gradient(135deg, #4F46E5, #0284C7); }
.result-header-g  { background: linear-gradient(135deg, #059669, #0284C7); }
.result-badge-f  { background: var(--danger-light);  color: var(--danger-dark);  border-color: #FDA4AF; }
.result-badge-fg { background: var(--warning-light); color: var(--warning-dark); border-color: #FCD34D; }
.result-badge-gf { background: var(--primary-light); color: var(--primary-dark); border-color: var(--border-focus); }
.result-badge-g  { background: var(--success-light); color: var(--success-dark); border-color: #6EE7B7; }

/* ----------------------------------------------------------------
   18. Auth Pages
   ---------------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #F093FB 100%);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -20%; right: -15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
  animation: floatBlob1 8s ease-in-out infinite;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -15%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  animation: floatBlob2 10s ease-in-out infinite;
  pointer-events: none;
}
.auth-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  width: 100%; max-width: 440px;
  animation: slideUp .4s ease;
  border: 1.5px solid rgba(255,255,255,.9);
  position: relative; z-index: 1;
}
.auth-logo {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.auth-logo-blue   { background: linear-gradient(135deg, var(--primary), #A855F7); box-shadow: var(--shadow-primary); }
.auth-logo-purple { background: linear-gradient(135deg, #EC4899, var(--purple)); box-shadow: 0 8px 24px rgba(236,72,153,.3); }
.auth-title    { text-align: center; font-size: 1.625rem; font-weight: 800; color: var(--text); margin-bottom: .375rem; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: .875rem; margin-bottom: 2rem; }
.auth-back { display: block; text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--text-muted); }
.auth-back:hover { color: var(--primary); }

/* ----------------------------------------------------------------
   19. Guru/Admin Dashboard Layout
   ---------------------------------------------------------------- */
.dashboard-page { min-height: 100vh; background: var(--bg); }
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 74px); }
.dashboard-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
}
.sidebar-profile {
  display: flex; align-items: center; gap: .875rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, #FFF7ED 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--border);
}
.sidebar-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), #818CF8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}
.sidebar-profile-name  { font-weight: 800; font-size: .9375rem; color: var(--text); }
.sidebar-profile-role  { font-size: .7rem; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sidebar-section-label { font-size: .65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; padding: 0 1rem; margin: 1rem 0 .375rem; }
.dashboard-content { padding: 2rem; overflow-y: auto; }
.page-header { margin-bottom: 2rem; }
.page-title    { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.page-subtitle { color: var(--text-muted); margin-top: .25rem; font-size: .9375rem; }

/* ----------------------------------------------------------------
   20. Test Link Card (Guru)
   ---------------------------------------------------------------- */
.test-link-result {
  background: linear-gradient(135deg, var(--success-light) 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  animation: scaleIn .3s ease;
}
.test-link-code {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--success);
  letter-spacing: .2em;
  background: var(--success-light);
  padding: .75rem 2rem;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin: 1rem 0;
  border: 2px solid #86efac;
}
.test-link-url-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  margin: 1rem 0;
}
.test-link-url-text { flex: 1; font-size: .8125rem; color: var(--text-light); word-break: break-all; text-align: left; font-family: monospace; }

/* ----------------------------------------------------------------
   21. Empty State
   ---------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { font-size: 1.125rem; font-weight: 700; color: var(--text-light); margin-bottom: .5rem; }
.empty-state p  { font-size: .9375rem; }

/* ----------------------------------------------------------------
   22. Loading Spinner
   ---------------------------------------------------------------- */
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
.loading-overlay {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; padding: 3rem;
  color: var(--text-muted); font-weight: 500;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------
   23. Animations
   ---------------------------------------------------------------- */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn   { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse     { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shake     { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes bounceIn  { 0% { opacity:0; transform:scale(.4); } 60% { transform:scale(1.12); } 80% { transform:scale(.96); } 100% { opacity:1; transform:scale(1); } }
@keyframes floatUpDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.fade-in       { animation: fadeIn .4s ease forwards; }
.slide-up      { animation: slideUp .4s ease forwards; }
.scale-in      { animation: scaleIn .3s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-shake { animation: shake .3s ease; }
.animate-float { animation: floatUpDown 3s ease-in-out infinite; }
.animate-bounce-in { animation: bounceIn .6s ease forwards; }
/* ----------------------------------------------------------------
   23b. Illustration & Hero Split Layout
   ---------------------------------------------------------------- */
.illus {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.illus-float {
  animation: floatUpDown 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(79,70,229,.18));
}

/* Hero split: text left / illustration right */
.hero-split {
  min-height: 100vh;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 55%, #F093FB 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-split::before {
  content: '';
  position: absolute;
  top: -18%; right: -8%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  animation: floatBlob1 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-split::after {
  content: '';
  position: absolute;
  bottom: -18%; left: -8%;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  animation: floatBlob2 10s ease-in-out infinite;
  pointer-events: none;
}
.hero-split-text {
  padding: 5rem 2rem 5rem 5rem;
  position: relative; z-index: 1;
  animation: slideUp .6s ease;
}
.hero-split-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem 3rem 1rem;
  position: relative; z-index: 1;
}
.hero-split-image img {
  max-width: 420px;
  width: 100%;
  animation: floatUpDown 5s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.18));
}

/* Feature cards */
.feature-section {
  padding: 4.5rem 0 3rem;
  background: var(--bg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--border-focus);
}
.feature-card-img {
  width: 110px; height: 110px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
  animation: floatUpDown 4s ease-in-out infinite;
}
.feature-card:nth-child(2) .feature-card-img { animation-delay: -1.5s; }
.feature-card:nth-child(3) .feature-card-img { animation-delay: -3s; }
.feature-card-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
}
.feature-card-desc {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/* Form section */
.form-section { padding: 1rem 0 5rem; background: var(--bg); }

/* Responsive hero split */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  .hero-split-text { padding: 4rem 2rem 1rem; }
  .hero-split-image { padding: 0 2rem 3rem; }
  .hero-split-image img { max-width: 280px; }
  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 540px) {
  .hero-split-text { padding: 3rem 1.25rem .5rem; }
  .hero-split-image img { max-width: 210px; }
}

/* ----------------------------------------------------------------
   24. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
  }
  .sidebar-profile { flex: 1; margin-bottom: 0; }
  .sidebar-section-label { display: none; }
  .sidebar-nav { display: flex; flex-direction: row; gap: .25rem; flex-wrap: wrap; }
  .sidebar-nav li + li { margin-top: 0; }
  .sidebar-nav-item { padding: .5rem .75rem; font-size: .8rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .survey-container { grid-template-columns: 1fr; }
  .survey-sidebar { position: static; order: 2; }
  .survey-main-card { padding: 1.75rem; min-height: auto; }
  .survey-question-text { font-size: 1.2rem; }
  .hero-card { padding: 2rem 1.5rem; }
  .hero-title { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .result-body { padding: 1.75rem; }
  .result-score-number { font-size: 3.5rem; }
  .result-actions { flex-direction: column; }
  .auth-card { padding: 2rem; }
  .modal { border-radius: var(--radius-lg); }
  .modal-header, .modal-body, .modal-footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .survey-page-bg { padding: 1rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .result-score-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   25. Print / PDF Styles
   ---------------------------------------------------------------- */
@media print {
  @page { size: A4; margin: 15mm; }

  body {
    background: white !important;
    color: #000 !important;
    font-size: 10pt;
    font-family: sans-serif;
  }

  .no-print { display: none !important; }
  .print-only { display: block !important; }

  .navbar, .survey-sidebar, .result-actions,
  .btn, .modal-overlay, .dashboard-sidebar { display: none !important; }

  .result-wrapper { max-width: 100%; padding: 0; }
  .result-body { box-shadow: none !important; border: none !important; padding: 0; border-radius: 0; }

  .result-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border-radius: 0;
    padding: 1.5rem;
  }

  .result-category-badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-header-formal {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 2pt solid #000;
    padding-bottom: 12pt;
    margin-bottom: 20pt;
  }
  .print-header-formal h1 { font-size: 14pt; font-weight: bold; text-transform: uppercase; }
  .print-header-formal p  { font-size: 10pt; }
  .print-header-formal .print-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 12pt;
    padding-top: 8pt;
    border-top: 1pt solid #ccc;
    font-size: 9pt;
  }

  .print-category-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: 1pt solid #999;
    padding: 12pt;
    border-radius: 6pt;
    text-align: center;
    margin-bottom: 16pt;
  }

  table { width: 100%; border-collapse: collapse; margin-top: 12pt; page-break-inside: auto; }
  thead { display: table-header-group; }
  tr    { page-break-inside: avoid; }
  th, td { border: 0.5pt solid #aaa !important; padding: 5pt 7pt !important; font-size: 8.5pt !important; vertical-align: top; }
  th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; font-weight: bold; }
  .data-table tbody tr:nth-child(even) { background: #f9f9f9 !important; -webkit-print-color-adjust: exact; }

  .badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: 0.5pt solid #ccc;
    padding: 1pt 5pt;
    font-size: 7pt;
    font-weight: bold;
  }

  .print-signature-block {
    display: flex !important;
    justify-content: flex-end;
    margin-top: 40pt;
  }
  .print-signature-box {
    text-align: center;
    width: 150pt;
  }
  .print-signature-line {
    border-top: 1pt solid #000;
    padding-top: 4pt;
    margin-top: 50pt;
    font-weight: bold;
    font-size: 9pt;
  }
  .print-signature-role { font-size: 8pt; color: #666; font-style: italic; }
}
.print-only { display: none; }
