:root { --gold-glow: rgba(242, 202, 80, 0.4); }

html, body {
  background-color: #0F0F14;
  color: #e4e1e9;
  height: 100%;
  overscroll-behavior: none;
  font-family: 'Inter', sans-serif;
}

#app { min-height: 100dvh; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.nebula-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 202, 80, 0.08), transparent 40%),
    radial-gradient(circle at 100% 30%, rgba(208, 188, 255, 0.10), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(242, 202, 80, 0.05), transparent 60%),
    #131318;
}

.hairline-gold { border: 1px solid rgba(242, 202, 80, 0.3); }

@keyframes slow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; filter: drop-shadow(0 0 10px rgba(242, 202, 80, 0.4)); }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px rgba(242, 202, 80, 0.7)); }
}
.animate-slow-pulse { animation: slow-pulse 4s ease-in-out infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@keyframes aura-pulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.08); opacity: 1; } }
.aura-pulse { animation: aura-pulse 5s ease-in-out infinite; }

.text-glow { text-shadow: 0 0 20px rgba(255, 233, 176, 0.5); }

.active-card { border: 1px solid #F2CA50; box-shadow: 0 0 20px rgba(242, 202, 80, 0.15), inset 0 0 20px rgba(242, 202, 80, 0.05); }

.aurora-glow {
  position: absolute; border-radius: 9999px; filter: blur(60px); opacity: 0.25; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(242, 202, 80, 0.6), transparent 70%);
}
.aurora-glow--secondary { background: radial-gradient(circle, rgba(208, 188, 255, 0.5), transparent 70%); }

.mystic-border { border: 1px dashed rgba(255, 233, 176, 0.2); background: rgba(31, 31, 37, 0.4); transition: all 0.3s ease; }
.mystic-border:hover { border-color: #ffe9b0; background: rgba(31, 31, 37, 0.6); }

.tab-active { color: #ffe9b0; border-bottom: 2px solid #ffe9b0; text-shadow: 0 0 8px rgba(255, 233, 176, 0.4); }
.auth-glow { box-shadow: 0 0 20px rgba(242, 202, 80, 0.15); }

.card-shimmer-overlay {
  background: linear-gradient(90deg, transparent, rgba(255, 233, 176, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

@keyframes seal-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.seal-pop { animation: seal-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.shimmer-button {
  background: linear-gradient(90deg, #d4af37, #f2ca50, #ffe088, #f2ca50, #d4af37);
  background-size: 200% auto;
  transition: all 0.5s ease;
}
.shimmer-button:hover { animation: shimmer 2s linear infinite; box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }

.glass-card { background: rgba(26, 26, 36, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(212, 175, 55, 0.2); }
.glass-panel { background: rgba(26, 26, 36, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(212, 175, 55, 0.2); }

.gold-border-gradient { border: 1px solid; border-image-source: linear-gradient(135deg, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 100%); border-image-slice: 1; }

.alchemy-button { background: linear-gradient(135deg, #d4af37 0%, #8c6d1f 100%); box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.alchemy-button:active { transform: scale(0.96); box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.alchemy-button:disabled { opacity: 0.5; cursor: not-allowed; }

.nebula-glow { filter: blur(100px); z-index: -1; position: absolute; }

.mystic-scan-ring { position: relative; width: min(220px, 55vh); height: min(220px, 55vh); border-radius: 50%; border: 2px solid rgba(242, 202, 80, 0.2); }
.mystic-scan-ring::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #f2ca50; border-top-color: transparent; border-bottom-color: transparent; animation: rotate 4s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.scan-line { position: absolute; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #f2ca50, transparent); top: 50%; left: 0; animation: scan 3s ease-in-out infinite; box-shadow: 0 0 15px #f2ca50; }
@keyframes scan { 0%, 100% { transform: translateY(-120px); opacity: 0; } 50% { transform: translateY(120px); opacity: 1; } }

.capture-btn-inner { background: linear-gradient(135deg, #f2ca50 0%, #d4af37 100%); box-shadow: 0 0 20px rgba(242, 202, 80, 0.5); }
@keyframes pulse-glow-anim { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }
.pulse-glow { animation: pulse-glow-anim 2s ease-in-out infinite; }

.particle { position: absolute; background: #f2ca50; border-radius: 50%; pointer-events: none; opacity: 0; }
.scanning-line { height: 2px; background: linear-gradient(90deg, transparent, #f2ca50, #cfccda, transparent); width: 100%; position: absolute; top: 50%; animation: scanning-line-anim 4s ease-in-out infinite; filter: blur(1px); }
@keyframes scanning-line-anim { 0% { top: 20%; opacity: 0; } 50% { opacity: 1; } 100% { top: 80%; opacity: 0; } }
@keyframes fade-cycle { 0%, 100% { opacity: 0; transform: translateY(5px); } 50% { opacity: 1; transform: translateY(0); } }
.loading-text-anim { animation: fade-cycle 3s infinite; }

.gold-glow { text-shadow: 0 0 10px rgba(242, 202, 80, 0.4); }
.aura-border { border-top: 1px solid transparent; border-image: linear-gradient(to right, transparent, #f2ca50, transparent) 1; }
@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); } 50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.5); } }
.animate-pulse-gold { animation: pulse-gold 3s infinite ease-in-out; }

.premium-gradient { background: linear-gradient(135deg, #f2ca50 0%, #d4af37 50%, #735c00 100%); }
.timeline-line { background: linear-gradient(to bottom, rgba(212,175,55,0.4) 0%, rgba(212,175,55,0) 100%); }

#toast-root { position: fixed; bottom: 100px; left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: rgba(26,26,36,0.92); border: 1px solid rgba(212,175,55,0.3); color: #e4e1e9; padding: 10px 18px; border-radius: 9999px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); animation: toast-in 0.25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(6,6,10,0.7); backdrop-filter: blur(4px); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } }
.modal-sheet { width: 100%; max-width: 420px; }

input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 10px; }
