/* Modern CSS Variables for Light/Dark Theme */
:root {
  /* Shared header height used by header-sidebar module */
  --header-height: 70px;
  /* Color Variables */
  --primary-color: #667eea;
  --accent-color: #764ba2;
  --secondary-color: #4facfe;
  --warning-color: #f59e0b;
  --success-color: #10b981;
  --error-color: #ef4444;
  --text-color: #1e293b;
  /* Light Theme Colors */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.25);
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-light: rgba(226, 232, 240, 0.8);
  --border-medium: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-zh: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;
  
  --border-light: rgba(51, 65, 85, 0.8);
  --border-medium: #334155;
  --border-strong: #475569;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* Modern Header */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .modern-header {
  background: rgba(15, 23, 42, 0.8);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand .brand-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.nav-brand .brand-link:hover {
  transform: translateY(-2px);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Header & actions (homepage-compatible) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 40px; height: 40px; border-radius: 8px; }
.logo-text { font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Theme Toggle (icon button) */
.theme-toggle { background: none; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s ease; color: var(--text-secondary); }
.theme-toggle:hover { background: var(--bg-secondary); color: #6366f1; }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="light"] .moon-icon, [data-theme="dark"] .sun-icon { display: none; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; flex-direction: column; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1100; position: relative; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: var(--text-primary); margin: 3px 0; transition: all .3s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Sidebar */
.sidebar { position: fixed; right: -280px; top: 0; bottom: 0; width: 280px; background: var(--bg-secondary); z-index: 1500; transition: right .3s ease; box-shadow: var(--shadow-lg); overflow-y: auto; }
.sidebar.active { right: 0; }
.sidebar-content { padding: var(--header-height) 20px 20px; }
.sidebar-brand { padding: 10px 4px 12px; border-bottom: 1px solid var(--border-medium); margin-bottom: 8px; }
.sidebar-logo-text { font-size: 1.125rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .2px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 15px; }
.sidebar-link { color: var(--text-primary); text-decoration: none; font-weight: 500; padding: 10px 15px; border-radius: 8px; transition: all .3s ease; }
.sidebar-link:hover { background: var(--bg-tertiary); }
.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1490; display: none; }
.sidebar-overlay.active { display: block; }

/* Language Dropdown (homepage-compatible) */
.lang-dropdown { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-tertiary); border: 1px solid var(--border-medium); border-radius: 999px; padding: 6px 10px; font-size: 14px; color: var(--text-secondary); transition: all .3s ease; }
.lang-btn:hover { box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.lang-options { position: absolute; top: 100%; right: 0; background: var(--bg-primary); border: 1px solid var(--border-medium); border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 140px; z-index: 10; display: none; }
.lang-options.show { display: block; }
.lang-option { padding: 8px 12px; cursor: pointer; transition: all .2s ease; }
.lang-option:hover { background: var(--bg-secondary); }

/* Auth buttons */
.btn-login { padding: 8px 12px; background: linear-gradient(135deg, #60a5fa 0%, #6366f1 100%); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; }
.btn-login:hover { filter: brightness(1.05); }
.user-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }

/* Main Content */
.main-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* Hero Section */
.hero-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  opacity: 1;
  z-index: 0;
  overflow: hidden;
}

@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.06;
  filter: blur(1px);
  animation: floatShape 15s ease-in-out infinite;
  pointer-events: none;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 14s;
}

.shape-3 {
  width: 50px;
  height: 50px;
  top: 75%;
  left: 25%;
  animation-delay: 4s;
  animation-duration: 16s;
}

.shape-4 {
  width: 70px;
  height: 70px;
  top: 20%;
  right: 25%;
  animation-delay: 1s;
  animation-duration: 20s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.06;
  }
  25% {
    transform: translate(15px, -20px) scale(1.1);
    opacity: 0.08;
  }
  50% {
    transform: translate(-10px, 15px) scale(0.95);
    opacity: 0.05;
  }
  75% {
    transform: translate(20px, 10px) scale(1.05);
    opacity: 0.07;
  }
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
  .hero-background::before {
    animation-duration: 30s;
  }
  
  .shape {
    opacity: 0.04;
  }
  
  .shape-1 {
    width: 50px;
    height: 50px;
    top: 10%;
    left: 5%;
  }
  
  .shape-2 {
    width: 40px;
    height: 40px;
    top: 50%;
    right: 10%;
  }
  
  .shape-3 {
    width: 35px;
    height: 35px;
    top: 70%;
    left: 15%;
  }
  
  .shape-4 {
    width: 45px;
    height: 45px;
    top: 25%;
    right: 20%;
  }
}

/* Vietnamese Font Optimization */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap');

/* Vietnamese font stack with comprehensive fallbacks */
:root {
  --font-vietnamese: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 
                     'Helvetica Neue', 'Arial', 'Liberation Sans', 'sans-serif';
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 
                 'Helvetica Neue', 'Arial', 'Liberation Sans', 'sans-serif';
}

/* Ensure Vietnamese characters display properly */
.level-title,
.level-description,
.section-title,
.section-description,
.title-main,
.title-subtitle {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-display: swap;
}

/* Fallback for when custom fonts fail to load */
@supports not (font-family: 'Inter') {
  .level-title,
  .level-description,
  .section-title,
  .section-description,
  .title-main,
  .title-subtitle {
    font-family: var(--font-system) !important;
  }
}

/* Level card hover animation improvements */
.level-card {
  will-change: transform, box-shadow;
}

.level-card:hover {
  will-change: auto;
}

/* Error States and Loading */
.error-state, .no-levels-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4xl);
  text-align: center;
  min-height: 200px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  background: var(--surface-color);
}

.error-icon, .no-levels-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.7;
}

.error-text, .no-levels-text {
  max-width: 400px;
}

.error-text h3, .no-levels-text h3 {
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
}

.error-text p, .no-levels-text p {
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.retry-button {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.message-container {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 9999;
  max-width: 400px;
  padding: var(--spacing-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.message-container:not(.hidden) {
  transform: translateX(0);
}

.message-container.error {
  border-color: var(--danger-color);
  background: #fef2f2;
}

.message-container.info {
  border-color: var(--info-color);
  background: #eff6ff;
}

.message-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-color);
  font-size: 0.9rem;
}

.message-content i {
  font-size: 1.1rem;
}

.message-container.error .message-content i {
  color: var(--danger-color);
}

.message-container.info .message-content i {
  color: var(--info-color);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }     /* Minimal movement */
}

.hero-content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
  width: 100%;
}

.hero-title {
  margin-bottom: 0!important;         /* Reduced from 2xl */
}

.title-main {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
  font-family: var(--font-vietnamese);
  line-height: 1.15;
}

.title-subtitle {
  display: block;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 500;
  color: #64748b;
  font-family: var(--font-vietnamese);
  opacity: 0.85;
}

.hero-animation {
  margin-top: var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
}

.chinese-chars {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.char {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  animation: charReveal 0.5s ease forwards;
  cursor: default;
  transition: transform var(--transition-fast);
  font-family: var(--font-zh);
}

.char:hover {
  transform: translateY(-10px) scale(1.2);
}

.char:nth-child(1) { animation-delay: 0.1s; }
.char:nth-child(2) { animation-delay: 0.2s; }
.char:nth-child(3) { animation-delay: 0.3s; }
.char:nth-child(4) { animation-delay: 0.4s; }
.char:nth-child(5) { animation-delay: 0.5s; }
.char:nth-child(6) { animation-delay: 0.6s; }

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

/* Section Styles */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  overflow: visible;
}

/* Expand levels container to allow scroll */
#levelContainer .section-container {
  max-width: 100%;
  width: 100%;
  overflow: visible;
  padding: 0 1rem;
}

/* Expand options container to use full viewport effectively */
#examOptionsContainer .section-container {
  max-width: calc(100vw - 2rem);    /* Full viewport minus minimal padding */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;                 /* Minimal padding for edge spacing */
}

/* Also expand exam list container */
#examListContainer .section-container {
  max-width: calc(100vw - 2rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.levels-section, .options-section, .exams-section {
  padding: var(--spacing-lg) 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.levels-section,
.options-section,
.exams-section {
  position: relative;
  margin-top: 1.5rem;
}

.levels-section::before,
.options-section::before,
.exams-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-medium) 20%, var(--primary-color) 50%, var(--border-medium) 80%, transparent 100%);
}

.levels-section::after,
.options-section::after,
.exams-section::after {
  content: '◆';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 0 1rem;
  color: var(--primary-color);
  font-size: 0.75rem;
  opacity: 0.6;
}

.options-section {
  overflow-x: hidden;
}

.section-header, .options-header, .exams-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

.options-header {
  position: relative;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
}
.options-header .section-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 1;
  pointer-events: none;
}
.options-header .back-button {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: #1e293b;
  font-family: var(--font-vietnamese);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.section-description {
  font-size: 0.9rem;
  color: #64748b;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 500;
  font-family: var(--font-vietnamese);
}

[data-theme="dark"] .section-title { color: #f1f5f9; }
[data-theme="dark"] .section-description { color: #94a3b8; }

.section-title i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-xl);
}

.back-button:hover {
  background: var(--bg-tertiary);
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   LEVELS GRID — macOS Dock Design
   ===================================================== */

.dock-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  letter-spacing: 0.3px;
}

.dock-shelf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The glass tray bar — hidden, replaced by clean grid */
.dock-bar {
  display: none;
}

[data-theme="dark"] .dock-bar {
  display: none;
}

/* The items row — clean grid layout */
.dock-items {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 10px;
  padding: 0;
  position: relative;
  z-index: 2;
  overflow: visible !important;
  flex-wrap: wrap !important;
  min-height: auto;
}

/* Individual dock item — compact card */
.dock-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  transform-origin: center center;
  will-change: transform;
  position: relative;
  flex-shrink: 0;
  opacity: 0;
  animation: dockPop .4s cubic-bezier(.34,1.56,.64,1) forwards;
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dock-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.18);
  border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .dock-item {
  background: var(--bg-secondary);
  border-color: rgba(255,255,255,0.06);
}

@keyframes dockPop {
  0%   { opacity: 0; transform: scale(.5) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* The icon circle — compact */
.dock-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: box-shadow .2s ease;
  flex-shrink: 0;
}

/* Per-level gradients via nth-child */
.dock-item:nth-child(1) .dock-icon { background: linear-gradient(145deg, #818cf8, #6366f1); }
.dock-item:nth-child(2) .dock-icon { background: linear-gradient(145deg, #c084fc, #8b5cf6); }
.dock-item:nth-child(3) .dock-icon { background: linear-gradient(145deg, #22d3ee, #06b6d4); }
.dock-item:nth-child(4) .dock-icon { background: linear-gradient(145deg, #34d399, #10b981); }
.dock-item:nth-child(5) .dock-icon { background: linear-gradient(145deg, #fbbf24, #f59e0b); }
.dock-item:nth-child(6) .dock-icon { background: linear-gradient(145deg, #f87171, #ef4444); }

/* HSK 3.0 coming soon */
.dock-icon-soon {
  background: linear-gradient(145deg, #e9d5ff, #c084fc) !important;
  border: 2px dashed rgba(147,51,234,.4);
}

.dock-soon-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #a855f7;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: dockDotPulse 2s ease infinite;
}

[data-theme="dark"] .dock-soon-dot { border-color: #1e1e2e; }

@keyframes dockDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}

.dock-icon-num {
  font-family: 'SF Pro Display', 'Inter', var(--font-system);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
  line-height: 1;
  letter-spacing: -.5px;
}

/* Label next to icon */
.dock-item-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color .2s ease;
}

.dock-item:hover .dock-item-label { color: var(--primary-color); }

/* Reflection removed for clean look */
.dock-icon::after {
  display: none;
}

/* Tooltip hidden — label is visible inline */
.dock-item::before {
  display: none;
}

/* Active / selected state */
.dock-item.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.06));
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.dock-item.active .dock-item-label {
  color: var(--primary-color);
}

[data-theme="dark"] .dock-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
  border-color: rgba(102, 126, 234, 0.4);
}

/* Bounce on click */
.dock-item:active {
  animation: dockBounce .35s ease;
}

@keyframes dockBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(.88); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ---- Dock Responsive ---- */
@media (max-width: 640px) {
  .dock-items { gap: 6px; }
  .dock-icon { width: 38px; height: 38px; border-radius: 10px; }
  .dock-icon-num { font-size: 0.95rem; }
  .dock-item { padding: 0.45rem 0.8rem; gap: 8px; border-radius: 12px; }
  .dock-item-label { font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .dock-items { gap: 4px; }
  .dock-icon { width: 34px; height: 34px; border-radius: 8px; }
  .dock-icon-num { font-size: 0.85rem; }
  .dock-item { padding: 0.35rem 0.65rem; }
  .dock-item-label { font-size: 0.68rem; }
}

@media (min-width: 769px) {
  .dock-icon { width: 48px; height: 48px; border-radius: 14px; }
  .dock-icon-num { font-size: 1.2rem; }
  .dock-item { padding: 0.65rem 1.4rem; gap: 12px; }
  .dock-item-label { font-size: 0.85rem; }
}

/* HSK 3.0 coming soon specific */
.hsk30-coming-soon { cursor: default; }
.hsk30-coming-soon .dock-icon { opacity: .75; }

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

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

/* Enhanced Structure Styling - Wizard Style */
.structure-preview-container {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Wizard Structure Card */
.wizard-structure-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin: var(--spacing-md) 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
  transition: all var(--transition-normal);
  width: 100%;
  max-width: none;
}

.wizard-structure-card::before {
  display: none;
}

.wizard-structure-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: none;
}

.wizard-structure-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.wizard-structure-header::before {
  display: none;
}

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

.wizard-structure-header .header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.wizard-structure-header .header-left i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.wizard-structure-header .header-left h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-zh);
  letter-spacing: 0.3px;
}

.wizard-expand-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.wizard-expand-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.wizard-expand-btn.expanded {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.wizard-expand-btn i {
  transition: transform var(--transition-normal);
  font-size: 0.75rem;
}

.wizard-structure-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-normal);
  opacity: 0.95;
  position: relative;
  background: transparent;
}

.wizard-structure-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.wizard-structure-content.expanded {
  max-height: none;
  opacity: 1;
}

.wizard-structure-content.expanded::after {
  opacity: 0;
}

/* Exam Overview Header */
.exam-overview-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: var(--spacing-2xl);
}

.overview-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.exam-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.exam-title i {
  font-size: 1.3rem;
  opacity: 0.9;
}

.exam-stats {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.stat-item i {
  opacity: 0.8;
}

/* Sections Container */
.sections-container {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  background: var(--bg-primary);
}

.structure-content:not(.expanded) .sections-container {
  padding: 0 var(--spacing-lg);
}

.structure-content.expanded .sections-container {
  padding: var(--spacing-md);
}

/* Wizard Structure Section Cards */
.wizard-structure-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  margin-bottom: 0;
  position: relative;
}

/* Different colors for each section */
.wizard-structure-section:nth-child(1) {
  border-left: 4px solid #e74c3c;
}

.wizard-structure-section:nth-child(2) {
  border-left: 4px solid #3498db;
}

.wizard-structure-section:nth-child(3) {
  border-left: 4px solid #2ecc71;
}

.wizard-structure-section:nth-child(4) {
  border-left: 4px solid #f39c12;
}

.wizard-structure-content:not(.expanded) .wizard-structure-section {
  margin-bottom: 0;
}

.wizard-structure-content.expanded .wizard-structure-section {
  margin-bottom: 0;
}

.wizard-structure-section:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.wizard-structure-section:last-child {
  margin-bottom: 0;
}

/* Wizard Section Header */
.wizard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-card);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

/* Different header styles for each section */
.wizard-structure-section:nth-child(1) .wizard-section-header {
  background: rgba(231, 76, 60, 0.04);
}

.wizard-structure-section:nth-child(2) .wizard-section-header {
  background: rgba(52, 152, 219, 0.04);
}

.wizard-structure-section:nth-child(3) .wizard-section-header {
  background: rgba(46, 204, 113, 0.04);
}

.wizard-structure-section:nth-child(4) .wizard-section-header {
  background: rgba(243, 156, 18, 0.04);
}

.wizard-section-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.wizard-section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
}

/* Different colors for section icons */
.wizard-structure-section:nth-child(1) .wizard-section-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.2);
}

.wizard-structure-section:nth-child(2) .wizard-section-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.wizard-structure-section:nth-child(3) .wizard-section-icon {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 2px 6px rgba(46, 204, 113, 0.2);
}

.wizard-structure-section:nth-child(4) .wizard-section-icon {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  box-shadow: 0 2px 6px rgba(243, 156, 18, 0.2);
}

.wizard-section-icon::before {
  display: none;
}

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

.wizard-section-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-zh);
}

.wizard-section-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.wizard-section-summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.wizard-section-summary .question-count {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 2px var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: 0;
}

.wizard-section-summary .part-count {
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary-color);
  padding: 2px var(--spacing-xs);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.12);
}

.question-count {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.part-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
}

/* Wizard Parts Container */
.wizard-parts-container {
  padding: var(--spacing-sm) var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-sm);
  background: transparent;
}

/* Collapsed State - Show parts in tight grid */
.wizard-structure-content:not(.expanded) .wizard-parts-container {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
}

/* Expanded State - Show parts in looser grid with more details */
.wizard-structure-content.expanded .wizard-parts-container {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

/* Wizard Part Items */
.wizard-part-item {
  background: var(--bg-card);
  border: 1px solid rgba(102, 126, 234, 0.08);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.wizard-part-item::before {
  display: none;
}

.wizard-part-item:hover {
  border-color: rgba(102, 126, 234, 0.15);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.wizard-part-item:hover::before {
  display: none;
}

.wizard-part-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.wizard-part-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.wizard-part-number {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.wizard-part-range {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 2px var(--spacing-xs);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.wizard-part-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.wizard-part-meta .question-count {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 2px var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: 0;
}

.wizard-part-meta .group-count {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  padding: 2px var(--spacing-xs);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: none;
  letter-spacing: 0;
}

/* Section summary group count */
.wizard-section-summary .group-count {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  padding: 2px var(--spacing-xs);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: none;
}

/* Wizard Sections Container */
.wizard-sections-container {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  background: transparent;
}

.wizard-structure-content:not(.expanded) .wizard-sections-container {
  padding: var(--spacing-sm) var(--spacing-md);
  gap: var(--spacing-sm);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wizard-structure-content.expanded .wizard-sections-container {
  padding: var(--spacing-md) var(--spacing-lg);
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

/* Wizard Part Details */
.wizard-part-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.wizard-part-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-left: 3px solid var(--primary-color);
  background: rgba(102, 126, 234, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--spacing-xs) 0;
  position: relative;
}

.wizard-part-description::before {
  display: none;
}

.wizard-group-info, .wizard-repeat-info, .wizard-format-info {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.8rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 126, 234, 0.15);
  margin: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) 0;
  font-weight: 500;
}

.wizard-format-info {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
  border-color: rgba(46, 204, 113, 0.15);
}

.wizard-repeat-info {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
  border-color: rgba(231, 76, 60, 0.15);
}

.wizard-group-info i, .wizard-repeat-info i, .wizard-format-info i {
  opacity: 0.8;
  color: var(--primary-color);
}

.wizard-format-info i {
  color: #27ae60;
}

.wizard-repeat-info i {
  color: #e74c3c;
}

.wizard-empty-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-2xl);
  text-align: center;
  color: var(--text-secondary);
}

.wizard-empty-structure i {
  font-size: 2.5rem;
  opacity: 0.5;
}

.wizard-empty-structure p {
  margin: 0;
  font-size: 1rem;
}

.repeat-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(102, 126, 234, 0.1);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Part Details */
.part-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Group Info Styling */
.group-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.group-info.explicit-group {
  background: linear-gradient(135deg, #fce4ec, #fdf2f5);
  border-left: 4px solid #e91e63;
  color: #ad1457;
  font-weight: 600;
}

.group-info.listening-group {
  background: linear-gradient(135deg, #e3f2fd, #f1f8ff);
  border-left: 4px solid #2196f3;
  color: #1565c0;
}

.group-info.reading-group {
  background: linear-gradient(135deg, #fff3e0, #fff8f1);
  border-left: 4px solid #ff9800;
  color: #e65100;
}

.group-info.single-group {
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.group-info i {
  font-size: 1rem;
  opacity: 0.8;
}

/* Sub Groups */
.sub-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  margin: var(--spacing-xs) 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--spacing-xs);
  border-left: 3px solid #e91e63;
  font-size: 0.8rem;
}

.sub-group.detailed-group {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.sub-group.detailed-group:hover {
  background: linear-gradient(135deg, #f0f4ff 0%, #dae8ff 100%);
  border-left-color: var(--primary-color);
  transform: translateX(2px);
}

.sub-group.detailed-group .group-number {
  font-weight: 600;
  color: var(--primary-color);
  min-width: 60px;
}

.sub-group.detailed-group .group-range {
  color: var(--text-color);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.sub-group.detailed-group .variable-size {
  background: var(--warning-color);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.group-number {
  font-weight: 600;
  color: #333;
}

.group-range {
  color: #666;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px var(--spacing-xs);
  border-radius: var(--spacing-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.variable-size {
  font-size: 0.7rem;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  color: #92400e;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid #f59e0b;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Format Info */
.format-info {
  display: flex;
  align-items: center;
}

.format-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-primary);
}

.format-badge.mt {
  border-color: #10b981;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #065f46;
}

.format-badge.tf {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.format-badge.fb {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  color: #92400e;
}

.format-badge.tc {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #6b21a8;
}

.format-badge i {
  opacity: 0.8;
}

/* Empty State */
.empty-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-2xl);
  text-align: center;
  color: var(--text-secondary);
}

.empty-structure i {
  font-size: 3rem;
  opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #examOptionsContainer .section-container {
    max-width: 98vw;
    padding: 0 var(--spacing-xs);
  }
  
  .wizard-structure-card {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-lg);
  }
  
  .wizard-structure-header {
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }
  
  .wizard-structure-header .header-left h3 {
    font-size: 1.1rem;
  }
  
  .wizard-sections-container {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-lg) !important;
    padding: var(--spacing-md) !important;
  }
  
  .wizard-structure-content:not(.expanded) .wizard-sections-container {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
    padding: var(--spacing-sm) !important;
  }
  
  .wizard-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }
  
  .wizard-section-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .wizard-section-summary {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .wizard-part-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .wizard-part-title {
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: center;
    width: 100%;
  }
  
  .wizard-parts-container {
    grid-template-columns: 1fr !important;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }
  
  .wizard-structure-content:not(.expanded) .wizard-parts-container {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  
  .wizard-structure-content.expanded .wizard-parts-container {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }
  
  .wizard-part-item {
    padding: var(--spacing-md);
  }
  
  .wizard-part-description {
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .wizard-group-info, .wizard-repeat-info, .wizard-format-info {
    font-size: 0.75rem;
    padding: 3px var(--spacing-xs);
    display: block;
    margin: var(--spacing-xs) 0;
    width: fit-content;
  }
}

/* Legacy structure styling (for compatibility) */
/* Structure Display */
.structure-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.structure-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.structure-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.structure-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.structure-header h4::before {
  content: '📋';
  font-size: 1.1em;
}

.expand-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.expand-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.expand-btn.expanded {
  background: rgba(255, 255, 255, 0.25);
}

.expand-btn i {
  transition: transform var(--transition-normal);
  font-size: 0.8rem;
}

.structure-content {
  max-height: 200px;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-normal);
  opacity: 0.8;
  position: relative;
}

.structure-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.structure-content.expanded {
  max-height: none;
  opacity: 1;
}

.structure-content.expanded::after {
  opacity: 0;
}

/* Action Buttons - Compact Layout */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  max-width: 600px;
  margin: 0 auto;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: left;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.action-btn:hover::before {
  opacity: 0.1;
}

.primary-btn {
  border-color: transparent;
  background: var(--primary-gradient);
  color: var(--text-inverse);
  position: relative;
}

.primary-btn::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
}

.primary-btn:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.secondary-btn {
  border-color: transparent;
  background: var(--secondary-gradient);
  color: var(--text-inverse);
  position: relative;
}

.secondary-btn::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
}

.secondary-btn:hover {
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.25);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.btn-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-vietnamese);
}

.btn-subtitle {
  font-size: 0.78rem;
  opacity: 0.85;
  font-weight: 400;
}

/* Mobile responsive for action buttons */
@media (max-width: 768px) {
  .action-buttons {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .action-btn {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .btn-title {
    font-size: 0.9rem;
  }
  
  .btn-subtitle {
    font-size: 0.75rem;
  }
}

/* (duplicate overrides removed — consolidated above) */

/* Exams Grid */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.exam-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: examCardReveal 0.6s ease forwards;
}

.exam-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

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

.exam-lock {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 32px;
  height: 32px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.exam-new-badge {
  position: absolute;
  top: 0;
  left: var(--spacing-md);
  background: #10b981;
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exam-content {
  margin-top: var(--spacing-md);
}

.exam-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  font-family: var(--font-zh);
}

.exam-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Gradient variations for exam cards */
.gradient-blue { border-left: 4px solid #3b82f6; }
.gradient-green { border-left: 4px solid #10b981; }
.gradient-orange { border-left: 4px solid #f59e0b; }
.gradient-purple { border-left: 4px solid #8b5cf6; }
.gradient-red { border-left: 4px solid #ef4444; }

/* Modern Footer */
.modern-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
  margin-top: var(--spacing-3xl);
}

.modern-footer .footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.modern-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
  gap: var(--spacing-2xl);
}

.modern-footer .footer-brand {
  flex: 1;
  min-width: 250px;
}

.modern-footer .brand-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.modern-footer .brand-logo img {
  border-radius: var(--radius-md);
}

.modern-footer .brand-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modern-footer .brand-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.modern-footer .footer-stats {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.modern-footer .stat-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.modern-footer .stat-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.modern-footer .stat-content {
  display: flex;
  flex-direction: column;
}

.modern-footer .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modern-footer .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.modern-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.modern-footer .footer-links {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.modern-footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
  color: white;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
/* HSK circular logo next to characters */
.hsk-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
}

[data-theme="dark"] .hsk-logo {
  border-color: var(--border-strong);
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .container { padding: 0 var(--spacing-md); }
  
  .main-content {
    margin-top: var(--header-height);
  }
  .mobile-menu-toggle { display: inline-flex !important; }
  .logo-text { display: none; }
  
  .brand-text {
    display: none;
  }
  
  .chinese-chars {
    gap: var(--spacing-sm);
  }
  
  .char {
    font-size: 2rem;
  }

  .hsk-logo {
    width: 40px;
    height: 40px;
  }
  
  .levels-grid {
    gap: 1rem;
    padding: 0.75rem 0.25rem 1rem;
  }
  
  .level-card {
    flex: 0 0 180px;
    min-width: 180px;
    max-width: 180px;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .action-btn {
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-stats {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .exams-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Desktop: levels in a centered row */
@media (min-width: 1024px) {
  .levels-grid {
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  .level-card {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--spacing-sm);
  }
  
  .section-container {
    padding: 0 var(--spacing-sm);
  }
  

  
  .char {
    font-size: 1.5rem;
  }
  
  .level-card {
    padding: var(--spacing-lg);
  }
  
  .structure-card {
    padding: var(--spacing-lg);
  }
  
  .action-btn {
    flex-direction: column;
    text-align: center;
  }
}

/* Smooth animations for better UX */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Responsive Structure Display ===== */
/* Collapsed State - Show compact view */
.structure-content:not(.expanded) .part-item .part-details {
  display: none !important;
}

.structure-content:not(.expanded) .parts-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: var(--spacing-md) !important;
  padding: var(--spacing-md) var(--spacing-lg) !important;
}

.structure-content:not(.expanded) .part-item {
  padding: var(--spacing-md) !important;
  border-radius: var(--radius-md) !important;
}

.structure-content:not(.expanded) .part-header {
  margin-bottom: var(--spacing-xs) !important;
}

/* Expanded State - Show full details */
.structure-content.expanded .part-item .part-details {
  display: block !important;
}

.structure-content.expanded .parts-container {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--spacing-lg) !important;
  padding: var(--spacing-lg) var(--spacing-xl) !important;
}

.structure-content.expanded .part-item {
  padding: var(--spacing-lg) !important;
}

.structure-content.expanded .part-header {
  margin-bottom: var(--spacing-md) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .structure-content:not(.expanded) .parts-container {
    grid-template-columns: 1fr !important;
  }
  
  .overview-main {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--spacing-md) !important;
  }
  
  .exam-stats {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

/* ===== FORCE STRUCTURE DISPLAY ===== */
.structure-card {
  display: block !important;
  visibility: visible !important;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin: 24px 0 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.structure-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 24px !important;
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
}

.structure-header h4 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.expand-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

.structure-content {
  display: block !important;
  max-height: 200px !important;
  overflow: hidden !important;
  position: relative !important;
  background: white !important;
}

.structure-content.expanded {
  max-height: none !important;
}

/* Force sections to show */
.structure-preview-container,
.exam-overview-header,
.sections-container,
.structure-section,
.part-item {
  display: block !important;
  visibility: visible !important;
}

.sections-container {
  padding: 16px !important;
}

.structure-section {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
}

.section-header {
    /* background: #f8f9ff !important; */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: column;
}
.parts-container {
  padding: 16px 20px !important;
  display: block !important;
}

.part-item {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  padding: 12px !important;
  margin-bottom: 8px !important;
}

/* =====================================================
   ACCESS KEY SECTION
   ===================================================== */

.access-key-section {
  position: relative;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(102,126,234,.08), rgba(118,75,162,.06), rgba(79,172,254,.04));
  border: 1px solid rgba(102,126,234,.15);
  border-radius: 12px;
  margin: 0.75rem auto;
  max-width: 600px;
  overflow: hidden;
}

.access-key-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2, #4facfe);
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
}

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

[data-theme="dark"] .access-key-section {
  background: linear-gradient(135deg, rgba(102,126,234,.12), rgba(118,75,162,.10), rgba(79,172,254,.08));
  border-color: rgba(102,126,234,.25);
}

/* --- AK Header --- */
.ak-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.ak-header-icon {
  color: #667eea;
  font-size: 1rem;
  flex-shrink: 0;
}

.ak-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.ak-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Buy Link --- */
.ak-buy-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(102,126,234,.08), rgba(118,75,162,.06));
  border: 1px solid rgba(102,126,234,.15);
  color: #667eea;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}

.ak-buy-link:hover {
  background: linear-gradient(135deg, rgba(102,126,234,.14), rgba(118,75,162,.10));
  border-color: rgba(102,126,234,.3);
  transform: translateX(2px);
}

.ak-buy-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform .25s ease;
}

.ak-buy-link:hover .ak-buy-arrow {
  transform: translateX(3px);
}

[data-theme="dark"] .ak-buy-link {
  background: rgba(102,126,234,.12);
  border-color: rgba(102,126,234,.25);
  color: #a5b4fc;
}

/* --- Form --- */
.access-key-form {
  max-width: 480px;
  margin: 0 auto;
}

/* --- Single Input Mode --- */
.access-key-single-mode {
  margin-bottom: 0.5rem;
  transition: opacity .3s ease, transform .3s ease;
}

.access-key-input-container {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 3px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.access-key-input-container:hover {
  border-color: rgba(102,126,234,.4);
  box-shadow: 0 6px 25px rgba(102,126,234,.12);
}

.access-key-input-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 6px 30px rgba(102,126,234,.2), 0 0 0 4px rgba(102,126,234,.1);
}

[data-theme="dark"] .access-key-input-container {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.access-key-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  color: #667eea;
  font-size: 0.85rem;
  transition: transform .3s ease;
}

.access-key-input-container:focus-within .access-key-icon {
  transform: scale(1.05);
}

.access-key-main-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-family: 'Roboto Mono','SF Mono','Consolas',monospace;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.5rem;
  color: var(--text-primary);
  outline: none;
  text-transform: uppercase;
}

.access-key-main-input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.access-key-submit-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

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

.access-key-submit-btn:hover::before { left: 100%; }
.access-key-submit-btn:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(102,126,234,.45); }
.access-key-submit-btn:active { transform: scale(0.98); }
.access-key-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.access-key-submit-btn:disabled::before { display: none; }
.access-key-submit-btn .fa-spinner { animation: spin 1s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Split Boxes Mode (Verification Animation) --- */
.access-key-split-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.access-key-split-mode.hidden { display: none; }

.access-key-boxes-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1rem;
  background: rgba(255,255,255,.5);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

[data-theme="dark"] .access-key-boxes-container {
  background: rgba(30,41,59,.5);
}

.access-key-prefix-display {
  font-family: 'Roboto Mono',monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
  padding: 0 0.5rem;
  letter-spacing: 2px;
}

[data-theme="dark"] .access-key-prefix-display { color: #a5b4fc; }

.access-key-dash {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-tertiary);
  margin: 0 2px;
  opacity: .7;
}

.access-key-digit-box {
  width: 42px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono',monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 2px solid var(--border-medium);
  border-radius: 10px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  transform: scale(.5) translateY(20px);
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
}

[data-theme="dark"] .access-key-digit-box {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.access-key-digit-box.reveal {
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: digitPopIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes digitPopIn {
  0%   { opacity: 0; transform: scale(.5) translateY(20px); }
  60%  { opacity: 1; transform: scale(1.1) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.access-key-digit-box.highlight {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.1));
  box-shadow: 0 0 20px rgba(102,126,234,.4), 0 0 40px rgba(102,126,234,.2);
  transform: scale(1.08);
  animation: pulse .5s ease;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(102,126,234,.4); }
  50%      { box-shadow: 0 0 30px rgba(102,126,234,.6), 0 0 50px rgba(102,126,234,.3); }
}

.access-key-digit-box.success {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(6,214,160,.1));
  color: #10b981;
  box-shadow: 0 0 20px rgba(16,185,129,.4), 0 0 40px rgba(16,185,129,.15);
  animation: successBounce .5s cubic-bezier(.34,1.56,.64,1);
}

@keyframes successBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.15); }
  60%  { transform: scale(.95); }
  100% { transform: scale(1); }
}

.access-key-digit-box.error {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(220,38,38,.1));
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,.4), 0 0 40px rgba(239,68,68,.15);
  animation: shake .5s cubic-bezier(.36,.07,.19,.97);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

/* --- Status Message --- */
.access-key-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px) scale(.95);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

.access-key-status.show { opacity: 1; transform: translateY(0) scale(1); }

.access-key-status.success {
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(6,214,160,.1));
  color: #10b981;
  border: 1px solid rgba(16,185,129,.3);
}

.access-key-status.error {
  background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(220,38,38,.1));
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.3);
}

.access-key-status i { font-size: 1rem; }
.access-key-status.success i { animation: checkmarkPop .5s cubic-bezier(.34,1.56,.64,1); }

@keyframes checkmarkPop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --- Error Display --- */
.access-key-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(220,38,38,.05));
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.75rem;
  animation: errorSlideIn .4s cubic-bezier(.4,0,.2,1);
}

.access-key-error.show { display: flex; }

@keyframes errorSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.access-key-error i { font-size: 0.9rem; }

[data-theme="dark"] .access-key-error {
  background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(220,38,38,.08));
  border-color: rgba(239,68,68,.4);
  color: #f87171;
}

.access-key-error.fade-out { animation: slideUp .3s ease-out forwards; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 60px; }
}

@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); max-height: 60px; }
  to   { opacity: 0; transform: translateY(-10px); max-height: 0; }
}

/* --- Hints --- */
.ak-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.ak-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.65rem;
  background: rgba(102,126,234,.08);
  color: var(--text-secondary);
  border: 1px solid rgba(102,126,234,.12);
  transition: all .25s ease;
}

.ak-hint:hover {
  background: rgba(102,126,234,.12);
  border-color: rgba(102,126,234,.25);
}

.ak-hint i { color: #667eea; font-size: 0.65rem; flex-shrink: 0; }

.ak-hint-warn {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.12);
}

.ak-hint-warn:hover {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.25);
}

.ak-hint-warn i { color: #f59e0b; }

[data-theme="dark"] .ak-hint { background: rgba(102,126,234,.12); border-color: rgba(102,126,234,.2); }
[data-theme="dark"] .ak-hint-warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.2); }

/* --- QR Scan / Upload --- */
.ak-qr-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.ak-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid rgba(102,126,234,.25);
  background: linear-gradient(135deg, rgba(102,126,234,.08), rgba(118,75,226,.08));
  color: #667eea;
  transition: all .25s ease;
  text-decoration: none;
  line-height: 1.4;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 1px 4px rgba(102,126,234,.08);
}

.ak-qr-btn:hover {
  background: linear-gradient(135deg, rgba(102,126,234,.16), rgba(118,75,226,.14));
  border-color: rgba(102,126,234,.4);
  box-shadow: 0 3px 12px rgba(102,126,234,.15);
  transform: translateY(-1px);
}

.ak-qr-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(102,126,234,.1);
}

.ak-qr-btn i { font-size: 0.9rem; flex-shrink: 0; }
.ak-qr-btn span { white-space: nowrap; }

.ak-file-hidden {
  position: fixed;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[data-theme="dark"] .ak-qr-btn {
  background: linear-gradient(135deg, rgba(102,126,234,.14), rgba(118,75,226,.12));
  border-color: rgba(102,126,234,.3);
  color: #93a4f8;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

[data-theme="dark"] .ak-qr-btn:hover {
  background: linear-gradient(135deg, rgba(102,126,234,.22), rgba(118,75,226,.18));
  border-color: rgba(102,126,234,.5);
}

/* QR Camera Modal */
.ak-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ak-qr-modal.hidden { display: none; }

.ak-qr-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative;
}

[data-theme="dark"] .ak-qr-modal-content { background: #1e1e2e; color: #cdd6f4; }

.ak-qr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ak-qr-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #667eea;
}

.ak-qr-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.ak-qr-close:hover { color: #ef4444; }

.ak-qr-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.ak-qr-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ak-qr-scan-region {
  position: absolute;
  inset: 20%;
  border: 2px solid rgba(102,126,234,.7);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
  animation: qrPulse 2s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% { border-color: rgba(102,126,234,.5); }
  50% { border-color: rgba(102,126,234,1); }
}

.ak-qr-hint {
  text-align: center;
  font-size: 0.72rem;
  color: #888;
  margin: 10px 0 0;
}

/* --- Access Key Responsive --- */
@media (max-width: 640px) {
  .access-key-section { padding: 0.85rem; margin: 0.5rem; }
  .access-key-boxes-container { gap: 4px; padding: 0.75rem; }
  .access-key-prefix-display { font-size: 1rem; width: 100%; text-align: center; margin-bottom: 0.4rem; }
  .access-key-digit-box { width: 34px; height: 44px; font-size: 1.15rem; border-radius: 8px; }
  .access-key-dash { font-size: 1.1rem; }
}

/* --- Key Validation Error Overlay --- */
.kve-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: kveFadeIn .3s ease;
}
.kve-overlay.kve-out { animation: kveFadeOut .3s ease forwards; }

@keyframes kveFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kveFadeOut { from { opacity: 1; } to { opacity: 0; } }

.kve-card {
  background: var(--bg-card, #fff);
  border-radius: 20px;
  padding: 2rem 1.8rem 1.5rem;
  max-width: 380px;
  width: 88%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: kveSlideUp .35s cubic-bezier(.34,1.56,.64,1);
}
.kve-out .kve-card { animation: kveSlideDown .25s ease forwards; }

@keyframes kveSlideUp { from { opacity: 0; transform: translateY(30px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes kveSlideDown { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(20px) scale(.95); } }

.kve-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.kve-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.kve-msg {
  color: var(--text-secondary, #6b7280);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.kve-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.kve-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-tertiary, #f3f4f6);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-primary, #374151);
}

.kve-detail i {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #9ca3af);
}

.kve-detail.hint {
  background: rgba(59,130,246,.06);
  color: #3b82f6;
  font-size: 0.75rem;
}
.kve-detail.hint i { color: #3b82f6; }

.kve-close {
  display: inline-block;
  padding: 0.6rem 2rem;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
  margin-top: 0.25rem;
}
.kve-close:hover { transform: scale(1.04); opacity: .9; }
.kve-close:active { transform: scale(.97); }

[data-theme="dark"] .kve-card {
  background: var(--bg-card, #1f2937);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
[data-theme="dark"] .kve-detail { background: rgba(255,255,255,.06); }
[data-theme="dark"] .kve-detail.hint { background: rgba(59,130,246,.1); }

@media (max-width: 400px) {
  .kve-card { padding: 1.5rem 1.2rem 1.2rem; }
  .kve-icon { width: 48px; height: 48px; font-size: 1.25rem; }
  .kve-title { font-size: 1.05rem; }
}

@media (max-width: 400px) {
  .access-key-digit-box { width: 28px; height: 38px; font-size: 1rem; border-radius: 6px; }
}

/* =====================================================
   HSKK SECTION — Banner Layout
   ===================================================== */

.hskk-section {
  position: relative;
  margin-top: 2rem;
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem) !important;
  max-width: none !important;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, rgba(139,92,246,.06), rgba(236,72,153,.04) 50%, rgba(99,102,241,.06));
  border-top: 1px solid rgba(139,92,246,.12);
  border-bottom: 1px solid rgba(139,92,246,.12);
  overflow: hidden;
}

.hskk-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
  background-size: 200% 100%;
  animation: hskk-gradient-shift 4s ease infinite;
}

@keyframes hskk-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hskk-section .section-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 0.5rem;
}

.section-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Banner Card --- */
.hskk-banner {
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,.12);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(139,92,246,.08);
  transition: box-shadow .3s ease, border-color .3s ease;
}

.hskk-banner:hover {
  box-shadow: 0 6px 24px rgba(139,92,246,.14);
  border-color: rgba(139,92,246,.2);
}

.hskk-banner::after {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(236,72,153,.05), transparent 70%);
  pointer-events: none;
}

.hskk-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hskk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 0.6rem;
}

.hskk-badge i { font-size: 0.7rem; }

.hskk-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hskk-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

/* --- Feature Chips --- */
.hskk-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hskk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(236,72,153,.06));
  border: 1px solid rgba(139,92,246,.15);
  color: var(--text-primary);
  transition: all .25s ease;
}

.hskk-chip:hover {
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(236,72,153,.10));
  border-color: rgba(139,92,246,.3);
  transform: translateY(-1px);
}

.hskk-chip i {
  color: #8b5cf6;
  font-size: 0.7rem;
  -webkit-text-fill-color: initial;
}

/* --- CTA Button --- */
.hskk-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 14px rgba(139,92,246,.35);
  position: relative;
  overflow: hidden;
}

.hskk-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  opacity: 0;
  transition: opacity .3s ease;
}

.hskk-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(139,92,246,.4); }
.hskk-cta:hover::before { opacity: 1; }
.hskk-cta:active { transform: translateY(0) scale(.98); }
.hskk-cta span, .hskk-cta i { position: relative; z-index: 1; }
.hskk-cta i { font-size: 1rem; }

.hskk-levels-note {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* --- HSKK Dark Theme --- */
[data-theme="dark"] .hskk-section {
  background: linear-gradient(160deg, rgba(139,92,246,.1), rgba(236,72,153,.06) 50%, rgba(99,102,241,.1));
  border-top-color: rgba(139,92,246,.2);
  border-bottom-color: rgba(139,92,246,.2);
}

[data-theme="dark"] .hskk-banner {
  background: rgba(30,41,59,.85);
  border-color: rgba(139,92,246,.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

[data-theme="dark"] .hskk-chip {
  background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(236,72,153,.10));
  border-color: rgba(139,92,246,.25);
}

[data-theme="dark"] .hskk-chip i { color: #a78bfa; }

/* Dark Theme for Section Dividers */
[data-theme="dark"] .levels-section::after,
[data-theme="dark"] .options-section::after,
[data-theme="dark"] .exams-section::after {
  background: var(--bg-primary);
}

[data-theme="dark"] .levels-section::before,
[data-theme="dark"] .options-section::before,
[data-theme="dark"] .exams-section::before {
  background: linear-gradient(90deg, transparent 0%, var(--border-medium) 20%, #8b5cf6 50%, var(--border-medium) 80%, transparent 100%);
}

/* --- HSKK Responsive --- */
@media (max-width: 768px) {
  .hskk-section { padding: 1.5rem 0.75rem; margin-top: 1.5rem; }
  .hskk-banner { padding: 1.25rem; }
  .hskk-title { font-size: 1.15rem; }
  .hskk-cta { padding: 0.65rem 1.5rem; font-size: 0.9rem; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hskk-section { padding: 1.25rem 0.5rem; }
  .hskk-banner { padding: 1rem; border-radius: 10px; }
  .hskk-title { font-size: 1.05rem; }
  .hskk-chips { gap: 0.35rem; }
  .hskk-chip { font-size: 0.65rem; padding: 0.25rem 0.55rem; }
  .hskk-cta { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0rem;
        text-align: center;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        align-content: flex-start;
    }
}