/* ==================== MBTI — Glassmorphism ==================== */

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

html, body {
  width: 100%;
  min-height: 100%;
  background: #000; /* letterbox color shown outside the 9:16 app area on wider viewports */
  color: #eae6f6;
  font-family: -apple-system, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 17px; /* iOS body default — HIG-compliant for iPhone 11 */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* App is locked to a 9:16 portrait aspect. On typical phones (taller than 9:16)
   it takes full width. On wider viewports (landscape/tablet/desktop) it caps
   at height*9/16, centered with black bars on the sides. */
#app {
  width: 100%;
  max-width: min(100vw, calc(100vh * 9 / 16));
  max-width: min(100vw, calc(100dvh * 9 / 16));
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: #07061a;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---------- Screen + ambient backdrop ---------- */
.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  /* Pad the top by the safe-area inset (RN-injected --sat, env() fallback) so the header/
     progress text sits BELOW the iOS camera/notch instead of being cut off by it. */
  padding: calc(32px + var(--sat, env(safe-area-inset-top, 0px))) 20px calc(64px + var(--sab, env(safe-area-inset-bottom, 0px)));
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(ellipse at 10% 5%, rgba(123, 92, 255, 0.55), transparent 45%),
    radial-gradient(ellipse at 95% 15%, rgba(255, 140, 200, 0.35), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 200, 100, 0.25), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(80, 200, 255, 0.3), transparent 50%),
    linear-gradient(180deg, #120a2e 0%, #0a0820 50%, #050310 100%);
  overflow: hidden;
}

/* Splash / loading / start screens: mbti-game-card backdrop at 50% opacity
   with a 70% dark overlay on top for contrast. Pseudo-elements sit behind
   .aura (fixed, z-index 0) and content (z-index 1). */
.screen--card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bg-card.webp') center / cover no-repeat;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.screen--card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
  pointer-events: none;
}

/* Post-start screens (test / results / diary): ambient mbti-background image
   fixed so it doesn't scroll with content; 50% image opacity + 70% dark overlay. */
.screen--ambient::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../bg-ambient.webp') center / cover no-repeat;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.screen--ambient::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
  pointer-events: none;
}

/* Floating soft color blobs that the glass layers blur */
.aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aura::before,
.aura::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}
.aura::before {
  background: radial-gradient(circle, #c489ff 0%, transparent 70%);
  top: -80px; left: -80px;
  animation: drift1 22s ease-in-out infinite;
}
.aura::after {
  background: radial-gradient(circle, #ff9ec7 0%, transparent 70%);
  bottom: -100px; right: -120px;
  animation: drift2 26s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 80px) scale(1.1); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-80px, -60px) scale(1.15); }
}
.aura .star {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,0.7);
  opacity: 0.6;
}

/* ---------- Typography ---------- */
.container { width: 100%; max-width: 480px; position: relative; z-index: 1; }

h1.title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.6px;
  text-align: center;
  background: linear-gradient(135deg, #ece3ff 0%, #f8d69a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 24px;
}

.subtitle {
  font-size: 18px;
  text-align: center;
  color: #ece8ff;
  margin-top: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #ffd97a;
  text-align: center;
  font-weight: 700;
}

/* ---------- Glass primitive ---------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  min-height: 52px; /* iOS HIG: ≥44pt tap target, comfortable at 52pt */
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s, filter 0.15s;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #8f6bff, #d49aff);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(143, 107, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-gold {
  background: linear-gradient(135deg, #ffcf6e, #ff9c4f);
  color: #2a1600;
  box-shadow:
    0 10px 30px rgba(255, 170, 70, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #eae6f6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn + .btn { margin-top: 12px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Intro ---------- */
.intro-hero {
  width: 160px;
  height: 160px;
  margin: 56px auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 40px rgba(180, 140, 255, 0.45));
  animation: floatY 6s ease-in-out infinite;
}
.intro-hero svg { width: 100%; height: 100%; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.intro-cta { margin-top: 32px; }

/* ---------- Mode select ---------- */
.mode-card {
  padding: 24px;
  margin-top: 16px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.mode-card:hover {
  border-color: rgba(200, 160, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.mode-card:active { transform: scale(0.99); }
.mode-card--disabled { opacity: 0.55; }

/* Compact variant — Begin card on intro, View Diary CTA */
.mode-card--cta .mode-head { align-items: center; }
.mode-card--cta h3 { font-size: 20px; }
.mode-card--cta p { margin-top: 6px; font-size: 15px; }
.mode-card--cta .mode-chev {
  flex-shrink: 0;
  color: #a79fd3;
  display: flex; align-items: center;
  transition: transform 0.15s, color 0.15s;
}
.mode-card--cta .mode-chev svg { width: 20px; height: 20px; }
.mode-card--cta:hover .mode-chev { color: #d49aff; transform: translateX(3px); }
.mode-card--disabled:hover { transform: none; border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); }

.balance-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  color: #c7bfe2;
  letter-spacing: 0.3px;
}
.balance-row svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Diary ---------- */
.diary-intro {
  margin-top: 28px;
  text-align: center;
  color: #c7bfe2;
  font-size: 16px;
  line-height: 1.55;
}
.diary-summary {
  margin-top: 18px;
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-around;
}
.diary-stat-val {
  font-size: 30px;
  font-weight: 800;
  color: #ffcf6e;
  text-align: center;
}
.diary-stat-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a79fd3;
  text-align: center;
  font-weight: 700;
  margin-top: 4px;
}
.diary-entry {
  margin-top: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diary-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.diary-date {
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #a79fd3;
  font-weight: 700;
}
.diary-mode-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: rgba(180, 140, 255, 0.14);
  color: #d3bfff;
  border: 1px solid rgba(180, 140, 255, 0.25);
}
.diary-type-row { display: flex; align-items: center; gap: 12px; }
.diary-letters {
  display: flex; gap: 6px;
}
.diary-letter {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(143, 107, 255, 0.35), rgba(212, 154, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.diary-letter--changed {
  background: linear-gradient(135deg, rgba(255, 200, 100, 0.45), rgba(255, 150, 80, 0.35));
  border-color: rgba(255, 200, 100, 0.55);
  box-shadow:
    0 0 14px rgba(255, 180, 80, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.diary-nickname {
  font-size: 15px;
  color: #c7bfe2;
  margin-left: auto;
  font-style: italic;
}
.diary-change-note {
  font-size: 14px;
  color: #ffcf6e;
  padding-top: 2px;
  font-weight: 500;
}
.diary-change-note svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.diary-empty {
  margin-top: 32px;
  padding: 32px 22px;
  text-align: center;
  color: #c7bfe2;
  font-size: 16px;
  line-height: 1.55;
}
.diary-empty svg { width: 48px; height: 48px; color: #a79fd3; margin-bottom: 12px; }

.mode-head { display: flex; align-items: center; gap: 14px; }
.mode-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(180, 140, 255, 0.3), rgba(255, 200, 120, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5d38b;
}
.mode-icon svg { width: 24px; height: 24px; }

.mode-title-wrap { flex: 1; }
.mode-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: #f5f2ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mode-badge {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mode-badge.free {
  background: rgba(130, 255, 180, 0.14);
  color: #9cffc2;
  border: 1px solid rgba(130, 255, 180, 0.3);
}
.mode-badge.premium {
  background: rgba(255, 200, 100, 0.14);
  color: #ffcf6e;
  border: 1px solid rgba(255, 200, 100, 0.3);
}
.mode-badge svg { width: 14px; height: 14px; }

.mode-card p {
  margin-top: 12px;
  color: #c7bfe2;
  font-size: 15.5px;
  line-height: 1.55;
}
.mode-card ul {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.mode-card li {
  position: relative;
  padding-left: 24px;
  color: #d7cfef;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 4px;
}
.mode-card li svg {
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  color: #a987ff;
}

/* ---------- Test screen ---------- */
.progress-wrap {
  width: 100%; max-width: 480px;
  margin-top: 8px;
  position: relative; z-index: 1;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #a79fd3;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8f6bff, #d49aff 50%, #ffcf6e);
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(180, 140, 255, 0.6);
}

.question-card {
  margin-top: 36px;
  text-align: center;
}
.question-text {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  color: #f5f2ff;
  padding: 0 8px;
  margin-bottom: 8px;
}
.answer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 22px 22px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #f5f2ff;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: all 0.15s ease;
  line-height: 1.4;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.answer-btn:hover {
  background: rgba(180, 140, 255, 0.14);
  border-color: rgba(200, 160, 255, 0.55);
  transform: translateY(-1px);
}
.answer-btn:active { transform: scale(0.995); }
.answer-btn svg {
  width: 20px; height: 20px;
  color: #a79fd3;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.answer-btn:hover svg { transform: translateX(2px); color: #d49aff; }

.test-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 34px auto 0;
  background: none;
  border: none;
  color: #a79fd3;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  padding: 12px 16px;
  min-height: 44px;
}
.test-back:hover { color: #d49aff; }
.test-back svg { width: 16px; height: 16px; }

/* ---------- Results ---------- */
.result-type {
  font-size: 70px;
  font-weight: 800;
  letter-spacing: 4px;
  text-align: center;
  background: linear-gradient(135deg, #ece3ff, #d49aff 40%, #ffcf6e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 24px;
  filter: drop-shadow(0 0 24px rgba(180, 140, 255, 0.3));
}
.result-nickname {
  font-size: 24px;
  text-align: center;
  color: #f5f2ff;
  margin-top: 2px;
  font-weight: 500;
}
.result-adjective {
  font-size: 13px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: #ffcf6e;
  text-align: center;
  margin-top: 14px;
  font-weight: 800;
}
.result-tagline {
  font-size: 18px;
  text-align: center;
  color: #d7cfef;
  margin-top: 14px;
  font-style: italic;
  line-height: 1.55;
  padding: 0 12px;
}

/* Cards */
.section {
  margin-top: 18px;
  padding: 22px 20px;
}
.section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.section-head svg {
  width: 20px; height: 20px;
  color: #c489ff;
  flex-shrink: 0;
}
.section h4 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c489ff;
  font-weight: 800;
  margin: 0;
}
.section p {
  font-size: 16px;
  line-height: 1.6;
  color: #e5dff8;
}

/* Letter meanings */
.letter-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.letter-row:last-child { border-bottom: none; }
.letter-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(143, 107, 255, 0.4), rgba(212, 154, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.letter-info { flex: 1; min-width: 0; }
.letter-name { font-size: 17px; font-weight: 600; color: #f5f2ff; }
.letter-line { font-size: 14.5px; color: #a79fd3; line-height: 1.45; margin-top: 3px; }
.letter-pct {
  font-size: 13px;
  font-weight: 800;
  color: #ffcf6e;
  margin-left: 10px;
  background: rgba(255, 200, 100, 0.12);
  border: 1px solid rgba(255, 200, 100, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Pill list (strengths/weaknesses) */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  background: rgba(180, 140, 255, 0.12);
  color: #e8dcff;
  border: 1px solid rgba(180, 140, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pill.warn {
  background: rgba(255, 150, 120, 0.1);
  color: #ffd2c2;
  border-color: rgba(255, 150, 120, 0.28);
}

/* Matches (compat) */
.match-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.match-row:last-child { border-bottom: none; }
.match-type {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.2px;
  color: #ffcf6e;
  min-width: 64px;
  padding-top: 2px;
  flex-shrink: 0;
}
.match-why { font-size: 15px; color: #d3cae9; line-height: 1.55; }

/* Careers */
.career-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.career-row:last-child { border-bottom: none; }
.career-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(143, 107, 255, 0.16);
  border: 1px solid rgba(143, 107, 255, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: #c489ff;
  flex-shrink: 0;
}
.career-icon svg { width: 20px; height: 20px; }
.career-meta { flex: 1; min-width: 0; }
.career-name { font-size: 17px; font-weight: 600; color: #f5f2ff; }
.career-why { font-size: 14.5px; color: #a79fd3; line-height: 1.5; margin-top: 4px; }

/* Daily quote */
.quote-card {
  margin-top: 24px;
  padding: 28px 24px;
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(143, 107, 255, 0.18), rgba(255, 200, 100, 0.1));
  border: 1px solid rgba(200, 160, 255, 0.3);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 12px 36px rgba(123, 92, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: center;
}
.quote-deco {
  position: absolute;
  top: 16px; left: 16px;
  color: rgba(255, 207, 110, 0.45);
}
.quote-deco svg { width: 28px; height: 28px; }
.quote-card .eyebrow { margin-bottom: 16px; }
.quote-text {
  font-size: 21px;
  line-height: 1.55;
  font-style: italic;
  color: #f7f3ff;
  font-weight: 500;
}
.quote-author {
  font-size: 14.5px;
  color: #e0c3ff;
  margin-top: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* Upgrade CTA */
.upgrade-card {
  margin-top: 32px;
  padding: 24px 22px;
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 200, 100, 0.18), rgba(255, 150, 80, 0.08));
  border: 1px solid rgba(255, 200, 100, 0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 12px 40px rgba(255, 170, 70, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
}
.upgrade-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(255, 200, 100, 0.18);
  border: 1px solid rgba(255, 200, 100, 0.38);
  display: flex; align-items: center; justify-content: center;
  color: #ffcf6e;
}
.upgrade-icon svg { width: 26px; height: 26px; }
.upgrade-card h3 { font-size: 20px; font-weight: 700; color: #ffcf6e; }
.upgrade-card p {
  font-size: 16px;
  color: #f5f2ff;
  margin-top: 8px;
  line-height: 1.55;
}
.upgrade-card .btn { margin-top: 18px; }

.footer-actions { margin-top: 32px; }
.retake-row { margin-top: 20px; text-align: center; }
.retake-row button {
  background: none;
  border: none;
  color: #a79fd3;
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 12px 16px;
  min-height: 44px;
}

/* Error + loading */
.error {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: #ffb3b3;
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.loading {
  text-align: center;
  color: #b9b2d6;
  margin-top: 22px;
  font-size: 15px;
}
