/* ================================================================
   VALSKUY — Banner Popup
   Injected into index.html before langModal / loadingScreen logic
   Poster 4:5 + judul + teks + tombol CTA — konten diatur dari admin.
================================================================ */

/* --- Overlay --- */
#bannerPopup {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(8, 8, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
#bannerPopup.bp-visible {
  opacity: 1;
  visibility: visible;
}

/* --- Dialog box --- */
.bp-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #0e0e0e;
  border: 1px solid #242424;
  border-radius: 20px;
  overflow: hidden;
  animation: bp-arrive .5s cubic-bezier(.22,1,.36,1) both;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes bp-arrive {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --- Poster (rasio 4:5) --- */
.bp-poster {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #141414;
  overflow: hidden;
  cursor: pointer;
}
a.bp-poster { text-decoration: none; }
.bp-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Close --- */
.bp-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  z-index: 2;
  background: rgba(237,233,225,0.94);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0e0e0e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: transform .2s;
}
.bp-close:hover { transform: scale(1.08); }

/* --- Content below poster --- */
.bp-content {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px;
  letter-spacing: 1px;
  color: #ede9e1;
  line-height: 1.25;
  margin: 0;
}
.bp-text {
  font-size: 13px;
  color: #a8a5a0;
  line-height: 1.65;
  letter-spacing: .2px;
}
.bp-text strong, .bp-text b { color: #ede9e1; font-weight: 700; }
.bp-text em, .bp-text i     { color: #c8a878; font-style: italic; }

/* --- CTA button --- */
.bp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-decoration: none;
  text-align: center;
  transition: filter .2s, transform .2s;
}
.bp-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bp-cta:active { transform: translateY(0); }

/* --- Dismiss checkbox --- */
.bp-dismiss {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #5a5855;
  cursor: pointer;
  user-select: none;
}
.bp-dismiss input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #c8a878;
  cursor: pointer;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  #bannerPopup { padding: 16px; }
  .bp-box { max-width: 340px; }
  .bp-content { padding: 18px 18px 22px; gap: 10px; }
  .bp-title { font-size: 19px; }
}

/* ================================================================
   LOADING SCREEN — upgraded
================================================================ */

/* Reset old styles that conflict */
.ls-wrap { gap: 0 !important; }

/* Subtle dot-grid background */
.ls-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #1e1e1e 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .45;
  pointer-events: none;
}

/* Center wrap */
#loadingScreen .ls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Spinning ring container */
.ls-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ls-spin 1.6s linear infinite;
}
@keyframes ls-spin {
  to { transform: rotate(360deg); }
}
.ls-ring-arc {
  transform-origin: center;
}

/* Logo inside ring */
#loadingScreen .ls-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.ls-wordmark-fb {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--ivory);
  position: relative;
  z-index: 1;
}

/* Text block */
.ls-text-block {
  text-align: center;
  margin-bottom: 24px;
}
#loadingScreen .ls-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 8px;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
#loadingScreen .ls-tagline {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
}

/* Progress bar — override old one */
#loadingScreen .ls-bar-outer {
  width: 160px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}
#loadingScreen .ls-bar-inner {
  height: 100%;
  background: var(--silver);
  width: 0;
  animation: ls-fill 1.8s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes ls-fill {
  0%   { width: 0% }
  40%  { width: 55% }
  80%  { width: 85% }
  100% { width: 100% }
}

/* Animated dots */
.ls-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ls-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  animation: ls-dot-pulse 1.2s ease-in-out infinite;
}
.ls-dots span:nth-child(1) { animation-delay: 0s; }
.ls-dots span:nth-child(2) { animation-delay: .2s; }
.ls-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ls-dot-pulse {
  0%, 80%, 100% { opacity: .2; transform: scale(1); }
  40%            { opacity: 1;  transform: scale(1.4); }
}

/* Hide transition */
#loadingScreen {
  transition: opacity .4s ease, visibility .4s ease;
}