/* ============================================
   AWS Certified Cloud Practitioner Practice
   Complete Stylesheet — AWS-Inspired Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   Design Tokens
   ============================================ */
:root {
  /* AWS Brand */
  --aws-orange: #FF9900;
  --aws-orange-hover: #EC7211;
  --aws-orange-light: #FFF4E6;
  --aws-squid-ink: #232F3E;
  --aws-ink-hover: #37475A;
  --aws-ink-dark: #161E2D;
  --aws-smile: #FF9900;

  /* Semantic */
  --color-success: #037F0C;
  --color-success-bg: #F2FCF3;
  --color-error: #D91515;
  --color-error-bg: #FFF0F0;
  --color-warning: #B8860B;
  --color-warning-bg: #FFFCE6;
  --color-info: #0972D3;
  --color-info-bg: #F0F7FF;

  /* Neutrals */
  --bg-page: #F2F3F3;
  --bg-card: #FFFFFF;
  --text-primary: #16191F;
  --text-secondary: #5F6B7A;
  --text-muted: #8D99A8;
  --border-color: #D5DBDB;
  --border-light: #EAEDED;
  --divider: #E9EBED;

  /* Typography */
  --font-main: 'Inter', 'Amazon Ember', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem;

  /* Shadows — AWS style (subtle) */
  --shadow-sm: 0 1px 1px 0 rgba(0,28,36,.3), 1px 1px 1px 0 rgba(0,28,36,.15), -1px 1px 1px 0 rgba(0,28,36,.15);
  --shadow-md: 0 2px 4px rgba(0,28,36,.12), 0 0 2px rgba(0,28,36,.06);
  --shadow-lg: 0 4px 16px rgba(0,28,36,.15);
  --shadow-xl: 0 8px 32px rgba(0,28,36,.18);
  --shadow-hover: 0 4px 20px rgba(0,28,36,.2);

  /* Radii */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t-base: 250ms cubic-bezier(.4,0,.2,1);
  --t-slow: 400ms cubic-bezier(.4,0,.2,1);
  --t-spring: 500ms cubic-bezier(.175,.885,.32,1.275);

  /* Layout */
  --header-h: 56px;
  --sidebar-w: 300px;
  --max-w: 1200px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--color-info); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--aws-orange-hover); text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
fieldset { border: none; }

/* ============================================
   Utilities
   ============================================ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); }

/* ============================================
   View System
   ============================================ */
.view { display: none; min-height: calc(100vh - var(--header-h)); }
.view.active-view { display: block; animation: viewFadeIn 0.35s ease; }
@keyframes viewFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   Buttons — AWS Style
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 8px 20px; font-size: var(--fs-sm); font-weight: 700; line-height: 1.5;
  border-radius: var(--r-lg); border: 2px solid transparent;
  transition: all var(--t-fast); white-space: nowrap; min-height: 40px;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2); transform: translate(-50%,-50%);
  transition: width 0.4s ease, height 0.4s ease;
}
.btn:active::after { width: 300px; height: 300px; }

.btn-primary {
  background: var(--aws-orange); color: var(--aws-squid-ink); border-color: var(--aws-orange-hover);
  box-shadow: 0 1px 1px 0 rgba(0,28,36,.3);
}
.btn-primary:hover {
  background: var(--aws-orange-hover); transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,28,36,.3);
}
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }

.btn-secondary {
  background: var(--aws-squid-ink); color: #fff; border-color: var(--aws-ink-hover);
}
.btn-secondary:hover { background: var(--aws-ink-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--text-primary); border-color: var(--border-color);
}
.btn-outline:hover { border-color: var(--aws-squid-ink); background: rgba(35,47,62,0.04); }
.btn-outline.active { border-color: var(--aws-orange); color: var(--aws-orange-hover); background: var(--aws-orange-light); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }

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

.btn-sm { padding: 4px 12px; font-size: var(--fs-xs); min-height: 32px; }
.btn-lg { padding: 12px 28px; font-size: var(--fs-base); min-height: 48px; }

.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ============================================
   Header — AWS Dark Nav
   ============================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--aws-squid-ink); height: var(--header-h);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: #fff;
}
.logo-aws { flex-shrink: 0; }
.logo-text { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.logo-accent { color: var(--aws-orange); }

.header-nav { display: flex; gap: var(--sp-1); }
.nav-link {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md);
  color: rgba(255,255,255,0.7); font-size: var(--fs-sm); font-weight: 500;
  transition: all var(--t-fast); min-height: 40px; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--aws-orange); transition: width var(--t-base), left var(--t-base);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link:hover::after { width: 60%; left: 20%; }
.nav-link.active { color: var(--aws-orange); background: rgba(255,153,0,0.08); }
.nav-link.active::after { width: 60%; left: 20%; }

.nav-link svg { opacity: 0.7; transition: opacity var(--t-fast); }
.nav-link:hover svg, .nav-link.active svg { opacity: 1; }

/* Mobile menu */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  width: 40px; height: 40px; justify-content: center; align-items: center;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px; background: #fff;
  transition: all var(--t-base); border-radius: 1px;
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HOME: Hero Section
   ============================================ */
#app-main { padding-top: var(--header-h); }

.hero {
  background: linear-gradient(135deg, var(--aws-squid-ink) 0%, var(--aws-ink-dark) 50%, #0D1117 100%);
  padding: var(--sp-20) 0 var(--sp-16);
  position: relative; overflow: hidden;
}
.hero-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-content {
  position: relative; z-index: 1; max-width: 800px;
  margin: 0 auto; text-align: center; padding: 0 var(--sp-6);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,153,0,0.12); color: var(--aws-orange);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-6);
  border: 1px solid rgba(255,153,0,0.2);
  animation: badgePulse 3s ease-in-out infinite;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aws-orange); animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,153,0,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(255,153,0,0); }
}

.hero h1 {
  color: #fff; font-size: var(--fs-4xl); font-weight: 800;
  line-height: 1.1; margin-bottom: var(--sp-4); letter-spacing: -0.03em;
}
.hero .highlight { color: var(--aws-orange); }
.hero-subtitle {
  color: rgba(255,255,255,0.65); font-size: var(--fs-lg);
  line-height: 1.7; margin-bottom: var(--sp-8); max-width: 550px;
  margin-left: auto; margin-right: auto;
}
.hero-actions {
  display: flex; justify-content: center; gap: var(--sp-4);
  margin-bottom: var(--sp-12); flex-wrap: wrap;
}
.exam-stats {
  display: flex; justify-content: center; gap: var(--sp-4); flex-wrap: wrap;
}
.exam-stat {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg); min-width: 120px;
  transition: all var(--t-base); cursor: default;
}
.exam-stat:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,153,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.exam-stat-value { font-size: var(--fs-2xl); font-weight: 800; color: var(--aws-orange); }
.exam-stat-label {
  font-size: var(--fs-xs); color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* ============================================
   HOME: Features Section
   ============================================ */
.features-section { padding: var(--sp-16) 0; }
.section-title {
  font-size: var(--fs-2xl); font-weight: 700; text-align: center;
  margin-bottom: var(--sp-2); letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-secondary); text-align: center;
  margin-bottom: var(--sp-10); font-size: var(--fs-lg);
}
.feature-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8); max-width: 900px; margin: 0 auto;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--r-xl);
  border: 1px solid var(--border-light); padding: var(--sp-8);
  text-align: center; position: relative; overflow: hidden;
  transition: all var(--t-base); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.feature-card-glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255,153,0,0.06) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--t-slow);
  pointer-events: none;
}
.feature-card:hover .feature-card-glow { opacity: 1; }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--aws-orange), var(--aws-orange-hover));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base);
}
.feature-card:hover {
  border-color: var(--aws-orange); transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card-icon {
  width: 60px; height: 60px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5); transition: transform var(--t-spring);
}
.feature-card:hover .feature-card-icon { transform: scale(1.1) rotate(-3deg); }
.training-icon { background: var(--aws-orange-light); color: var(--aws-orange-hover); }
.test-icon { background: rgba(35,47,62,0.06); color: var(--aws-squid-ink); }

.feature-card h3 { font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--sp-2); }
.feature-card p { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-4); }
.feature-list {
  text-align: left; margin-bottom: var(--sp-6); padding: 0 var(--sp-4);
}
.feature-list li {
  font-size: var(--fs-sm); color: var(--text-secondary); padding: var(--sp-1) 0;
  padding-left: var(--sp-5); position: relative;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--aws-orange);
}
.feature-card .btn { width: 100%; }

/* ============================================
   HOME: Domains Section
   ============================================ */
.domains-section { padding: 0 0 var(--sp-16); }
.domains-grid { max-width: 700px; margin: 0 auto; }
.domain-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  transition: all var(--t-base); cursor: pointer;
  border: 1px solid transparent;
}
.domain-item:hover {
  background: var(--bg-card); border-color: var(--border-light);
  box-shadow: var(--shadow-sm); transform: translateX(4px);
}
.domain-number {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--aws-squid-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 700; flex-shrink: 0;
  transition: all var(--t-base);
}
.domain-item:hover .domain-number { background: var(--aws-orange); color: var(--aws-squid-ink); }
.domain-info { flex: 1; }
.domain-name { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.domain-bar-track {
  width: 100%; height: 6px; background: var(--border-light);
  border-radius: var(--r-full); overflow: hidden;
}
.domain-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--aws-orange), var(--aws-orange-hover));
  border-radius: var(--r-full); transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.domain-weight {
  font-size: var(--fs-sm); font-weight: 700; color: var(--aws-orange-hover); min-width: 40px; text-align: right;
}

/* ============================================
   TRAINING VIEW
   ============================================ */
.training-layout {
  display: flex; min-height: calc(100vh - var(--header-h));
}
.training-sidebar {
  width: var(--sidebar-w); background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto; flex-shrink: 0;
}
.sidebar-heading {
  padding: var(--sp-4) var(--sp-5); font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

/* Sidebar Accordion */
.sidebar-domain { border-bottom: 1px solid var(--border-light); }
.sidebar-domain-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: var(--sp-3) var(--sp-5); text-align: left;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary);
  transition: all var(--t-fast); min-height: 48px;
}
.sidebar-domain-btn:hover { background: var(--bg-page); }
.sidebar-domain-btn.active { color: var(--aws-orange-hover); background: rgba(255,153,0,0.04); }
.sidebar-domain-label { flex: 1; }
.sidebar-domain-weight {
  font-size: var(--fs-xs); color: var(--text-muted); background: var(--bg-page);
  padding: 2px 8px; border-radius: var(--r-full); font-weight: 600;
}

.sidebar-topics { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.sidebar-topics.open { max-height: 600px; }
.sidebar-topic-btn {
  display: block; width: 100%; text-align: left;
  padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-10);
  font-size: var(--fs-xs); color: var(--text-secondary);
  transition: all var(--t-fast); border-left: 3px solid transparent;
  line-height: 1.5;
}
.sidebar-topic-btn:hover { color: var(--aws-orange-hover); background: var(--bg-page); }
.sidebar-topic-btn.active {
  color: var(--aws-orange-hover); background: rgba(255,153,0,0.04);
  border-left-color: var(--aws-orange); font-weight: 600;
}

/* Training Main Content */
.training-main { flex: 1; padding: var(--sp-6) var(--sp-8); max-width: 800px; }
.training-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4); flex-wrap: wrap; gap: var(--sp-2);
}
.domain-badge {
  display: inline-flex; padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs); font-weight: 600; border-radius: var(--r-full);
  background: var(--aws-orange-light); color: var(--aws-orange-hover);
  border: 1px solid rgba(255,153,0,0.2);
}
.training-topic-title {
  font-size: var(--fs-2xl); font-weight: 700; margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
}
.training-content-area {
  line-height: 1.8; color: var(--text-primary);
}
.training-content-area h3 { font-size: var(--fs-xl); font-weight: 700; margin: var(--sp-8) 0 var(--sp-3); }
.training-content-area h4 { font-size: var(--fs-lg); font-weight: 600; margin: var(--sp-6) 0 var(--sp-2); }
.training-content-area p { margin-bottom: var(--sp-4); }
.training-content-area ul, .training-content-area ol {
  margin-bottom: var(--sp-4); padding-left: var(--sp-6);
}
.training-content-area li { margin-bottom: var(--sp-2); list-style: disc; }
.training-content-area ol li { list-style: decimal; }
.training-content-area table {
  width: 100%; border-collapse: collapse; margin: var(--sp-4) 0;
  font-size: var(--fs-sm); border: 1px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden;
}
.training-content-area th {
  background: var(--aws-squid-ink); color: #fff; padding: var(--sp-3) var(--sp-4);
  text-align: left; font-weight: 600;
}
.training-content-area td {
  padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-light);
}
.training-content-area tr:hover td { background: rgba(255,153,0,0.03); }

/* Training content special boxes */
.key-concept {
  background: var(--color-info-bg); border-left: 4px solid var(--color-info);
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--sp-4) 0;
}
.key-concept h4 { color: var(--color-info); margin-top: 0; }
.tip-box {
  background: var(--aws-orange-light); border-left: 4px solid var(--aws-orange);
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--sp-4) 0;
}
.warning-box {
  background: var(--color-error-bg); border-left: 4px solid var(--color-error);
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--sp-4) 0;
}
.service-highlight {
  background: rgba(255,153,0,0.1); color: var(--aws-orange-hover);
  padding: 1px 6px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.9em;
}

.training-footer {
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 1px solid var(--border-light);
}

/* ============================================
   PRACTICE TEST VIEW
   ============================================ */
.test-header-bar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--bg-card); border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.test-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--sp-3) var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-6);
}
.test-timer-group {
  display: flex; align-items: center; gap: var(--sp-2); color: var(--aws-squid-ink);
}
.test-timer {
  font-size: var(--fs-xl); font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.test-timer.timer-warning { color: var(--color-warning); animation: timerPulse 1s ease-in-out infinite; }
.test-timer.timer-danger { color: var(--color-error); animation: timerPulse 0.5s ease-in-out infinite; }
@keyframes timerPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.test-progress-group { flex: 1; }
.test-counter { font-size: var(--fs-xs); color: var(--text-secondary); font-weight: 500; display: block; margin-bottom: 2px; }
.test-progress-track {
  width: 100%; height: 6px; background: var(--border-light);
  border-radius: var(--r-full); overflow: hidden;
}
.test-progress-bar {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--aws-orange), var(--aws-orange-hover));
  transition: width var(--t-base);
  position: relative;
}
.test-progress-bar::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: progressShimmer 2s ease-in-out infinite;
}
@keyframes progressShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.test-layout {
  display: flex; max-width: var(--max-w); margin: 0 auto;
  gap: 0; min-height: calc(100vh - var(--header-h) - 52px);
}
.test-question-area { flex: 1; padding: var(--sp-6) var(--sp-8); }

/* Question Card */
.question-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.question-meta {
  display: flex; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-light); flex-wrap: wrap;
}
.question-domain-tag {
  font-size: var(--fs-xs); font-weight: 600; color: var(--aws-orange-hover);
  background: var(--aws-orange-light); padding: 2px 10px;
  border-radius: var(--r-full);
}
.question-type-tag {
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted);
  background: var(--bg-page); padding: 2px 10px; border-radius: var(--r-full);
}
.question-text {
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  font-size: var(--fs-lg); font-weight: 500; line-height: 1.7;
}
.question-instruction {
  padding: 0 var(--sp-5) var(--sp-3); font-size: var(--fs-sm);
  color: var(--color-info); font-weight: 500; font-style: italic;
}

/* Answer Options */
.answer-options {
  padding: 0 var(--sp-5) var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.answer-option {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border: 2px solid var(--border-light);
  border-radius: var(--r-md); cursor: pointer;
  transition: all var(--t-fast); position: relative; overflow: hidden;
}
.answer-option::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: rgba(255,153,0,0.06);
  transition: width var(--t-base);
}
.answer-option:hover {
  border-color: var(--aws-orange); background: rgba(255,153,0,0.02);
}
.answer-option:hover::before { width: 100%; }
.answer-input { display: none; }
.answer-text { font-size: var(--fs-sm); line-height: 1.6; position: relative; z-index: 1; }

.answer-option.selected {
  border-color: var(--aws-squid-ink); background: rgba(35,47,62,0.03);
  box-shadow: 0 0 0 1px var(--aws-squid-ink);
}
.answer-option.option-correct {
  border-color: var(--color-success); background: var(--color-success-bg);
  box-shadow: 0 0 0 1px var(--color-success);
}
.answer-option.option-incorrect {
  border-color: var(--color-error); background: var(--color-error-bg);
  box-shadow: 0 0 0 1px var(--color-error);
}

/* Explanation */
.question-explanation {
  margin: 0 var(--sp-5) var(--sp-5); animation: slideDown 0.3s ease;
}
.explanation-box {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
}
.explanation-box.correct { background: var(--color-success-bg); border-left: 4px solid var(--color-success); }
.explanation-box.incorrect { background: var(--color-error-bg); border-left: 4px solid var(--color-error); }
.explanation-status { font-weight: 700; margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.explanation-correct-answer { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.explanation-text { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* Navigation Buttons */
.question-nav-buttons {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-3); flex-wrap: wrap;
}
.flag-btn { gap: var(--sp-2); }
.flag-btn.flagged { border-color: var(--aws-orange); color: var(--aws-orange-hover); background: var(--aws-orange-light); }

/* Question Navigator Sidebar */
.question-navigator {
  width: 260px; background: var(--bg-card);
  border-left: 1px solid var(--border-light);
  position: sticky; top: calc(var(--header-h) + 52px);
  height: calc(100vh - var(--header-h) - 52px);
  overflow-y: auto; padding: var(--sp-5); flex-shrink: 0;
}
.navigator-heading { font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-3); }
.navigator-legend {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: var(--sp-1); }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; }
.swatch-current { background: var(--aws-squid-ink); box-shadow: 0 0 0 2px var(--aws-orange); }
.swatch-answered { background: var(--color-info); }
.swatch-flagged { background: var(--aws-orange); }
.swatch-unanswered { background: var(--border-light); border: 1px solid var(--border-color); }

.navigator-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  margin-bottom: var(--sp-4);
}
.navigator-item {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-sm);
  border: 2px solid var(--border-light); background: var(--bg-card);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast); cursor: pointer;
}
.navigator-item:hover { border-color: var(--aws-squid-ink); transform: scale(1.1); z-index: 1; }
.navigator-item.current { border-color: var(--aws-orange); background: var(--aws-squid-ink); color: #fff; box-shadow: 0 0 0 2px var(--aws-orange); }
.navigator-item.answered { background: var(--color-info); border-color: var(--color-info); color: #fff; }
.navigator-item.flagged { background: var(--aws-orange); border-color: var(--aws-orange-hover); color: var(--aws-squid-ink); }

.navigator-summary {
  display: flex; flex-direction: column; gap: var(--sp-1);
  font-size: var(--fs-xs); color: var(--text-muted);
  padding-top: var(--sp-3); border-top: 1px solid var(--border-light);
}
.summary-item strong { color: var(--text-primary); font-weight: 700; }

/* ============================================
   RESULTS VIEW
   ============================================ */
.results-summary { text-align: center; padding: var(--sp-12) 0; }
.results-heading { font-size: var(--fs-3xl); font-weight: 800; margin-bottom: var(--sp-8); }
.score-display { margin-bottom: var(--sp-6); }

.score-circle {
  position: relative; width: 180px; height: 180px;
  margin: 0 auto var(--sp-6);
}
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--border-light); stroke-width: 8; }
.score-ring-fill {
  fill: none; stroke: var(--aws-orange); stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292; stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1);
}
.score-circle--passed .score-ring-fill { stroke: var(--color-success); }
.score-circle--failed .score-ring-fill { stroke: var(--color-error); }

.score-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center;
}
.score-value { font-size: var(--fs-3xl); font-weight: 800; display: block; }
.score-max { font-size: var(--fs-sm); color: var(--text-muted); }

.score-status { font-size: var(--fs-xl); font-weight: 800; margin-bottom: var(--sp-2); }
.score-passed { color: var(--color-success); }
.score-failed { color: var(--color-error); }
.score-detail { color: var(--text-secondary); font-size: var(--fs-sm); }

/* Domain Breakdown */
.results-domain-breakdown { margin-bottom: var(--sp-10); }
.domain-breakdown-list { max-width: 600px; margin: var(--sp-6) auto 0; }
.domain-breakdown-item { margin-bottom: var(--sp-4); }
.domain-breakdown-label {
  display: flex; justify-content: space-between; font-size: var(--fs-sm);
  margin-bottom: var(--sp-1); font-weight: 500;
}
.domain-breakdown-percent { font-weight: 700; }
.domain-breakdown-bar-bg {
  height: 10px; background: var(--border-light); border-radius: var(--r-full); overflow: hidden;
}
.domain-breakdown-bar {
  height: 100%; border-radius: var(--r-full); width: 0%;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.domain-breakdown-bar.bar-pass { background: linear-gradient(90deg, var(--color-success), #43A047); }
.domain-breakdown-bar.bar-fail { background: linear-gradient(90deg, var(--color-error), #EF5350); }

/* Review */
.results-review { margin-bottom: var(--sp-10); }
.review-hint { color: var(--text-muted); font-size: var(--fs-sm); text-align: center; margin-bottom: var(--sp-4); }
.review-filters {
  display: flex; justify-content: center; gap: var(--sp-2);
  margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.review-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 800px; margin: 0 auto; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
  cursor: pointer; transition: all var(--t-fast);
  border-left: 4px solid var(--border-color);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-card.review-correct { border-left-color: var(--color-success); }
.review-card.review-incorrect { border-left-color: var(--color-error); }
.review-card-header {
  display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}
.review-q-number { font-weight: 700; font-size: var(--fs-sm); color: var(--text-primary); }
.review-domain-tag {
  font-size: var(--fs-xs); background: var(--bg-page); padding: 1px 8px;
  border-radius: var(--r-full); color: var(--text-muted);
}
.review-flagged-tag {
  font-size: var(--fs-xs); background: var(--aws-orange-light); padding: 1px 8px;
  border-radius: var(--r-full); color: var(--aws-orange-hover);
}
.review-status { font-size: var(--fs-xs); font-weight: 700; margin-left: auto; }
.status-correct { color: var(--color-success); }
.status-incorrect { color: var(--color-error); }
.review-question-text { font-size: var(--fs-sm); line-height: 1.6; margin-bottom: var(--sp-2); }
.review-answers { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.review-option {
  font-size: var(--fs-xs); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm); background: var(--bg-page);
}
.review-option-correct { background: var(--color-success-bg); color: var(--color-success); font-weight: 600; }
.review-option-incorrect { background: var(--color-error-bg); color: var(--color-error); }
.review-option-selected { font-weight: 600; }
.review-explanation {
  font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7;
  padding-top: var(--sp-3); border-top: 1px solid var(--border-light);
  animation: slideDown 0.3s ease;
}

.results-actions {
  display: flex; justify-content: center; gap: var(--sp-4);
  padding-bottom: var(--sp-12);
}

/* ============================================
   QUICK QUIZ VIEW
   ============================================ */
.quiz-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-6) 0 var(--sp-4); flex-wrap: wrap; gap: var(--sp-2);
}
.quiz-title { font-size: var(--fs-xl); font-weight: 700; }
.quiz-counter { font-size: var(--fs-sm); color: var(--text-muted); }
.quiz-progress-track {
  height: 6px; background: var(--border-light); border-radius: var(--r-full);
  overflow: hidden; margin-bottom: var(--sp-6);
}
.quiz-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--aws-orange), var(--aws-orange-hover));
  border-radius: var(--r-full); transition: width var(--t-base);
}
.quiz-question-area { max-width: 700px; margin: 0 auto; }

/* Quiz Feedback */
.quiz-feedback {
  margin: var(--sp-4) var(--sp-5); padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md); animation: slideDown 0.3s ease;
}
.quiz-feedback-status { font-weight: 700; font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.feedback-correct { color: var(--color-success); }
.feedback-incorrect { color: var(--color-error); }
.quiz-feedback-explanation { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }
.quiz-feedback:has(.feedback-correct) { background: var(--color-success-bg); border-left: 4px solid var(--color-success); }
.quiz-feedback:has(.feedback-incorrect) { background: var(--color-error-bg); border-left: 4px solid var(--color-error); }

/* Quiz Results */
.quiz-results { text-align: center; padding: var(--sp-12) 0; }
.quiz-results-inner {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); padding: var(--sp-10); max-width: 500px;
  margin: 0 auto; box-shadow: var(--shadow-md);
}
.quiz-results h3 { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: var(--sp-4); }
.quiz-results-score { font-size: var(--fs-lg); color: var(--text-secondary); margin-bottom: var(--sp-6); }
.quiz-results-score strong { color: var(--aws-orange); font-size: var(--fs-2xl); }
.quiz-results-actions { display: flex; justify-content: center; gap: var(--sp-3); }

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--aws-squid-ink); color: rgba(255,255,255,0.5);
  padding: var(--sp-6) 0; font-size: var(--fs-xs); text-align: center;
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); max-height: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 500px; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll animation targets */
.animate-target {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-target.animate-in { opacity: 1; transform: translateY(0); }

/* Stagger children */
.feature-cards .feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-cards .feature-card:nth-child(2) { transition-delay: 0.25s; }
.domains-grid .domain-item:nth-child(1) { transition-delay: 0.05s; }
.domains-grid .domain-item:nth-child(2) { transition-delay: 0.15s; }
.domains-grid .domain-item:nth-child(3) { transition-delay: 0.25s; }
.domains-grid .domain-item:nth-child(4) { transition-delay: 0.35s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .test-layout { flex-direction: column; }
  .question-navigator {
    width: 100%; position: static; height: auto;
    border-left: none; border-top: 1px solid var(--border-light);
  }
  .navigator-grid { grid-template-columns: repeat(13, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--aws-squid-ink); border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--sp-2); box-shadow: var(--shadow-lg);
    animation: slideDown 0.2s ease;
  }
  .mobile-menu-btn { display: flex; }

  .hero h1 { font-size: var(--fs-3xl); }
  .hero-subtitle { font-size: var(--fs-base); }
  .hero-actions { flex-direction: column; align-items: center; }
  .exam-stats { gap: var(--sp-2); }
  .exam-stat { min-width: 80px; padding: var(--sp-3); }

  .feature-cards { grid-template-columns: 1fr; gap: var(--sp-4); }

  .training-layout { flex-direction: column; }
  .training-sidebar {
    width: 100%; position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--border-light);
    max-height: 300px;
  }
  .training-main { padding: var(--sp-4); }

  .test-question-area { padding: var(--sp-4); }
  .navigator-grid { grid-template-columns: repeat(10, 1fr); }
  .question-nav-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: var(--sp-10) 0 var(--sp-8); }
  .hero h1 { font-size: var(--fs-2xl); }
  .exam-stats { flex-direction: column; align-items: center; }
  .exam-stat { width: 100%; max-width: 200px; }
  .navigator-grid { grid-template-columns: repeat(7, 1fr); }
}

/* ============================================
   Print
   ============================================ */
@media print {
  #site-header, #site-footer, .question-navigator, .test-header-bar { display: none !important; }
  .view { display: block !important; }
  body { background: #fff; }
}

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid var(--aws-orange); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
  }
}
@media (prefers-contrast: high) {
  .answer-option, .navigator-item, .btn { border-width: 3px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::selection { background: rgba(255,153,0,0.2); color: var(--text-primary); }

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background: #ffffff;
}
.testimonials-stats {
  display: flex; justify-content: center; gap: var(--sp-8); margin: var(--sp-6) 0 var(--sp-8);
  flex-wrap: wrap;
}
.testimonials-stat {
  font-size: var(--fs-sm); color: var(--text-secondary);
}
.testimonials-stat strong {
  font-size: var(--fs-xl); font-weight: 800; color: var(--aws-orange-hover); display: block;
}

/* Carousel */
.testimonials-carousel {
  overflow: hidden;
}
.testimonials-track {
  display: flex; gap: 1.5rem;
  animation: marquee 360s linear infinite;
  width: max-content;
}
.testimonials-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 340px; max-width: 340px; flex-shrink: 0;
}
.testimonial-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
}

.carousel-btn { display: none; }
.carousel-dots { display: none; }

.testimonial-stars {
  color: #F59E0B; font-size: 1.1rem; margin-bottom: 0.75rem; letter-spacing: 2px;
}
.testimonial-quote {
  font-style: italic; font-size: 0.84rem; line-height: 1.6;
  color: var(--text-secondary); margin-bottom: 1rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial-info { display: flex; flex-direction: column; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .testimonial-card { min-width: 300px; max-width: 300px; }
  .testimonials-track {
    animation-duration: 450s;
  }
}
@media (max-width: 600px) {
  .testimonial-card {
    min-width: 280px; max-width: 280px;
  }
  .testimonials-carousel { overflow: hidden; }
  .carousel-dots { display: none; }
  .testimonials-stats { gap: var(--sp-4); }
  .testimonials-stat strong { font-size: var(--fs-lg); }
}

/* ============================================
   PAYMENT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalBackdropIn 0.25s ease;
}

.modal-overlay.hidden {
  display: none;
}

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

.modal-content {
  background: #fff;
  max-width: 440px;
  width: 90%;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
  animation: modalScaleIn 0.3s ease;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-overlay.closing .modal-content {
  animation: modalScaleOut 0.2s ease forwards;
}

.modal-overlay.closing {
  animation: modalBackdropOut 0.2s ease forwards;
}

@keyframes modalScaleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

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

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted, #888);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text-primary, #1a1a1a);
}

.modal-icon {
  margin-bottom: 1rem;
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary, #1a1a1a);
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted, #888);
  margin-bottom: 1.5rem;
}

.modal-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary, #1a1a1a);
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted, #888);
}

.modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.modal-features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary, #555);
}

.modal-features li::first-letter {
  color: #16a34a;
}

.modal-pay-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: #FF9900;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 1rem;
}

.modal-pay-btn:hover {
  background: #e68a00;
  transform: translateY(-1px);
}

.modal-pay-btn:active {
  transform: translateY(0);
}

.modal-secure {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  margin-bottom: 0.25rem;
}

.modal-guarantee {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  font-weight: 500;
}

/* ============================================
   Payment Success Banner
   ============================================ */
.payment-success-banner {
  position: fixed; top: var(--header-h, 56px); left: 0; right: 0; z-index: 1500;
  background: linear-gradient(90deg, #037F0C, #2E7D32);
  color: #fff; padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 0.9rem; font-weight: 600;
  animation: bannerSlideDown 0.4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.payment-success-banner .banner-close {
  background: none; border: none; color: #fff; font-size: 1.3rem;
  cursor: pointer; opacity: 0.7; padding: 4px 8px;
}
.payment-success-banner .banner-close:hover { opacity: 1; }
@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   Test Selection / Duration Cards — Sleek Design
   ============================================ */
.test-selection-section {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--aws-squid-ink) 0%, #1a2332 50%, #0d1821 100%);
}
.test-selection-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,153,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,153,0,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.test-selection-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}
.test-selection-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--aws-orange);
  margin-bottom: 0.75rem;
  padding: 6px 18px;
  border: 1px solid rgba(255,153,0,0.3);
  border-radius: 20px;
  background: rgba(255,153,0,0.06);
}
.test-selection-section .section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.test-selection-section .section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin: 0;
}
.test-selection-section .section-subtitle strong {
  color: var(--aws-orange);
  font-weight: 700;
}

/* Grid */
.test-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Card base */
.test-option-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.test-option-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(255,153,0,0.08);
  border-color: rgba(255,153,0,0.3);
}

/* Card inner glow effect */
.test-card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,153,0,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.test-option-card:hover .test-card-glow { opacity: 1; }
.test-card-glow-featured {
  background: radial-gradient(circle at 50% 50%, rgba(255,153,0,0.1) 0%, transparent 60%);
}

/* Ribbons */
.test-option-ribbon {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 7px 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}
.test-option-ribbon-free {
  background: linear-gradient(90deg, #037F0C, #2E7D32);
  color: #fff;
}
.test-option-ribbon-recommended {
  background: linear-gradient(90deg, #e68a00, var(--aws-orange), #e68a00);
  color: #fff;
}

/* Free card special */
.test-option-free {
  border-color: rgba(3,127,12,0.35);
  background: rgba(3,127,12,0.06);
}
.test-option-free:hover {
  border-color: rgba(3,127,12,0.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(3,127,12,0.12);
}

/* Featured card */
.test-option-featured {
  border-color: rgba(255,153,0,0.3);
  background: rgba(255,153,0,0.06);
}
.test-option-featured:hover {
  border-color: var(--aws-orange);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 50px rgba(255,153,0,0.15);
}

/* Unlocked state */
.test-option-card.unlocked {
  border-color: rgba(3,127,12,0.3);
}
.test-option-card.unlocked:hover {
  border-color: rgba(3,127,12,0.6);
}

/* Clock icon */
.test-option-icon {
  width: 48px; height: 48px;
  margin: 1rem 0 0.75rem;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s ease, transform 0.3s ease;
}
.test-option-icon svg { width: 100%; height: 100%; }
.test-option-card:hover .test-option-icon {
  color: var(--aws-orange);
  transform: scale(1.1);
}
.test-option-free .test-option-icon { color: rgba(3,127,12,0.5); }
.test-option-free:hover .test-option-icon { color: #2E7D32; }

/* Lock icon */
.test-option-lock {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s ease, transform 0.3s ease;
}
.test-option-lock svg { width: 18px; height: 18px; }
.test-option-card:hover .test-option-lock { color: rgba(255,255,255,0.5); }
.test-option-card.unlocked .test-option-lock { color: #2E7D32; }

/* Time display */
.test-option-time {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}
.test-option-unit {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0.05em;
}
.test-option-questions {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}
.test-option-meta {
  font-size: 0.72rem;
  color: var(--aws-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.test-option-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  margin: 0.75rem 0;
}
.test-option-featured .test-option-divider {
  background: linear-gradient(90deg, transparent, rgba(255,153,0,0.4), transparent);
}
.test-option-free .test-option-divider {
  background: linear-gradient(90deg, transparent, rgba(3,127,12,0.4), transparent);
}
.test-option-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Buttons */
.test-option-card .test-start-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
}
.test-option-free .test-start-btn {
  background: linear-gradient(135deg, #037F0C, #2E7D32);
  color: #fff;
}
.test-option-free .test-start-btn:hover {
  background: linear-gradient(135deg, #2E7D32, #037F0C);
  box-shadow: 0 4px 20px rgba(3,127,12,0.35);
}
.test-option-featured .test-start-btn {
  background: linear-gradient(135deg, var(--aws-orange), #e68a00);
}
.test-option-featured .test-start-btn:hover {
  box-shadow: 0 4px 20px rgba(255,153,0,0.35);
}

/* Cards are always visible — hover effects provide dynamism */

/* Responsive */
@media (max-width: 1024px) {
  .test-options-grid { grid-template-columns: repeat(2, 1fr); max-width: 580px; }
  .test-selection-section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .test-options-grid { grid-template-columns: 1fr; max-width: 360px; }
  .test-selection-section { padding: 50px 0; }
  .test-option-card { padding: 2rem 1.25rem 1.5rem; }
  .test-option-time { font-size: 2.8rem; }
  .test-selection-section .section-title { font-size: 1.8rem; }
}

/* ============================================
   Auth Header Button & User Menu
   ============================================ */
.auth-header-wrap {
  position: relative;
  margin-left: auto;
}
.auth-header-btn {
  background: var(--aws-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.auth-header-btn:hover {
  background: #e68a00;
  transform: translateY(-1px);
}
.auth-header-btn.logged-in {
  width: 38px; height: 38px;
  border-radius: 50%;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.auth-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.user-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  min-width: 220px;
  z-index: 2000;
  overflow: hidden;
}
.user-menu.hidden { display: none; }
.user-menu-info {
  padding: 16px 18px 12px;
}
.user-menu-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--aws-squid-ink);
}
.user-menu-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.user-menu-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
}
.user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  border: none;
  background: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease;
}
.user-menu-item:hover {
  background: #f5f5f5;
  color: #d32f2f;
}

/* ============================================
   Auth Modal
   ============================================ */
.auth-modal-content {
  max-width: 420px;
}
.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-modal-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--aws-squid-ink);
  margin: 0 0 0.25rem;
}
.auth-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.auth-tabs {
  display: flex;
  background: #f0f2f5;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab.active {
  background: #fff;
  color: var(--aws-squid-ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.auth-form.hidden { display: none; }
.auth-field {
  margin-bottom: 1rem;
}
.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d0d5dd;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--aws-orange);
  box-shadow: 0 0 0 3px rgba(255,153,0,0.12);
}
.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 13px;
  font-size: 0.95rem;
}
.auth-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}
.auth-error.hidden { display: none; }
.auth-forgot-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--aws-orange);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-forgot-btn:hover { text-decoration: underline; }

/* ============================================
   Test User Badge
   ============================================ */
.test-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.test-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aws-orange);
}

/* Auth responsive */
@media (max-width: 600px) {
  .auth-modal-content { margin: 10px; }
  .auth-header-btn { padding: 6px 14px; font-size: 0.8rem; }
  .auth-header-btn.logged-in { width: 34px; height: 34px; }
}
