/* Snap & Shine — GabayGo-inspired visual system (ports Simple_GabayGo).
   Home Credit palette: deep red gradient + yellow accents, concentric ring bg,
   tap ripple, countdown ring, pill CTAs. */

:root {
  --red: #e4002b;
  --red-deep: #a90020;
  --red-ink: #790016;
  --yellow: #ffbf00;
  --white: #ffffff;
  --muted: #f2b8c2;
  --surface: rgba(125, 0, 25, 0.72);
  --surface-2: rgba(255, 255, 255, 0.14);
  --surface-3: rgba(0, 0, 0, 0.18);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; margin: 0; overflow: hidden; }

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  background-color: var(--red-deep);
  background-image:
    radial-gradient(circle at -20% 46%, transparent 0 11%, rgba(255, 255, 255, 0.18) 11.4% 15.4%, transparent 15.8% 21%, rgba(255, 255, 255, 0.14) 21.4% 25.4%, transparent 25.8% 31%, rgba(255, 255, 255, 0.11) 31.4% 35.4%, transparent 35.8% 41%, rgba(255, 255, 255, 0.08) 41.4% 45.4%, transparent 45.8% 100%),
    linear-gradient(135deg, #c90028 0%, #9b001e 56%, #680012 100%);
  background-attachment: fixed;
  user-select: none;
}
input, textarea, select { user-select: text; }

/* Ripple container wraps each page */
.ux-root { position: relative; width: 100%; height: 100%; overflow: hidden; }

/* App column — mobile-first, locked to viewport (no scroll) */
.app {
  width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%;
  overflow: hidden;
  transform-origin: center center;
}
.app-fit { display: flex; flex-direction: column; width: 100%; align-items: stretch; justify-content: center; transform-origin: center center; }

/* Home Credit brand lockup */
.brand-mark { display: block; width: 118px; height: 100px; align-self: center; margin: 0 auto 10px; object-fit: contain; animation: brand-hop 12s ease-in-out infinite; }
.brand-mark.small { width: 88px; height: 74px; margin-bottom: 6px; }
@keyframes brand-hop {
  0%   { transform: translate(0, 0) scale(1); }
  2%   { transform: translate(-36px, -30px) scale(1.1, 0.9); }
  4%   { transform: translate(-30px, 0) scale(0.9, 1.1); }
  5%   { transform: translate(-30px, 0) scale(1); }
  7%   { transform: translate(10px, -40px) scale(1.12, 0.88); }
  9%   { transform: translate(60px, 0) scale(0.9, 1.1); }
  10%  { transform: translate(60px, 0) scale(1); }
  12%  { transform: translate(20px, -22px) scale(1.1, 0.9); }
  14%  { transform: translate(0, 0) scale(0.92, 1.08); }
  22%  { transform: translate(0, 0) scale(1); }
  100% { transform: translate(0, 0) scale(1); }
}

h1, h2 { color: var(--white); font-weight: 800; letter-spacing: 0; text-transform: uppercase; text-align: center; }
h1 { font-size: 24px; line-height: 1; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 8px; }
p { color: var(--white); line-height: 1.4; margin: 0 0 8px; text-align: center; font-size: 14px; }
small { color: var(--muted); }
.muted { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(72, 0, 12, 0.22);
  padding: 14px;
  margin: 8px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.center { text-align: center; }

/* ===== Buttons ===== */
button {
  width: 100%;
  padding: 12px 18px;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  background: var(--yellow);
  color: #5b0010;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 20px rgba(255, 191, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
}
button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 191, 0, 0.42);
}
button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 4px 12px rgba(255, 191, 0, 0.3);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.5);
  box-shadow: none;
}
button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  box-shadow: none;
}
button.secondary:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}
button.primary { background: var(--yellow); color: #5b0010; }

/* Compact capture button — small, doesn't span full width */
#capture-btn {
  width: auto;
  min-width: 190px;
  padding: 10px 22px;
  font-size: 14px;
  letter-spacing: 0.6px;
}

/* Consent — compact, max 2 lines */
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 10.5px; line-height: 1.35; cursor: pointer; text-align: left; color: var(--white); max-width: 330px; }
.consent input { width: 15px; height: 15px; accent-color: var(--yellow); flex-shrink: 0; cursor: pointer; margin-top: 1px; }
.consent span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; }
.btn-row button { flex: 1 1 auto; min-width: 140px; margin-top: 0; }

/* Preview / webcam frame — generous camera space */
.preview-frame {
  width: 100%; max-width: 280px; border-radius: 12px; overflow: hidden;
  background: #111; border: 3px solid var(--red);
  aspect-ratio: 2 / 3;  /* matches generated portrait 1024x1536 output exactly */
  position: relative;
}
.preview-frame video,
.preview-frame img { width: 100%; height: 100%; display: block; object-fit: contain; background: #111; }

/* Light meter HUD chip (top of frame) */
.light-meter {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  border-radius: 999px; padding: 2px 9px;
  font-size: 11px; font-weight: 700; line-height: 1;
  z-index: 3; pointer-events: none;
}
.light-meter .light-dot { width: 7px; height: 7px; border-radius: 50%; background: #aaa; flex-shrink: 0; }
.light-meter .light-val { font-variant-numeric: tabular-nums; }
.light-meter .light-tag { color: #ccc; font-weight: 600; }
.light-meter.low .light-dot { background: #ff5252; }
.light-meter.low .light-tag { color: #ff8a80; }
.light-meter.ok .light-dot { background: #ffbf00; }
.light-meter.ok .light-tag { color: #fff; }
.light-meter.good .light-dot { background: #4ade80; }
.light-meter.good .light-tag { color: #86efac; }

/* Face guide overlay */
.face-guide {
  position: absolute; top: 50%; left: 50%;
  width: 66%; height: 62%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 46%;
  z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.face-guide .face-ring {
  position: absolute; inset: -6px; border-radius: 46%;
  border: 2px solid rgba(255, 191, 0, 0.5);
  opacity: 0;
}
.face-guide .face-hint {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6); color: #fff;
  border-radius: 999px; padding: 2px 8px;
  font-size: 10px; font-weight: 600; white-space: nowrap;
}
.face-guide.face-ok { border-style: solid; border-color: #4ade80; box-shadow: 0 0 18px rgba(74, 222, 128, 0.5); }
.face-guide.face-ok .face-ring { animation: face-ring-out 1.3s ease-out infinite; }
.face-guide.face-bad { border-color: #ff5252; }
@keyframes face-ring-out {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Smile hint */
.smile-hint {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  background: rgba(228, 0, 43, 0.85); color: #fff;
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 700;
  z-index: 3; pointer-events: none;
  animation: smile-pulse 1.1s ease-in-out infinite;
}
@keyframes smile-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.08); }
}

/* Generating: countdown (GabayGo scoring-screen style) */
.scoring-screen { position: relative; width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scoring-header-logo { display: block; width: 120px; height: 104px; margin: 0 auto 8px; object-fit: contain; }
.scoring-header h2 { margin-bottom: 4px; }

.oring-stage { position: relative; height: 290px; width: 100%; display: grid; place-items: center; pointer-events: none; }
.oring { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; border-radius: 50%; border: 3px dashed rgba(255, 191, 0, 0.18); transform: translate(-50%, -50%); }
.oring-a { animation: oring-spin 16s linear infinite; }
.oring-b { width: 220px; height: 220px; border-color: rgba(255, 255, 255, 0.16); border-width: 3px; animation: oring-spin 11s linear infinite reverse; }
@keyframes oring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.scoring-dial { position: absolute; top: 50%; left: 50%; width: 220px; height: 220px; display: grid; place-items: center; transform: translate(-50%, -50%); }
.scoring-arc { position: absolute; inset: 0; transform: rotate(-90deg); }
.arc-track { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 10; }
.arc-fill {
  fill: none; stroke: var(--yellow); stroke-width: 10; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 191, 0, 0.5));
  transition: stroke-dashoffset 0.3s linear;
}
.scoring-center {
  width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 2px;
  background: rgba(117, 0, 23, 0.86);
  border: 4px solid rgba(255, 191, 0, 0.85);
  box-shadow: 0 0 0 10px rgba(255, 191, 0, 0.12), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.scoring-logo { width: 60px; height: 52px; object-fit: contain; margin-bottom: 2px; }
.scoring-num { font-size: 34px; font-weight: 800; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.scoring-unit { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); font-weight: 700; }

.scoring-extend { color: var(--yellow); font-weight: 600; font-size: 14px; line-height: 1.4; max-width: 320px; }
.scoring-copy { width: min(300px, 100%); margin: 10px auto 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; text-align: center; }

.witty { color: var(--yellow); font-style: italic; font-size: 15px; min-height: 1.5em; margin-top: 6px; }

/* Result */
.result-actions { display: flex; gap: 10px; width: 100%; }
.result-actions button, .result-actions .download-link { flex: 1 1 0; min-width: 0; margin-top: 0; }
.result-theme { max-width: 340px; font-size: 13px; }
.download-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--yellow); border-radius: 999px;
  background: transparent; color: var(--white); text-decoration: none;
  font: inherit; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.download-link:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 8px 24px rgba(255, 191, 0, 0.25); }

/* Result preview image — smaller so the action buttons fit one screen */
#state-result .result-celebration { width: 100%; max-width: 220px; position: relative; }
#state-result .preview-frame { max-width: 100%; }
#state-result .brand-mark.small { width: 72px; height: 60px; margin-bottom: 4px; }
#state-result h2 { font-size: 15px; margin-bottom: 4px; }
#state-result .card { padding: 10px 12px; gap: 8px; }
#state-result #circulate-btn { padding: 10px 12px; font-size: 13px; }

/* Celebratory result reveal: framed photo lift, gold sheen, and starburst. */
#state-result .preview-frame { overflow: hidden; isolation: isolate; z-index: 1; }
#state-result #result-img { border-radius: 9px; position: relative; z-index: 2; }
#result-img.reveal { animation: result-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes result-reveal {
  0%   { transform: scale(0.68) translateY(18px) rotate(-2deg); opacity: 0; filter: brightness(0.55) saturate(0.7); }
  58%  { transform: scale(1.035) translateY(0) rotate(0.4deg); opacity: 1; filter: brightness(1.22) saturate(1.1); }
  78%  { transform: scale(0.985) rotate(-0.15deg); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}
#state-result .preview-frame.lift {
  animation: result-frame-lift 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes result-frame-lift {
  0% { box-shadow: 0 0 0 rgba(255, 191, 0, 0); }
  55% { box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36), 0 0 0 7px rgba(255, 191, 0, 0.2); }
  100% { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(255, 191, 0, 0); }
}
#state-result .result-celebration.burst::before {
  content: ""; position: absolute; inset: -26px; z-index: 0; border-radius: 24px;
  background: radial-gradient(circle, rgba(255, 191, 0, 0.56), rgba(255, 191, 0, 0.12) 42%, transparent 70%);
  animation: burst-glow 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; pointer-events: none;
}
@keyframes burst-glow {
  0% { transform: scale(0.35); opacity: 0; }
  28% { opacity: 0.9; }
  100% { transform: scale(1.22); opacity: 0; }
}
#state-result .preview-frame.sheen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 9px;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, 0.66) 48%, transparent 61%);
  transform: translateX(-135%); pointer-events: none;
  animation: result-sheen 0.72s 0.18s ease-out both;
}
@keyframes result-sheen {
  to { transform: translateX(135%); }
}
.result-spark {
  position: absolute; top: 50%; left: 50%; z-index: 4;
  width: var(--spark-size, 10px); height: var(--spark-size, 10px);
  background: var(--spark-color, var(--yellow)); pointer-events: none;
  clip-path: polygon(50% 0%, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0% 50%, 38% 37%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 4px var(--spark-color, var(--yellow)));
  animation: spark-fly 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes spark-fly {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(0); opacity: 0; }
  24% { opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) rotate(135deg) scale(0.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #result-img.reveal, #state-result .preview-frame.lift,
  #state-result .result-celebration.burst::before, #state-result .preview-frame.sheen::after {
    animation-duration: 0.01ms;
  }
  .result-spark { display: none; }
}

.success { color: #7dff9c; font-weight: 700; text-align: center; }

/* Error banner */
.error {
  background: var(--red-ink);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

/* ===== Theme roulette (rotating wheel) ===== */
.roulette-copy { color: var(--muted); font-size: 14px; }

/* Roulette screen fills the frame; Next button anchored to the bottom */
#state-roulette { height: 100%; justify-content: flex-start; }
.roulette-actions {
  width: 100%; max-width: 280px; margin-top: auto; align-self: center;
  display: flex; flex-direction: column; gap: 8px;
}
.roulette-actions button { margin-top: 0; }

.roulette-wheel {
  width: 100%; max-width: 340px; margin: 12px auto 0; padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26); border-radius: var(--radius);
  background: rgba(70, 0, 14, 0.36); box-shadow: 0 20px 50px rgba(41, 0, 8, 0.35);
}
.roulette-stage-label {
  display: block; margin: 0 0 10px; color: var(--yellow); font-size: 11px;
  font-weight: 800; letter-spacing: 1.5px; text-align: center; text-transform: uppercase;
}
.roulette-window {
  position: relative;
  height: 228px;
  border-top: 1px solid rgba(255, 191, 0, 0.45);
  border-bottom: 1px solid rgba(255, 191, 0, 0.45);
  overflow: hidden;
}
.roulette-track {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  will-change: transform;
}
.roulette-item {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.46);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}
/* The center (winning) slot is highlighted */
.roulette-item.center {
  color: #fff;
  font-size: 24px;
  transform: scale(1.04);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255, 191, 0, 0.45);
}
/* The final landed winner pops with a glow */
.roulette-item.winner {
  color: #fff;
  font-size: 25px;
  transform: scale(1.08);
  font-weight: 800;
  text-shadow: 0 0 16px rgba(255, 191, 0, 0.7);
  animation: winner-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Shade strips at top/bottom fade the non-center rows */
.roulette-shade {
  position: absolute;
  left: 0; right: 0;
  height: 54px;
  pointer-events: none;
  z-index: 2;
}
.shade-top { top: 0; background: linear-gradient(to bottom, #6a0014, transparent); }
.shade-bottom { bottom: 0; background: linear-gradient(to top, #6a0014, transparent); }

.roulette-selector {
  position: absolute; z-index: 3; top: 50%; left: 0; right: 0; height: 76px;
  transform: translateY(-50%); border: 2px solid var(--yellow); border-radius: 5px;
  box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.12), inset 0 0 26px rgba(255, 191, 0, 0.12);
  pointer-events: none;
}
.roulette-selector::before,
.roulette-selector::after {
  content: ""; position: absolute; top: 50%; border-top: 9px solid transparent;
  border-bottom: 9px solid transparent; transform: translateY(-50%);
}
.roulette-selector::before { left: -2px; border-left: 12px solid var(--yellow); }
.roulette-selector::after { right: -2px; border-right: 12px solid var(--yellow); }

/* Result line after landing */
.roulette-result {
  margin: 16px 0 0;
  color: var(--yellow);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(255, 191, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: result-celebrate 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.roulette-result span,
.roulette-result strong { display: block; }
.roulette-result span { font-size: 13px; letter-spacing: 1.4px; }
.roulette-result strong { margin-top: 3px; font-size: 22px; line-height: 1.15; }
@keyframes result-celebrate {
  0%   { transform: scale(0.4) translateY(14px); opacity: 0; filter: brightness(0.4); }
  55%  { transform: scale(1.15) translateY(0); opacity: 1; filter: brightness(1.6); }
  75%  { transform: scale(0.97); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
  from { transform: scale(0.85) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ===== GabayGo-style modal popout (error + carousel consent) ===== */
.modal-backdrop,
.error-modal-backdrop {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: rgba(40, 0, 12, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.modal-backdrop.hidden,
.error-modal-backdrop.hidden { display: none !important; }
.modal,
.error-modal {
  width: min(330px, 86%);
  text-align: center;
  padding: 24px 22px 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  background-color: var(--red-deep);
  border: 1px solid rgba(255, 191, 0, 0.6);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  animation: modal-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.modal-icon,
.error-modal-icon {
  width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 191, 0, 0.65);
  box-shadow: 0 0 0 8px rgba(255, 191, 0, 0.12);
}
.modal-glyph,
.error-modal-glyph { font-size: 38px; line-height: 1; }
.modal-ring,
.error-modal-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 191, 0, 0.55); opacity: 0; }
.modal-ring.r1,
.error-modal-ring.r1 { animation: modal-ring-out 1.6s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.modal-ring.r2,
.error-modal-ring.r2 { animation: modal-ring-out 1.6s 0.6s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes modal-ring-out { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
.modal h3,
.error-modal h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--white); }
.modal .modal-msg,
.error-modal .error-modal-msg { margin: 0 0 8px; font-size: 14px; color: #f2b8c2; line-height: 1.5; text-align: center; word-break: break-word; }
.modal-actions,
.error-modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions button,
.error-modal-actions button { flex: 1; margin-top: 0; }

.hidden { display: none !important; }
