/* ==========================================================================
   YUGMA HERITAGE VOICE GUIDE ACCESS & REGISTRATION MODAL STYLES
   ========================================================================== */

/* ── Subtle Remaining Tours / Unlimited Badge ────────────────────────────── */
.yugma-vg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  user-select: none;
}

.yugma-vg-badge.guest.ok {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.yugma-vg-badge.guest.warning {
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fb923c;
}

.yugma-vg-badge.locked {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.yugma-vg-badge.replay {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.yugma-vg-badge.unlimited {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(245, 158, 11, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #ffd56b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.vg-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
}

.vg-badge-dot.active {
  background: #10b981;
}

.vg-badge-sparkle {
  color: #ffd56b;
  font-size: 0.85rem;
}

.vg-badge-lock {
  font-size: 0.78rem;
}

/* ── Premium Registration Invitation Modal Backdrop ──────────────────────── */
.yugma-vg-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  overflow-y: auto;
}

.yugma-vg-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ── Modal Card Container ────────────────────────────────────────────────── */
.yugma-vg-modal-container {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: linear-gradient(145deg, rgba(17, 24, 43, 0.98), rgba(9, 13, 24, 0.99));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.15);
  padding: 32px 30px;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.yugma-vg-modal-backdrop.active .yugma-vg-modal-container {
  transform: translateY(0) scale(1);
}

/* ── Close Button ────────────────────────────────────────────────────────── */
.yugma-vg-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yugma-vg-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: scale(1.05);
}

/* ── Golden Crown Eyebrow ────────────────────────────────────────────────── */
.yugma-vg-modal-gold-crown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffd56b;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.yvg-sparkle-icon {
  font-size: 0.85rem;
}

/* ── Headline & Message ─────────────────────────────────────────────────── */
.yugma-vg-modal-headline {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.yugma-vg-modal-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 22px;
}

.yvg-lead-para {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffd56b;
  margin-bottom: 8px;
}

/* ── Benefits List ───────────────────────────────────────────────────────── */
.yugma-vg-modal-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.yvg-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.yvg-benefit-icon {
  font-size: 1.2rem;
  line-height: 1.2;
}

.yvg-benefit-item div strong {
  display: block;
  font-size: 0.88rem;
  color: #f8fafc;
  font-weight: 700;
}

.yvg-benefit-item div span {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ── Action Buttons ──────────────────────────────────────────────────────── */
.yugma-vg-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yvg-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yvg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.yvg-btn-secondary {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #ffd56b;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yvg-btn-secondary:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.6);
  color: #ffffff;
}

.yvg-btn-text {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.yvg-btn-text:hover {
  color: #e2e8f0;
}

/* ── Mobile Responsiveness ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .yugma-vg-modal-container {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .yugma-vg-modal-headline {
    font-size: 1.3rem;
  }
  .yugma-vg-modal-message {
    font-size: 0.88rem;
  }
  .yvg-btn-primary {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}


/* ── AUTH MODAL OVERRIDE WHEN ACTIVE ─────────────────────────────────────── */
#yugma-auth.auth-active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 999999 !important;
}

@media (max-width: 640px) {
  .yugma-standalone-vg-fab {
    bottom: 18px;
    right: 18px;
    min-width: 48px;
    height: 48px;
    padding: 0 14px 0 12px;
    font-size: 0.74rem;
  }
  .yugma-standalone-vg-panel {
    right: 12px;
    bottom: 74px;
    width: calc(100vw - 24px);
    max-height: 80vh;
  }
}
