.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: #191c1c;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 15% 85%, rgba(184,152,87,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(184,152,87,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #fdfcfb 0%, #f0ebe4 100%);
}

.clinical-gradient {
  background: linear-gradient(135deg, #1c1c1a 0%, #0a0a09 100%);
}

.glass-card-floating {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.09),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.mirrored-left  { text-align: right;  display: flex; flex-direction: column; align-items: flex-end; }
.mirrored-right { text-align: left;   display: flex; flex-direction: column; align-items: flex-start; }

@media (max-width: 767px) {
  .mirrored-left  { text-align: center !important; align-items: center !important; }
  .mirrored-left p, .mirrored-left h1 { text-align: center !important; }
  .mirrored-right { text-align: center !important; align-items: center !important; width: 100%; }
  .mirrored-right h2, .mirrored-right p { text-align: center !important; }
  #change-btn { align-self: center !important; }
  #preview-section p, #result-section p { text-align: center !important; }
  .error-box p { text-align: center !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .mirrored-left { text-align: left; align-items: flex-start; }
}


/* ── RINGS ── */
.bg-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.bg-ring-1 { width: 700px; height: 700px; border: 1px solid rgba(184,152,87,0.22); }
.bg-ring-2 { width: 500px; height: 500px; border: 1px solid rgba(184,152,87,0.17); }
.bg-ring-3 { width: 300px; height: 300px; border: 1px solid rgba(184,152,87,0.20); }

/* ── FADE-IN STAGGER ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-nav { opacity: 0; animation: fadeIn  0.5s  ease 0.05s forwards; }
.anim-1   { opacity: 0; animation: fadeUp  0.7s  ease 0.15s forwards; }
.anim-2   { opacity: 0; animation: fadeUp  0.7s  ease 0.3s  forwards; }
.anim-3   { opacity: 0; animation: fadeUp  0.75s ease 0.45s forwards; }
.anim-4   { opacity: 0; animation: fadeUp  0.75s ease 0.55s forwards; }
.anim-5   { opacity: 0; animation: fadeUp  0.8s  ease 0.7s  forwards; }
.anim-6   { opacity: 0; animation: fadeUp  0.8s  ease 0.85s forwards; }

/* ── UPLOAD ZONE PULSE ── */
@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,152,87,0);    border-color: rgba(184,152,87,0.28); }
  50%       { box-shadow: 0 0 0 6px rgba(184,152,87,0.05); border-color: rgba(184,152,87,0.55); }
}

.upload-idle {
  border: 1px solid rgba(184,152,87,0.28);
  background: rgba(184,152,87,0.025);
  animation: borderPulse 3.5s ease-in-out infinite;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.upload-idle:hover {
  border-color: rgba(184,152,87,0.65) !important;
  background: rgba(184,152,87,0.05) !important;
  box-shadow: 0 8px 32px rgba(184,152,87,0.12) !important;
  animation: none;
}

/* ── CTA BUTTON ── */
.btn-cta {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 20px -5px rgba(0,0,0,0.3);
}
.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.11), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-cta:hover::after { left: 160%; }
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 16px 40px rgba(0,0,0,0.32);
  filter: brightness(1.1);
}
.btn-cta:active { transform: scale(0.985); }
.btn-cta:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 20px -5px rgba(0,0,0,0.3) !important;
}
.btn-cta:disabled::after { display: none; }

/* ── SECONDARY BUTTONS ── */
.btn-sec {
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.btn-sec:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.28) !important;
  transform: translateY(-1px);
  color: #111;
}
.btn-sec:active { transform: scale(0.985); }

/* ── LOADING RINGS ── */
@keyframes spin        { to { transform: rotate(360deg);  } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.ring-outer {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(184,152,87,0.2);
  border-top-color: rgba(184,152,87,0.9);
  animation: spin 1s linear infinite;
}
.ring-inner {
  position: absolute; inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(184,152,87,0.1);
  border-bottom-color: rgba(184,152,87,0.55);
  animation: spinReverse 1.5s linear infinite;
}

/* ── STEP DOTS ── */
.step-dot-anim {
  border: 1px solid rgba(184,152,87,0.3);
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.step-dot-anim.active {
  background: #b89857;
  border-color: #b89857;
  box-shadow: 0 0 0 4px rgba(184,152,87,0.14);
}
.step-dot-anim.done {
  background: rgba(184,152,87,0.5);
  border-color: rgba(184,152,87,0.5);
}
.step-label { opacity: 0.35; transition: opacity 0.4s ease, color 0.4s ease; }
.step-label.active { opacity: 1; color: #191c1c; }
.step-label.done   { opacity: 0.55; color: #4c4546; }

/* ── RESULT REVEAL ── */
@keyframes resultReveal {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.result-reveal { animation: resultReveal 0.45s ease forwards; }

/* ── MISC ── */
.section-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(184,152,87,0.8);
}
.gold-rule {
  width: 36px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,152,87,0.6), transparent);
  margin: 0 auto;
}
.error-box {
  background: rgba(186,26,26,0.05);
  border: 1px solid rgba(186,26,26,0.18);
  border-radius: 12px;
  padding: 14px 18px;
}
