/* ============================================================
   #PreMarriageTalk — Toolkit: Marriage Readiness [BETA]
   Modern, Sleek, Compact & Highly Readable Design System
   ============================================================ */

/* ---------- Local Fonts (TT Wellingtons) ---------- */
@font-face {
  font-family: 'TT Wellingtons';
  src: url('../../assets/fonts/TT Wellingtons Trial Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Wellingtons';
  src: url('../../assets/fonts/TT Wellingtons Trial Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Wellingtons';
  src: url('../../assets/fonts/TT Wellingtons Trial Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Wellingtons';
  src: url('../../assets/fonts/TT Wellingtons Trial DemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Wellingtons';
  src: url('../../assets/fonts/TT Wellingtons Trial Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Wellingtons';
  src: url('../../assets/fonts/TT Wellingtons Trial ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Wellingtons';
  src: url('../../assets/fonts/TT Wellingtons Trial Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Fallback Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --primary-teal: #0d8f8f;
  --teal-dark: #004d4d;
  --teal-deep: #003333;
  --teal-light: #e6f7f7;
  --teal-soft: #f0faf9;
  --teal-glow: rgba(13, 143, 143, 0.2);
  --teal-border: #80e0e0;

  --coral-accent: #d96a6c;
  --coral-dark: #c45a5c;
  --coral-light: #fdf0f0;
  --coral-glow: rgba(217, 106, 108, 0.2);

  --gold-accent: #f59e0b;
  --gold-light: #fef3c7;

  /* Neutrals & Background */
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;

  /* Score Readiness States */
  --status-ready: #059669;
  --status-ready-bg: #ecfdf5;
  --status-ready-border: #6ee7b7;

  --status-almost: #d97706;
  --status-almost-bg: #fffbeb;
  --status-almost-border: #fcd34d;

  --status-prep: #ea580c;
  --status-prep-bg: #fff7ed;
  --status-prep-border: #fdba74;

  --status-notyet: #dc2626;
  --status-notyet-bg: #fef2f2;
  --status-notyet-border: #fca5a5;

  /* Typography */
  --font-main: 'TT Wellingtons', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'TT Wellingtons', 'Outfit', sans-serif;
  --font-body: 'TT Wellingtons', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(13, 143, 143, 0.07);
  --shadow-lg: 0 10px 25px rgba(13, 143, 143, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after,
body, button, input, select, textarea, optgroup, option,
h1, h2, h3, h4, h5, h6, p, span, a, label, div {
  font-family: 'TT Wellingtons', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  background-image: radial-gradient(#d1dbe5 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

/* ============================================================
   TOP APP HEADER (STICKY)
   ============================================================ */
.app-header {
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  height: 60px;
  box-shadow: 0 1px 6px rgba(0, 30, 40, 0.03);
}

.app-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand-wrap img {
  height: 32px;
  width: auto;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}

.brand-hash {
  color: var(--primary-teal);
}

.brand-badge {
  background: var(--teal-light);
  color: var(--primary-teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--teal-border);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-header-outline:hover {
  background: var(--teal-light);
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

/* ============================================================
   FIXED LIVE PROGRESS BAR (DESKTOP: TOP DOCK)
   ============================================================ */
.sticky-progress-bar {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 90;
  height: 50px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--border-color);
  border-top: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.sticky-progress-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 220px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.progress-count {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-teal);
  white-space: nowrap;
}

.progress-track-wrapper {
  flex: 1;
  max-width: 420px;
  min-width: 60px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, var(--primary-teal));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.score-pill-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-border);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--teal-dark);
  width: auto;
  min-width: 82px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.score-pill-live strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-teal);
}

.pill-max {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   WELCOME OVERLAY POP-UP (EXACT MATCH TO REFERENCE)
   ============================================================ */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: overlayFadeIn 0.25s ease forwards;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.welcome-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.25rem 2.25rem 2.25rem;
  max-width: 530px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #e2e8f0;
  text-align: center;
  margin: auto;
  position: relative;
  animation: cardScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.welcome-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.welcome-logo-img {
  height: 38px;
  width: auto;
}

.welcome-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--primary-teal);
  font-weight: 800;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.badge-beta-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  line-height: 1.28;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}

.welcome-highlight {
  color: var(--primary-teal);
}

.welcome-body {
  text-align: center;
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 auto 1.35rem;
  max-width: 100%;
}

.desktop-br {
  display: inline;
}

/* Disclaimer Box */
.welcome-disclaimer-block {
  background: #fffdf0;
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  text-align: left;
  margin: 0 0 1.5rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.06);
}

.disclaimer-head-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #92400e;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.disclaimer-bulb-icon {
  font-size: 1.15rem;
}

.disclaimer-p-main {
  font-size: 0.86rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0 0 0.35rem;
}

.disclaimer-p-sub {
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.45;
  margin: 0;
}

/* Big Full Width CTA Button */
.btn-welcome-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--primary-teal);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 143, 143, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-welcome-cta:hover {
  background: #0b7a7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 143, 143, 0.4);
}

/* ============================================================
   STEP 2: PROFIL & PANDUAN MODAL CARD
   ============================================================ */
/* ============================================================
   STEP 2: PROFIL & PANDUAN MODAL CARD
   ============================================================ */
.profile-guide-modal-card {
  max-width: 520px;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1.5px solid var(--border-subtle);
  background: #f8fafc;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-icon {
  font-size: 1.35rem;
}

.profile-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1.2;
}

.profile-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-close-x {
  background: #e2e8f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-x:hover {
  background: #fee2e2;
  color: #dc2626;
}

.profile-modal-body {
  padding: 1.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-top: 1.5px solid var(--border-subtle);
  background: #f8fafc;
}

.profile-modal-footer .btn-welcome-cta {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1.02rem;
}

/* Biodata Card Inside Modal */
.biodata-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.biodata-card-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.biodata-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.req {
  color: var(--coral-accent);
}

.form-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  height: 38px;
  box-sizing: border-box;
  transition: var(--transition-fast);
}

.form-input[type="date"] {
  cursor: pointer;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* Gender Toggle Group */
.gender-toggle-group {
  display: flex;
  gap: 0.45rem;
}

.gender-option {
  flex: 1;
  cursor: pointer;
}

.gender-option input[type="radio"] {
  display: none;
}

.gender-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  height: 38px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  user-select: none;
}

.gender-pill:hover {
  border-color: var(--primary-teal);
  background: var(--teal-soft);
}

.gender-option input[type="radio"]:checked + .gender-pill {
  background: var(--teal-light);
  border-color: var(--primary-teal);
  color: var(--teal-deep);
  font-weight: 800;
}

/* Scale Guide Box (Inside Modal) */
/* Scale Guide Box (Desktop) */
.scale-guide-box {
  background: #ffffff;
  border: 1.5px solid var(--teal-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.scale-guide-header {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scale-guide-title {
  font-weight: 600;
}

.scale-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.scale-pill-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  background: var(--bg-soft);
}

.sp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sp-text {
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.2;
  font-size: 0.76rem;
}

.sp-1 .sp-num { background: #fee2e2; color: #dc2626; }
.sp-2 .sp-num { background: #ffedd5; color: #ea580c; }
.sp-3 .sp-num { background: #e2e8f0; color: #475569; }
.sp-4 .sp-num { background: #e0f2fe; color: #0284c7; }
.sp-5 .sp-num { background: #dcfce7; color: #059669; }

/* ============================================================
   ASSESSMENT FLOW (COMPACT YET COMFORTABLE & READABLE)
   ============================================================ */
.main-wrapper {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 124px 1rem 3.5rem;
}

.profile-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.user-chip-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.chip-avatar {
  font-size: 1.15rem;
}

.chip-name {
  font-weight: 800;
  color: var(--teal-deep);
  font-size: 0.95rem;
}

.chip-gender {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.chip-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-link-edit, .btn-link-reset {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-link-edit:hover {
  background: var(--teal-light);
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.btn-link-reset:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Category Stepper Navigation */
.category-stepper-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.category-step-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.category-step-btn:hover {
  border-color: var(--teal-border);
  background: var(--teal-soft);
  transform: translateY(-1px);
}

.category-step-btn .step-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.category-step-btn .step-info {
  display: flex;
  flex-direction: column;
}

.category-step-btn .step-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}

.category-step-btn .step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
}

/* Active Step */
.category-step-btn.active {
  background: #ffffff;
  border-color: var(--primary-teal);
  box-shadow: 0 4px 14px var(--teal-glow);
  transform: translateY(-2px);
}

.category-step-btn.active .step-title {
  color: var(--teal-deep);
}

.category-step-btn.active .step-badge {
  color: var(--primary-teal);
}

/* Completed Step */
.category-step-btn.completed {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.category-step-btn.completed .step-badge {
  color: #059669;
  font-weight: 800;
}

/* ============================================================
   DIMENSION SECTION (CARD CONTAINER - FIXED & SOLID)
   ============================================================ */
.dimension-section {
  display: none;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

.dimension-section.active {
  display: block;
}

/* Subtle In-Place Fade for Inner Questions Only (Container Stays 100% Fixed & Still) */
.dimension-section.active .questions-list {
  animation: questionsFadeIn 0.2s ease-out both;
}

.dimension-section.active .dim-category-title,
.dimension-section.active .dim-badge-icon {
  animation: titleFadeIn 0.16s ease-out both;
}

@keyframes questionsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes titleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dimension-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  flex-wrap: nowrap;
}

.dim-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.dim-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
  background: var(--teal-light);
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dim-badge-text {
  display: flex;
  align-items: center;
}

.dim-category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-teal);
  background: var(--teal-light);
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.2rem;
}

.dim-category-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #003333;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.dim-category-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Scale Legend Bar (Header Above Questions) */
.scale-legend-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.scale-legend-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--teal-deep);
  margin-right: 0.15rem;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f8fafc;
  padding: 0.16rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  white-space: nowrap;
}

.legend-pill strong {
  color: var(--primary-teal);
  font-weight: 800;
}

/* Questions List & Compact Question Items */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.question-item-card {
  background: #fafbfc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.15s ease;
}

.question-item-card.answered {
  background: #ffffff;
  border-color: var(--teal-border);
  border-left: 4px solid var(--primary-teal);
}

.question-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.question-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--primary-teal);
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  border: 1px solid var(--teal-border);
}

.question-item-card.answered .question-num {
  background: var(--primary-teal);
  color: #ffffff;
  border-color: var(--primary-teal);
}

.question-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}

/* 5 Score Rating Selector Buttons (Inline Pills) */
.score-selector-grid {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.score-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.score-option-btn:hover {
  border-color: var(--primary-teal);
  background: var(--teal-soft);
  transform: translateY(-1px);
}

.score-option-btn .num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
}

.score-option-btn .lbl {
  display: none;
}

/* Selected State */
.score-option-btn.selected {
  background: var(--primary-teal);
  border-color: var(--teal-dark);
  color: #ffffff;
  box-shadow: 0 3px 8px var(--teal-glow);
  transform: translateY(-1px) scale(1.06);
}

.score-option-btn.selected .num {
  color: #ffffff;
}

/* Step Nav Footer */
.step-nav-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.step-nav-footer-final {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.step-nav-final-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-nav-final-actions .btn {
  width: auto;
  max-width: none;
}

.subtotal-indicator {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  background: var(--teal-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--teal-border);
}

.subtotal-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-deep);
}

.subtotal-number {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-teal);
}

.subtotal-max {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-step-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--primary-teal);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 51, 51, 0.05);
  transition: var(--transition-fast);
  line-height: 1;
}

.btn-step-arrow:hover {
  background: var(--primary-teal);
  color: #ffffff;
  border-color: var(--primary-teal);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px var(--teal-glow);
}

.btn-step-arrow:active {
  transform: translateY(0);
}

/* Category Navigation Visibility */
.mobile-cat-nav {
  display: none !important;
}

.desktop-cat-nav {
  display: inline-flex !important;
}

/* 5 Category Navigation Pills (Header Aligned Desktop) */
.category-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  padding: 0.18rem 0.28rem;
  border-radius: var(--radius-full);
  box-shadow: none;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.btn-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.22rem 0.58rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-cat-pill:hover {
  background: var(--teal-light);
  color: var(--primary-teal);
}

.btn-cat-pill.active {
  background: var(--primary-teal);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--teal-glow);
}

.cat-pill-icon {
  font-size: 0.85rem;
}

.cat-pill-num {
  font-weight: 800;
  font-size: 0.78rem;
}

.cat-pill-title {
  font-size: 0.78rem;
  font-weight: 700;
}

/* Bottom Quick Reset */
.form-bottom-quick-reset {
  text-align: center;
  margin-top: 0.85rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sep-dot {
  color: var(--text-light);
}

.btn-text-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.btn-text-link:hover {
  color: var(--primary-teal);
  background: var(--teal-light);
}

/* ============================================================
   BUTTONS SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--primary-teal);
  color: #ffffff;
  box-shadow: 0 3px 10px var(--teal-glow);
}

.btn-primary:hover {
  background: #0b7a7a;
  transform: translateY(-1px);
}

.btn-action-pulse {
  background: linear-gradient(135deg, #0d8f8f 0%, #d96a6c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 143, 143, 0.3);
  padding: 0.75rem 1.65rem;
  font-size: 1rem;
}

.btn-action-pulse:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-body);
}

.btn-outline:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

/* ============================================================
   RESULT DASHBOARD (SHOWCASE VIEW AS SEPARATE PAGE)
   ============================================================ */
.main-wrapper.on-result-view {
  padding-top: 80px;
}

.result-dashboard {
  display: none;
  margin-top: 0.5rem;
}

.result-dashboard.visible {
  display: block;
  animation: resultPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.result-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid var(--border-subtle);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-result-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-deep);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-result-nav-back:hover {
  background: var(--teal-light);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.result-card-main {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.result-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #10b981, var(--primary-teal), var(--coral-accent), var(--gold-accent));
}

.result-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.result-badge-top {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--teal-light);
  color: var(--primary-teal);
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--teal-border);
  margin-bottom: 0.45rem;
}

.result-greeting {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  color: #003333;
  letter-spacing: -0.02em;
}

.result-user-meta-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.meta-tag-pill {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--text-body);
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.result-timestamp {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

/* Score Showcase Card with Radial Gauge */
.score-showcase-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
}

.score-gauge-wrapper {
  position: relative;
  width: 145px;
  height: 145px;
  flex-shrink: 0;
}

.score-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 11;
}

.gauge-fill {
  fill: none;
  stroke: var(--primary-teal);
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-text-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--teal-deep);
}

.score-max-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.score-status-box {
  flex: 0 1 auto;
  max-width: 520px;
}

.status-pill {
  display: none !important;
}

.status-headline {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.status-summary {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Category Specific Status Styling */
.cat-ready .gauge-fill { stroke: var(--status-ready); }
.cat-ready .score-number { color: var(--status-ready); }
.cat-ready .status-headline { color: var(--status-ready); }

.cat-almost .gauge-fill { stroke: var(--status-almost); }
.cat-almost .score-number { color: var(--status-almost); }
.cat-almost .status-headline { color: var(--status-almost); }

.cat-prep .gauge-fill { stroke: var(--status-prep); }
.cat-prep .score-number { color: var(--status-prep); }
.cat-prep .status-headline { color: var(--status-prep); }

.cat-notyet .gauge-fill { stroke: var(--status-notyet); }
.cat-notyet .score-number { color: var(--status-notyet); }
.cat-notyet .status-headline { color: var(--status-notyet); }

/* Breakdown Cards */
.breakdown-section {
  margin-bottom: 2rem;
}

.breakdown-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.breakdown-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dim-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
}

.dim-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dim-card-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.dim-card-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dim-card-info h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.dim-level-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.dim-level-badge.level-high { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.dim-level-badge.level-med { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.dim-level-badge.level-low { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.dim-score-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-teal);
  font-variant-numeric: tabular-nums;
}

.dim-score-num small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dim-bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-teal), #10b981);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.insight-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
}

.insight-strength {
  background: #f0fdf4;
  border-color: #86efac;
}

.insight-growth {
  background: #fffbeb;
  border-color: #fde68a;
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.insight-icon {
  font-size: 1.25rem;
}

.insight-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.insight-box p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

/* Action Plan Card */
.action-plan-card {
  background: #ffffff;
  border: 1.5px solid var(--teal-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 2rem;
}

.action-plan-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-deep);
  margin-bottom: 0.85rem;
}

.action-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.action-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #334155;
}

.action-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-teal);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Result Footer CTA & Disclaimer */
.result-footer-cta-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.result-disclaimer-block {
  width: 100%;
  margin: 0 0 1.75rem 0;
}

.result-cta-buttons-grid {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.result-cta-buttons-grid .btn-welcome-cta {
  flex: 1;
  text-decoration: none;
  font-size: 1.02rem;
  padding: 0.95rem 1.5rem;
  white-space: nowrap;
}

.btn-consult-cta {
  background: var(--primary-teal);
  box-shadow: 0 4px 14px rgba(13, 143, 143, 0.3);
}

.btn-consult-cta:hover {
  background: #0b7a7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 143, 143, 0.4);
}

.btn-book-google-cta {
  background: #ffffff;
  color: var(--primary-teal);
  border: 2px solid var(--primary-teal);
  box-shadow: 0 4px 12px rgba(13, 143, 143, 0.12);
}

.btn-book-google-cta:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 143, 143, 0.2);
}

/* ============================================================
   VIEW 2: MODE LEMBAR KERJA CETAK (PRINTABLE WORKSHEET)
   ============================================================ */
.view-worksheet {
  display: none;
}

.worksheet-container {
  background: #ffffff;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.ws-header {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
}

.ws-logo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.ws-logo {
  width: 24px;
  height: 24px;
}

.ws-brand-title {
  font-weight: 800;
  color: var(--primary-teal);
  font-size: 0.95rem;
}

.ws-main-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ws-badge-beta {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.ws-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ws-meta-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.ws-instructions-box {
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.15rem;
  font-size: 0.78rem;
}

.ws-instructions-box h3 {
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.ws-scale-summary {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #334155;
}

/* Worksheet Tables */
.ws-table-card {
  margin-bottom: 1rem;
  page-break-inside: avoid;
  break-inside: avoid;
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ws-table th, .ws-table td {
  border: 1.5px solid #0f172a;
  padding: 0.45rem 0.65rem;
  vertical-align: middle;
}

.th-aspect-title {
  background: #f1f5f9;
  font-weight: 900;
  text-align: left;
  font-size: 0.85rem;
  color: #0f172a;
}

.th-skor {
  width: 55px;
  text-align: center;
  background: #f1f5f9;
  font-weight: 900;
  font-size: 0.8rem;
  color: #0f172a;
}

.td-num {
  width: 28px;
  text-align: center;
  font-weight: 800;
}

.td-score-box {
  width: 55px;
  text-align: center;
  height: 28px;
}

.score-blank {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.tr-total td {
  background: #fafafa;
  font-weight: 900;
}

.td-subtotal {
  background: #f8fafc;
}

.ws-recap-card .tr-recap-head th {
  background: #e2e8f0;
}

.tr-grand-total td {
  background: #e2e8f0;
  font-weight: 900;
  font-size: 0.86rem;
}

.td-grand-label {
  text-align: right;
  letter-spacing: 0.03em;
}

/* Worksheet Interpretation Box */
.ws-interpretation-card {
  border: 1.5px solid #0f172a;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  page-break-inside: avoid;
  break-inside: avoid;
}

.ws-interp-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.ws-interp-head h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.03em;
}

.ws-interp-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ws-interp-item {
  font-size: 0.8rem;
}

.ws-interp-range {
  color: #0f172a;
}

.ws-interp-desc {
  color: #475569;
  margin-top: 1px;
}

.ws-print-footer-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ---------- Footer ---------- */
.footer-simple {
  background: #ffffff;
  border-top: 1.5px solid var(--border-color);
  padding: 1.5rem 1rem 4.5rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 1.5;
}

.footer-copy {
  margin: 0;
  color: var(--text-main);
  font-weight: 500;
}

.footer-sep-dash {
  display: inline;
  margin: 0 0.35rem;
  color: var(--text-muted);
}

.footer-tagline-text {
  display: inline;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-links {
  margin-top: 0.15rem;
}

.footer-links a {
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------- Responsive Media Queries ---------- */
@media (max-width: 680px) {
  .footer-sep-dash {
    display: none !important;
  }

  .footer-tagline-text {
    display: block !important;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  /* Layout & Spacing */
  .main-wrapper {
    padding: 56px 0.75rem 3.5rem;
  }

  /* App Header (Smaller & Hide Semua Toolkit Button) */
  .app-header {
    height: 44px;
  }

  .app-header-inner {
    padding: 0.35rem 0.75rem;
    justify-content: center;
  }

  .header-right-actions {
    display: none !important;
  }

  .brand-wrap {
    gap: 0.4rem;
  }

  .brand-wrap img {
    height: 24px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
  }

  /* Sticky Bottom Progress Bar Dock */
  .sticky-progress-bar {
    bottom: 0;
    top: auto;
    height: 38px;
  }

  .sticky-progress-container {
    gap: 0.45rem;
    padding: 0 0.65rem;
    height: 100%;
  }

  .progress-info {
    width: auto;
    min-width: 0;
    font-size: 0.75rem;
  }

  .progress-label {
    display: none;
  }

  .score-pill-live {
    width: auto;
    padding: 0.1rem 0.42rem;
    font-size: 0.7rem;
    gap: 0.18rem;
    border: 1px solid var(--teal-border);
  }

  .score-pill-live strong {
    font-size: 0.8rem;
  }

  .pill-max {
    font-size: 0.65rem;
  }

  /* Profile Compact Bar */
  .profile-compact-bar {
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.65rem;
    border-radius: 12px;
    gap: 0.4rem;
  }

  .profile-compact-chip {
    gap: 0.35rem;
    min-width: 0;
  }

  .chip-name {
    font-size: 0.82rem;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chip-gender {
    font-size: 0.75rem;
  }

  .profile-compact-actions {
    gap: 0.25rem;
  }

  .btn-chip-action {
    padding: 0.25rem 0.45rem;
    font-size: 0.72rem;
  }

  /* Welcome Modal & Profile Modal */
  .welcome-card {
    padding: 1.5rem 1.15rem 1.65rem;
    margin: 0.75rem;
    max-width: calc(100vw - 1.5rem);
    border-radius: 18px;
  }

  .welcome-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.45rem;
    white-space: normal;
  }

  .welcome-body {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .desktop-br {
    display: none !important;
  }

  .welcome-disclaimer-block {
    padding: 0.85rem 0.95rem;
    margin-bottom: 1.15rem;
    border-radius: 12px;
  }

  .disclaimer-head-row {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .disclaimer-p-main {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .disclaimer-p-sub {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .profile-guide-modal-card {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
    border-radius: 16px;
  }

  .profile-modal-header {
    padding: 0.65rem 0.85rem;
  }

  .profile-icon {
    font-size: 1.2rem;
  }

  .profile-modal-title {
    font-size: 0.95rem;
  }

  .profile-modal-subtitle {
    font-size: 0.72rem;
  }

  .modal-close-x {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .profile-modal-body {
    padding: 0.65rem 0.85rem;
    max-height: none;
    gap: 0.55rem;
  }

  .biodata-card {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .biodata-card-title {
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
  }

  .biodata-grid {
    gap: 0.42rem;
  }

  .form-group {
    gap: 0.15rem;
  }

  .form-label {
    font-size: 0.74rem;
  }

  .form-input {
    padding: 0.35rem 0.65rem;
    font-size: 0.84rem;
    height: 35px;
    border-radius: 7px;
  }

  .gender-pill {
    padding: 0.35rem 0.4rem;
    font-size: 0.78rem;
    height: 35px;
    border-radius: 7px;
  }

  .scale-guide-box {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
  }

  .scale-guide-header {
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    gap: 0.35rem;
  }

  .scale-pills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.35rem;
  }

  .scale-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.15rem 0.38rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
  }

  .sp-num {
    width: 14px;
    height: 14px;
    font-size: 0.65rem;
  }

  .sp-text {
    font-size: 0.68rem;
  }

  .profile-modal-footer {
    padding: 0.65rem 0.85rem;
  }

  .profile-modal-footer .btn-welcome-cta {
    width: 100%;
    padding: 0.65rem 1rem;
    height: 42px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  /* Dimension Section Card */
  .dimension-section {
    padding: 0.95rem 0.85rem;
    border-radius: 16px;
    margin-bottom: 0.75rem;
  }

  .dimension-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
  }

  .dim-header-left {
    gap: 0.45rem;
  }

  .dim-badge-icon {
    font-size: 1.25rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .dim-category-title {
    font-size: 1.08rem;
  }

  .mobile-cat-nav {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 0.2rem;
    padding: 0.2rem;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    margin-bottom: 0.65rem;
  }

  .desktop-cat-nav {
    display: none !important;
  }

  .cat-pill-title {
    display: none;
  }

  .btn-cat-pill {
    flex: 1;
    justify-content: center;
    padding: 0.35rem 0.2rem;
    font-size: 0.82rem;
    border-radius: 999px;
    gap: 0.2rem;
    min-width: 0;
  }

  .cat-pill-icon {
    font-size: 0.85rem;
  }

  .cat-pill-num {
    font-size: 0.76rem;
  }

  /* Scale Legend Bar */
  .scale-legend-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.4rem;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
  }

  .scale-legend-title {
    font-size: 0.78rem;
    margin-right: 0.15rem;
  }

  .legend-pill {
    padding: 0.12rem 0.38rem;
    font-size: 0.78rem;
    gap: 0.22rem;
    line-height: 1.2;
  }

  .legend-pill strong {
    font-size: 0.8rem;
  }

  /* Question Items */
  .question-item-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.55rem;
  }

  .question-text {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .score-selector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.28rem;
    width: 100%;
  }

  .score-option-btn {
    width: 100%;
    height: 36px;
    border-radius: 8px;
  }

  .score-option-btn .num {
    font-size: 0.98rem;
    font-weight: 700;
  }

  /* Step Nav Footer */
  .step-nav-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    gap: 0.5rem;
  }

  .step-nav-footer-final {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.65rem;
  }

  .step-nav-footer-final .subtotal-indicator {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .step-nav-final-actions {
    display: contents;
  }

  .step-nav-final-actions .btn-prev-step {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .step-nav-final-actions .btn-action-pulse {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    height: 44px;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .subtotal-indicator {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
  }

  .subtotal-number {
    font-size: 1rem;
  }

  .step-nav-arrows {
    display: flex;
    gap: 0.45rem;
    align-items: center;
  }

  .btn-step-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .btn-action-pulse {
    padding: 0.65rem 0.95rem;
    font-size: 0.86rem;
  }

  /* Result Dashboard */
  .result-card-main {
    padding: 1.25rem 0.85rem;
    border-radius: 16px;
  }

  .result-top-nav-bar {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
  }

  .btn-result-nav-back,
  .btn-link-reset {
    font-size: 0.78rem;
    padding: 0.25rem 0.45rem;
  }

  .result-greeting {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .result-user-meta-tags {
    gap: 0.3rem;
    margin: 0.45rem 0;
    justify-content: center;
  }

  .meta-tag-pill {
    padding: 0.18rem 0.45rem;
    font-size: 0.72rem;
  }

  .result-timestamp {
    font-size: 0.75rem;
  }

  .score-showcase-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  .score-gauge-wrapper {
    width: 125px;
    height: 125px;
  }

  .score-gauge-svg {
    width: 125px;
    height: 125px;
  }

  .gauge-text-inner .score-number {
    font-size: 1.75rem;
  }

  .gauge-text-inner .score-max-label {
    font-size: 0.66rem;
  }

  .status-headline {
    font-size: 1.15rem;
    margin: 0.2rem 0;
  }

  .status-summary {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .breakdown-title {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
  }

  .breakdown-cards-grid {
    gap: 0.5rem;
  }

  .dim-card {
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0;
  }

  .dim-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    flex-wrap: nowrap;
  }

  .dim-card-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }

  .dim-card-info {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
  }

  .dim-card-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
  }

  .dim-level-badge {
    font-size: 0.62rem;
    padding: 0.08rem 0.35rem;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .dim-score-num {
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .dim-bar-track {
    height: 5px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.85rem;
  }

  .insight-box {
    padding: 0.85rem 0.85rem;
    border-radius: 14px;
  }

  .insight-header h4 {
    font-size: 0.88rem;
  }

  .insight-box p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .action-plan-card {
    padding: 0.95rem 0.85rem;
    border-radius: 14px;
    margin-top: 0.85rem;
  }

  .action-plan-title {
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
  }

  .action-step-item {
    gap: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.55rem;
  }

  .action-step-num {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .result-disclaimer-block {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    margin: 0 0 1rem 0;
  }

  .result-cta-buttons-grid {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
  }

  .result-cta-buttons-grid .btn-welcome-cta {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    height: 46px;
  }
}

@media (max-width: 400px) {
  .main-wrapper {
    padding: 52px 0.5rem 3.25rem;
  }

  .welcome-title {
    font-size: 1.3rem;
    line-height: 1.25;
    white-space: normal;
  }

  .chip-gender {
    display: none;
  }

  .btn-cat-pill {
    padding: 0.3rem 0.1rem;
    font-size: 0.76rem;
    border-radius: 999px;
  }

  .dim-card-info h4 {
    font-size: 0.74rem;
  }

  .dim-level-badge {
    font-size: 0.58rem;
    padding: 0.06rem 0.3rem;
  }

  .cat-pill-icon {
    font-size: 0.78rem;
  }

  .scale-legend-bar {
    gap: 0.2rem 0.3rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.72rem;
  }

  .legend-pill {
    padding: 0.1rem 0.3rem;
    font-size: 0.72rem;
  }

  .score-option-btn {
    height: 34px;
    border-radius: 7px;
  }

  .score-option-btn .num {
    font-size: 0.92rem;
  }
}

/* ---------- Print Stylesheet ---------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }

  .app-header,
  .sticky-progress-bar,
  .profile-compact-bar,
  .category-stepper-nav,
  .step-nav-footer,
  .form-bottom-quick-reset,
  .result-footer-cta-wrap,
  .ws-print-footer-actions,
  .footer-simple,
  .btn,
  .welcome-overlay {
    display: none !important;
  }

  .main-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .worksheet-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .ws-table th, .ws-table td {
    border: 1pt solid #000000 !important;
  }

  .ws-table-card, .ws-interpretation-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .result-dashboard.visible {
    display: block !important;
  }

  .result-card-main {
    box-shadow: none !important;
    border: 1pt solid #ccc !important;
  }
}
