/* ============================================================
   WHO IS YOUR GTP? — Main Stylesheet
   Restyled to DESIGN.md system
   Cobalt Blue + Amber Gold + Plus Jakarta Sans + EB Garamond
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* ---------- Design Tokens ---------- */
:root {
  --primary: #002771;
  --primary-container: #0b3c9b;
  --primary-soft: #e6eeff;
  --primary-tint: #eff4ff;
  --on-primary: #ffffff;

  --secondary: #855300;
  --secondary-container: #fea619;
  --secondary-soft: #ffddb8;
  --secondary-bright: #f59e0b;
  --on-secondary: #ffffff;

  --tertiary: #03286e;

  --surface: #f8f9ff;
  --surface-container: #e6eeff;
  --surface-container-low: #eff4ff;
  --surface-container-lowest: #ffffff;
  --surface-container-high: #dde9ff;

  --on-surface: #0d1c2f;
  --on-surface-variant: #434652;
  --outline: #747684;
  --outline-variant: #c4c6d4;

  --error: #ba1a1a;
  --error-soft: #ffdad6;

  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --shadow-sm: 0 4px 20px -2px rgba(7, 43, 112, 0.05);
  --shadow-md: 0 10px 25px -4px rgba(7, 43, 112, 0.08);
  --shadow-lg: 0 20px 35px -8px rgba(7, 43, 112, 0.16);

  --font-body:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-scripture: "EB Garamond", "Georgia", serif;
}

/* ---------- Global Overflow Fix ---------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.25s ease;
}
a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--on-surface-variant);
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary-container);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(11, 60, 155, 0.28),
    0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
  background: var(--secondary-container);
  color: var(--primary);
  font-weight: 700;
}
.btn-secondary:hover {
  background: var(--secondary-bright);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.32);
}

.btn-success {
  background: #27ae60;
  color: #fff;
}
.btn-success:hover {
  background: #229954;
  color: #fff;
}

.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover {
  background: #93000a;
  color: #fff;
}

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

.btn-large {
  padding: 16px 36px;
  font-size: 1.02rem;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}
.btn-block {
  display: block;
  width: 100%;
}
.btn i {
  margin-right: 8px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(7, 43, 112, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-container);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 14px;
  min-width: 0;
}

/* Logo */
.logo {
  flex-shrink: 0;
  max-width: 220px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.logo-text h1 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-text p {
  font-size: 0.62rem;
  color: var(--secondary);
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li a {
  display: block;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-surface);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.nav-links li a:hover {
  color: var(--primary-container);
  background: var(--surface-container-low);
}
.nav-links li a.active {
  color: #fff;
  background: var(--primary-container);
}
.nav-links li a.active:hover {
  background: var(--primary);
}

/* Desktop Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.auth-buttons .btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.auth-buttons .btn i {
  margin-right: 5px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  background: var(--surface-container-low);
  color: var(--primary-container);
}

.auth-mobile {
  display: none;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-container) 55%,
    var(--secondary-bright) 140%
  );
  color: #fff;
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(254, 166, 25, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 24px;
  opacity: 0.95;
}

.hero-message {
  font-size: 1.15rem;
  margin-bottom: 34px;
  opacity: 0.95;
  font-family: var(--font-scripture);
  font-style: italic;
  letter-spacing: 0.005em;
}

.hero-message .highlight {
  font-weight: 700;
  color: var(--secondary-container);
  font-style: normal;
  font-family: var(--font-body);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
  background: var(--secondary-container);
  color: var(--primary);
}
.hero-buttons .btn-secondary:hover {
  background: var(--secondary-bright);
}

/* ---------- How It Works (Steps) ---------- */
.how-it-works {
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.step-card {
  text-align: center;
  padding: 32px 20px 26px;
  border-radius: var(--radius-xl);
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container-high);
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-soft);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary-container);
  color: #fff;
  border-radius: 50%;
  line-height: 32px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(11, 60, 155, 0.3);
}

.step-icon {
  font-size: 2rem;
  color: var(--primary-container);
  margin: 12px 0;
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}
.step-card p {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  margin: 0;
}

/* ---------- Content Blocks ---------- */
.content-block {
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.content-block h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.content-block p,
.content-block li {
  color: var(--on-surface-variant);
  line-height: 1.8;
}

.content-block ul {
  padding-left: 20px;
  margin: 15px 0;
}

.content-block ul li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.content-block ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-bright);
  font-weight: bold;
}

/* ---------- Quote Block (About page fix) ---------- */
.quote-block,
.content-block > div[style*="linear-gradient(135deg, #2c3e50"] {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-container) 100%
  ) !important;
  padding: 40px !important;
  border-radius: var(--radius-2xl) !important;
  text-align: center !important;
  color: #fff !important;
  box-shadow: var(--shadow-md) !important;
}

.quote-block p,
.content-block > div[style*="linear-gradient(135deg, #2c3e50"] p {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.quote-block .quote-text,
.content-block > div[style*="linear-gradient(135deg, #2c3e50"] p:first-of-type {
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
}

.quote-block .quote-author,
.content-block > div[style*="linear-gradient(135deg, #2c3e50"] p:last-of-type {
  color: var(--secondary-container) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  margin-top: 18px;
}

/* Fallback: any paragraph inside the gradient quote with -- MINISTER A STAR -- style */
.quote-verse {
  color: #fff !important;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto !important;
}

.quote-source {
  color: var(--secondary-container) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  margin-top: 18px !important;
}

/* ---------- GTP Roles Grid ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.role-card {
  background: var(--surface-container-lowest);
  padding: 26px 20px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  cursor: pointer;
  border-top: 3px solid var(--primary-container);
  position: relative;
  border-left: 1px solid var(--surface-container-high);
  border-right: 1px solid var(--surface-container-high);
  border-bottom: 1px solid var(--surface-container-high);
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--secondary-container);
}

.role-icon {
  font-size: 2rem;
  color: var(--primary-container);
  margin-bottom: 12px;
  display: block;
}

.role-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.role-card .role-number {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--outline);
}

.role-card .role-preview {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  margin-bottom: 10px;
  min-height: 40px;
}

.role-card .role-hint {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 28, 47, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 42px 38px;
  position: relative;
  animation: slideUp 0.35s ease;
  border-top: 4px solid var(--secondary-container);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--outline);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: var(--error);
  background: var(--error-soft);
}

.modal-icon {
  font-size: 3rem;
  color: var(--primary-container);
  text-align: center;
  display: block;
  margin-bottom: 20px;
}

.modal h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 22px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.modal-section {
  margin-bottom: 22px;
}

.modal-section h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-section h4 i {
  margin-right: 8px;
  color: var(--secondary-bright);
}

.modal-section p {
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.modal-section .verse {
  background: var(--surface-container-low);
  padding: 16px 20px;
  border-left: 4px solid var(--secondary-container);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.6;
}

.modal-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-container-high);
}

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

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

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-container) 100%
  );
  padding: 72px 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(254, 166, 25, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
}
.cta-content p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  opacity: 0.92;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--secondary-container);
  color: var(--primary);
}
.cta-buttons .btn-primary:hover {
  background: var(--secondary-bright);
  color: var(--primary);
}

.cta-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---------- Book Promo (Homepage) ---------- */
.book-promo {
  background: #fff;
  padding: 72px 0;
}

.book-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.book-promo-image {
  text-align: center;
}

.book-promo-image img {
  max-width: 280px;
  border-radius: var(--radius-2xl);
  box-shadow:
    0 20px 50px rgba(7, 43, 112, 0.22),
    -8px 12px 28px -4px rgba(245, 158, 11, 0.15);
}

.book-promo-info h2 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.book-promo-info h3 {
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.book-promo-info p {
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-bottom: 15px;
}

.book-promo-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.book-promo-features li {
  padding: 7px 0;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.book-promo-features li i {
  color: var(--secondary-bright);
}

.book-promo-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* ---------- Self-Check Forms ---------- */
.assessment-section {
  padding: 40px 0 60px;
  background: #fff;
}

.intro-box {
  background: var(--surface-container-low);
  padding: 30px;
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--primary-container);
  max-width: 700px;
  margin: 0 auto 30px;
}

.intro-box p {
  color: var(--on-surface-variant);
  margin-bottom: 10px;
}

.intro-box ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.intro-box ul li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface-variant);
}

.intro-box ul li i {
  color: var(--secondary-bright);
  width: 20px;
}

.assessment-form {
  max-width: 750px;
  margin: 0 auto;
}

.question-group {
  background: var(--surface-container-lowest);
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
  border: 1.5px solid var(--surface-container-high);
  transition: all 0.25s ease;
  scroll-margin-top: 100px;
}

.question-group:hover,
.question-group.focused {
  border-color: var(--primary-container);
  box-shadow: 0 4px 16px rgba(11, 60, 155, 0.1);
}

.question-group.answered {
  border-color: var(--secondary-container);
  background: linear-gradient(to right, #fffdf8 0%, #ffffff 100%);
}

.question-number {
  font-weight: 800;
  color: var(--secondary-bright);
  margin-right: 4px;
}

.question-text {
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 1.02rem;
  line-height: 1.55;
}

.response-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.response-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  border: 1.5px solid var(--outline-variant);
  background: #fff;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.response-options label:hover {
  background: var(--surface-container-low);
  border-color: var(--primary-container);
  color: var(--primary);
}

.response-options input[type="radio"] {
  accent-color: var(--primary-container);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.response-options input[type="radio"]:checked + span,
.response-options label:has(input[type="radio"]:checked) {
  background: var(--primary-container);
  color: #fff;
  border-color: var(--primary-container);
}

.response-options label:has(input[type="radio"]:checked) {
  box-shadow: 0 4px 12px rgba(11, 60, 155, 0.25);
}

.form-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.form-actions .btn {
  min-width: 200px;
}

/* ---------- Results ---------- */
.results-section {
  padding: 40px 0 60px;
  background: var(--surface);
}

.results-summary {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.score-display {
  margin-bottom: 20px;
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary-container) var(--score, 0%),
    var(--surface-container-high) var(--score, 0%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  position: relative;
}

.score-circle::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  background: #fff;
  border-radius: 50%;
}

.score-circle span {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.score-level {
  font-size: 1.4rem;
  margin: 10px 0;
  font-weight: 700;
}
.score-level.excellent {
  color: #27ae60;
}
.score-level.good {
  color: var(--primary-container);
}
.score-level.developing {
  color: var(--secondary-bright);
}
.score-level.needs-prayer {
  color: var(--error);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.result-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-container);
}

.result-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.05rem;
  font-weight: 700;
}

.result-card h3 i {
  margin-right: 8px;
  color: var(--secondary-bright);
}

.result-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.result-card ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--surface-container-high);
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}
.result-card ul li:last-child {
  border-bottom: none;
}

.result-card.strengths {
  border-top-color: #27ae60;
}
.result-card.prayer {
  border-top-color: var(--secondary-bright);
}
.result-card.devotionals {
  border-top-color: #9b59b6;
}
.result-card.next-steps {
  border-top-color: #1abc9c;
}

.results-actions {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

.results-actions h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* ---------- Auth Pages ---------- */
body.auth-page {
  background: var(--surface);
  min-height: 100vh;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT: Brand Panel */
.auth-brand {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-container) 100%
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(254, 166, 25, 0.18) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
}

.auth-brand-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-bottom: 25px;
  background: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.auth-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 25px;
}

.auth-brand-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.auth-brand-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-brand-features li:last-child {
  border-bottom: none;
}

.auth-brand-features li i {
  color: var(--secondary-container);
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-brand-verse {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.95;
}

.auth-brand-verse i {
  opacity: 0.5;
  margin-right: 8px;
}

/* RIGHT: Form Panel */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  background: #fff;
  overflow-y: auto;
}

.auth-form-inner {
  width: 100%;
  max-width: 460px;
}

.auth-form-header {
  margin-bottom: 30px;
  text-align: center;
}

.auth-form-header h1 {
  color: var(--primary);
  font-size: 1.7rem;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-form-header p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

.auth-form-header a {
  color: var(--primary-container);
  font-weight: 700;
}

.auth-form-header a:hover {
  text-decoration: underline;
  color: var(--secondary);
}

/* Form rows */
.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.auth-form label .optional {
  color: var(--outline);
  font-weight: 400;
  font-size: 0.85rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--surface-container-lowest);
  color: var(--on-surface);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--primary-container);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(254, 166, 25, 0.18);
}

.auth-form small {
  display: block;
  margin-top: 5px;
  color: var(--outline);
  font-size: 0.8rem;
}

.auth-form small i {
  color: var(--primary-container);
  margin-right: 4px;
}

.auth-form .btn-block {
  margin-top: 10px;
}

.auth-terms {
  text-align: center;
  font-size: 0.8rem;
  color: var(--outline);
  margin-top: 20px;
  line-height: 1.6;
}

.auth-terms a {
  color: var(--primary-container);
  font-weight: 500;
}

.auth-back {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-container-high);
}

.auth-back a {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-back a:hover {
  color: var(--primary-container);
}

/* Remember Me */
.auth-form .remember-row {
  margin-bottom: 22px;
  margin-top: 4px;
}

.auth-form .remember-label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  padding: 6px 0;
  user-select: none;
}

.auth-form .remember-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-container);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-error {
  background: var(--error-soft);
  border-left: 4px solid var(--error);
  color: #93000a;
}
.alert-success {
  background: #d4edda;
  border-left: 4px solid #27ae60;
  color: #155724;
}
.alert-info {
  background: var(--surface-container);
  border-left: 4px solid var(--primary-container);
  color: var(--primary);
}
.alert-warning {
  background: var(--secondary-soft);
  border-left: 4px solid var(--secondary-bright);
  color: #653e00;
}

/* ---------- Dashboard ---------- */
.dashboard-section {
  padding: 40px 0 60px;
  background: var(--surface);
}

.dashboard-header {
  margin-bottom: 30px;
}
.dashboard-header h1 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dashboard-header p {
  color: var(--on-surface-variant);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.25s ease;
  border-left: 3px solid var(--secondary-container);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card i {
  font-size: 2rem;
  color: var(--primary-container);
  width: 50px;
  text-align: center;
}
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.dashboard-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary-container);
}

.dashboard-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.05rem;
  font-weight: 700;
}

.dashboard-card h3 i {
  margin-right: 8px;
  color: var(--secondary-bright);
}

.quick-links li {
  padding: 7px 0;
}
.quick-links li a {
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}
.quick-links li a:hover {
  color: var(--primary-container);
}
.quick-links li a i {
  width: 20px;
  color: var(--primary-container);
}

/* ---------- Programmes ---------- */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.programme-card {
  background: var(--surface-container-lowest);
  padding: 32px 26px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  border-bottom: 3px solid transparent;
  border-top: 1px solid var(--surface-container-high);
  border-left: 1px solid var(--surface-container-high);
  border-right: 1px solid var(--surface-container-high);
}

.programme-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--secondary-container);
}

.programme-icon {
  font-size: 2.4rem;
  color: var(--primary-container);
  margin-bottom: 15px;
}
.programme-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}
.programme-card p {
  color: var(--on-surface-variant);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.7;
}

/* ---------- Events ---------- */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  gap: 25px;
  background: var(--surface-container-lowest);
  padding: 26px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-container);
  transition: all 0.25s ease;
}

.event-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.event-date {
  text-align: center;
  min-width: 72px;
  padding: 12px 10px;
  background: var(--primary-container);
  color: #fff;
  border-radius: var(--radius);
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(11, 60, 155, 0.25);
}

.event-month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.event-day {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.15;
}

.event-info {
  flex: 1;
}
.event-info h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}
.event-description {
  color: var(--on-surface-variant);
  margin-bottom: 12px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.event-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  font-size: 0.88rem;
  color: var(--on-surface-variant);
}

.event-meta i {
  margin-right: 5px;
  color: var(--secondary-bright);
}

/* ---------- Author Profile ---------- */
.author-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.author-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(7, 43, 112, 0.15);
}

.author-info h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.author-title {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
}
.author-bio {
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-bottom: 25px;
}

.author-credentials,
.author-mission,
.author-connect {
  margin: 20px 0;
}

.author-credentials h3,
.author-mission h3,
.author-connect h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.author-credentials ul {
  list-style: none;
  padding: 0;
}
.author-credentials ul li {
  padding: 6px 0;
  color: var(--on-surface-variant);
}
.author-credentials ul li i {
  color: var(--secondary-bright);
  margin-right: 10px;
}

.author-mission {
  background: var(--surface-container-low);
  padding: 22px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--secondary-container);
}

.author-mission p {
  font-size: 1.05rem;
  color: var(--primary);
  font-family: var(--font-scripture);
  font-style: italic;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--primary-container);
  color: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
  font-size: 1.05rem;
}

.social-link:hover {
  background: var(--secondary-container);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(254, 166, 25, 0.3);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.contact-info > p {
  color: var(--on-surface-variant);
  margin-bottom: 30px;
}
.contact-details {
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-container);
  width: 26px;
  margin-top: 3px;
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 3px;
  font-weight: 700;
}
.contact-item p,
.contact-item a {
  color: var(--on-surface-variant);
}
.contact-item a:hover {
  color: var(--primary-container);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 22px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--secondary-container),
    var(--secondary-bright),
    var(--secondary-container)
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}

.footer-about h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}
.footer-about p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.footer-about strong {
  color: var(--secondary-container);
}

.footer-links h4 {
  margin-bottom: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-links ul li {
  margin-bottom: 9px;
}
.footer-links ul li a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease;
  font-size: 0.92rem;
}
.footer-links ul li a:hover {
  color: var(--secondary-container);
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 15px;
  font-size: 0.92rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 11px 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary-container);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(254, 166, 25, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-core-message {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-family: var(--font-scripture);
}

/* ---------- Empty & No Results ---------- */
.no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--on-surface-variant);
  font-size: 1.05rem;
}

/* ---------- Scroll to Top ---------- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-container);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(11, 60, 155, 0.3);
  transition: all 0.25s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.scroll-to-top:hover {
  background: var(--secondary-container);
  color: var(--primary);
  transform: translateY(-3px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .nav-links li a {
    padding: 8px 9px;
    font-size: 0.76rem;
  }
  .logo-text h1 {
    font-size: 1rem;
  }
  .site-logo {
    height: 40px;
  }
}

@media (max-width: 992px) {
  .logo-text p {
    display: none;
  }
  .nav-links li a {
    padding: 8px 9px;
    font-size: 0.74rem;
  }
  .auth-buttons .btn {
    padding: 6px 11px;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  .hero h2 {
    font-size: 1.35rem;
  }
  .book-promo-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile: hamburger menu */
@media (max-width: 820px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(7, 43, 112, 0.15);
    border-top: 3px solid var(--primary-container);
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
    border-radius: var(--radius);
  }

  .nav-links li a.active {
    background: var(--primary-container);
    color: #fff;
  }

  .auth-buttons {
    display: none;
  }

  .auth-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid var(--surface-container-high);
  }

  .auth-mobile .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-mobile .btn i {
    margin-right: 8px;
  }

  .hero {
    padding: 55px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .response-options {
    flex-direction: column;
    gap: 8px;
  }
  .response-options label {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .author-profile {
    grid-template-columns: 1fr;
  }
  .author-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .event-date {
    min-width: unset;
    width: 80px;
  }
  .event-meta {
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }

  .book-promo-actions {
    flex-direction: column;
  }
  .book-promo-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Auth wrapper stacks */
  .auth-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-brand {
    padding: 45px 25px;
  }
  .auth-brand h2 {
    font-size: 1.5rem;
  }
  .auth-brand-logo {
    height: 55px;
  }
  .auth-form-panel {
    padding: 40px 25px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 8px 0;
    gap: 8px;
  }
  .logo a {
    gap: 8px;
  }
  .site-logo {
    height: 34px;
  }
  .logo-text h1 {
    font-size: 0.85rem;
  }
  .mobile-menu-btn {
    font-size: 1.25rem;
    padding: 6px 8px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }
  .hero h2 {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .step-card {
    padding: 22px 12px;
  }
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 25px 20px;
  }
  .score-circle {
    width: 130px;
    height: 130px;
  }
  .score-circle::after {
    width: 104px;
    height: 104px;
  }
  .score-circle span {
    font-size: 2rem;
  }

  .auth-form .form-row {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 32px 20px;
  }
  .auth-brand h2 {
    font-size: 1.3rem;
  }
  .auth-brand-features {
    margin: 20px 0;
  }
  .auth-brand-features li {
    font-size: 0.88rem;
    padding: 8px 0;
  }
  .auth-form-panel {
    padding: 30px 20px;
  }
  .auth-form-header h1 {
    font-size: 1.4rem;
  }
}

/* ---------- Print ---------- */
@media print {
  .header,
  .footer,
  .hero-buttons,
  .cta-section,
  .scroll-to-top {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
}

/* ============================================================
   NAV DROPDOWN + POLISH (Appended)
   ============================================================ */

/* ---------- Nav dropdown parent ---------- */
.nav-links li.has-dropdown {
  position: relative;
}

.nav-links li.has-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-links li.has-dropdown .dropdown-toggle i {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-links li.has-dropdown.open .dropdown-toggle i,
.nav-links li.has-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
  opacity: 1;
}

/* ---------- Dropdown menu ---------- */
.nav-links .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 40px -8px rgba(7, 43, 112, 0.18),
    0 0 0 1px rgba(11, 60, 155, 0.08);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1100;
}

/* Small arrow/caret pointing up */
.nav-links .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  box-shadow: -2px -2px 4px rgba(7, 43, 112, 0.06);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 821px) {
  .nav-links li.has-dropdown:hover .dropdown-menu,
  .nav-links li.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* Dropdown items */
.nav-links .dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-links .dropdown-menu li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--on-surface);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    background 0.18s ease,
    color 0.18s ease;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

.nav-links .dropdown-menu li a i {
  font-size: 0.95rem;
  color: var(--primary-container);
  width: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  transition: color 0.18s ease;
}

.nav-links .dropdown-menu li a span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-links .dropdown-menu li a strong {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.nav-links .dropdown-menu li a small {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  font-weight: 400;
  line-height: 1.4;
}

.nav-links .dropdown-menu li a:hover {
  background: var(--surface-container-low);
}

.nav-links .dropdown-menu li a:hover i {
  color: var(--secondary-bright);
}

.nav-links .dropdown-menu li a.active {
  background: var(--primary-container);
}

.nav-links .dropdown-menu li a.active strong,
.nav-links .dropdown-menu li a.active small {
  color: #ffffff;
}

.nav-links .dropdown-menu li a.active i {
  color: var(--secondary-container);
}

/* Active parent highlight — the "Connect" link itself */
.nav-links li.has-dropdown.active-parent .dropdown-toggle {
  color: var(--primary-container);
  background: var(--surface-container-low);
}

/* ---------- Global nav polish ---------- */

/* Reduce overall nav weight; more air between items */
.nav-links li a {
  font-weight: 500;
  letter-spacing: 0.005em;
}

.nav-links {
  gap: 4px;
}

/* Subtle underline animation on hover (replaces background-box feel) */
@media (min-width: 821px) {
  .nav-links > li > a:not(.dropdown-toggle) {
    position: relative;
    background: transparent !important;
    transition: color 0.2s ease;
  }

  .nav-links > li > a:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--secondary-container);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
  }

  .nav-links > li > a:not(.dropdown-toggle):hover::after {
    transform: scaleX(1);
  }

  /* Active items still keep the cobalt fill */
  .nav-links > li > a:not(.dropdown-toggle).active {
    background: var(--primary-container) !important;
    color: #ffffff;
  }

  .nav-links > li > a:not(.dropdown-toggle).active::after {
    display: none;
  }

  /* Same treatment for the Connect toggle */
  .nav-links li.has-dropdown .dropdown-toggle {
    background: transparent;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .nav-links li.has-dropdown.active-parent .dropdown-toggle {
    background: var(--primary-container);
    color: #ffffff;
  }

  .nav-links li.has-dropdown.active-parent .dropdown-toggle i {
    color: var(--secondary-container);
  }
}

/* ---------- Mobile adjustments for dropdown ---------- */
@media (max-width: 820px) {
  .nav-links li.has-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links li.has-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 13px 16px;
    font-size: 0.95rem;
  }

  .nav-links li.has-dropdown .dropdown-toggle i {
    font-size: 0.75rem;
  }

  .nav-links .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    padding: 4px 0 4px 12px;
    margin: 0;
    min-width: 0;
    background: transparent;
    border-left: 2px solid var(--surface-container-high);
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
    display: none;
  }

  .nav-links .dropdown-menu::before {
    display: none;
  }

  .nav-links li.has-dropdown.open .dropdown-menu {
    display: block;
    max-height: 500px;
    padding: 6px 0 6px 12px;
  }

  .nav-links .dropdown-menu li a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .nav-links .dropdown-menu li a small {
    display: none;
  }

  .nav-links .dropdown-menu li a strong {
    font-size: 0.9rem;
  }
}

/* ---------- Small global polish ---------- */

/* Slightly tighter header height */
.header-inner {
  padding: 12px 0;
}

/* Divider between logo and nav (subtle) */
@media (min-width: 821px) {
  .nav-menu {
    position: relative;
  }

  .nav-menu::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(
      to bottom,
      transparent,
      var(--surface-container-high) 30%,
      var(--surface-container-high) 70%,
      transparent
    );
  }
}

/* Smoother button hover transitions */
.btn {
  will-change: transform, box-shadow;
}

/* ---------- Footer polish ---------- */
.footer-about p {
  line-height: 1.65;
}

.footer-core-message {
  letter-spacing: 0.02em;
}

/* ============================================================
   NAV ACTIVE STATE OVERRIDE — underline only, no fill
   ============================================================ */

/* Remove the cobalt background fill for active items on desktop */
@media (min-width: 821px) {
  .nav-links > li > a:not(.dropdown-toggle).active {
    background: transparent !important;
    color: var(--primary-container) !important;
    font-weight: 600;
  }

  /* Show the amber underline permanently on the active item */
  .nav-links > li > a:not(.dropdown-toggle).active::after {
    display: block !important;
    transform: scaleX(1) !important;
    background: var(--secondary-container);
  }

  /* Hover on an active item — keep the underline visible */
  .nav-links > li > a:not(.dropdown-toggle).active:hover::after {
    transform: scaleX(1) !important;
  }

  /* Dropdown parent (Connect) — same treatment */
  .nav-links li.has-dropdown.active-parent .dropdown-toggle {
    background: transparent !important;
    color: var(--primary-container) !important;
    font-weight: 600;
  }

  .nav-links li.has-dropdown.active-parent .dropdown-toggle i {
    color: var(--secondary-bright) !important;
  }

  /* Optional: subtle underline under Connect when it's the active parent */
  .nav-links li.has-dropdown.active-parent .dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--secondary-container);
    border-radius: 2px;
  }

  /* Ensure Connect toggle is positioned for the ::after underline */
  .nav-links li.has-dropdown .dropdown-toggle {
    position: relative;
  }
}

/* Keep mobile active state as cobalt fill (it works well there) */
@media (max-width: 820px) {
  .nav-links > li > a:not(.dropdown-toggle).active {
    background: var(--primary-container) !important;
    color: #ffffff !important;
  }
}
