/* CSS Custom Properties - Design System */
:root {
  /* Colors */
  --color-primary: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-secondary: #3b82f6;
  --color-background: #0f0f23;
  --color-surface: rgba(30, 41, 59, 0.8);
  --color-text: white;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.1);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
  --transition-all: all var(--transition-normal);
  --transition-all-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform var(--transition-normal);
  --transition-opacity: opacity var(--transition-slow);
  --transition-left: left 0.5s ease;
  --transition-width: width var(--transition-normal);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Layout */
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 70px;
  --header-height: 65px;
  --mobile-footer-height: 110px;

  /* Z-Index */
  --z-dropdown: 1000;
  --z-modal: 1050;
  --z-tooltip: 1100;
  --z-header: 100;
  --z-sidebar: 50;
}

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   LOGIN PAGE CONTENT-READY STATES
   Hide login content until all resources loaded
   ======================================== */
body:not(.content-ready) #loginPage.active .login-container {
  opacity: 0;
  visibility: hidden;
}

body.content-ready #loginPage.active .login-container {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: var(--font-family);
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  html {
    height: 100%;
    overflow-x: hidden;
  }

  /* Restructure body as flex column to prevent footer scroll */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  /* Hide header on mobile to reduce vertical scroll */
  .header {
    display: none;
  }

  /* Main content grows to fill space with proper bottom padding for footer */
  .main-content {
    flex: 1 0 auto;
    padding-bottom: calc(45px + env(safe-area-inset-bottom, 16px));
    margin-top: 65px;
  }

  /* Footer stays at bottom, not fixed */
  .modern-footer {
    position: static;
    left: 0;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
  }

  /* Remove artificial padding from page containers but add bottom space for footer */
  .login-container,
  .signup-container,
  .profile-container {
    min-height: auto;
    max-height: none;
    padding-bottom: calc(45px + env(safe-area-inset-bottom, 16px));
  }

  /* Apply to all pages */
  #homePage,
  #aqAssessmentPage,
  #myProfilePage,
  #aqResultsPage,
  #loginPage,
  #signupPage,
  #peakLearningPage {
    min-height: auto;
    height: auto;
  }

  /* Fix home page hero section - more space without header */
  .home-hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding-top: 80px;
  }
}

/* Hide AQ Profile icon and text on login and signup pages */
body:has(#loginPage.active) .header-left,
body:has(#signupPage.active) .header-left {
  display: none !important;
}

/* Keep user profile on the right side when header-left is hidden */
body:has(#loginPage.active) .header,
body:has(#signupPage.active) .header {
  justify-content: flex-end !important;
}

/* Video Background with Progressive Enhancement */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.7;
  /* Background image loads first as fallback */
  background: url('assets/peak-cb-12.jpg') center center / cover no-repeat;
  background-color: #0f0f23;
  /* Ultimate fallback color */
}

/* Mobile Fallback Background Image */
.mobile-background-image {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/peak-cb-12.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 0.7;
}

/* Overlay for better content readability */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.5) 0%, rgb(33, 95, 176, 0.3) 50%, rgba(22, 33, 62, 0.5) 100%);
  z-index: -1;
  pointer-events: none;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.8), rgba(26, 26, 46, 0.8));
  border-radius: 6px;
  border: 1px solid rgba(30, 144, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e90ff, #4169e1, #6495ed);
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 10px rgba(30, 144, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4169e1, #6495ed, #87ceeb);
  box-shadow:
    0 0 15px rgba(30, 144, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-corner {
  background: rgba(15, 15, 35, 0.8);
}

/* Background patterns for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(30, 144, 255, 0.1) 0%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Mobile Top Navigation - Hidden by default, shown on mobile */
.mobile-top-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.98) 0%, rgba(27, 38, 59, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-logo {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  height: 45px;
  width: auto;
}

.mobile-nav-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.mobile-nav-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding: 0 15px 0 130px;
  gap: 5px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 55px;
  position: relative;
}

.mobile-nav-item:hover {
  background: rgba(30, 144, 255, 0.1);
}

.mobile-nav-item.active {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.2) 0%, rgba(65, 105, 225, 0.2) 100%);
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #1e90ff 0%, #4169e1 100%);
  border-radius: 2px 2px 0 0;
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* AQ logo needs more width to prevent scrunching */
.mobile-nav-item[data-page="assessment"] .mobile-nav-icon img {
  width: auto;
  max-width: 35px;
  height: 20px;
  object-fit: contain;
}

/* Mobile profile avatar - round for profile photos only when it's a real photo */
#mobileProfileAvatar .profile-photo {
  border-radius: 50%;
  object-fit: cover;
  filter: none !important;
}

.mobile-nav-text {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-item.active .mobile-nav-icon {
  color: #1e90ff;
}

.mobile-nav-item.active .mobile-nav-icon img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.mobile-nav-item.active .mobile-nav-text {
  color: #1e90ff;
}

/* Mobile User Profile with Dropdown */
.mobile-user-profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-user-profile:hover {
  background: rgba(30, 144, 255, 0.1);
}

.mobile-profile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
}

.mobile-user-avatar img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.mobile-user-avatar img.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  border-radius: 50%;
}

/* Mobile Profile Dropdown */
.mobile-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(30, 144, 255, 0.3);
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(30, 144, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  pointer-events: none;
}

.mobile-profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Reuse dropdown item styles for mobile */
.mobile-profile-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.mobile-profile-dropdown .dropdown-item:hover {
  background: rgba(30, 144, 255, 0.15);
}

.mobile-profile-dropdown .dropdown-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-profile-dropdown .dropdown-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.mobile-profile-dropdown .dropdown-text {
  flex: 1;
}

.mobile-profile-dropdown .dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Mobile submenu styling */
.mobile-profile-dropdown .has-submenu {
  position: relative;
}

.mobile-profile-dropdown .submenu-arrow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.mobile-profile-dropdown .has-submenu.expanded .submenu-arrow {
  transform: rotate(90deg);
}

.mobile-profile-dropdown .dropdown-submenu {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin: 4px 8px;
  overflow: hidden;
}

.mobile-profile-dropdown .has-submenu.expanded .dropdown-submenu {
  display: block;
}

.mobile-profile-dropdown .submenu-item {
  padding-left: 24px;
  font-size: 13px;
}

/* Layout */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background: transparent;
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(30, 144, 255, 0.2);
  padding: 25px 0 0 0;
  z-index: 1000;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    4px 0 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.main-content {
  margin-left: 220px;
  padding: 0 0 140px 0;
  min-height: 100vh;
  background: transparent;
}

/* Optional text styling */
.optional-text {
  font-size: 0.65em;
  font-weight: 300;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Sidebar Styling */
.logo {
  display: flex;
  align-items: center;
  padding: 35px 25px 25px 25px;
  margin-bottom: 0;
  position: relative;
  background: none;
  border-radius: 0;
  pointer-events: none;
  cursor: default;
}

/* Sidebar divider between logo and auth section */
.sidebar-divider {
  height: 1px;
  background: rgba(30, 144, 255, 0.3);
  margin: 0 25px 20px 25px;
  position: relative;
}

.sidebar-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1e90ff, transparent);
  border-radius: 1px;
}

/* Sidebar auth section styling */
.sidebar-auth-section {
  padding: 0 15px 20px 15px;
  margin-bottom: 15px;
}

.logo-icon {
  width: 100px;
  height: 130px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto;
  box-shadow: none;
}

.logo-icon img {
  height: 100%;
  object-fit: contain;
  padding: 8px 8px 13px 13px;
}


.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 15px 20px 15px;
  flex: 1;
}

/* Bottom navigation section - positioned at bottom of sidebar */
.sidebar-bottom-nav {
  margin-top: auto;
  padding: 0 15px 50px 15px;
}

.sidebar-bottom-nav .nav-item {
  margin-bottom: 8px;
}

.sidebar-bottom-nav .nav-item:last-child {
  margin-bottom: 0;
}

/* Hide authenticated nav items by default - will be shown by updateAuthUI when logged in */
.nav-item.auth-required {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin: 0 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: white;
  transform: translateX(6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow:
    0 8px 25px rgba(59, 130, 246, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
  color: white;
  transform: translateX(6px);
  box-shadow:
    0 12px 40px rgba(59, 130, 246, 0.6),
    0 4px 12px rgba(30, 58, 138, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.nav-icon {
  margin-right: 15px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  transition: transform 0.3s ease;
  color: white;
}

.nav-icon img {
  width: 25px;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Hamburger Menu Styling */
.hamburger-menu {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(65, 105, 225, 0.3));
  border-radius: 8px;
  border: 1px solid rgba(30, 144, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.2);
}

.hamburger-menu:hover {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.3), rgba(65, 105, 225, 0.4));
  border-color: rgba(30, 144, 255, 0.5);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.3);
  transform: scale(1.05);
}

.hamburger-line {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: absolute;
}

/* Default state: Hamburger menu (3 horizontal lines) */
.hamburger-line:nth-child(1) {
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(2) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(3) {
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hamburger-menu:hover .hamburger-line {
  background: white;
}

/* Plus Sign Animation - When collapsed, show plus sign */
.sidebar.collapsed .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.sidebar.collapsed .hamburger-line:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
}

.sidebar.collapsed .hamburger-line:nth-child(3) {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* Collapsed Sidebar State - Match Mobile Media Query Exactly */
.sidebar.collapsed {
  width: 70px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text {
  display: none;
}

.sidebar.collapsed .logo {
  justify-content: center;
  padding: 50px 10px 20px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  cursor: default;
  margin: 0 5px 35px 5px;
}

.sidebar.collapsed .logo-icon {
  width: 77px;
  height: 60px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0 12px;
}

.sidebar.collapsed .logo-icon img {
  padding: 8px 4px;
}

/* Reduce logo size by 20% when collapsed on screens above 780px */
@media (min-width: 781px) {
  .sidebar.collapsed .logo-icon {
    width: 62px;
    height: 48px;
  }
}

/* Collapsed sidebar divider and auth section */
.sidebar.collapsed .sidebar-divider {
  margin: 0 10px 15px 10px;
}

.sidebar.collapsed .sidebar-auth-section {
  padding: 0 10px 15px 10px;
  margin-bottom: 10px;
}

.sidebar.collapsed .nav-menu {
  padding: 0 10px;
}

.sidebar.collapsed .sidebar-bottom-nav {
  padding: 0 10px 20px 10px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 16px 12px;
  margin: 2px 2px;
}

.sidebar.collapsed .nav-icon {
  margin-right: 0;
}

/* Main Content Adjustment for Collapsed State */
.main-content.sidebar-collapsed {
  margin-left: 70px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer Adjustment for Collapsed State */
.modern-footer.sidebar-collapsed {
  left: 70px;
  width: calc(100%);
  transition: left 0.3s ease, width 0.3s ease;
}

/* Page Content Adjustment for Collapsed State - Consolidated */
.page-content.sidebar-collapsed,
#homePage.sidebar-collapsed,
#aqAssessmentPage.sidebar-collapsed,
#myProfilePage.sidebar-collapsed,
#aqResultsPage.sidebar-collapsed,
#loginPage.sidebar-collapsed,
#signupPage.sidebar-collapsed {
  left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
  transition: left var(--transition-normal), width var(--transition-normal);
}

/* Special width rules for specific pages */
#homePage.sidebar-collapsed,
#aqAssessmentPage.sidebar-collapsed,
#myProfilePage.sidebar-collapsed,
#aqResultsPage.sidebar-collapsed,
#loginPage.sidebar-collapsed,
#signupPage.sidebar-collapsed {
  width: calc(100%);
  left: 0;
}

/* Enhanced Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 50px;
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.aq-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  box-shadow:
    0 12px 35px rgba(30, 144, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.aq-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.aq-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 4s infinite;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  text-shadow: 0 2px 15px rgba(30, 144, 255, 0.3);
}

.user-profile {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(65, 105, 225, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(65, 105, 225, 0.15));
  border-color: rgba(30, 144, 255, 0.3);
}

/* Auth wrapper divs inside user-profile should inherit flex layout */
.user-profile .auth-ready,
.user-profile .auth-loading {
  display: flex;
  align-items: center;
  gap: 0;
}

.user-name {
  margin-right: 15px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.user-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  box-shadow:
    0 6px 20px rgba(30, 144, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.user-profile:hover .user-avatar {
  transform: scale(1.05);
}

/* Profile Dropdown - Click-based with proper positioning below trigger */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(30, 144, 255, 0.3);
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(30, 144, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  pointer-events: none;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(30, 144, 255, 0.15), rgba(65, 105, 225, 0.1));
  color: white;
  transform: translateX(4px);
}

.dropdown-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: white;
}

.dropdown-icon img {
  width: auto !important;
  height: 20px;
  object-fit: contain;
}

.profile-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* Sidebar profile avatar - ensure circular shape for profile photos */
#sidebarProfileAvatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  overflow: hidden;
}

#sidebarProfileAvatar img {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  object-fit: cover;
  border-radius: 50%;
}

/* Remove whitening filter for actual profile pictures (URLs with http, cloudfront, s3) */
#sidebarProfileAvatar img[src*="http"],
#sidebarProfileAvatar img[src*="cloudfront"],
#sidebarProfileAvatar img[src*="s3.amazonaws"],
#mobileProfileAvatar img[src*="http"],
#mobileProfileAvatar img[src*="cloudfront"],
#mobileProfileAvatar img[src*="s3.amazonaws"] {
  filter: none !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
}

#sidebarProfileAvatar div {
  filter: none !important;
}

.logout-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.dropdown-text {
  font-size: 14px;
  font-weight: 500;
}

/* Dropdown Submenu Styles */
.dropdown-item.has-submenu {
  position: relative;
}

.dropdown-item.has-submenu .submenu-arrow {
  position: absolute;
  right: 15px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
  transform: rotate(180deg);
}

.dropdown-item.has-submenu:hover .submenu-arrow {
  transform: rotate(180deg) translateX(3px);
}

.dropdown-submenu {
  position: absolute;
  right: 100%;
  top: 0;
  min-width: 200px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 8px;
  margin-right: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.dropdown-item.has-submenu:hover .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-submenu .submenu-item {
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-submenu .submenu-item:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(5px);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Mobile adjustments for dropdown submenu */
@media (max-width: 768px) {
  .dropdown-submenu {
    position: static;
    margin-left: 0;
    margin-top: 5px;
    transform: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .dropdown-item.has-submenu.open .dropdown-submenu {
    opacity: 1;
    max-height: 200px;
  }

  .dropdown-item.has-submenu .submenu-arrow {
    transform: rotate(90deg);
  }

  .dropdown-item.has-submenu.open .submenu-arrow {
    transform: rotate(-90deg);
  }
}

/* ========================================
   PAGE VISIBILITY SYSTEM
   ======================================== */
/* Page Content System - Consolidated */
.page-content {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
}

.page-content.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Assessment loading state to prevent visual flash during instructions check */
.page-content.assessment-loading {
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-content.assessment-loading .assessment-container,
.page-content.assessment-loading .progress-section,
.page-content.assessment-loading .scenario-section,
.page-content.assessment-loading .questions-container {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Smooth fade-in for assessment content when loading state is removed */
.page-content.active:not(.assessment-loading) .assessment-container,
.page-content.active:not(.assessment-loading) .progress-section,
.page-content.active:not(.assessment-loading) .scenario-section,
.page-content.active:not(.assessment-loading) .questions-container {
  animation: assessmentContentFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes assessmentContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile, Login & Signup Pages Styling */
.profile-container,
.login-container,
.signup-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  min-height: calc(100vh - 200px);
}

/* Reduce top spacing on signup page to minimize scroll */
.signup-container {
  padding-top: 20px;
}

.signup-header {
  margin-bottom: 20px;
  padding-top: 10px;
}

.profile-header,
.login-header,
.signup-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0 0 0;
}

.logo-container,
.winshape-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.loading-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 60px;
  margin: 0 auto;
  opacity: 0.8;
}

.loading-logo svg {
  width: 100%;
  height: 100%;
}

.loading-logo.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-logo.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.winshape-logo,
.home-winshape-logo img {
  max-height: 75px;
  height: auto;
  width: auto;
  max-width: 125px;
  margin: 0 auto 25px auto;
  display: block;
  filter: brightness(1);
  object-fit: contain;
}

.profile-header h2,
.login-header h2,
.signup-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 15px rgba(30, 144, 255, 0.3);
}

.profile-header p,
.login-header p,
.signup-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Reset Password Instructions */
.reset-password-instructions {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  text-align: center;
  line-height: 1.5;
}

.reset-password-instructions strong {
  font-weight: 600;
  color: #ffffff;
}

.profile-form-wrapper,
.login-form-wrapper,
.signup-form-wrapper {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.3), rgba(22, 33, 62, 0.8));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(30, 144, 255, 0.1);
}

/* Profile Picture Section */
.profile-picture-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.profile-picture-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-avatar {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

.avatar-silhouette {
  width: 60%;
  height: 60%;
  opacity: 0.6;
}

.edit-avatar-btn {
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e90ff;
  border: 3px solid rgba(13, 17, 23, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.edit-avatar-btn:hover {
  background: #4169e1;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.edit-avatar-btn svg {
  width: 18px;
  height: 18px;
}

/* Legacy upload button styles kept for backwards compatibility */
.upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(65, 105, 225, 0.1));
  border: 1px solid rgba(30, 144, 255, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.25), rgba(65, 105, 225, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
}

.upload-btn span {
  font-size: 16px;
}

/* Form Sections */
.form-section {
  margin-bottom: 35px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(30, 144, 255, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  padding: 15px 18px;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

/* Enhanced Select Dropdown Styling */
.form-group select {
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.85) 0%,
      rgba(22, 33, 62, 0.9) 50%,
      rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 2px 10px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 45px;
  position: relative;
}

.form-group select::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #3b82f6;
  font-size: 12px;
  pointer-events: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.4),
    0 4px 15px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.9) 0%,
      rgba(22, 33, 62, 0.95) 50%,
      rgba(15, 23, 42, 1) 100%);
  transform: translateY(-1px);
}

.form-group select:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 4px 15px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

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

.form-group select option {
  background: #1a1a2e;
  color: white;
  padding: 12px 16px;
  border: none;
  font-size: 15px;
}

.form-group select option:hover,
.form-group select option:checked {
  background: #3b82f6;
  color: white;
}

/* Native select elements are now hidden by JavaScript after custom dropdown creation */

/* Modern Custom Dropdown Wrapper */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
}

/* Custom Dropdown Button (Trigger) - Glassmorphism Design */
.custom-select-btn {
  position: relative;
  width: 100%;
  padding: 16px 50px 16px 20px;
  background: linear-gradient(135deg,
      rgba(45, 55, 75, 0.95) 0%,
      rgba(30, 38, 55, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.custom-select-btn:hover {
  background: linear-gradient(135deg,
      rgba(50, 62, 85, 0.98) 0%,
      rgba(35, 45, 65, 1) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.custom-select-btn:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 6px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.custom-select-btn.placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.custom-select-btn.has-value {
  color: rgba(255, 255, 255, 0.95);
}

/* Dropdown Arrow */
.custom-select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(59, 130, 246, 0.7);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  pointer-events: none;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: rgba(59, 130, 246, 0.9);
}

/* Custom Dropdown Options Container - Glassmorphism */
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(40, 50, 70, 0.98) 0%,
      rgba(30, 38, 55, 1) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-10px);
  z-index: 1000;
}

.custom-select-wrapper.open .custom-select-options {
  max-height: 320px;
  opacity: 1;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(0);
}

/* Custom Scrollbar for Options */
.custom-select-options::-webkit-scrollbar {
  width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: rgba(15, 15, 35, 0.3);
  border-radius: 10px;
  margin: 8px 0;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      rgba(59, 130, 246, 0.5) 0%,
      rgba(59, 130, 246, 0.7) 100%);
  border-radius: 10px;
  border: 2px solid rgba(30, 38, 55, 0.5);
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
      rgba(59, 130, 246, 0.7) 0%,
      rgba(59, 130, 246, 0.9) 100%);
}

/* Individual Option Items */
.custom-select-option {
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  border-left: 3px solid transparent;
}

.custom-select-option:first-child {
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

.custom-select-option:last-child {
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

.custom-select-option:hover {
  background: linear-gradient(90deg,
      rgba(59, 130, 246, 0.15) 0%,
      rgba(59, 130, 246, 0.08) 100%);
  color: rgba(255, 255, 255, 0.95);
  border-left-color: rgba(59, 130, 246, 0.6);
  padding-left: 24px;
}

.custom-select-option.focused {
  background: linear-gradient(90deg,
      rgba(59, 130, 246, 0.2) 0%,
      rgba(59, 130, 246, 0.12) 100%);
  color: rgba(255, 255, 255, 1);
  border-left-color: rgba(59, 130, 246, 0.8);
  outline: none;
}

.custom-select-option.selected {
  background: linear-gradient(90deg,
      rgba(59, 130, 246, 0.25) 0%,
      rgba(59, 130, 246, 0.15) 100%);
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
  border-left-color: rgba(59, 130, 246, 1);
}

.custom-select-option.selected::after {
  content: '✓';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(59, 130, 246, 1);
  font-weight: bold;
}

/* Option Separator Line */
.custom-select-separator {
  height: 1px;
  margin: 8px 16px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-select-btn {
    padding: 14px 45px 14px 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .custom-select-option {
    padding: 12px 18px;
    font-size: 14px;
  }

  .custom-select-options {
    max-height: 280px;
    border-radius: 12px;
  }

  .custom-select-arrow {
    right: 16px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .custom-select-btn {
    padding: 13px 42px 13px 16px;
    font-size: 13px;
    border-radius: 11px;
  }

  .custom-select-option {
    padding: 11px 16px;
    font-size: 13px;
  }

  .custom-select-options {
    max-height: 250px;
    border-radius: 11px;
  }

  .custom-select-options::-webkit-scrollbar {
    width: 6px;
  }

  .custom-select-arrow {
    right: 14px;
  }
}

/* Custom Country Dropdown Container */
.custom-country-dropdown {
  position: relative;
  width: 100%;
}

/* Custom Dropdown Trigger (the button that shows selected value) */
.custom-dropdown-trigger {
  width: 100%;
  padding: 14px 40px 14px 16px;
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.95) 0%,
      rgba(15, 15, 35, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-dropdown-trigger:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 4px 15px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.custom-dropdown-trigger:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.custom-dropdown-trigger.placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.custom-dropdown-trigger.open {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Dropdown Arrow */
.dropdown-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.custom-dropdown-trigger.open .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Custom Dropdown Menu */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.98) 0%,
      rgba(15, 15, 35, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.custom-dropdown-menu.open {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Options Container with Scroll - Shows exactly 6 items */
.custom-dropdown-options {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 0;
}

/* Custom Scrollbar for Dropdown */
.custom-dropdown-options::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
  background: rgba(15, 15, 35, 0.8);
  border-radius: 4px;
  margin: 8px 4px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.6);
  border-radius: 4px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.8);
}

/* Dropdown Option Items */
.custom-dropdown-option {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.custom-dropdown-option:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
}

.custom-dropdown-option.selected {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
  font-weight: 500;
}

.custom-dropdown-option.focused {
  background: rgba(59, 130, 246, 0.2);
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: -2px;
}

.custom-dropdown-option.separator {
  padding: 0;
  margin: 8px 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  cursor: default;
  pointer-events: none;
}

/* Responsive adjustments for custom dropdown */
@media (max-width: 768px) {
  .custom-dropdown-trigger {
    font-size: 14px;
    padding: 12px 36px 12px 14px;
  }

  .custom-dropdown-option {
    font-size: 14px;
    padding: 10px 14px;
  }

  .custom-dropdown-options {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .custom-dropdown-trigger {
    font-size: 13px;
    padding: 11px 34px 11px 12px;
  }

  .custom-dropdown-option {
    font-size: 13px;
    padding: 9px 12px;
  }

  .custom-dropdown-options {
    max-height: 250px;
  }

  .custom-dropdown-options::-webkit-scrollbar {
    width: 6px;
  }
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 50px;
  width: 100%;
}

/* Password Toggle Button */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
  z-index: 10;
}

.toggle-password:hover {
  color: rgba(255, 255, 255, 0.9);
}

.toggle-password:focus {
  outline: none;
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.toggle-password[data-visible="true"] .eye-open {
  display: none;
}

.toggle-password[data-visible="true"] .eye-closed {
  display: block !important;
}

/* Password Validation Messages */
.password-validation-message {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  transition: all 0.2s ease;
}

.password-validation-message.error {
  color: #ff6b6b;
}

.password-validation-message.success {
  color: #51cf66;
}

.inline-error-message {
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 6px;
  padding: 8px 12px;
  background-color: rgba(255, 107, 107, 0.1);
  border-left: 3px solid #ff6b6b;
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}

.password-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* Label helper text (subtle styling for requirements) */
.label-helper-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  text-transform: none;
}

/* Terms and Privacy Acceptance */
.terms-acceptance {
  margin: 30px 0 20px;
  padding: 20px;
  background: rgba(15, 15, 35, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 22px;
  min-width: 22px;
  width: 22px;
  background-color: rgba(15, 15, 35, 0.8);
  border: 2px solid rgba(59, 130, 246, 0.6);
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.checkbox-container:hover .checkmark {
  border-color: rgba(59, 130, 246, 0.9);
  background-color: rgba(59, 130, 246, 0.15);
}

.checkbox-container input[type="checkbox"]:checked~.checkmark {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-color: #3b82f6;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked~.checkmark::after {
  display: block;
}

.checkbox-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.policy-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.policy-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 0.3s ease;
}

.policy-link:hover {
  color: #60a5fa;
}

.policy-link:hover::after {
  width: 100%;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  padding-top: 10px;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 140px;
}

.btn-primary {
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(30, 144, 255, 0.4);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, rgba(58, 61, 74, 0.6), rgba(58, 61, 74, 0.4));
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Visual disabled style for button (not actually disabled) */
.btn-disabled-style {
  background: linear-gradient(135deg, rgba(58, 61, 74, 0.6), rgba(58, 61, 74, 0.4)) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: not-allowed !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-disabled-style:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(30, 144, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(30, 144, 255, 0.1);
  color: white;
  border-color: rgba(30, 144, 255, 0.5);
  transform: translateY(-2px);
}

/* Responsive Design for Forms */
@media (max-width: 768px) {

  /* Hide video background on mobile, show image fallback */
  .video-background {
    display: none !important;
  }

  .mobile-background-image {
    display: block;
  }

  /* Hide modal video on mobile, show image fallback */
  .modal-video-background {
    display: none !important;
  }

  .modal-mobile-background-image {
    display: block;
  }

  /* Show mobile top navigation */
  .mobile-top-nav {
    display: block;
  }

  /* Hide sidebar completely */
  .sidebar {
    display: none !important;
  }

  /* Hide sidebar powered by on mobile */
  .sidebar-powered-by {
    display: none !important;
  }

  /* Show footer powered by on mobile only */
  .footer-powered-by {
    display: flex !important;
  }

  /* Adjust main content for top navigation */
  .main-content {
    margin-left: 0 !important;
    margin-top: 65px;
    padding-bottom: 0;
  }

  /* Adjust header for mobile */
  .header {
    padding: 20px 25px;
  }

  /* Home page hero spacing for mobile nav + header */
  .home-hero {
    padding-top: 130px;
  }

  /* Adjust all pages for mobile top nav */
  #homePage,
  #aqAssessmentPage,
  #myProfilePage,
  #aqResultsPage,
  #loginPage,
  #signupPage {
    left: 0 !important;
    width: 100% !important;
  }

  /* Footer positioning handled by main mobile rule above (line 48-54) */

  .profile-container,
  .login-container,
  .signup-container {
    padding: 10px 15px 5px 15px;
    min-height: auto;
  }

  .profile-header,
  .login-header,
  .signup-header {
    margin-bottom: 12px;
    padding: 10px 0 5px 0;
  }

  .profile-form-wrapper,
  .login-form-wrapper,
  .signup-form-wrapper {
    padding: 15px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group input,
  .form-group select {
    padding: 12px 16px;
  }

  .winshape-logo-container {
    margin-bottom: 15px;
  }

  .winshape-logo {
    margin: 0 auto 15px auto;
    width: 180px;
    height: auto;
    max-width: 180px;
    object-fit: contain;
  }

  .signup-link {
    margin-top: 20px;
    padding-top: 12px;
  }

  .profile-header h2,
  .login-header h2,
  .signup-header h2 {
    font-size: 24px;
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
  }

  /* Reverse button order on mobile - Sign In first, then Back to Home */
  .form-actions .btn-primary {
    order: 1;
  }

  .form-actions .btn-secondary {
    order: 2;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .profile-picture {
    width: 100px;
    height: 100px;
  }

  .placeholder-avatar {
    font-size: 30px;
  }
}

/* Scenario Title Row - Contains question header and help link */
.scenario-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 50px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.scenario-title {
  font-size: 24px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: left;
  flex: 1;
  min-width: 0;
}

/* Responsive: help link drops below on small screens */
@media (max-width: 600px) {
  .scenario-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scenario-title-row .instructions-help-link {
    align-self: flex-end;
  }
}

/* Enhanced Progress Section - Fixed 6 Steps */
.progress-section {
  padding: 40px 50px;
}

.progress-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.progress-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 25px;
  gap: 8px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  padding: 0 10px;
}

.step {
  width: clamp(18px, 3vw, 28px);
  height: clamp(18px, 3vw, 28px);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 61, 74, 0.8), rgba(58, 61, 74, 0.6));
  border: 1px solid rgba(30, 144, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8px, 1.2vw, 12px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}

.step.active {
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  color: white;
  border-color: #1e90ff;
  box-shadow:
    0 4px 12px rgba(30, 144, 255, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.6),
    0 0 0 5px rgba(30, 144, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.2);
  animation: pulseStep 2s ease-in-out infinite;
}

/* ACTIVE-REVIEW: Green indicator for reviewing a completed step */
.step.active-review {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-color: #22c55e;
  box-shadow:
    0 4px 12px rgba(34, 197, 94, 0.5),
    0 0 0 3px rgba(255, 255, 255, 0.6),
    0 0 0 5px rgba(34, 197, 94, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.2);
  animation: pulseStepGreen 2s ease-in-out infinite;
}

/* Subtle pulse animation for current step */
@keyframes pulseStep {
  0%, 100% {
    box-shadow:
      0 4px 12px rgba(30, 144, 255, 0.4),
      0 0 0 3px rgba(255, 255, 255, 0.6),
      0 0 0 5px rgba(30, 144, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 4px 16px rgba(30, 144, 255, 0.6),
      0 0 0 3px rgba(255, 255, 255, 0.8),
      0 0 0 6px rgba(30, 144, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes pulseStepGreen {
  0%, 100% {
    box-shadow:
      0 4px 12px rgba(34, 197, 94, 0.5),
      0 0 0 3px rgba(255, 255, 255, 0.6),
      0 0 0 5px rgba(34, 197, 94, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 4px 16px rgba(34, 197, 94, 0.7),
      0 0 0 3px rgba(255, 255, 255, 0.8),
      0 0 0 6px rgba(34, 197, 94, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.step.completed {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-color: #22c55e;
  box-shadow:
    0 2px 8px rgba(34, 197, 94, 0.2),
    0 0 0 1px rgba(34, 197, 94, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0.9;
}

.step.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.step.clickable:hover {
  transform: scale(1.15);
  box-shadow:
    0 6px 20px rgba(30, 144, 255, 0.4),
    0 0 0 3px rgba(30, 144, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  z-index: 10;
}

.step.clickable.completed:hover,
.step.clickable.active-review:hover {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  border-color: #16a34a;
  box-shadow:
    0 6px 20px rgba(34, 197, 94, 0.5),
    0 0 0 3px rgba(34, 197, 94, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.step.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(58, 61, 74, 0.6), rgba(58, 61, 74, 0.4));
  border-color: rgba(30, 144, 255, 0.1);
  color: #888;
  transition: all 0.3s ease;
}

.step.disabled:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.3;
}

/* Add tooltip styling for step indicators */
.step[title] {
  position: relative;
}

.step[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Testing Mode Panel */
.testing-panel {
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(30, 30, 45, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 20px 50px 30px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: testingPanelSlideIn 0.3s ease;
}

.testing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testing-header h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.testing-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.testing-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.testing-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.testing-section h5 {
  margin: 0 0 15px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-jump-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.step-jump-container input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.step-jump-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.jump-button,
.quick-jump-btn,
.action-btn {
  background: linear-gradient(135deg, #1e90ff, #4169e1);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.jump-button:hover,
.quick-jump-btn:hover,
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.quick-jumps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-jump-btn {
  padding: 6px 12px;
  font-size: 12px;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.info-value {
  color: white;
  font-weight: 600;
  font-size: 12px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  padding: 10px;
  text-align: center;
}

.action-btn:hover {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

@keyframes testingPanelSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testing mode toggle button */
.testing-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testing-mode-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}

.testing-mode-toggle.active {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.testing-mode-toggle.active:hover {
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Mobile responsiveness for testing panel */
@media (max-width: 768px) {
  .testing-panel {
    margin: 15px 20px;
    padding: 15px;
  }

  .testing-controls {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .step-jump-container {
    flex-direction: column;
  }

  .quick-jumps {
    justify-content: center;
  }

  .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 1;
    min-width: 100px;
  }

  .testing-mode-toggle {
    top: 15px;
    right: 15px;
    padding: 10px 15px;
    font-size: 11px;
  }
}

.step-line {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(58, 61, 74, 0.4), rgba(58, 61, 74, 0.2));
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 0.5px;
  backdrop-filter: blur(3px);
}

.progress-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Enhanced Questions Container */
.questions-container {
  padding: 0 50px 0px;
}

.question-block {
  margin-bottom: 35px;
  padding: 50px 25px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.6));
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.question-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e90ff, #4169e1, #6495ed);
  border-radius: 20px 20px 0 0;
}

.question-block:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(30, 144, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(30, 144, 255, 0.4);
}

.question-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}

.question-text {
  font-size: 18px;
  color: white;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.3px;
  flex: 1;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  text-align: center;
}

/* New Column Layout */
.slider-row {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  gap: 20px;
  position: relative;
}

.left-column {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
}

.middle-column {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.right-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 10px;
}

/* Slide instruction text with shine animation */
.slide-instruction {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 8px;
  display: block;
  white-space: nowrap;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.7) 20%,
      rgba(59, 130, 246, 0.9) 40%,
      rgba(138, 43, 226, 1) 50%,
      rgba(59, 130, 246, 0.9) 60%,
      rgba(255, 255, 255, 0.7) 80%,
      rgba(255, 255, 255, 0.4) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideShine 8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

@keyframes slideShine {

  0%,
  100% {
    background-position: 200% center;
  }

  50% {
    background-position: -100% center;
  }
}

/* Mobile: Reposition slide instruction and adjust sizing */
@media (max-width: 768px) {
  .middle-column {
    flex-direction: column;
  }

  .slide-instruction {
    position: static;
    transform: none;
    margin-top: 20px;
    font-size: 11px;
    /* Keep shine animation on mobile */
  }
}

@media (max-width: 480px) {
  .middle-column {
    flex-direction: column;
  }

  .slide-instruction {
    position: static;
    transform: none;
    margin-top: 10px;
    font-size: 10px;
    /* Keep shine animation on mobile */
  }
}

.slider-label-left,
.slider-label-right {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(65, 105, 225, 0.05));
  border-radius: 8px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  text-align: center;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Slider label lighting effects - Much brighter */
.slider-label-left.light-20,
.slider-label-right.light-20 {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.5), rgba(65, 105, 225, 0.4));
  border-color: rgba(30, 144, 255, 0.6);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.3);
}

.slider-label-left.light-40,
.slider-label-right.light-40 {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.65), rgba(65, 105, 225, 0.55));
  border-color: rgba(30, 144, 255, 0.75);
  color: white;
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.4);
}

.slider-label-left.light-60,
.slider-label-right.light-60 {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.8), rgba(65, 105, 225, 0.7));
  border-color: rgba(30, 144, 255, 0.85);
  color: white;
  box-shadow: 0 0 25px rgba(30, 144, 255, 0.5);
}

.slider-label-left.light-80,
.slider-label-right.light-80 {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.95), rgba(65, 105, 225, 0.85));
  border-color: rgba(30, 144, 255, 0.95);
  color: white;
  box-shadow: 0 0 30px rgba(30, 144, 255, 0.6);
}

.slider-label-left.light-100,
.slider-label-right.light-100 {
  background: linear-gradient(135deg, rgb(30, 144, 255), rgb(65, 105, 225));
  border-color: rgb(30, 144, 255);
  color: white;
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.8), 0 0 20px rgba(30, 144, 255, 0.6);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Enhanced Custom Slider - Beautiful blue gradient up to thumb */
.slider {
  --thumb-size: 24px;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(30, 144, 255, 0.3);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(30, 144, 255, 0.2);
  overflow: visible;
  background:
    linear-gradient(90deg, #1e3a8a 0%, #1e40af 25%, #1d4ed8 50%, #2563eb 75%, #3b82f6 100%) no-repeat,
    rgba(58, 61, 74, 0.4);
  background-size: var(--progress-percent, 0%) 100%, 100% 100%;
  background-position: left center, left center;
}

/* Force slider gradient to stay stable in ALL situations */
.slider,
.slider:hover,
.slider:focus,
.slider:active,
.question-block:hover .slider,
.question-block .slider:hover,
.question-block .slider:focus,
.question-block .slider:active {
  background:
    linear-gradient(90deg, #1e3a8a 0%, #1e40af 25%, #1d4ed8 50%, #2563eb 75%, #3b82f6 100%) no-repeat,
    rgba(58, 61, 74, 0.4) !important;
  background-size: var(--progress-percent, 0%) 100%, 100% 100% !important;
  background-position: left center, left center !important;
}

.slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  -webkit-appearance: none;
}

/* Firefox-specific track and progress styles */
.slider::-moz-range-track {
  height: 10px;
  border-radius: 6px;
  background: rgba(58, 61, 74, 0.4);
  border: none;
}

.slider::-moz-range-progress {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 25%, #1d4ed8 50%, #2563eb 75%, #3b82f6 100%);
}

.slider:hover::-webkit-slider-runnable-track,
.slider:focus::-webkit-slider-runnable-track,
.slider:active::-webkit-slider-runnable-track {
  background: transparent !important;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  cursor: pointer;
  border: 2px solid #1e90ff;
  box-shadow:
    0 4px 12px rgba(30, 144, 255, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  margin-top: -7px;
  position: relative;
  z-index: 10;
}

/* Visually center thumb when slider has slider-centered class */
.slider.slider-centered::-webkit-slider-thumb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-left: -12px;
  /* Half of thumb width to perfect center */
}

.slider::-webkit-slider-thumb:hover {
  box-shadow:
    0 6px 16px rgba(30, 144, 255, 0.6),
    0 0 12px rgba(30, 144, 255, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  cursor: pointer;
  border: 2px solid #1e90ff;
  box-shadow:
    0 4px 12px rgba(30, 144, 255, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  position: relative;
  z-index: 10;
}

.slider::-moz-range-track {
  height: 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
}

.slider:hover::-moz-range-track,
.slider:focus::-moz-range-track,
.slider:active::-moz-range-track {
  background: transparent !important;
}

/* Enhanced Score Circle - Positioned in right column above label */
.score-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(58, 61, 74, 0.4) !important;
  color: white !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow:
    0 8px 25px rgba(58, 61, 74, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.1),
    inset 0 -2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: absolute;
  top: -80px;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Desktop override for larger screens */
@media (min-width: 769px) {
  .score-circle {
    position: absolute;
    top: -80px;
    margin-left: auto;
  }

  .question-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: calc(100% - 120px);
    line-height: 1.6;
    padding-right: 20px;
  }
}

.score-circle.active {
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%) !important;
  box-shadow: 0 12px 35px rgba(30, 144, 255, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.2), inset 0 -2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile/Tablet active state positioning */
@media (max-width: 768px) {
  .score-circle.active {
    transform: translateX(-50%) scale(1.05) !important;
  }

  /* Hide header user-profile on tablets and mobile - replaced by mobile nav profile */
  .user-profile {
    display: none !important;
  }

  /* Show mobile top navigation on tablets and mobile */
  .mobile-top-nav {
    display: block;
  }

  /* Hide sidebar on tablets and mobile */
  .sidebar {
    display: none !important;
  }

  /* Adjust main content for top navigation */
  .main-content {
    margin-left: 0 !important;
    margin-top: 65px;
  }
}

/* Mobile Media Query - Comprehensive */
@media screen and (max-width: 480px) {

  /* Hide video background on mobile, show image fallback */
  .video-background {
    display: none !important;
  }

  .mobile-background-image {
    display: block;
  }

  /* Hide modal video on mobile, show image fallback */
  .modal-video-background {
    display: none !important;
  }

  .modal-mobile-background-image {
    display: block;
  }

  /* Show mobile top navigation */
  .mobile-top-nav {
    display: block;
  }

  /* Hide sidebar completely */
  .sidebar {
    display: none !important;
  }

  /* Hide sidebar powered by on mobile */
  .sidebar-powered-by {
    display: none !important;
  }

  /* Show footer powered by on mobile only */
  .footer-powered-by {
    display: flex !important;
  }

  /* Hide home icon from mobile navigation - users default to login */
  .mobile-nav-item[data-page="home"] {
    display: none !important;
  }

  /* Adjust main content for top navigation - with extra padding for accessibility */
  .main-content {
    margin-left: 0 !important;
    margin-top: 65px;
    padding-bottom: calc(45px + env(safe-area-inset-bottom, 20px)) !important;
  }

  .header {
    padding: 20px 20px;
  }

  /* Hide user-profile section on mobile - replaced by mobile nav profile */
  .user-profile {
    display: none !important;
  }

  /* Home page hero spacing for mobile nav + header */
  .home-hero {
    padding-top: 120px;
  }

  /* Pages positioning - no sidebar, top nav only */
  #homePage,
  #aqAssessmentPage,
  #myProfilePage,
  #aqResultsPage,
  #loginPage,
  #signupPage {
    left: 0 !important;
    width: 100% !important;
  }

  /* Footer positioning handled by main mobile rule (line 48-54) */
  .modern-footer {
    height: 90px;
  }

  /* Modal adjustments */
  .modal-container {
    width: 98%;
    margin: 10px;
  }

  /* Step indicators adjustments */
  .step-indicators {
    gap: 2px;
    justify-content: center;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .step {
    width: 18px;
    height: 18px;
    font-size: 8px;
    flex-shrink: 0;
  }

  .step-line {
    display: none;
  }

  /* Question blocks adjustments */
  .question-block {
    position: relative;
    padding-top: 110px;
  }

  .question-header {
    margin-top: 90px;
  }

  .right-column {
    position: static;
  }

  .slider-row {
    position: static;
  }

  /* Mobile: Score circle positioned at top of question block */
  .score-circle {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
    width: 65px !important;
    height: 65px !important;
  }

  /* Score circle active state */
  .score-circle.active {
    transform: translateX(-50%) scale(1.05) !important;
  }

  /* Progress content adjustments */
  .progress-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .next-button-container {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .next-button {
    min-width: 100px;
    padding: 10px;
    font-size: 12px;
    min-height: 35px;
  }

  .previous-button {
    min-width: 100px;
    padding: 10px;
    font-size: 12px;
    min-height: 35px;
  }

  .completion-status {
    font-size: 9px;
    max-width: 100px;
  }

  /* Results page adjustments */
  .results-header p:first-child {
    font-size: 2rem;
  }

  .results-subtitle {
    font-size: 14px;
    font-weight: 500;
  }

  #aqResultsPage {
    padding: 50px 15px 20px 15px;
  }

  /* Form containers adjustments - full width for mobile with bottom padding for footer */
  .profile-container,
  .login-container,
  .signup-container {
    padding: 5px 10px calc(140px + env(safe-area-inset-bottom, 20px)) 10px !important;
    margin: 0;
    max-width: none;
    width: 100%;
    min-height: auto;
  }

  .profile-header,
  .login-header,
  .signup-header {
    margin-bottom: 10px;
    padding: 5px 0;
  }

  /* Extra padding for accessibility text scaling */
  @supports (font: -apple-system-body) {

    .profile-container,
    .login-container,
    .signup-container {
      padding-bottom: calc(180px + env(safe-area-inset-bottom, 20px)) !important;
    }

    .main-content {
      padding-bottom: calc(180px + env(safe-area-inset-bottom, 20px)) !important;
    }
  }

  .profile-form-wrapper,
  .login-form-wrapper,
  .signup-form-wrapper {
    padding: 35px 35px 45px 35px;
    margin: 0;
  }

  .form-grid {
    gap: 10px;
  }

  .form-group input,
  .form-group select {
    padding: 12px 15px;
  }

  .form-group label {
    margin-bottom: 6px;
  }

  .winshape-logo-container {
    margin-bottom: 12px;
  }

  .winshape-logo {
    margin: 0 auto 12px auto;
    width: 160px;
    height: auto;
    max-width: 160px;
    object-fit: contain;
  }

  .signup-link {
    margin-top: 15px;
    padding-top: 10px;
  }

  .forgot-password-link {
    margin-top: 5px;
  }

  /* Reverse button order on mobile - Sign In first, then Back to Home */
  .form-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
  }

  .form-actions .btn-primary {
    order: 1;
  }

  .form-actions .btn-secondary {
    order: 2;
  }
}

/* Smaller Desktop Media Query */
@media (max-width: 1200px) and (min-width: 1025px) {
  .question-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: calc(100% - 120px);
    line-height: 1.4;
    padding-right: 20px;
  }

  .step-indicators {
    gap: 6px;
    max-width: 100%;
  }

  .step {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .progress-section {
    padding: 30px 20px 40px;
  }
}

/* Enhanced Responsive Design - Minimized Sidebar Under 1200px */
@media (max-width: 1199px) {
  .sidebar {
    width: 70px;
  }

  .main-content {
    margin-left: 70px;
  }

  .nav-text,
  .logo-text {
    display: none;
  }

  /* Hide hamburger menu on tablet */
  .hamburger-menu {
    display: none;
  }

  /* Hide powered by section on collapsed sidebar */
  .sidebar-powered-by {
    display: none !important;
  }

  .logo {
    justify-content: center;
    padding: 50px 10px 20px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    cursor: default;
    margin: 0 5px 35px 5px;
  }

  .logo-icon {
    width: 62px;
    height: 48px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 12px;
  }

  .logo-icon img {
    padding: 8px 4px;
  }

  .nav-menu {
    padding: 0 10px;
  }

  .nav-item {
    justify-content: center;
    padding: 16px 12px;
    margin: 2px 2px;
  }

  .nav-icon {
    margin-right: 0;
  }

  .header,
  .progress-section,
  .questions-container {
    padding: 30px 40px;
  }

  .slider-row {
    grid-template-columns: 180px 1fr 180px;
    gap: 20px;
  }

  .question-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: calc(100% - 100px);
    line-height: 1.4;
  }

  .step-indicators {
    gap: 5px;
    max-width: 100%;
    overflow: visible;
  }

  .step {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .progress-section {
    padding: 20px 30px 30px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .step-indicators {
    gap: 4px;
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: center;
  }

  .step {
    width: 18px;
    height: 18px;
    font-size: 8px;
    flex-shrink: 0;
  }

  .step-line {
    display: none;
  }

  .progress-section {
    padding: 15px 20px 25px;
  }

  .progress-content {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .next-button-container {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {

  /* Hide hamburger toggle on mobile */
  .hamburger-menu {
    display: none;
  }

  .step-indicators {
    gap: 3px;
    justify-content: center;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .step {
    width: 16px;
    height: 16px;
    font-size: 7px;
    flex-shrink: 0;
  }

  .step-line {
    display: none;
  }

  .question-block {
    position: relative;
    padding-top: 110px;
  }

  .question-header {
    margin-top: 55px;
  }

  .right-column {
    position: static;
  }

  .slider-row {
    position: static;
  }

  /* Mobile: Score circle positioned at top of question block */
  .score-circle {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
    width: 65px !important;
    height: 65px !important;
  }

  /* Score circle active state */
  .score-circle.active {
    transform: translateX(-50%) scale(1.05) !important;
  }

  .next-button {
    min-width: 120px !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    min-height: 40px !important;
  }

  .previous-button {
    min-width: 120px !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    min-height: 40px !important;
  }

  .completion-status {
    font-size: 10px !important;
    max-width: 120px !important;
  }

  .sidebar {
    width: 70px;
  }

  .main-content {
    margin-left: 70px;
  }

  .nav-text,
  .logo-text {
    display: none;
  }

  .logo {
    justify-content: center;
    padding: 50px 10px 20px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    cursor: default;
  }

  .logo-icon {
    width: 77px;
    height: 60px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 12px;
  }

  .logo-icon img {
    padding: 8px 4px;
  }

  .aq-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .nav-menu {
    padding: 0 10px;
  }

  .nav-item {
    justify-content: center;
    padding: 16px 12px;
    margin: 2px 2px;
  }

  .nav-icon {
    margin-right: 0;
  }

  .header {
    padding: 25px 30px;
  }

  .header h1 {
    font-size: 20px;
  }

  .progress-section,
  .questions-container {
    padding: 25px 30px;
  }

  .question-block {
    padding: 50px 25px;
    margin-bottom: 40px;
  }

  .slider-row {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .slider-label-left,
  .slider-label-right {
    font-size: 11px;
    min-height: 40px;
  }

  .question-text {
    font-size: 16px;
  }

  .question-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

}

/* Duplicate mobile styles moved to comprehensive mobile query above */

/* Enhanced Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1.15);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

.question-block {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}

.question-block.animate-in {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
}


.nav-item {
  animation: fadeInLeft 0.4s ease forwards;
}

.nav-item:nth-child(1) {
  animation-delay: 0.1s;
}

.nav-item:nth-child(2) {
  animation-delay: 0.15s;
}

.nav-item:nth-child(3) {
  animation-delay: 0.2s;
}

.nav-item:nth-child(4) {
  animation-delay: 0.25s;
}

.nav-item:nth-child(5) {
  animation-delay: 0.3s;
}

.nav-item:nth-child(6) {
  animation-delay: 0.35s;
}

.nav-item:nth-child(7) {
  animation-delay: 0.4s;
}

.nav-item:nth-child(8) {
  animation-delay: 0.45s;
}

.step.active {
  animation: pulse 2s ease-in-out infinite;
}

.score-circle {
  animation: float 4s ease-in-out infinite;
}

.score-circle:nth-child(1) {
  animation-delay: 0s;
}

.score-circle:nth-child(2) {
  animation-delay: 0.5s;
}

.score-circle:nth-child(3) {
  animation-delay: 1s;
}

.score-circle:nth-child(4) {
  animation-delay: 1.5s;
}

/* Next Button Styles - Large and Bottom Right */

.next-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px;
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  min-height: 60px;
  box-shadow:
    0 12px 35px rgba(30, 144, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.next-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.next-button:hover:not(:disabled)::before {
  left: 100%;
}

.next-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 12px 35px rgba(30, 144, 255, 0.5),
    0 0 20px rgba(30, 144, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.next-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 6px 20px rgba(30, 144, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.next-button:disabled {
  background: linear-gradient(135deg, rgba(58, 61, 74, 0.6), rgba(58, 61, 74, 0.4));
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: none;
}

.button-text {
  font-weight: 700;
  letter-spacing: 1px;
}

.button-arrow {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.next-button:hover:not(:disabled) .button-arrow {
  transform: translateX(4px);
}

.completion-status {
  display: none;
  /* Hidden by default, only shown on last step via JavaScript */
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  max-width: 200px;
  line-height: 1.3;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.completion-status.complete {
  color: #48ca48;
  font-weight: 600;
}

/* Bottom Next Button Container - Match Top Navigation */

/* Previous Button Styles - Match Next Button */
.previous-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 180px;
  min-height: 60px;
  box-shadow:
    0 12px 35px rgba(108, 117, 125, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  margin-right: 20px;
}

.previous-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.previous-button:hover:not(:disabled)::before {
  left: 100%;
}

.previous-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 12px 35px rgba(108, 117, 125, 0.5),
    0 0 20px rgba(108, 117, 125, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.previous-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 6px 20px rgba(108, 117, 125, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.previous-button:disabled {
  background: linear-gradient(135deg, rgba(58, 61, 74, 0.6), rgba(58, 61, 74, 0.4));
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: none;
}

.previous-button:hover:not(:disabled) .button-arrow {
  transform: translateX(-4px);
}

/* Update button containers to show both buttons */
.next-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.bottom-next-button-container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
  flex-shrink: 0;
  margin-top: 0px;
  margin-bottom: 30px;
  padding: 10px 50px;
  flex-wrap: wrap;
}

/* Instructions help link styling */
.instructions-help-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  font-weight: 700;
}

.instructions-help-link:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.instructions-help-link:active {
  opacity: 0.8;
}

/* Remove margin-right from previous button since gap handles spacing */
.previous-button {
  margin-right: 0;
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Roboto Black font loaded via HTML link tag */

/* Home Page Layout */
#homePage {
  position: absolute;
  top: 0;
  left: 220px;
  height: 100vh;
  width: calc(100% - 220px);
  overflow: hidden;
  z-index: 1;
}

.home-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}


/* Home Content */
.home-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* PEAK Title */
.hero-brand {
  margin-bottom: 40px;
}

/* Home Winshape Logo */
.home-logo,
.home-winshape-logo {
  text-align: center;
  margin-bottom: 30px;
}

.home-logo .loading-logo,
.home-winshape-logo .loading-logo {
  width: 250px;
  height: 60px;
  margin: 0 auto;
}

.home-winshape-logo img,
.home-logo img {
  width: 250px;
  height: auto;
  max-width: 90vw;
}

/* PEAK Logo */
.peak-logo {
  text-align: center;
  margin: 0;
  position: relative;
}

.peak-logo img {
  width: clamp(300px, 50vw, 600px);
  height: auto;
  filter: drop-shadow(4px 4px 20px rgba(0, 0, 0, 0.5));
  max-width: 90vw;
}

/* Removed titleGlow animation */

/* Description */
.hero-description {
  margin-bottom: 60px;
  max-width: 800px;
}

.hero-description p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-btn {
  padding: 24px 48px;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-width: 220px;
  backdrop-filter: blur(15px);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  animation: shimmer 3s infinite;
}

.hero-btn:hover::before {
  left: 100%;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  50% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.hero-btn:active {
  transform: translateY(2px) scale(0.98);
  transition: all 0.1s ease;
}

.hero-btn span {
  position: relative;
  z-index: 2;
}

/* Login Button */
.hero-btn-login {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 15px 35px rgba(59, 130, 246, 0.4),
    0 0 20px rgba(59, 130, 246, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.hero-btn-login:hover {
  background: linear-gradient(135deg, var(--color-secondary), #60a5fa);
  color: white;
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow:
    0 25px 50px rgba(59, 130, 246, 0.6),
    0 0 40px rgba(59, 130, 246, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: pulse-login 2s infinite;
}

@keyframes pulse-login {
  0% {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
  }

  50% {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.6);
  }

  100% {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
  }
}

/* Signup Button */
.hero-btn-signup {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 15px 35px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.hero-btn-signup:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.25) 100%);
  color: white;
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 25px 50px rgba(255, 255, 255, 0.2),
    0 0 40px rgba(255, 255, 255, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: pulse-signup 2s infinite;
}

@keyframes pulse-signup {
  0% {
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.15);
  }

  50% {
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.25);
  }

  100% {
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.15);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  #homePage {
    left: 180px;
    width: calc(100% - 180px);
  }

  .home-content {
    max-width: 800px;
    padding: 0 30px;
  }

  .peak-logo img {
    width: clamp(250px, 45vw, 500px);
  }

  .hero-description p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  #homePage {
    left: 0 !important;
    width: 100% !important;
  }

  .home-hero {
    padding-top: 130px;
  }

  .hero-brand {
    margin-bottom: 10px;
  }

  .home-content {
    padding: 0 20px;
  }

  .peak-logo img {
    width: clamp(200px, 40vw, 400px);
  }

  .home-winshape-logo img,
  .home-logo img {
    width: 200px;
  }

  .home-winshape-logo .loading-logo,
  .home-logo .loading-logo {
    width: 200px;
    height: 50px;
  }

  .results-winshape-logo .winshape-logo {
    width: 150px;
    height: auto;
    max-width: 150px;
    object-fit: contain;
  }

  .results-winshape-logo .loading-logo {
    width: 150px;
    height: 45px;
  }

  .hero-description {
    margin-bottom: 5px;
  }

  .hero-description p {
    font-size: 16px;
    line-height: 1.3;
  }

  .hero-actions {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .hero-btn {
    width: 100%;
    max-width: 350px;
    padding: 20px 40px;
    font-size: 17px;
    min-width: auto;
  }
}

/* Home page mobile styles moved to comprehensive mobile query above */

/* ========================================
   MODERN FOOTER STYLES
   ======================================== */

.modern-footer {
  position: fixed;
  bottom: 0;
  left: 220px;
  width: calc(100% - 220px);
  min-height: 80px;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.3) 0%, rgba(22, 33, 62, 0.1) 100%);
  backdrop-filter: blur(25px);
  border-top: 1px solid rgba(30, 144, 255, 0.3);
  z-index: 999;
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 50px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(30, 144, 255, 0.3));
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-contact {
  display: flex;
  gap: 40px;
  align-items: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(30, 144, 255, 0.8);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.contact-link {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #1e90ff, #4169e1);
  transition: width 0.3s ease;
}

.contact-link:hover {
  color: #1e90ff;
  transform: translateY(-1px);
}

.contact-link:hover::after {
  width: 100%;
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-copyright {
  text-align: right;
  line-height: 1.3;
}

.footer-copyright p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 400;
}

.website-link {
  color: white !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  margin-top: 2px !important;
}

/* Footer Powered By Section */
.footer-powered-by {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(30, 144, 255, 0.2);
}

.footer-powered-by span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.footer-powered-by a {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-powered-by a:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.footer-powered-by img {
  height: 14px;
  width: auto;
  opacity: 0.9;
}

/* Sidebar Powered By Section */
.sidebar-powered-by {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 15px 10px 50px 10px;
  transition: all 0.3s ease;
}

.sidebar-powered-by span {
  font-size: 10px;
  color: rgb(255 255 255 / 80%);
  font-weight: 800 !important;
  white-space: nowrap;
}

.sidebar-powered-by a {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.sidebar-powered-by a:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.sidebar-powered-by img {
  height: 8px;
  width: auto;
  opacity: 0.8;
}

/* Hide powered by section when sidebar is collapsed */
.sidebar.collapsed .sidebar-powered-by {
  display: none;
}

/* Footer Responsive Design */
@media (max-width: 1199px) {
  .modern-footer {
    left: 70px;
    width: calc(100% - 70px);
  }

  .footer-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .footer-contact {
    gap: 20px;
  }
}

/* Fix footer clipping between 1260px and 770px */
@media (max-width: 1260px) and (min-width: 770px) {
  .modern-footer,
  .footer-content {
    height: auto;
    overflow: visible;
  }

  .footer-right {
    white-space: normal;
  }

  .footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
    margin-right: 70px;
  }
}

@media (max-width: 768px) {
  /* Footer positioning handled by main mobile rule (line 48-54) */
  .modern-footer {
    position: static;
    left: 0;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    min-height: 45px; /* Maintaining compact height */
    height: auto;
    padding: 10px 15px; /* Slightly increased padding for better spacing */
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  }

  .footer-content {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 12px;
    min-height: 25px; /* Inner content height to maintain total 45px */
    width: 100%;
    box-sizing: border-box;
  }

  /* Contact info on left - essential for users */
  .footer-center {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .footer-contact {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: left;
  }

  .contact-label {
    font-size: 8px;
    color: white !important;
    opacity: 1 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 600;
  }

  .contact-link {
    font-size: 9px;
    font-weight: 600;
    color: white !important;
    opacity: 1 !important;
    line-height: 1.1;
    text-decoration: none;
  }

  .contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  /* Hide logo on mobile - not needed */
  .footer-left {
    display: none;
  }

  /* Copyright and website on right */
  .footer-right {
    order: 2;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: 0 0 auto;
    justify-content: center;
  }

  .footer-copyright {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.1;
  }

  /* Show copyright and website link */
  .footer-copyright p:first-child {
    font-size: 7px;
    color: white !important;
    opacity: 1 !important;
    margin: 0;
  }

  .footer-copyright p:nth-child(2) {
    display: none; /* Hide "All Rights Reserved" to save space */
  }

  .website-link {
    display: block !important; /* Show website link */
    font-size: 7px !important;
    font-weight: 600 !important;
    color: white !important;
    opacity: 1 !important;
    line-height: 1.1;
    text-decoration: none;
  }

  .website-link:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  /* Hide powered by section on mobile - not essential */
  .footer-powered-by {
    display: none !important;
  }
}

/* Footer mobile styles moved to comprehensive mobile query above */

/* Adjust main content to account for footer */
.page-content:not(#homePage) {
  padding-bottom: 10px;
}

/* ========================================
   FORGOT PASSWORD PAGE SPECIFIC STYLES
   ======================================== */

/* Center forgot password page content */
#forgotPasswordPage .login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding-top: 60px;
  padding-bottom: 120px;
}

#forgotPasswordPage .login-header,
#forgotPasswordPage .login-form-wrapper {
  width: 100%;
  max-width: 500px;
}

/* Mobile adjustments for forgot password page */
@media (max-width: 768px) {
  #forgotPasswordPage {
    width: 100%;
    min-height: 100vh;
    padding: 0 16px;
    box-sizing: border-box;
  }

  #forgotPasswordPage .login-container {
    padding-top: 30px;
    padding-bottom: 40px;
    min-height: auto;
    width: 100%;
    margin: 0 auto;
  }

  #forgotPasswordPage .login-header,
  #forgotPasswordPage .login-form-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 10px;
  }
}

/* ========================================
   LOGIN PAGE SPECIFIC STYLES
   ======================================== */

/* Signup Link */
.signup-link {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
}

.signup-link p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.signup-link a {
  color: #1e90ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signup-link a:hover {
  color: #4169e1;
  text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: right;
  margin-top: 8px;
}

.forgot-password-link a {
  color: rgb(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password-link a:hover {
  color: #1e90ff;
  text-shadow: 0 0 8px rgba(30, 144, 255, 0.4);
}

/* ========================================
   CUSTOM MODAL STYLES
   ======================================== */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Modal Video Background with Progressive Enhancement */
.modal-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 1.0;
  /* Background image loads first as fallback */
  background: url('assets/peak-cb-12.jpg') center center / cover no-repeat;
  background-color: #0f0f23;
  /* Ultimate fallback color */
}

/* Enhanced modal transitions for professional appearance */
#customModal {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#customModal.show {
  opacity: 1;
  transform: scale(1);
}

#customModal:not(.show) {
  opacity: 0;
  transform: scale(0.95);
}

/* Modal content animation */
.modal-content {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#customModal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#customModal:not(.show) .modal-content {
  transform: translateY(-20px) scale(0.98);
  opacity: 0;
}

/* Modal Mobile Fallback Background Image */
.modal-mobile-background-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/peak-cb-12.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 1.0;
}

/* Modal Overlay Gradient */
.modal-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.5) 0%, rgb(33, 95, 176, 0.3) 50%, rgba(22, 33, 62, 0.5) 100%);
  z-index: -1;
  pointer-events: none;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.modal-container {
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.95) 0%,
      rgba(22, 33, 62, 0.95) 50%,
      rgba(15, 15, 35, 0.95) 100%);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(30, 144, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 480px;
  padding: 0;
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: modalSlideIn 0.5s ease-out;
}

.modal-overlay.show .modal-container {
  transform: scale(1) translateY(0);
}

@keyframes modalSlideIn {
  0% {
    transform: scale(0.7) translateY(100px);
    opacity: 0;
  }

  50% {
    transform: scale(1.05) translateY(-10px);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.modal-header {
  text-align: center;
  padding: 40px 30px 20px;
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e90ff, transparent);
}

/* Modal Icon */
.modal-icon {
  margin-bottom: 20px;
}

.modal-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow:
    0 12px 35px rgba(30, 144, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: iconPulse 2s infinite ease-in-out;
}

.modal-icon-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 35px rgba(30, 144, 255, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(30, 144, 255, 0.6);
  }
}

.modal-icon-circle span {
  font-size: 32px;
  position: relative;
  z-index: 2;
}

/* Modal Title */
#modalTitle {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 15px rgba(30, 144, 255, 0.3);
  letter-spacing: 0.5px;
}

/* Modal Content */
.modal-content {
  padding: 30px;
  text-align: center;
}

/* Keep AQ Profile Instructions modal left-aligned */
.modal-content[data-instructions="true"] {
  text-align: left;
}

/* Instructions modal styling */
.instructions-welcome {
  text-align: left;
  margin-bottom: 20px;
}

.instructions-section {
  margin-bottom: 15px;
}

.instructions-section-title {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instruction-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.instructions-section:hover .instruction-icon {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.5));
}

.instructions-section-content {
  padding-left: 20px;
  line-height: 1.4;
}

.instructions-footer {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}

#modalMessage {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

#modalMessage strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 15px;
  padding: 20px 30px 40px;
  justify-content: center;
}

/* Enhanced vertical spacing for password change modal */
#passwordChangeModal .modal-header {
  margin-bottom: 25px;
}

#passwordChangeModal .modal-content {
  margin-bottom: 30px;
}

#passwordChangeModal .password-change-form .form-group {
  margin-bottom: 20px;
}

#passwordChangeModal .password-change-form .form-group:last-child {
  margin-bottom: 0;
}

.modal-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  min-width: 120px;
  backdrop-filter: blur(10px);
}

.modal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.modal-btn:hover::before {
  left: 100%;
}

/* Primary Modal Button */
.modal-btn-primary {
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  color: white;
  border-color: rgba(30, 144, 255, 0.3);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
}

.modal-btn-primary:hover {
  background: linear-gradient(135deg, #4169e1 0%, #6495ed 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(30, 144, 255, 0.5);
}

/* Secondary Modal Button */
.modal-btn-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Disabled Modal Button State */
.modal-btn.btn-disabled,
.modal-btn-primary.btn-disabled {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.5), rgba(80, 80, 80, 0.5));
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(100, 100, 100, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-btn.btn-disabled:hover,
.modal-btn-primary.btn-disabled:hover {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.5), rgba(80, 80, 80, 0.5));
  transform: none;
  box-shadow: none;
}

.modal-btn.btn-disabled::before,
.modal-btn-primary.btn-disabled::before {
  display: none;
}

#modalIcon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 30px 20px 15px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px 30px;
  }

  .modal-btn {
    width: 100%;
  }

  .modal-icon-circle {
    width: 60px;
    height: 60px;
  }

  .modal-icon-circle span {
    font-size: 24px;
  }

  #modalTitle {
    font-size: 20px;
  }

  /* Reduce instructions modal spacing significantly for mobile */
  .modal-content {
    padding: 15px;
  }

  .modal-header {
    padding: 20px 15px 10px;
  }

  .modal-icon {
    margin-bottom: 10px;
  }

  .instructions-welcome {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .instructions-section {
    margin-bottom: 8px;
  }

  .instructions-section-title {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .instructions-section-content {
    padding-left: 18px;
    line-height: 1.3;
    font-size: 13px;
  }

  .instructions-footer {
    margin-top: 10px;
    font-size: 13px;
  }

  .modal-actions {
    padding: 10px 15px 20px;
  }
}

/* Modal mobile styles moved to comprehensive mobile query above */

/* ===== AQ RESULTS PAGE STYLES ===== */

/* Results Page Container - Direct styling within page-content */
#aqResultsPage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  /* No top padding, keep other padding */
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Results Header */
.results-header {
  text-align: center;
  margin: 0 0 15px 0;
  /* Reduced bottom margin for less vertical space */
  position: relative;
  overflow: hidden;
}

.results-winshape-logo {
  text-align: center;
  margin-bottom: 25px;
  animation: slideUp 1s ease-out 0.2s both;
}

.results-winshape-logo .loading-logo {
  width: 180px;
  height: 60px;
  margin: 0 auto;
}

.results-winshape-logo .winshape-logo {
  width: 180px;
  height: auto;
  max-width: 180px;
  filter: brightness(1);
  object-fit: contain;
}

.results-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px;
  height: 2px;
  background: none;
  transform: translateX(-50%);
  animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.results-header p:first-child {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #2563eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  animation: slideUp 1s ease-out;
}

.completion-message {
  font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
  font-weight: bold !important;
  color: white !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: normal !important;
  animation: slideUp 1s ease-out;
}

.results-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: slideUp 1s ease-out 0.3s both;
}

.congrats-text {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-top: 10px;
}

/* Results Tabs */
.results-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 1s ease-out 0.6s both;
}

/* Mobile Sticky Navigation - Hidden by default, shown only on mobile */
.mobile-sticky-nav {
  display: none;
}

/* Desktop AQ Score Section - Shown on desktop, hidden on mobile */
.desktop-aq-score-section {
  display: block;
  margin-top: 40px;
}

/* Desktop Overview Section - Shown on desktop, hidden on mobile */
.desktop-overview-section {
  display: block;
  margin-top: 40px;
}

/* Mobile AQ Score Section - Hidden on desktop, shown on mobile */
.mobile-aq-score-section {
  display: none;
}

/* Mobile Overview Section - Hidden on desktop, shown on mobile */
.mobile-overview-section {
  display: none;
}

/* Hide old separate AQ Score and Overview tabs (content now in Your AQ) */
#aq-score,
#overview {
  display: none !important;
}

@media (max-width: 768px) {

  /* Hide desktop sections on mobile */
  .desktop-aq-score-section {
    display: none !important;
  }

  .desktop-overview-section {
    display: none !important;
  }

  /* Show mobile sections */
  .mobile-aq-score-section {
    display: block;
    margin-top: 40px;
  }

  .mobile-overview-section {
    display: block;
    margin-top: 40px;
  }

  /* Hide the original AQ Score and Overview tabs on mobile */
  #aq-score {
    display: none !important;
  }

  #overview {
    display: none !important;
  }
}

@media (max-width: 480px) {

  /* Hide desktop sections on mobile */
  .desktop-aq-score-section {
    display: none !important;
  }

  .desktop-overview-section {
    display: none !important;
  }

  /* Show mobile sections */
  .mobile-aq-score-section {
    display: block;
    margin-top: 40px;
  }

  .mobile-overview-section {
    display: block;
    margin-top: 40px;
  }

  /* Hide the original AQ Score and Overview tabs on mobile */
  #aq-score {
    display: none !important;
  }

  #overview {
    display: none !important;
  }
}

/* Desktop Results Tab - Icon Based Navigation (Matches Mobile Experience) */
.results-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 80px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  padding: 12px 8px;
}

/* Animated gradient background effect */
.results-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(30, 58, 138, 0) 0%,
      rgba(37, 99, 235, 0) 25%,
      rgba(59, 130, 246, 0) 50%,
      rgba(96, 165, 250, 0) 75%,
      rgba(30, 58, 138, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 15px;
}

/* Shimmer shine effect */
.results-tab::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 70%);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

/* Hover state - Amazing effects! */
.results-tab:hover {
  background: linear-gradient(135deg,
      rgba(30, 58, 138, 0.2) 0%,
      rgba(37, 99, 235, 0.2) 50%,
      rgba(59, 130, 246, 0.2) 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.4),
    0 0 40px rgba(59, 130, 246, 0.3),
    0 0 60px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.results-tab:hover::before {
  opacity: 1;
  background: linear-gradient(135deg,
      rgba(30, 58, 138, 0.25) 0%,
      rgba(37, 99, 235, 0.25) 25%,
      rgba(59, 130, 246, 0.25) 50%,
      rgba(96, 165, 250, 0.25) 75%,
      rgba(30, 58, 138, 0.25) 100%);
  animation: gradientShift 3s ease infinite;
}

.results-tab:hover::after {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Gradient animation */
@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Active state */
.results-tab.active {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgb(0 0 0 / 35%), 0 0 50px rgb(59 130 246 / 0%), inset 0 1px 0 rgb(255 255 255 / 47%), inset 0 0 20px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.6);
}

.results-tab.active::before {
  opacity: 1;
  background: linear-gradient(135deg,
      rgba(30, 58, 138, 0.35) 0%,
      rgba(37, 99, 235, 0.35) 50%,
      rgba(59, 130, 246, 0.35) 100%);
  animation: gradientShift 3s ease infinite;
}

/* Desktop Navigation Icon Container */
.desktop-nav-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Desktop Letter Icon with Gradient */
.desktop-letter-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
  box-shadow: 0 0 15px rgba(0, 130, 255, 0.6),
    0 0 25px rgba(0, 212, 255, 0.1),
    0 4px 12px rgba(0, 82, 255, 0.4),
    inset 0 1px 4px rgba(255, 255, 255, 0.3),
    inset 0 -1px 4px rgba(0, 0, 0, 0.2);
}

/* Desktop Icon Letter Text */
.desktop-icon-letter {
  color: white;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Desktop AQ Logo */
.desktop-aq-logo {
  width: auto;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Desktop Amplify Icon */
.desktop-amplify-icon {
  width: 18px;
  height: auto;
  max-height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Desktop Navigation Label */
.desktop-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

/* Hover Icon Animation */
.results-tab:hover .desktop-nav-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.7));
}

.results-tab:hover .desktop-letter-icon {
  background: linear-gradient(135deg, #1e3a8a, #2563eb, #3b82f6, #60a5fa);
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.9),
    0 0 35px rgba(37, 99, 235, 0.5),
    inset 0 2px 6px rgba(255, 255, 255, 0.4);
  animation: iconPulse 1.5s ease-in-out infinite;
}

.results-tab:hover .desktop-icon-letter {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.results-tab:hover .desktop-nav-label {
  color: white;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
  transform: translateY(-2px);
}

/* Active State Enhancements */
.results-tab.active .desktop-nav-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
  z-index: 10;
  position: relative;
}

.results-tab.active .desktop-nav-label {
  color: #ffffff !important;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
  z-index: 20;
}

/* Press State */
.results-tab:active {
  transform: scale(0.98) translateY(-2px);
}

/* Icon pulse animation */
@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Tab Content */
.results-content {
  position: relative;
  min-height: 600px;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out;
}

/* MOBILE FIX: Disable animations for "Your AQ" tab on mobile to prevent rendering issues */
/* The animation lifecycle can cause content to disappear on mobile browsers */
@media (max-width: 768px) {
  #your-aq.tab-content {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  
  #your-aq.tab-content.active {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    visibility: visible !important;
  }
  
  /* Ensure content inside Your AQ tab is immediately visible */
  #your-aq .score-visualization,
  #your-aq .score-display,
  #your-aq .desktop-aq-score-section,
  #your-aq .mobile-aq-score-section,
  #your-aq .desktop-overview-section,
  #your-aq .mobile-overview-section {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* Score Visualization */
.score-visualization {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: visible;
}

/* Main Score Display */
.score-display {
  text-align: center;
  margin: 5px 0;
  position: relative;
}

.score-number {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #2563eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 50px rgba(65, 105, 225, 0.3);
  animation: scoreReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-label {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: scoreReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.score-range-intro {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  text-align: center;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.score-range-intro-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Bell curve percentile text - fit content width */
.mountain-chart + .score-range-intro {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 12px 24px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .score-range-intro {
    margin-top: 15px;
    padding: 15px;
    max-width: 100%;
    font-size: 0.9rem;
  }

  .score-range-intro-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .score-range-intro {
    margin-top: 12px;
    padding: 12px;
    border-left-width: 3px;
  }

  .score-range-intro-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@keyframes scoreReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Bell Curve Visualization - Desktop Unified Module */
.mountain-chart {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: auto;
  overflow: visible;
  background: rgb(17 29 48 / 0%);
  border-radius: 0 0 16px 16px;
  padding: 5px;
}

.bell-curve-svg {
  width: 100%;
  height: 280px;
  filter: none;
  animation: bellCurveRise 2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 15px;
}

/* Hide old CSS-based mountain elements in favor of SVG */
.mountain-background,
.mountain-overlay,
.score-indicator:not(#scoreIndicatorSVG),
.indicator-dot,
.indicator-line {
  display: none !important;
}

/* Override old score indicator styles for SVG */
#scoreIndicatorSVG {
  animation: bellCurveRise 2s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

#scoreIndicatorSVG circle {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
  animation: indicatorPulseSVG 2s ease-in-out infinite;
}

@keyframes indicatorPulseSVG {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.75;
  }
}

@keyframes bellCurveRise {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.mountain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Vertical section dividers - matching the 5 sections in the image */
    linear-gradient(90deg,
      transparent 0%,
      transparent 19.5%,
      rgba(255, 255, 255, 0.4) 20%,
      rgba(255, 255, 255, 0.4) 20.5%,
      transparent 21%,
      transparent 39.5%,
      rgba(255, 255, 255, 0.4) 40%,
      rgba(255, 255, 255, 0.4) 40.5%,
      transparent 41%,
      transparent 59.5%,
      rgba(255, 255, 255, 0.4) 60%,
      rgba(255, 255, 255, 0.4) 60.5%,
      transparent 61%,
      transparent 79.5%,
      rgba(255, 255, 255, 0.4) 80%,
      rgba(255, 255, 255, 0.4) 80.5%,
      transparent 81%,
      transparent 100%),
    /* Mountain texture details */
    radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

/* Score Indicator - ensure it's on top */
.score-indicator {
  position: relative;
  z-index: 100;
  animation: indicatorDrop 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s both;
}

@keyframes indicatorDrop {
  0% {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.indicator-dot {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow:
    0 8px 25px rgba(65, 105, 225, 0.4),
    0 0 20px rgba(65, 105, 225, 0.6);
  animation: indicatorPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes indicatorPulse {

  0%,
  100% {
    box-shadow:
      0 8px 25px rgba(65, 105, 225, 0.4),
      0 0 20px rgba(65, 105, 225, 0.6),
      0 0 0 0 rgba(65, 105, 225, 0.7);
  }

  50% {
    box-shadow:
      0 8px 25px rgba(65, 105, 225, 0.6),
      0 0 30px rgba(65, 105, 225, 0.8),
      0 0 0 15px rgba(65, 105, 225, 0);
  }
}

.indicator-line {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 2px;
  height: 250px;
  background: linear-gradient(180deg,
      rgba(65, 105, 225, 0.8) 0%,
      rgba(65, 105, 225, 0.4) 50%,
      rgba(65, 105, 225, 0.1) 100%);
  transform: translateX(-50%);
  opacity: 0.7;
}

/* Scale Container */
.scale-container {
  position: relative;
  bottom: auto;
  height: auto;
  margin: -12px 0 0 0;
  padding: 0;
  background: none;
}

/* Hide separate scale markers */
.scale-markers {
  display: none;
}

.scale-marker {
  display: none;
}

/* Range Labels Container - with integrated scale numbers and divider */
.range-labels {
  position: relative;
  bottom: auto;
  margin: 0;
  padding: 20px;
  border-radius: 15px;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  background: linear-gradient(90deg, #1a1a1a9c, #1e4786, #1a1a1aad);
}

/* White divider line - positioned between numbers and labels */
.range-labels::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 0px;
  background: #ffffff00;
  width: 100%;
  z-index: 1;
}

/* Range Label - Stack number above text */
.range-label {
  font-size: 18px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #F7931E;
  font-weight: 700;
  flex: 1;
  text-transform: uppercase;
  padding-top: 0;
  animation: slideUp 1s ease-out 2s both;
}

/* Add white numbers above LOW and HIGH */
.range-label.low::before {
  content: "40";
  display: block;
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

.range-label.high::before {
  content: "200";
  display: block;
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

/* Results page numeric scores - apply circle button styling */
#totalAqScore,
#controlScore,
#ownershipScore,
#reachScore,
#enduranceScore {
  width: 65px !important;
  height: 65px !important;
  border-radius: 50% !important;
  background: rgba(58, 61, 74, 0.4) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  box-shadow:
    0 8px 25px rgba(58, 61, 74, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.1),
    inset 0 -2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  letter-spacing: 1px !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

/* Score title styling */
.score-title {
  font-size: 2.2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main AQ score - enhanced modern circular design */
#totalAqScore {
  margin: 0 auto !important;
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  font-size: 72px !important;
  font-weight: 800 !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(26, 26, 46, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  border: 3px solid rgba(59, 130, 246, 0.6) !important;
  box-shadow:
    0 20px 40px rgba(30, 58, 138, 0.4),
    0 0 30px rgba(59, 130, 246, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.15),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

#totalAqScore::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  transform: rotate(45deg);
  animation: aqScoreShimmer 3s infinite ease-in-out;
}

#totalAqScore::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  pointer-events: none;
}

/* Dimensional scores alignment - keep right aligned in headers */
#controlScore,
#ownershipScore,
#reachScore,
#enduranceScore {
  margin-left: auto !important;
}

/* Score Explanation */
.score-explanation {
  margin: 25px 0;
  animation: slideUp 1s ease-out 1.8s both;
}

.explanation-card {
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
  padding: 25px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.explanation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #1e3a8a);
}

.explanation-card h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.explanation-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.percentile-info {
  padding: 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.percentile-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1rem;
}

/* Dimensional Scores */
.dimensional-scores {
  margin-top: 0px;
  animation: slideUp 1s ease-out 2.2s both;
}

.dimensional-scores h3 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.dimension-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.6));
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dimension-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

.dimension-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.3);
}

.dimension-card:hover::before {
  left: 100%;
}

.dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dimension-name {
  color: #3b82f6;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dimension-score {
  color: white;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.dimension-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}

.dimension-fill {
  height: 100%;
  background: linear-gradient(90deg, #0030ff, #00b0ff);
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: barFill 2s ease-out 2.5s both;
}

.dimension-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: barShine 2s ease-in-out infinite;
}

@keyframes barFill {
  0% {
    width: 0 !important;
  }
}

@keyframes barShine {

  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

.dimension-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Results Page 2x2 Grid Layout for Overview-Style Dimensions */
.results-dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  margin: 0 auto;
}

.results-dimension {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.6));
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.results-dimension::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.results-dimension:hover::before {
  opacity: 1;
}

.results-dimension:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive - stack vertically on small screens */
@media (max-width: 768px) {
  .results-dimensions-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 15px;
  }

  .results-dimension {
    padding: 20px;
    gap: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Reorder: Score on top */
  .overview-score {
    order: -2;
    margin: 0 auto 10px auto;
    position: static !important;
    align-self: center;
  }

  /* Then icon/letter */
  .overview-dimension-icon {
    order: -1;
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 15px;
  }

  /* Then content (title, description, graph) */
  .overview-dimension-content {
    order: 0;
    width: 100%;
  }

  .overview-dimension-title {
    text-align: center;
  }

  .overview-dimension-description {
    text-align: center;
  }

  .dimension-bar {
    margin: 15px 0 0 0;
  }

  .icon-letter {
    color: #ffc600;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 198, 0, 0.5);
    letter-spacing: 1px;
  }
}

/* Other Tab Content */
/* Modern Overview Tab Styling */
.overview-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.dimension-detail-content,
.amplify-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 50px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Overview Tab Title */
.overview-title {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.overview-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

/* Legend */
.overview-legend {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 20px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.global-average {
  background: linear-gradient(90deg, #ffc600, #ffc600);
}

.legend-color.first-score {
  background: linear-gradient(90deg, #005fff, #0099ff);
}

.legend-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Overview Dimensions */
.overview-dimensions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overview-dimension {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.6));
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.overview-dimension::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overview-dimension:hover::before {
  opacity: 1;
}

.overview-dimension:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Dimension Icon */
.overview-dimension-icon {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
  box-shadow: 0 0 30px rgba(0, 130, 255, 0.8), 0 0 50px rgb(0 212 255 / 10%), 0 8px 25px rgba(0, 82, 255, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.3), inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.overview-dimension-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #1e3a8a, #3b82f6, #2563eb, #1e40af);
  border-radius: 50%;
  z-index: -1;
  animation: iconRotate 8s linear infinite;
}

@keyframes iconRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.icon-letter {
  color: white;
  font-family: 'Roboto', sans-serif;
  font-size: 55px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
  letter-spacing: 2px;
}

/* Dimension Content */
.overview-dimension-content {
  flex: 1;
  min-width: 0;
}

.overview-dimension-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: 1.5px;
}

.overview-dimension-description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  font-style: italic;
}

/* Progress Bars */
.overview-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-bar-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.overview-bar-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.overview-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.overview-bar-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-fill {
  background: linear-gradient(90deg, #a28021, #ffd600);
}

.first-fill {
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.overview-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: barShimmer 5s ease-in-out infinite;
}

@keyframes barShimmer {

  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

/* Overview Score - using same circle button styling as assessment */
.overview-score {
  width: 65px !important;
  height: 65px !important;
  border-radius: 50% !important;
  background: rgba(58, 61, 74, 0.4) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  box-shadow:
    0 8px 25px rgba(58, 61, 74, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.1),
    inset 0 -2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  letter-spacing: 1px !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.dimension-detail-content h3,
.amplify-content h3 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

/* AQ Score Tab Styling */
.aq-score-content {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* AQ Score Hero Section */
.aq-score-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0 0 0;
}

.aq-score-title {
  color: white;
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin: 0;
}

.aq-score-circle {
  margin: 0 auto !important;
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  font-size: 72px !important;
  font-weight: 800 !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(26, 26, 46, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  border: 3px solid rgba(59, 130, 246, 0.6) !important;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.4), 0 0 30px rgba(59, 130, 246, 0.3), inset 0 2px 8px rgba(255, 255, 255, 0.15), inset 0 -3px 8px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.aq-score-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  transform: rotate(45deg);
  animation: aqScoreShimmer 3s infinite ease-in-out;
}

@keyframes scoreCircleRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.aq-score-number {
  color: white;
  font-size: 4rem;
  font-weight: 900;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.aq-score-description {
  max-width: 800px;
  padding: 30px;
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.aq-score-description p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

/* Dimension Comparison Table */
.aq-dimensions-table {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.6));
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  padding: 30px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table-header-empty {
  /* Empty space above icons */
}

.table-header-item {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-header-item span {
  text-align: center;
}

.table-header-item.global {
  color: white;
}

.table-header-item.first {
  color: #d1d5db;
}

/* Table Header Color Boxes */
.table-header-color {
  width: 16px;
  height: 8px;
  border-radius: 2px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

.table-header-color.global-average {
  background: linear-gradient(90deg, #ffc600, #ffc600);
}

.table-header-color.first-score {
  background: linear-gradient(90deg, #005fff, #0099ff);
}

.table-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.table-row.total-row {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  margin-top: 15px;
  padding-top: 20px;
  font-weight: 900;
}

.dimension-icon-cell {
  display: flex;
  justify-content: center;
}

.table-dimension-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ffd9, #0080ff, #00d4ffe8);
  box-shadow: 0 0 25px rgba(0, 130, 255, 0.8), 0 0 40px rgb(0 212 255 / 6%), 0 8px 25px rgb(0 82 255 / 59%), inset 0 2px 8px rgba(255, 255, 255, 0.3), inset 0 -2px 8px rgb(0 0 0 / 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.table-dimension-icon.total-icon {
  background: linear-gradient(135deg, #0052ffd9, #0080ffa1, #00d4ff);
  box-shadow: 0 0 25px rgba(0, 130, 255, 0.8), 0 0 40px rgb(0 159 255), 0 6px 20px rgba(0, 82, 255, 0.5);
}

.total-icon .table-icon-letter {
  color: white;
}

.total-icon .table-icon-letter img {
  width: 100%;
  height: auto;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
}

.table-dimension-icon:hover {
  transform: scale(1.1);
}

.table-icon-letter {
  color: white;
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

.table-score {
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.table-score.global-score {
  background: linear-gradient(135deg, rgb(255 210 0 / 94%) 0%, rgb(255 188 0 / 47%) 100%);
  color: white;
}

.table-score.first-score {
  background: linear-gradient(135deg, rgb(6 69 249 / 98%) 0%, rgb(59 168 246 / 77%) 100%);
  color: white;
}

.table-score.total-score {
  font-size: 2.2rem;
  border-width: 3px;
}

.table-score:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile optimization for AQ Score table - screens under 480px */
@media (max-width: 480px) {

  /* Reduce table container padding */
  .aq-dimensions-table {
    padding: 15px 10px;
  }

  /* Reduce header grid and font sizes */
  .table-header {
    grid-template-columns: 55px 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .table-header-item {
    font-size: 0.7rem;
  }

  .table-header-color {
    width: 12px;
    height: 6px;
    margin-right: 6px;
  }

  /* Reduce row spacing */
  .table-row {
    grid-template-columns: 55px 1fr 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .table-row.total-row {
    margin-top: 10px;
    padding-top: 15px;
  }

  /* Smaller dimension icons */
  .table-dimension-icon {
    width: 55px;
    height: 55px;
  }

  .table-dimension-icon.total-icon .table-icon-letter img {
    max-width: 35px;
    max-height: 35px;
  }

  /* Reduce icon letter size */
  .table-icon-letter {
    font-size: 26px;
  }

  /* Reduce score box sizes and fonts */
  .table-score {
    padding: 10px 8px;
    font-size: 1.3rem;
    border-radius: 8px;
  }

  .table-score.total-score {
    font-size: 1.6rem;
  }

  /* Even more aggressive instructions modal spacing for small mobile */
  .modal-content {
    padding: 12px;
  }

  .modal-header {
    padding: 15px 12px 8px;
  }

  .modal-icon {
    margin-bottom: 8px;
  }

  .modal-icon-circle {
    width: 50px;
    height: 50px;
  }

  .modal-icon-circle span {
    font-size: 20px;
  }

  #modalTitle {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .instructions-welcome {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .instructions-section {
    margin-bottom: 6px;
  }

  .instructions-section-title {
    margin-bottom: 3px;
    font-size: 13px;
  }

  .instructions-section-content {
    padding-left: 16px;
    line-height: 1.25;
    font-size: 12px;
  }

  .instructions-footer {
    margin-top: 8px;
    font-size: 12px;
  }

  .modal-actions {
    padding: 8px 12px 15px;
    gap: 10px;
  }
}

/* AQ Improvement Section */
.aq-improvement-section {
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.aq-improvement-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0024ff, #008aff, #0024ff);
  border-radius: 20px 20px 0 0;
}

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

.improvement-title {
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 10px rgba(0, 138, 255, 0.3);
}

.improvement-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  margin: 0;
}

.improvement-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin: 0 0 20px 0;
}

.improvement-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.improvement-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.improvement-step:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(4px);
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.step-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 6px;
}

.dimension-detail-content p,
.amplify-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aqScoreShimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  50% {
    transform: translateX(0%) translateY(0%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #aqResultsPage {
    padding: 50px 15px 20px 15px;
    /* 50px top padding added for mobile too */
  }

  .results-tabs {
    gap: 5px;
    padding: 5px;
  }

  .results-tab {
    padding: 10px 14px;
    font-size: 11px;
  }

  .mountain-chart {
    height: 300px;
  }

  .mountain-background {
    height: 240px;
  }

  .score-number {
    font-size: clamp(3rem, 10vw, 6rem);
  }

  .dimensions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dimension-card {
    padding: 25px;
  }

  .explanation-card {
    padding: 30px 20px;
  }

  .overview-content,
  .dimension-detail-content,
  .amplify-content {
    padding: 30px 20px;
  }
}

/* Watch Video Button Styles */
.video-button-container {
  text-align: center;
  margin: 0px auto 0px auto;
  padding: 20px;
}

.watch-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
  color: white;
  border: none;
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(59, 130, 246, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  min-width: 220px;
}

.watch-video-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.watch-video-btn:hover::before {
  left: 100%;
}

.watch-video-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 15px 40px rgba(59, 130, 246, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #2563eb, #60a5fa, #93c5fd);
}

.watch-video-btn:active {
  transform: translateY(-2px) scale(1.02);
  transition: all 0.1s ease;
}

.play-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  padding-left: 2px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.watch-video-btn:hover .play-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

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

.video-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: none;
  max-height: none;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

/* Custom Vimeo Player Styling */
.video-modal-content iframe {
  border-radius: 15px;
}

/* Additional Vimeo player customization through URL parameters */
.video-modal-content {
  --vimeo-color: #3b82f6;
}

.video-close-btn {
  position: absolute;
  top: -60px;
  right: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.95), rgba(96, 165, 250, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 40px rgba(59, 130, 246, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10001;
}

.video-close-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-close-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(96, 165, 250, 1), rgba(147, 197, 253, 1));
  transform: scale(1.1) rotate(90deg);
  box-shadow:
    0 15px 50px rgba(59, 130, 246, 0.5),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.video-close-btn:hover::before {
  opacity: 1;
}

.video-close-btn:active {
  transform: scale(1.05) rotate(90deg);
  transition: all 0.15s ease;
}

/* Video Margin Close Button */
.video-margin-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.95), rgba(96, 165, 250, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(25px);
  box-shadow:
    0 12px 45px rgba(59, 130, 246, 0.4),
    0 6px 25px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  z-index: 10002;
}

.video-margin-close-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-margin-close-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(96, 165, 250, 1), rgba(147, 197, 253, 1));
  transform: scale(1.15) rotate(90deg);
  box-shadow:
    0 18px 60px rgba(59, 130, 246, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.video-margin-close-btn:hover::before {
  opacity: 1;
}

.video-margin-close-btn:active {
  transform: scale(1.1) rotate(90deg);
  transition: all 0.15s ease;
}

/* Mobile responsiveness for video buttons */
@media (max-width: 768px) {
  .watch-video-btn {
    padding: 16px 30px;
    font-size: 14px;
    min-width: 180px;
    gap: 12px;
  }

  .play-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .video-modal-content {
    width: 90%;
    height: 90%;
  }

  .video-close-btn {
    top: -55px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .video-margin-close-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
}

/* Global Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent !important; /* Let video background show through */
  backdrop-filter: none; /* Remove blur so video is visible */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-image-background {
  display: none; /* Hidden - video background shows through transparent loader instead */
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hide page content by default on pages with video background + loader
   Content only becomes visible when content-ready class is added */
.sidebar,
.main-content,
.mobile-top-nav,
footer.modern-footer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show content when content-ready class is added (after loader finishes) */
.sidebar.content-ready,
.main-content.content-ready,
.mobile-top-nav.content-ready,
footer.modern-footer.content-ready,
body.content-ready .sidebar,
body.content-ready .main-content,
body.content-ready .mobile-top-nav,
body.content-ready footer.modern-footer {
  opacity: 1;
  visibility: visible;
}

.loading-container {
  text-align: center;
  color: white;
  animation: loadingFadeIn 1s ease-out;
}

.loading-logo {
  margin-bottom: 40px;
  animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo-img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.3));
}

/* 3D Ring Loader */
.loader-3d {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ring1 {
  border-top: 4px solid rgba(255, 255, 255, 0.9);
  border-right: 4px solid rgba(255, 255, 255, 0.3);
  animation: ring1Rotate 2s infinite linear;
  transform: rotateX(0deg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.ring2 {
  border-bottom: 4px solid rgba(147, 197, 253, 0.9);
  border-left: 4px solid rgba(147, 197, 253, 0.3);
  animation: ring2Rotate 2.5s infinite linear reverse;
  transform: rotateX(60deg);
  box-shadow: 0 0 25px rgba(147, 197, 253, 0.4);
}

.ring3 {
  border-right: 4px solid rgba(96, 165, 250, 0.9);
  border-top: 4px solid rgba(96, 165, 250, 0.3);
  animation: ring3Rotate 3s infinite linear;
  transform: rotateX(120deg);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.center-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 1), rgba(147, 197, 253, 0.8));
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    inset -3px -3px 6px rgba(0, 0, 0, 0.1),
    inset 3px 3px 6px rgba(255, 255, 255, 0.3);
  animation: spherePulse 1.5s ease-in-out infinite alternate;
}

/* 3D Ring Animations */
@keyframes ring1Rotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);
  }
}

@keyframes ring2Rotate {
  0% {
    transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(60deg) rotateY(-360deg) rotateZ(0deg);
  }
}

@keyframes ring3Rotate {
  0% {
    transform: rotateX(120deg) rotateY(0deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(120deg) rotateY(360deg) rotateZ(0deg);
  }
}

@keyframes spherePulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 20px rgba(255, 255, 255, 0.8),
      inset -3px -3px 6px rgba(0, 0, 0, 0.1),
      inset 3px 3px 6px rgba(255, 255, 255, 0.3);
  }

  100% {
    transform: scale(1.3);
    box-shadow:
      0 0 40px rgba(255, 255, 255, 1),
      inset -3px -3px 6px rgba(0, 0, 0, 0.1),
      inset 3px 3px 6px rgba(255, 255, 255, 0.5);
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes loadingFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0px);
  }
}

/* Loading Text Animation */
.loading-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-dots::after {
  content: '';
  animation: loadingDots 2s infinite;
}

@keyframes loadingDots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '';
  }
}

/* Smooth page transitions for fast navigation */
.main-content {
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.sidebar {
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Page transition animations now consolidated in main Page Content System */

/* Mobile optimization for loading screen */
@media (max-width: 768px) {
  .loading-logo-img {
    width: 80px;
  }

  .loader-3d {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
  }

  .ring {
    border-width: 3px;
  }

  .center-sphere {
    width: 15px;
    height: 15px;
    margin: -7.5px 0 0 -7.5px;
  }

  .loading-text {
    font-size: 16px;
  }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  .ring1,
  .ring2,
  .ring3 {
    animation-duration: 6s;
    animation-iteration-count: 1;
  }

  .spherePulse {
    animation: none;
  }

  .logoFloat {
    animation: none;
  }
}

/* Control Tab Styling */
.control-content,
.ownership-content,
.reach-content,
.endurance-content,
.amplify-content {
  padding: 0px;
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Control Header */
.control-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.6));
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.control-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ffd9, #006cff, #00aeff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.control-logo-letter {
  color: white;
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

.control-title {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

/* Control Score Section */
.control-score-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
  background: transparent;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.control-score-display {
  background: transparent;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.control-score-label {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.control-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.control-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgb(255 255 255);
  box-shadow: 0 0 35px rgb(0 130 255 / 0%), 0 0 60px rgb(0 212 255 / 0%), 0 8px 25px rgba(0, 82, 255, 0.6), inset 0 2px 8px rgba(255, 255, 255, 0.3), inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.control-score-number {
  font-size: 42px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.ownership-score-number {
  font-size: 42px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Dimension Comparison Chart */
.dimension-chart {
  width: 100%;
  display: flex;
  gap: 1px;
  align-items: flex-start;
}

/* Chart Scale */
.chart-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  padding: 30px 20px 20px 0;
  margin-right: 10px;
  text-align: right;
  align-items: flex-end;
}

.scale-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

/* Chart Bars Container */
.chart-bars-container {
  flex: 1;
}

.chart-bars {
  display: flex;
  gap: 15px;
  height: 200px;
  align-items: flex-end;
  margin-bottom: 15px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  padding: 30px 20px 20px 20px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  justify-content: flex-end;
}

/* Active bar highlighting */
.chart-bar.active-bar .bar-fill {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 5px 15px rgba(30, 64, 175, 0.4);
}

/* Vertical rotated labels */
.bar-vertical-label {
  position: absolute;
  left: -10px;
  bottom: 0px;
  transform: rotate(-90deg);
  transform-origin: bottom left;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  pointer-events: none;
  width: max-content;
  margin-left: 10px;
}

.control-label {
  color: rgb(0, 135, 255);
  font-weight: 700;
}

.ownership-label {
  color: rgb(255, 162, 0);
}

.reach-label {
  color: rgb(0, 225, 255);
}

.endurance-label {
  color: rgb(20, 210, 23);
}

.bar-fill {
  width: 40px;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 1s ease-out;
  order: 2;
  flex-shrink: 0;
  overflow: hidden;
}

.bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: barShimmer 2s ease-in-out infinite;
}

.control-fill {
  background: linear-gradient(180deg, #007fff, #0047b8);
  height: 100%;
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
}

.ownership-fill {
  background: linear-gradient(180deg, #d97706, #f59e0b);
  height: 100%;
  box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
}

.reach-fill {
  background: linear-gradient(1deg, #1e7b8a, #00feff);
  height: 100%;
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.4);
}

.endurance-fill {
  background: linear-gradient(0deg, #236c00, #11d414);
  height: 100%;
  box-shadow: 0 5px 15px rgba(71, 85, 105, 0.4);
}


.bar-score {
  font-size: 16px;
  font-weight: 700;
  color: white;
  order: 0;
  margin-top: 10px;
  text-align: center;
}

.dimension-icons {
  display: flex;
  gap: 15px;
  justify-content: space-around;
  margin-top: 5px;
  padding: 0 20px;
}

.dimension-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
}

/* Active icon highlighting */
.dimension-icon.active-icon {
  box-shadow:
    0 0 30px rgba(0, 130, 255, 1),
    0 0 50px rgba(0, 212, 255, 0.9),
    0 8px 25px rgba(0, 82, 255, 0.7);
  border: 2px solid rgb(255 255 255 / 90%);
  transform: scale(1.1);
}

.control-icon-small {
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
}

.ownership-icon-small {
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
}

.reach-icon-small {
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
}

.endurance-icon-small {
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
}

/* Control page specific - reduce dimension icons by 25% */
.control-content .dimension-icon {
  width: 37.5px;
  height: 37.5px;
  font-size: 13.5px;
}

/* Control page specific - icon letter font size */
.control-content .icon-letter {
  font-size: 25px;
}

/* Control Description */
.control-description {
  padding: 30px;
}

.control-description h3 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.control-description p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
  padding-top: 25px;
}

/* Your C Score Section */
.your-c-score-section {
  background: transparent;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  margin-bottom: 30px;
  margin-top: 50px;
}

.your-c-score-section h3 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
  text-align: center;
}

.your-c-score-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* AQ Skill Builder */
.aq-skill-builder {
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
  padding: 40px;
  border-radius: 15px;
  color: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.aq-skill-builder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  pointer-events: none;
}

.skill-builder-header {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.skill-builder-icon {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.arrow-up {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.skill-builder-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-builder-challenge {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 30px;
  font-weight: bold;
}

.skill-builder-content {
  position: relative;
  z-index: 1;
  text-align: left;
}

.skill-builder-content p {
  font-weight: bold;
  text-align: left;
  color: #ffffff;
  margin-bottom: 20px;
}

.skill-builder-quote em {
  font-weight: bold;
}

.skill-builder-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #fbbf24;
  background: rgba(59, 130, 246, 0.1);
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #fbbf24;
  margin-bottom: 25px;
  font-weight: bolder;
}

.skill-builder-action {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  text-align: left;
  font-weight: bold;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Tablet/Medium Desktop Responsiveness - Description under score */
@media (min-width: 769px) and (max-width: 1200px) {
  .control-score-section {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .control-score-display,
  .mobile-score-content {
    width: 100% !important;
  }

  /* Fix overview-dimensions for tablet viewport */
  .overview-legend {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
  }

  .overview-dimensions {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .overview-dimension {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
  }

  .overview-bars {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .legend-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .legend-color {
    width: 16px !important;
    height: 10px !important;
    border-radius: 2px !important;
  }
}

/* Mobile Responsiveness for Control Tab */
@media (max-width: 768px) {
  .control-content {
    padding: 20px;
    margin: 10px 0;
  }

  .control-header {
    padding: 20px;
    margin-bottom: 30px;
  }

  .control-logo {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .control-logo-circle {
    width: 60px;
    height: 60px;
  }

  .control-logo-letter {
    font-size: 28px;
  }

  .control-title {
    font-size: 32px;
  }

  .control-score-section {
    grid-template-columns: 1fr;
    gap: 30px;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .control-score-circle {
    width: 100px;
    height: 100px;
  }

  .control-score-number {
    font-size: 36px;
  }

  /* Improved chart layout for mobile */
  .dimension-chart {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .chart-scale {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 220px !important;
    padding: 25px 10px 15px 0 !important;
    margin-right: 6px !important;
    text-align: right !important;
  }

  .scale-value {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .chart-bars-container {
    flex: 1 !important;
    width: 100% !important;
  }

  .chart-bars {
    height: 220px !important;
    padding: 25px 12px 15px 12px !important;
    gap: 10px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6)) !important;
    border-radius: 12px !important;
  }

  .bar-fill {
    width: 45px !important;
  }

  .bar-score {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  .bar-vertical-label {
    font-size: 8px !important;
    letter-spacing: 5px !important;
  }

  .dimension-icon {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .control-description {
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-radius: 15px;
  }

  .your-c-score-section {
    padding: 20px;
  }

  .aq-skill-builder {
    padding: 25px;
  }

  .skill-builder-icon {
    flex-direction: column;
    text-align: center;
  }

  .arrow-up {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Display Control - Show appropriate version based on screen size */

/* Desktop/Tablet: Show wrapped version, hide mobile copy */
@media (min-width: 769px) {
  .control-score-display {
    display: block;
  }

  .mobile-score-content {
    display: none;
  }
}

/* Mobile/Tablet: Hide wrapped version, show simplified copy */
@media (max-width: 768px) {
  .control-score-display {
    display: none;
  }

  .mobile-score-content {
    display: block;
  }
}

/* Smallest Mobile Devices - Control Tab Minimized Layout */
@media screen and (max-width: 480px) {

  /* Control score section now contains content directly */
  .control-score-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 15px 10px !important;
    margin-bottom: 15px !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile content styling */
  .mobile-score-content .control-score-label {
    display: block !important;
    font-size: 16px !important;
    margin-bottom: 10px !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .mobile-score-content .control-score-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
  }

  /* Main container adjustments - force override */
  .control-content {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Header minimized */
  .control-header {
    padding: 10px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .control-title {
    font-size: 20px !important;
    margin-top: 5px !important;
  }

  .control-logo-circle {
    width: 40px !important;
    height: 40px !important;
  }

  .control-logo-letter {
    font-size: 20px !important;
  }

  /* Score section - minimized and inline - REMOVED CONFLICTING GRID */
  .control-score-section {
    padding: 15px 10px !important;
    margin-bottom: 15px !important;
    /* grid-template-columns removed - using flex from line 6559 */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .control-score-display {
    display: none !important;
  }

  /* Compact score circle */
  .control-score-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .control-score-number {
    font-size: 24px;
  }

  .control-score-label {
    font-size: 6px;
    margin-bottom: 10px;
  }

  /* Chart section - maximized for smaller mobile */
  .dimension-chart {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .chart-scale {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 220px !important;
    padding: 25px 10px 15px 0 !important;
    margin-right: 6px !important;
    text-align: right !important;
  }

  .scale-value {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap !important;
  }

  .chart-bars-container {
    flex: 1 !important;
    width: 100% !important;
  }

  .chart-bars {
    height: 220px !important;
    padding: 25px 12px 15px 12px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6)) !important;
    border-radius: 12px !important;
  }

  .bar-fill {
    width: 45px !important;
    max-width: 45px !important;
  }

  .bar-score {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  /* Vertical label adjustments */
  .bar-vertical-label {
    font-size: 8px !important;
    letter-spacing: 2px !important;
  }

  .control-label,
  .ownership-label,
  .reach-label,
  .endurance-label {
    font-size: 8px !important;
  }

  /* Dimension icons - compact with constraints */
  .dimension-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  .dimension-icons {
    gap: 4px !important;
    padding: 0 3px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Description section - minimized with constraints */
  .control-description {
    padding: 15px 10px !important;
    margin-top: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2) !important;
    border-radius: 15px !important;
  }

  .control-description h3 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .control-description p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    word-wrap: break-word !important;
  }

  /* Hide any extra spacing elements with constraints */
  .your-c-score-section {
    padding: 15px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .aq-skill-builder {
    padding: 15px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .skill-builder-icon {
    flex-direction: column !important;
    text-align: center !important;
  }

  .arrow-up {
    width: 35px !important;
    height: 35px !important;
    font-size: 18px !important;
  }

  /* Force main control container to never overflow */
  #controlTab {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Force chart container to stay within bounds */
  .chart-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

/* Results page mobile styles moved to comprehensive mobile query above */

/* ===================================
   AMPLIFY PAGE STYLES
   =================================== */

/* Amplify Hero Section */
.amplify-hero {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.amplify-mountain-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
}

.amplify-mountain-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Climbing Path */
.climbing-path {
  position: absolute;
  left: 15%;
  top: 20%;
  bottom: 10%;
  width: 3px;
  background: linear-gradient(to bottom,
      rgba(0, 212, 255, 0.8) 0%,
      rgba(0, 212, 255, 0.4) 100%);
  border-radius: 2px;
}

/* Path Points */
.path-point {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
}

.path-point[data-position="80"] {
  top: 0%;
}

.path-point[data-position="60"] {
  top: 25%;
}

.path-point[data-position="40"] {
  top: 50%;
}

.path-point[data-position="20"] {
  top: 75%;
}

.path-point[data-position="0"] {
  top: 100%;
}

.path-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ff, #00d4ff);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.9);
  }
}

.path-label {
  position: absolute;
  left: 35px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

/* Active Score Path Point */
.path-point.active-score .path-dot {
  width: 28px;
  height: 28px;
  border: 4px solid white;
  background: linear-gradient(135deg, #0052ff, #0080ff, #00d4ff);
  box-shadow: 0 0 30px rgba(0, 212, 255, 1), 0 0 60px rgba(0, 130, 255, 0.8);
  animation: active-pulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes active-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 1), 0 0 60px rgba(0, 130, 255, 0.8);
  }

  50% {
    transform: scale(1.2);
    box-shadow: 0 0 40px rgba(0, 212, 255, 1), 0 0 80px rgba(0, 130, 255, 1);
  }
}

.path-point.active-score .path-label {
  background: linear-gradient(135deg, #0052ffd9, #00d4ffe8);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  animation: label-glow 2s ease-in-out infinite;
}

@keyframes label-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  }

  50% {
    box-shadow: 0 0 35px rgba(0, 212, 255, 1);
  }
}

/* Keep Climbing Text */
.keep-climbing-text {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 1.5px;
  text-align: center;
}

/* Amplify Hero Content */
.amplify-hero-content {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin-top: 30px;
}

.amplify-title {
  font-size: 38px;
  font-weight: 900;
  color: rgb(255 255 255);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgb(255 255 255 / 60%);
  letter-spacing: 2px;
}

.amplify-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Glass Card Design */
.glass-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 15px;
}

.glass-card p:last-child {
  margin-bottom: 0;
}

/* Perspective Section */
.amplify-perspective-section {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.perspective-intro {
  font-size: 18px !important;
  font-weight: 500;
}

.perspective-question {
  font-size: 17px !important;
  margin-bottom: 20px !important;
}

/* CORE Dimensions Grid */
.amplify-core-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.amplify-core-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.amplify-core-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 82, 255, 0.2) 0%,
      rgba(0, 212, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.amplify-core-card:hover::before {
  opacity: 1;
}

.amplify-core-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgb(0, 98, 255, 0.3);
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
}

/* CORE Card Specific Borders */
.control-card:hover {
  border-color: rgb(0, 98, 255, 0.6);
}

.ownership-card:hover {
  border-color: rgb(0, 98, 255, 0.6);
}

.reach-card:hover {
  border-color: rgb(0, 98, 255, 0.6);
}

.endurance-card:hover {
  border-color: rgb(0, 98, 255, 0.6);
}

/* CORE Icon Large */
.core-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.amplify-core-card:hover .core-icon-large {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.7);
}

.icon-letter-large {
  font-size: 36px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 8px rgb(255, 255, 255, 0.3);
}

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

.core-card-content p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

/* Reflection Section */
.amplify-reflection-section {
  max-width: 100%;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.reflection-card {
  background: linear-gradient(135deg, rgb(12 76 242 / 71%), rgba(22, 33, 62, 0.6));
  text-align: center;
  padding: 40px;
}

.reflection-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgb(0, 0, 0, 0.5);
}

.reflection-question {
  font-size: 19px !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.7 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .amplify-mountain-container {
    height: 350px;
  }

  .climbing-path {
    left: 12%;
  }

  .path-label {
    font-size: 9px;
    padding: 3px 8px;
    left: 28px;
  }

  .path-dot {
    width: 16px;
    height: 16px;
  }

  .indicator-dot {
    width: 22px;
    height: 22px;
  }

  .indicator-label {
    font-size: 11px;
    padding: 4px 10px;
    left: 35px;
  }

  .keep-climbing-text {
    font-size: 14px;
    top: 20px;
  }

  .amplify-title {
    font-size: 32px;
  }

  .amplify-subtitle {
    font-size: 16px;
  }

  .amplify-core-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .core-icon-large {
    width: 70px;
    height: 70px;
  }

  .icon-letter-large {
    font-size: 32px;
  }

  .reflection-title {
    font-size: 24px;
  }

  .glass-card {
    padding: 20px;
  }

  .glass-card p {
    font-size: 0.8rem !important;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE OPTIMIZATION < 768px
   Mobile Bell Curve Graph - Unified Design
   ============================================ */
@media (max-width: 768px) {

  /* ===== MOBILE BELL CURVE - UNIFIED MODULE ===== */

  /* Unified wrapper - single dark background module with padding */
  .mobile-bell-curve-module {
    position: relative;
    background: rgb(54 80 120 / 0%);
    border-radius: 0 0 16px 16px;
    margin-bottom: 20px;
    overflow: visible;
    padding: 32px 24px 24px 24px;
  }

  /* Bell Curve Container - Remove all styling to sit inside module */
  .mountain-chart {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  .bell-curve-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    margin: 0;
    filter: none !important;
  }

  /* Scale Container - Part of unified module, no extra styling */
  .scale-container {
    position: relative !important;
    bottom: auto !important;
    height: auto;
    margin: -12px 0 0 0 !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0;
  }

  /* Hide separate scale markers */
  .scale-markers {
    display: none !important;
  }

  /* Range Labels Container - with integrated scale numbers and divider */
  .range-labels {
    position: relative;
    bottom: auto;
    margin: 0;
    padding: 15px 15px 15px 15px;
    border-radius: 15px;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
    background: linear-gradient(90deg, #1a1a1a9c, #1e4786, #1a1a1aad);
  }

  /* White divider line - positioned between numbers and labels */
  .range-labels::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 0px;
    background: #27529a;
    width: 100%;
    z-index: 1;
  }

  /* Range Label - Stack number above text */
  .range-label {
    font-size: 12px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #F7931E;
    font-weight: 700;
    flex: 1;
    text-transform: uppercase;
    padding-top: 0;
  }

  /* Add white numbers above LOW and HIGH */
  .range-label.low::before {
    content: "40";
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
  }

  .range-label.high::before {
    content: "200";
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
  }

  /* Score Indicator Circle - Thicker stroke for mobile visibility */
  #scoreIndicatorSVG circle {
    stroke-width: 8;
  }

  /* Score Indicator - ensure it's on top */
  .score-indicator {
    z-index: 100 !important;
    position: relative;
  }

  /* Total AQ Score - Mobile Size */
  #totalAqScore {
    width: 100px !important;
    height: 100px !important;
    font-size: 35px !important;
  }
}

/* ============================================
   EXTRA SMALL MOBILE OPTIMIZATION < 480px
   Additional refinements for smallest screens
   ============================================ */
@media (max-width: 480px) {

  /* ===== OVERVIEW TAB ===== */

  /* Adjust module padding for smaller screens */
  .mobile-bell-curve-module {
    padding: 20px 16px 20px 16px;
  }

  /* Slightly smaller SVG on very small screens */
  .bell-curve-svg {
    max-height: 180px;
  }

  .scale-marker {
    font-size: 18px;
  }

  .range-label {
    font-size: 8px;
  }

  /* Total AQ Score - Mobile Size */
  #totalAqScore {
    width: 100px !important;
    height: 100px !important;
    font-size: 35px !important;
  }

  /* Overview Title */
  .overview-title {
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
  }

  .overview-title::after {
    width: 80px;
  }

  /* Legend - Stack vertically */
  .overview-legend {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
  }

  .legend-item {
    gap: 8px;
  }

  .legend-color {
    width: 16px;
    height: 10px;
  }

  .legend-item span {
    font-size: 0.8rem;
    text-align: center !important;
  }

  /* Overview Dimensions - Compact and STACK VERTICALLY */
  .overview-dimensions {
    gap: 12px;
  }

  .overview-dimension {
    padding: 15px;
    gap: 12px;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .overview-dimension-icon {
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 8px;
  }

  .icon-letter {
    font-size: 24px !important;
  }

  .overview-dimension-content {
    width: 100% !important;
  }

  .overview-dimension-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-align: center !important;
  }

  .overview-dimension-description {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center !important;
  }

  /* Overview Bars - Reduce height and ensure full width */
  .overview-bars {
    gap: 8px;
    width: 100% !important;
  }

  .overview-bar-row {
    height: 35px;
    width: 100% !important;
  }

  .overview-bar-label {
    font-size: 0.8rem;
    min-width: 80px;
    text-align: center !important;
  }

  .overview-bar-value {
    font-size: 0.8rem;
    min-width: 32px;
    text-align: center !important;
  }

  /* Overview Score Circle */
  .overview-score {
    width: 55px !important;
    height: 55px !important;
    font-size: 20px !important;
  }

  /* ===== AQ SCORE TAB ===== */

  /* Main AQ Score Display */
  .aq-score-circle {
    width: 140px !important;
    height: 140px !important;
    margin-bottom: 20px;
  }

  .aq-score-number {
    font-size: 3rem;
  }

  .aq-score-label {
    font-size: 0.8rem;
    text-align: center !important;
  }

  .aq-score-description {
    padding: 20px 15px;
  }

  .aq-score-description p {
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center !important;
  }

  /* AQ Improvement Section */
  .aq-improvement-section {
    padding: 20px 15px;
  }

  .improvement-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: center !important;
  }

  .improvement-subtitle {
    font-size: 0.8rem;
    text-align: center !important;
  }

  .improvement-content p {
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center !important;
  }

  .improvement-steps {
    gap: 12px;
  }

  .improvement-step {
    padding: 12px 14px;
    gap: 12px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .step-text {
    font-size: 0.85rem;
    line-height: 1.5;
    padding-top: 3px;
    text-align: left;
  }

  /* ===== C.O.R.E. DIMENSION TABS (Control, Ownership, Reach, Endurance) ===== */

  /* Dimension Headers */
  .control-header,
  .ownership-header,
  .reach-header,
  .endurance-header {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }

  .control-title,
  .ownership-title,
  .reach-title,
  .endurance-title {
    font-size: 0.8rem !important;
    margin-top: 8px !important;
  }

  .control-logo-circle,
  .ownership-logo-circle,
  .reach-logo-circle,
  .endurance-logo-circle {
    width: 45px !important;
    height: 45px !important;
  }

  .control-logo-letter,
  .ownership-logo-letter,
  .reach-logo-letter,
  .endurance-logo-letter {
    font-size: 22px !important;
  }

  /* Dimension Content */
  .control-content,
  .ownership-content,
  .reach-content,
  .endurance-content {
    padding: 15px !important;
  }

  /* Score Sections - Compact layout and STACK VERTICALLY */
  .control-score-section,
  .ownership-score-section,
  .reach-score-section,
  .endurance-score-section {
    display: flex !important;
    padding: 15px 12px !important;
    margin-bottom: 15px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .control-score-circle,
  .ownership-score-circle,
  .reach-score-circle,
  .endurance-score-circle {
    width: 65px !important;
    height: 65px !important;
  }

  .control-score-number,
  .ownership-score-number,
  .reach-score-number,
  .endurance-score-number {
    font-size: 26px !important;
  }

  .control-score-label,
  .ownership-score-label,
  .reach-score-label,
  .endurance-score-label {
    font-size: 0.8rem !important;
  }

  /* Charts - Full width on mobile */
  .dimension-chart {
    width: 100% !important;
    margin-top: 15px !important;
  }

  .chart-bars-container {
    width: 100% !important;
  }

  /* Analysis/Explanation Sections */
  .control-analysis,
  .ownership-analysis,
  .reach-analysis,
  .endurance-analysis {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }

  .analysis-title {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }

  .analysis-content p {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  /* Skill Building Sections */
  .control-skills,
  .ownership-skills,
  .reach-skills,
  .endurance-skills {
    padding: 15px !important;
  }

  .skills-title {
    font-size: 0.8rem !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

  .skill-item {
    padding: 12px !important;
    margin-bottom: 10px !important;
  }

  .skill-icon {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.8rem !important;
  }

  .skill-content h4 {
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
    text-align: center !important;
  }

  .skill-content p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  /* ===== AMPLIFY PAGE ===== */

  /* Mountain Container */
  .amplify-mountain-container {
    height: 280px;
    margin-bottom: 25px;
  }

  .climbing-path {
    left: 10%;
  }

  .path-label {
    font-size: 0.8rem;
    padding: 2px 6px;
    left: 24px;
  }

  .path-dot {
    width: 12px;
    height: 12px;
  }

  .indicator-dot {
    width: 18px;
    height: 18px;
  }

  .indicator-label {
    font-size: 0.8rem;
    padding: 3px 8px;
    left: 28px;
  }

  .keep-climbing-text {
    font-size: 0.8rem;
    top: 15px;
  }

  /* Amplify Header */
  .amplify-header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .amplify-title {
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
  }

  .amplify-subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center !important;
  }

  /* Amplify CORE Cards */
  .amplify-core-grid {
    gap: 15px;
    padding: 0 10px;
  }

  .amplify-core-card {
    padding: 18px;
  }

  .core-icon-large {
    width: 55px;
    height: 55px;
  }

  .icon-letter-large {
    font-size: 26px;
  }

  .amplify-core-card h3 {
    font-size: 0.8rem;
    margin: 12px 0 10px;
    text-align: center !important;
  }

  .core-card-content p {
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center !important;
  }

  /* Amplify Reflection */
  .amplify-reflection-section {
    padding: 0 15px;
    margin-bottom: 30px;
  }

  .reflection-card {
    padding: 25px 18px;
  }

  .reflection-title {
    font-size: 0.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center !important;
  }

  .reflection-question {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }

  /* ===== GENERAL CONTENT AREAS ===== */

  .dimension-detail-content,
  .amplify-content {
    padding: 20px 15px !important;
  }

  .dimension-detail-content p,
  .amplify-content p {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }

  /* Results Page Padding */
  #aqResultsPage {
    padding: 40px 12px 20px 12px !important;
  }

  /* Tab Content Padding */
  .overview-content {
    padding: 20px 12px !important;
  }

  /* Glass Cards */
  .glass-card {
    padding: 15px;
    margin-bottom: 15px;
  }

  /* Reduce all card gaps and margins */
  .results-dimensions-grid {
    gap: 12px;
  }

  .results-dimension {
    padding: 15px;
    gap: 12px;
  }

  /* ===== MOBILE STICKY NAVIGATION ===== */

  /* Hide desktop tabs on mobile */
  .desktop-tabs {
    display: none !important;
  }

  /* Mobile Sticky Navigation */
  .mobile-sticky-nav {
    position: sticky;
    top: 60px;
    /* Below mobile header */
    z-index: 999;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    margin: 0 -12px 20px -12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  /* Mobile Navigation Tab Button */
  .mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    min-height: 60px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  /* Touch-friendly tap effect */
  .mobile-nav-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
  }

  .mobile-nav-tab:active::before {
    width: 100px;
    height: 100px;
  }

  /* Navigation Icon Container */
  .mobile-nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  /* Letter Icon with Gradient */
  .mobile-letter-icon {
    border-radius: 50%;
    background: linear-gradient(135deg, #0052ffd9, #0080ff96, #00d4ffe8);
    box-shadow: 0 0 15px rgba(0, 130, 255, 0.6),
      0 0 25px rgba(0, 212, 255, 0.1),
      0 4px 12px rgba(0, 82, 255, 0.4),
      inset 0 1px 4px rgba(255, 255, 255, 0.3),
      inset 0 -1px 4px rgba(0, 0, 0, 0.2);
  }

  /* Icon Letter Text */
  .mobile-icon-letter {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
    -webkit-text-stroke: 0.5px white;
    text-stroke: 0.5px white;
  }

  /* Amplify Icon Image */
  .mobile-amplify-icon {
    width: 16px;
    height: auto;
    max-height: 16px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    display: block;
  }

  /* AQ Logo in Navigation */
  .nav-aq-logo {
    width: 24px;
    height: auto;
    object-fit: contain;
  }

  /* Navigation Label */
  .nav-label {
    font-size: 7px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.5);
    text-stroke: 0.3px rgba(255, 255, 255, 0.5);
  }

  /* Active State with Glassmorphism */
  .mobile-nav-tab.active {
    background: rgb(0 21 41 / 65%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 12px rgb(0 5 14 / 30%), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .mobile-nav-tab.active .mobile-nav-icon {
    transform: scale(1.1);
  }

  .mobile-nav-tab.active .nav-label {
    color: white;
    font-weight: 900;
  }

  /* Hover/Press State for better UX */
  .mobile-nav-tab:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
  }

  /* Results Page Padding Adjustment for Sticky Nav */
  #aqResultsPage {
    padding-top: 20px !important;
  }

  /* Tab Content Spacing */
  .results-content {
    padding-top: 10px;
  }
}

/* Hide mobile nav on desktop (481px and above) */
@media (min-width: 481px) {
  .mobile-sticky-nav {
    display: none !important;
  }
}

/* Enhanced Survey Modal Styles */
.survey-modal .modal-content {
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
}

.survey-required-modal .modal-content {
  text-align: left;
  line-height: 1.6;
}

.survey-required-modal .modal-content {
  font-size: 15px;
  white-space: pre-line;
  margin-bottom: 20px;
}

.survey-required-modal .modal-title {
  color: #3b82f6;
  margin-bottom: 15px;
}

/* Survey progress indicator */
.survey-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.survey-progress-step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
  transition: all 0.3s ease;
}

.survey-progress-step.active {
  background: #3b82f6;
  transform: scale(1.2);
}

.survey-progress-step.completed {
  background: #10b981;
}

/* Enhanced survey form validation */
.survey-form-group textarea:invalid {
  border-color: #ef4444;
}

.survey-form-group textarea:valid {
  border-color: #10b981;
}

/* Survey loading states */
.survey-loading {
  opacity: 0.6;
  pointer-events: none;
}

.survey-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: surveySpin 1s linear infinite;
}

@keyframes surveySpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Survey success animation */
.survey-success {
  animation: surveySuccessPulse 0.6s ease-out;
}

@keyframes surveySuccessPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Inline Instructions Styles */
.inline-instructions {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin: 20px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.instructions-container {
  max-width: 900px;
  margin: 0 auto;
}

.instructions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.instructions-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.instructions-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructions-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.instruction-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.instruction-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.instruction-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
}

.instruction-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

.instructions-footer {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.instructions-footer p {
  font-size: 16px;
  color: white;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.instructions-start-btn {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.instructions-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.instructions-start-btn:active {
  transform: translateY(0);
}

/* Mobile optimizations for inline instructions */
@media (max-width: 768px) {
  .inline-instructions {
    padding: 20px 16px;
    margin: 16px 12px;
  }

  .instructions-header h2 {
    font-size: 24px;
  }

  .instructions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .instruction-item {
    padding: 16px;
  }

  .instruction-icon {
    width: 40px;
    height: 40px;
  }

  .instruction-text h4 {
    font-size: 16px;
  }

  .instruction-text p {
    font-size: 13px;
  }

  .instructions-footer {
    padding: 16px;
  }

  .instructions-start-btn {
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* Fade in animation for instructions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print PDF Button Enhanced Styling */
.print-pdf-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%) !important;
}

.print-pdf-btn:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.print-pdf-btn svg {
  transition: transform 0.3s ease;
}

.print-pdf-btn:hover svg {
  transform: scale(1.1);
}

/* Video and PDF Button Container Styling */
.video-pdf-button-container {
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap;
}

/* Ensure buttons have consistent heights */
.video-pdf-button-container .watch-video-btn,
.video-pdf-button-container .print-pdf-btn {
  height: auto;
  min-height: 44px;
  white-space: nowrap;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .video-pdf-button-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    margin-bottom: 15px !important;
  }

  .video-pdf-button-container .watch-video-btn,
  .video-pdf-button-container .print-pdf-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .video-pdf-button-container {
    gap: 8px !important;
  }

  .video-pdf-button-container .print-pdf-btn span {
    font-size: 13px;
  }

  .video-pdf-button-container .watch-video-btn span {
    font-size: 13px;
  }
}