@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Fira+Code:wght@400;600&display=swap');

:root {
  --nordic-blue: #00d2ff;
  --nordic-cyan: #38bdf8;
  --nordic-gold: #f59e0b;
  --nordic-dark: #04070d;
  --nordic-card: #0b1120;
  --nordic-border: rgba(56, 189, 248, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--nordic-dark);
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

.font-mono {
  font-family: 'Fira Code', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #04070d;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* =================================================== */
/* HERO BACKGROUND VIDEO — 100% NÍTIDO, CENTRALIZADO & LEVE */
/* =================================================== */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  background: #04070d;
}

/* Centralização matemática e sem filtros pesados para 60FPS leve */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.95;
  /* Sem blur para máxima nitidez e sem lag na GPU do celular */
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.25) 0%, rgba(4, 7, 13, 0.05) 50%, #04070d 100%);
  z-index: 2;
  pointer-events: none;
}

/* Big Logo Hero - Nítida e Perfeita */
.nordic-logo-hero {
  filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.6));
  position: relative;
  z-index: 10;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.nordic-logo-hero:hover {
  transform: scale(1.02);
}

/* =================================================== */
/* CARDS & ESTRUTURA DE ALTA PERFORMANCE               */
/* =================================================== */
.nordic-glass {
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid var(--nordic-border);
}

.nordic-glass:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

/* Otimização de renderização para o resto da página */
.content-lazy-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* VIP Card Image Glows */
.vip-image-container {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.vip-img {
  max-height: 210px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.vip-card:hover .vip-img {
  transform: translateY(-5px) scale(1.03);
}

.vip-thor .vip-img {
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.35));
}

.vip-loki .vip-img {
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.35));
}

.vip-odin .vip-img {
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.45));
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100vw - 40px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: slideIn 0.25s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-exit {
  animation: slideOut 0.2s ease forwards;
}

@keyframes slideOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Modal Backdrop */
.modal-overlay {
  background: rgba(2, 4, 8, 0.94);
}

/* Password strength */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Bottom Curve Divider */
.curved-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.curved-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 45px;
}

.curved-divider .shape-fill {
  fill: #060913;
}

/* =================================================== */
/* REGRAS ULTRA LEVES PARA MOBILE (<= 768px)          */
/* =================================================== */
@media (max-width: 768px) {
  #nav-guest-actions {
    display: none !important;
  }

  .vip-image-container {
    height: 180px;
  }

  .vip-img {
    max-height: 170px;
  }

  /* Remove sombras pesadas em celulares para 60 FPS garantido */
  .nordic-logo-hero {
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.5));
  }
}

@media (min-width: 769px) {
  #nav-guest-actions:not(.is-logged-in) {
    display: flex !important;
  }
  #nav-guest-actions.is-logged-in {
    display: none !important;
  }
}
