/* Style for School Hero SQ Prototype */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #eff6ff 100%);
  --card-bg: #ffffff;
  --border-radius: 16px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(37, 99, 235, 0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 30px -10px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Standards Ticker Banner */
.standards-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  color: #f8fafc;
  padding: 8px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.standards-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
}

.standards-badge-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}

.standards-text strong {
  color: #93c5fd;
  font-weight: 600;
}

/* Header */
.app-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  font-size: 28px;
  background: #dbeafe;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.header-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 3px;
  border: 1.5px solid #cbd5e1;
}

.btn-lang {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-lang.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.header-badges {
  display: flex;
  gap: 8px;
}

.badge-global {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-tag {
  background: #dcfce7;
  color: #166534;
}

.badge-corp {
  background: #f1f5f9;
  color: #475569;
}

/* Main Container */
.app-main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 24px auto;
  padding: 0 16px;
}

/* Screen Card */
.screen-card {
  display: none;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: fadeIn 0.3s ease-out;
}

.screen-card.active {
  display: block;
}

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

/* Screen 1: Welcome */
.hero-banner {
  text-align: center;
  margin-bottom: 28px;
}

.hero-icon-bounce {
  font-size: 48px;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-heading {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
}

.highlight-text {
  color: var(--primary);
  background: linear-gradient(120deg, #dbeafe 0%, #bfdbfe 100%);
  padding: 2px 8px;
  border-radius: 6px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Standards Grid */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.standard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.standard-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.std-flag {
  font-size: 24px;
  line-height: 1;
}

.std-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.std-info strong {
  font-size: 13px;
  color: #1e3a8a;
}

.std-info span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.setup-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #334155;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.age-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.age-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.age-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.age-card.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.age-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.age-title {
  font-weight: 700;
  font-size: 15px;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.age-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 17px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

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

.btn-secondary {
  background: #1e293b;
  color: white;
  padding: 10px 20px;
}

.btn-secondary:hover {
  background: #0f172a;
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.btn-gold:hover {
  filter: brightness(1.05);
}

.btn-link {
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 16px;
}

.btn-link:hover {
  color: var(--primary);
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.trust-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Screen 2: Game Screen */
.game-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.player-name-tag {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-left: 8px;
}

.timer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 140px;
}

.timer-label {
  font-size: 13px;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 4px;
}

.timer-track {
  width: 100%;
  height: 8px;
  background: #fee2e2;
  border-radius: 9999px;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  width: 100%;
  background: #ef4444;
  border-radius: 9999px;
  transition: width 1s linear;
}

.scenario-panel {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.scenario-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.location-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tactic-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.standard-badge {
  background: #f1f5f9;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

/* Rich Visual Scene Card */
.scenario-visual-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin: 0 auto 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.scenario-svg-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f8fafc;
  padding: 4px;
}

.scenario-svg-wrap svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 180px;
  display: block;
}

.scenario-img-caption {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

.scenario-narrative {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 12px;
}

.scenario-prompt {
  font-size: 18.5px;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
  padding: 8px 14px;
  border-radius: 6px;
  display: block;
  text-align: left;
}

/* Options Grid */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: white;
  border: 2.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.option-card:hover {
  border-color: var(--primary);
  background: #f8fafc;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.option-card.correct {
  border-color: var(--success);
  background: #f0fdf4;
}

.option-card.wrong {
  border-color: var(--danger);
  background: #fef2f2;
}

.option-card.disabled {
  pointer-events: none;
  opacity: 0.8;
}

.option-letter {
  width: 42px;
  height: 42px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 19px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #bfdbfe;
}

.option-card.correct .option-letter {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.option-card.wrong .option-letter {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.option-text {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
}

/* Junior Mode Extra Large Typography (Ages 5-8) */
.age-junior-mode .scenario-narrative {
  font-size: 24px;
  line-height: 1.5;
}

.age-junior-mode .scenario-prompt {
  font-size: 20px;
}

.age-junior-mode .option-text {
  font-size: 20px;
  line-height: 1.55;
}

.age-junior-mode .option-letter {
  width: 46px;
  height: 46px;
  font-size: 21px;
}

/* Feedback Box */
.feedback-box {
  display: none;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeIn 0.2s ease-out;
}

.feedback-box.active {
  display: flex;
}

.feedback-box.correct {
  background: #f0fdf4;
  border-color: #86efac;
}

.feedback-box.wrong {
  background: #fef2f2;
  border-color: #fca5a5;
}

.feedback-icon {
  font-size: 32px;
}

.feedback-content {
  flex: 1;
}

.feedback-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feedback-box.correct .feedback-title { color: #166534; }
.feedback-box.wrong .feedback-title { color: #991b1b; }

.feedback-desc {
  font-size: 14px;
  color: #475569;
}

.feedback-standard-note {
  font-size: 12px;
  color: #1e40af;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 8px;
  line-height: 1.4;
}

/* Screen 3: Report */
.report-header {
  text-align: center;
  margin-bottom: 24px;
}

.report-ribbon {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.report-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.report-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.sq-score-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.sq-gauge {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 110px;
}

.sq-score-number {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #fef08a;
}

.sq-score-max {
  font-size: 12px;
  opacity: 0.8;
}

.badge-grade {
  display: inline-block;
  background: #f59e0b;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sq-grade-desc {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

.sq-standard-verified {
  display: inline-block;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.2);
  color: #fef08a;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 8px;
  border: 1px solid rgba(254, 240, 138, 0.4);
}

/* 3 Pillars */
.pillars-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.pillar-row {
  margin-bottom: 14px;
}

.pillar-row:last-child {
  margin-bottom: 0;
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.pillar-val {
  color: var(--primary);
}

.bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease-out;
}

.fill-speed { background: #3b82f6; }
.fill-spatial { background: #10b981; }
.fill-silence { background: #8b5cf6; }

/* Blindspots */
.blindspot-alert-box {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.blindspot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.blindspot-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
}

.blindspot-items {
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
}

.blindspot-item {
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}

.blindspot-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d97706;
  font-weight: bold;
}

/* Parent Advice */
.parent-advice-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.parent-advice-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 8px;
}

.advice-list {
  list-style: none;
  font-size: 14px;
  color: #14532d;
  line-height: 1.6;
}

.advice-list li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.advice-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* Certificate Preview */
.certificate-preview-section {
  margin-bottom: 28px;
}

.certificate-card {
  background: #fff;
  border: 4px double #d4af37;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
}

.cert-border {
  border: 1.5px solid #e2e8f0;
  padding: 24px 20px;
  border-radius: 8px;
  text-align: center;
}

.cert-badge {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}

.cert-title {
  font-family: 'Mitr', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
  letter-spacing: 1px;
}

.cert-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cert-text {
  font-size: 13px;
  color: var(--text-muted);
}

.cert-student-name {
  font-family: 'Prompt', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 10px;
  text-decoration: underline;
  text-decoration-color: #f59e0b;
}

.cert-subtext {
  font-size: 13px;
  color: #334155;
  margin-bottom: 14px;
}

.cert-rank-box {
  display: inline-flex;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 20px;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  font-size: 12px;
  text-align: center;
}

.cert-date, .cert-sig {
  font-weight: 600;
  color: #1e293b;
}

.cert-signature-label {
  font-size: 10px;
  color: var(--text-muted);
}

.cert-stamp {
  font-size: 9px;
  font-weight: 800;
  border: 2px dashed #b91c1c;
  color: #b91c1c;
  padding: 4px 8px;
  border-radius: 4px;
  transform: rotate(-5deg);
}

.cert-actions {
  text-align: center;
  margin-top: 12px;
}

/* Monetization Offer Card */
.offer-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: white;
  border-radius: 16px;
  padding: 26px 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(49, 46, 129, 0.3);
}

.offer-badge {
  display: inline-block;
  background: #f43f5e;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.offer-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.offer-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #e0e7ff;
  margin-bottom: 18px;
}

.pricing-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.pricing-card.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px #fbbf24;
}

.pricing-badge-popular {
  position: absolute;
  top: -10px;
  right: 10px;
  background: #fbbf24;
  color: #78350f;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.plan-price {
  font-size: 20px;
  font-weight: 800;
  color: #fef08a;
  margin: 4px 0 8px;
}

.old-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 400;
}

.plan-features {
  list-style: none;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.offer-sub {
  text-align: center;
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 10px;
}

.restart-box {
  text-align: center;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: white;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.btn-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.modal-header h3 {
  font-size: 18px;
  color: #0f172a;
}

.modal-header p {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.qr-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.qr-mock {
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
  background: white;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #475569;
}

.qr-pattern {
  font-size: 48px;
}

.qr-note {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.price-highlight {
  font-size: 24px;
  font-weight: 800;
  color: #1e3a8a;
}

/* Footer */
.app-footer {
  margin-top: auto;
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-note {
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 600px) {
  .standards-grid {
    grid-template-columns: 1fr;
  }
  .age-selector-grid, .pricing-selector {
    grid-template-columns: 1fr;
  }
  .header-badges {
    display: none;
  }
  .sq-score-card {
    flex-direction: column;
    text-align: center;
  }
  .cert-footer {
    flex-direction: column;
    gap: 12px;
  }
}

/* Print Style for Certificate */
@media print {
  body * {
    visibility: hidden;
  }
  #certificate-card, #certificate-card * {
    visibility: visible;
  }
  #certificate-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: 2px solid #000;
  }
}
