/* ==========================================================================
   ROYAL COMPONENTS: FRAMES, BUTTONS, CARDS & INTERFACE
   Mandodari Imperial Kingdom Theme: 24K Antique Gold, Deep Velvet Royal Purple,
   Ornate Mughal Filigree, and Cinematic Candlelight Glow.
   ========================================================================== */

/* --- Imperial Brand Header --- */
.site-header {
  width: 100%;
  padding: 28px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-wrap:hover {
  transform: scale(1.03) translateY(-1px);
}

.logo-aura-glow {
  position: absolute;
  width: 280px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(223, 192, 103, 0.22) 0%, rgba(62, 19, 91, 0.15) 50%, transparent 80%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.brand-logo-img {
  height: 68px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
  display: block;
}

/* --- Royal Soundtrack Audio Controller Widget --- */
.soundtrack-widget-wrap {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
}

/* Circular Royal Soundtrack Button (Previous Way: MUSIC ON / OFF Circle) */
.btn-royal-soundtrack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  background: radial-gradient(circle at center, rgba(36, 14, 58, 0.95) 0%, rgba(18, 6, 28, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(223, 192, 103, 0.65);
  color: var(--gold-champagne);
  cursor: pointer;
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(223, 192, 103, 0.25);
  transition: var(--transition-smooth);
  user-select: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-royal-soundtrack:hover {
  border-color: #FFF7DB;
  background: radial-gradient(circle at center, rgba(50, 18, 80, 0.98) 0%, rgba(26, 9, 42, 1) 100%);
  color: #FFF7DB;
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.95),
    inset 0 0 14px rgba(223, 192, 103, 0.3),
    0 0 20px rgba(223, 192, 103, 0.55);
  transform: translateY(-1px) scale(1.04);
}

.icon-speaker-on,
.icon-speaker-off {
  pointer-events: none;
  transition: all 0.3s ease;
}

.btn-royal-soundtrack.is-playing .icon-speaker-on {
  display: block;
  filter: drop-shadow(0 0 5px rgba(223, 192, 103, 0.75));
}

.btn-royal-soundtrack.is-playing .icon-speaker-off {
  display: none;
}

.btn-royal-soundtrack.is-muted {
  border-color: rgba(223, 192, 103, 0.35);
  opacity: 0.85;
}

.btn-royal-soundtrack.is-muted .icon-speaker-on {
  display: none;
}

.btn-royal-soundtrack.is-muted .icon-speaker-off {
  display: block;
  color: #B0A595;
}

/* Pulse animation if browser blocked autoplay waiting for user tap */
.btn-royal-soundtrack.waiting-tap {
  animation: royalSoundPulse 2s infinite ease-in-out;
}

@keyframes royalSoundPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(223, 192, 103, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(223, 192, 103, 0);
  }
}

/* --- Kingdom Hero Section --- */
.hero-section {
  text-align: center;
  padding: 10px 20px 26px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}



.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-ivory);
  margin: 0 0 12px;
  line-height: 1.22;
  text-shadow: 
    0 4px 25px rgba(0, 0, 0, 0.95), 
    0 0 40px rgba(36, 12, 59, 0.6),
    0 0 25px rgba(223, 192, 103, 0.25);
}

.hero-title .gold-accent {
  background: var(--grad-gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: none;
  filter: drop-shadow(0 0 16px rgba(223, 192, 103, 0.35));
  position: relative;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: #CFC7B8;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 480px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Lotus Accent Divider under Main Title */
.hero-lotus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  width: 100%;
  max-width: 190px;
  opacity: 0.85;
}

.hero-lotus-divider img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(223, 192, 103, 0.45));
}

/* --- Royal Portrait Frame (Imperial Gilded Filigree Stage) --- */
.portrait-stage {
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.royal-frame {
  position: relative;
  background: radial-gradient(ellipse 110% 85% at 50% 12%, rgba(42, 14, 68, 0.95) 0%, rgba(20, 8, 34, 0.98) 60%, rgba(10, 4, 16, 0.99) 100%);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1.5px solid rgba(223, 192, 103, 0.65);
  border-radius: 24px;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.96), 
    0 0 50px rgba(36, 12, 59, 0.5),
    0 0 25px rgba(223, 192, 103, 0.25),
    inset 0 0 35px rgba(0, 0, 0, 0.85);
  outline: none;
  overflow: visible;
  transition: var(--transition-smooth);
}

.royal-frame:hover {
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.98), 
    0 0 65px rgba(36, 12, 59, 0.6),
    0 0 35px rgba(223, 192, 103, 0.35),
    inset 0 0 40px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 245, 209, 0.85);
}

/* Ornate Gilded Baroque Filigree Overlay */
.frame-ornate-overlay {
  display: none !important;
}

.ornate-finial {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  display: block;
  z-index: 5;
}

.ornate-finial.finial-top {
  top: -12px;
}

.ornate-finial.finial-top img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(223, 192, 103, 0.5));
}

.ornate-finial.finial-bottom {
  bottom: -12px;
  transform: translateX(-50%) rotate(180deg);
}

.ornate-finial.finial-bottom img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(223, 192, 103, 0.5));
}

.ornate-corner {
  position: absolute;
  width: 38px;
  height: 38px;
  display: block;
  z-index: 5;
}

.ornate-corner img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 8px rgba(223, 192, 103, 0.4));
}

.corner-tl {
  top: 1px;
  left: 1px;
}

.corner-tr {
  top: 1px;
  right: 1px;
  transform: scaleX(-1);
}

.corner-bl {
  bottom: 1px;
  left: 1px;
  transform: scaleY(-1);
}

.corner-br {
  bottom: 1px;
  right: 1px;
  transform: scale(-1, -1);
}

/* Inner Frame Canvas */
.frame-inner {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px 28px;
  border-radius: 22px;
  z-index: 2;
}

/* --- State 1: Upload Card & Dais --- */
.upload-dropzone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(223, 192, 103, 0.35);
  border-radius: 18px;
  padding: 30px 20px 24px;
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(62, 19, 91, 0.3) 0%, transparent 75%),
    linear-gradient(180deg, rgba(20, 8, 32, 0.5) 0%, rgba(10, 4, 18, 0.8) 100%);
  cursor: pointer;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
  position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--gold-champagne);
  border-style: solid;
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(62, 19, 91, 0.45) 0%, transparent 75%),
    radial-gradient(circle at 50% 50%, rgba(223, 192, 103, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(26, 10, 42, 0.7) 0%, rgba(14, 6, 24, 0.9) 100%);
  box-shadow: 
    inset 0 0 35px rgba(223, 192, 103, 0.12), 
    0 0 25px rgba(223, 192, 103, 0.2),
    0 0 40px rgba(36, 12, 59, 0.35);
  transform: translateY(-2px);
}

/* Realistic 3D Golden Imperial Crown */
.upload-icon-wrap {
  width: 80px;
  height: 52px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.royal-crown-3d-img {
  width: 74px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(223, 192, 103, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-dropzone:hover .royal-crown-3d-img {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 0 24px rgba(223, 192, 103, 0.9)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9));
}

/* Classical Imperial Crown Flourish Divider (Desktop Reference 1) */
.desktop-crown-divider {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 12px;
}

.crown-flourish-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 192, 103, 0.65), transparent);
}

.crown-flourish-icon {
  font-size: 1rem;
  color: var(--gold-champagne);
  filter: drop-shadow(0 0 8px rgba(223, 192, 103, 0.7));
  line-height: 1;
}

.upload-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-ivory);
  margin: 0 0 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Diamond Divider under title */
.upload-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold-champagne);
  font-size: 0.65rem;
  margin-bottom: 8px;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(223, 192, 103, 0.5));
}

.upload-title-divider .flourish-diamond {
  font-size: 0.85rem;
  color: var(--gold-primary);
}

.upload-hint {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 300px;
  margin: 0 0 20px;
}

/* Gilded Specification Pills */
.file-specs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-subtle);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 14px;
}

.spec-pill {
  background: rgba(14, 6, 22, 0.75);
  border: 1px solid rgba(223, 192, 103, 0.45);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--gold-champagne);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.file-specs-bullet {
  color: var(--gold-champagne);
  opacity: 0.85;
  font-size: 0.65rem;
  line-height: 1;
}

.bullet-desktop {
  display: none;
}

.bullet-mobile {
  display: inline;
}

/* Hidden File Input */
.hidden-file-input {
  display: none;
}

/* Quick Demo Trigger with flanking hairline lines */
.demo-trigger-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.desktop-demo-crown-divider {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 190px;
  margin-bottom: 8px;
}

.demo-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.demo-flourish-line {
  flex: 1;
  height: 1px;
  max-width: 55px;
  background: linear-gradient(90deg, transparent, rgba(223, 192, 103, 0.5));
}

.demo-button-row .demo-flourish-line:last-child {
  background: linear-gradient(90deg, rgba(223, 192, 103, 0.5), transparent);
}

.demo-trigger-btn {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-champagne);
  letter-spacing: 1.5px;
  cursor: pointer;
  opacity: 0.9;
  transition: var(--transition-smooth);
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.demo-trigger-btn:hover {
  opacity: 1;
  color: #FFF7DC;
  text-shadow: 0 0 12px rgba(223, 192, 103, 0.8);
}

.demo-sparkle {
  color: var(--gold-primary);
  animation: sparkleTwinkle 2.5s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% {
    transform: scale(0.85) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.25) rotate(45deg);
    opacity: 1;
  }
}

/* --- 24K Embossed Gold Primary Capsule Buttons --- */
.btn-gold-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #FFF6D6 0%, #E8C86E 22%, #A47C16 55%, #F4DC88 85%, #FFE99E 100%);
  color: #120A02;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 248, 220, 0.8);
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.9), 
    0 0 35px rgba(223, 192, 103, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(105, 76, 16, 0.6);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 50px;
}

.btn-scroll-left,
.btn-scroll-right {
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
  opacity: 0.75;
}

.btn-scroll-left img,
.btn-scroll-right img {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-scroll-right {
  transform: scaleX(-1);
}

.btn-upload-icon {
  stroke: #120A02;
  stroke-width: 2.4;
  margin-right: -2px;
}

.btn-gold-primary .btn-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Continuous Subtle Metallic Gold Light Sweep */
.btn-gold-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -90%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  transition: all 0.75s ease;
  pointer-events: none;
}

.btn-gold-primary:hover:not(:disabled)::after {
  left: 150%;
}

.btn-gold-primary:hover:not(:disabled) {
  background: var(--grad-gold-button-hover);
  transform: translateY(-3px);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.95), 
    0 0 55px rgba(223, 192, 103, 0.65),
    inset 0 1px 3px rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-gold-primary:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.9), 
    0 0 25px rgba(223, 192, 103, 0.4);
}

.btn-gold-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.6);
}

/* Secondary Button / Action */
.btn-secondary-action {
  background: rgba(36, 12, 59, 0.35);
  color: var(--gold-champagne);
  border: 1px solid rgba(223, 192, 103, 0.4);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 26px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary-action:hover {
  border-color: var(--gold-champagne);
  background: rgba(62, 19, 91, 0.6);
  color: #FFF7DB;
  box-shadow: 0 0 25px rgba(223, 192, 103, 0.25);
  transform: translateY(-2px);
}

/* --- State 2: Photo Preview --- */
.preview-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.preview-badge {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-champagne);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-change-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition-smooth);
  padding: 4px 8px;
}

.preview-change-btn:hover {
  color: var(--gold-champagne);
}

.preview-image-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-frame-inner);
  border: 1.5px solid rgba(223, 192, 103, 0.35);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.9), 
    inset 0 0 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 22px;
  position: relative;
}

.preview-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.preview-gilded-border {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(223, 192, 103, 0.25);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

/* Consent Checkbox */
.consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(36, 12, 59, 0.3);
  border: 1px solid rgba(223, 192, 103, 0.2);
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gold-primary);
  border-radius: 5px;
  background: rgba(10, 4, 18, 0.85);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: var(--transition-smooth);
}

.custom-checkbox:checked {
  background: var(--gold-primary);
  box-shadow: 0 0 12px rgba(223, 192, 103, 0.5);
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #08040B;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.consent-label {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #CFC7B8;
  cursor: pointer;
  user-select: none;
}

/* --- State 4: Result State (Imperial Gallery) --- */
.result-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: portraitReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portraitReveal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.result-crest-badge {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 3px;
  color: var(--gold-champagne);
  text-transform: uppercase;
  filter: drop-shadow(0 0 8px rgba(223, 192, 103, 0.5));
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--text-ivory);
  margin: 0 0 18px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 25px rgba(223, 192, 103, 0.3);
}

.result-image-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  box-shadow: 
    0 22px 55px rgba(0, 0, 0, 0.98), 
    0 0 45px rgba(223, 192, 103, 0.35),
    0 0 60px rgba(36, 12, 59, 0.5);
  margin-bottom: 26px;
  position: relative;
  background: var(--bg-frame-inner);
}

.result-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-gilded-frame {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(255, 245, 209, 0.3);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

.result-actions-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* --- State 5: Error State --- */
.error-container {
  width: 100%;
  text-align: center;
  padding: 34px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-crest {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(62, 19, 91, 0.4);
  border: 1px solid rgba(223, 192, 103, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold-champagne);
  font-size: 1.5rem;
  box-shadow: 0 0 25px rgba(223, 192, 103, 0.3);
}

.error-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-ivory);
  margin: 0 0 12px;
}

.error-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 0 26px;
}


