@import url("https://fonts.cdnfonts.com/css/doctor-glitch");
@import url("https://fonts.googleapis.com/css2?family=Rubik+Glitch&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap");

/* =========================================================
   SBOBET88 — Welcome Popup + YoursSEO Digital Intro
========================================================= */

.sbo-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 35, 64, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sbo-welcome-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---- Popup card ---- */
.sbo-welcome-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #1b3a6b 0%, #0b2340 55%, #071828 100%);
  box-shadow:
    0 0 0 1px rgba(245, 132, 31, 0.4),
    0 0 0 3px rgba(51, 120, 184, 0.25),
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(245, 132, 31, 0.15),
    0 0 90px rgba(51, 120, 184, 0.12);
  transform: scale(0.88) translateY(28px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: sboCardGlow 3s ease-in-out infinite;
}

.sbo-welcome-overlay.is-active .sbo-welcome-card {
  transform: scale(1) translateY(0);
}

@keyframes sboCardGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(245, 132, 31, 0.4),
      0 0 0 3px rgba(51, 120, 184, 0.25),
      0 16px 48px rgba(0, 0, 0, 0.65),
      0 0 50px rgba(245, 132, 31, 0.12),
      0 0 70px rgba(51, 120, 184, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(245, 132, 31, 0.65),
      0 0 0 3px rgba(74, 154, 212, 0.4),
      0 16px 48px rgba(0, 0, 0, 0.65),
      0 0 70px rgba(245, 132, 31, 0.28),
      0 0 100px rgba(51, 120, 184, 0.22);
  }
}

/* ---- Digital intro layer ---- */
.sbo-intro-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(7, 24, 40, 0.97) 0%,
    rgba(11, 35, 64, 0.95) 50%,
    rgba(5, 18, 32, 0.97) 100%
  );
  animation: sboIntroExit 4.2s ease-in-out forwards;
  pointer-events: none;
}

.sbo-welcome-overlay.intro-done .sbo-intro-layer {
  display: none;
}

.sbo-intro-scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sbo-intro-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 170, 0.9),
    rgba(255, 215, 0, 0.9),
    rgba(245, 132, 31, 0.8),
    transparent
  );
  box-shadow: 0 0 18px rgba(0, 255, 170, 0.6);
  animation: sboScanDown 1.8s ease-in-out 2;
}

.sbo-intro-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 170, 0.03) 2px,
    rgba(0, 255, 170, 0.03) 4px
  );
  animation: sboScanFlicker 0.12s steps(2) infinite;
}

.sbo-intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0;
  animation: sboGridIn 0.6s ease-out 0.2s forwards;
}

.sbo-intro-text-wrap {
  position: relative;
  z-index: 2;
  padding: 12px 20px;
  text-align: center;
}

.sbo-intro-text {
  font-family: "Doctor Glitch", "Rubik Glitch", "Orbitron", sans-serif;
  font-size: clamp(26px, 8vw, 40px);
  color: #ffd700;
  text-shadow:
    0 0 8px rgba(255, 215, 0, 0.5),
    0 0 20px rgba(0, 255, 170, 0.35),
    0 0 40px rgba(245, 132, 31, 0.2);
  letter-spacing: 3px;
  display: inline-block;
  position: relative;
  animation:
    sboIntroShake 0.3s ease-in-out 2.1s 2,
    sboTextGlow 4s ease-in-out;
}

.sbo-intro-char {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px) scale(0.85);
  animation: sboCharReveal 0.45s ease-out forwards;
}

.sbo-intro-char:nth-child(1) {
  animation-delay: 0.4s;
}
.sbo-intro-char:nth-child(2) {
  animation-delay: 0.55s;
}
.sbo-intro-char:nth-child(3) {
  animation-delay: 0.7s;
}
.sbo-intro-char:nth-child(4) {
  animation-delay: 0.85s;
}
.sbo-intro-char:nth-child(5) {
  animation-delay: 1s;
}
.sbo-intro-char:nth-child(6) {
  animation-delay: 1.15s;
}
.sbo-intro-char:nth-child(7) {
  animation-delay: 1.3s;
}
.sbo-intro-char:nth-child(8) {
  animation-delay: 1.45s;
}

.sbo-intro-underline {
  display: block;
  height: 2px;
  margin: 8px auto 0;
  width: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #00ffaa,
    #ffd700,
    #f5841f,
    #00ffaa,
    transparent
  );
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
  animation: sboUnderlineDraw 1s ease-out 1.6s forwards;
}

.sbo-intro-tag {
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(0, 255, 170, 0.75);
  margin-top: 12px;
  opacity: 0;
  animation: sboTagFade 0.5s ease-out 2s forwards;
}

.sbo-intro-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: #00ffaa;
  margin-left: 2px;
  vertical-align: baseline;
  box-shadow: 0 0 6px #00ffaa;
  animation:
    sboCursorBlink 0.5s step-end 1.5s 4,
    sboCursorHide 0.1s linear 3.5s forwards;
}

@keyframes sboIntroExit {
  0%,
  72% {
    opacity: 1;
    visibility: visible;
  }
  88%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes sboScanDown {
  0% {
    top: -5%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 105%;
    opacity: 0;
  }
}

@keyframes sboScanFlicker {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.7;
  }
}

@keyframes sboGridIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sboCharReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes sboUnderlineDraw {
  to {
    width: 90%;
  }
}

@keyframes sboTagFade {
  to {
    opacity: 1;
  }
}

@keyframes sboIntroShake {
  0%,
  100% {
    transform: translate(0);
  }
  25% {
    transform: translate(-3px, 1px);
    text-shadow:
      2px 0 rgba(0, 255, 170, 0.6),
      -2px 0 rgba(245, 132, 31, 0.6);
  }
  75% {
    transform: translate(3px, -1px);
  }
}

@keyframes sboTextGlow {
  0%,
  60%,
  100% {
    filter: none;
  }
  70% {
    filter: brightness(1.3);
  }
}

@keyframes sboCursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes sboCursorHide {
  to {
    opacity: 0;
    width: 0;
    margin: 0;
  }
}

/* ---- Banner ---- */
.sbo-welcome-banner {
  position: relative;
  line-height: 0;
  opacity: 0;
  animation: sboBannerIn 0.6s ease-out 3.8s forwards;
}

.sbo-welcome-overlay.intro-done .sbo-welcome-banner {
  opacity: 1;
  animation: none;
}

.sbo-welcome-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 2px solid rgba(245, 132, 31, 0.35);
}

.sbo-welcome-banner-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(245, 132, 31, 0.12);
  animation: sboBannerGlow 3s ease-in-out infinite;
}

@keyframes sboBannerIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sboBannerGlow {
  0%,
  100% {
    box-shadow: inset 0 0 30px rgba(245, 132, 31, 0.1);
  }
  50% {
    box-shadow: inset 0 0 50px rgba(51, 120, 184, 0.18);
  }
}

/* ---- Actions ---- */
.sbo-welcome-actions {
  padding: 16px 14px 14px;
  background: linear-gradient(180deg, #1b3a6b 0%, #0b2340 50%, #071828 100%);
  border-top: 2px solid rgba(245, 132, 31, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: sboActionsIn 0.5s ease-out 4s forwards;
}

.sbo-welcome-overlay.intro-done .sbo-welcome-actions {
  opacity: 1;
  animation: none;
}

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

.sbo-welcome-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.sbo-welcome-btn {
  flex: 1;
  position: relative;
  z-index: 0;
  display: block;
  padding: 14px 10px;
  border-radius: 10px;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.2s, color 0.2s;
}

.sbo-welcome-btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: -1;
  border-radius: 12px;
  background-size: 400%;
  filter: blur(5px);
  opacity: 0;
  transition: opacity 0.25s;
}

.sbo-welcome-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.sbo-welcome-btn:hover::before {
  opacity: 1;
  animation: sboBtnGlowing 3s linear infinite;
}

.sbo-welcome-btn-login {
  color: #e8eef5;
  background: linear-gradient(180deg, #24508c 0%, #1b3a6b 55%, #0b2340 100%);
  border: 1px solid rgba(51, 120, 184, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 14px rgba(0, 0, 0, 0.35);
}

.sbo-welcome-btn-login::before {
  background: linear-gradient(
    88deg,
    #3378b8,
    #0b2340,
    #4a9ad4,
    #1b3a6b,
    #3378b8
  );
}

.sbo-welcome-btn-login:hover {
  color: #fff;
  box-shadow:
    0 4px 20px rgba(51, 120, 184, 0.4),
    0 0 16px rgba(74, 154, 212, 0.25);
}

.sbo-welcome-btn-daftar {
  color: #0b2340;
  background: linear-gradient(135deg, #ff9a3c 0%, #f5841f 45%, #d97809 100%);
  border: 1px solid rgba(255, 154, 60, 0.6);
  box-shadow:
    0 4px 18px rgba(245, 132, 31, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: sboDaftarPulse 2.5s ease-in-out infinite;
}

.sbo-welcome-btn-daftar::before {
  background: linear-gradient(
    88deg,
    #f5841f,
    #ffd700,
    #ff9a3c,
    #d97809,
    #f5841f,
    #ffd700
  );
}

.sbo-welcome-btn-daftar:hover {
  color: #071828;
  box-shadow:
    0 6px 24px rgba(245, 132, 31, 0.5),
    0 0 22px rgba(255, 215, 0, 0.25);
}

@keyframes sboBtnGlowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes sboDaftarPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 4px 18px rgba(245, 132, 31, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      0 6px 26px rgba(245, 132, 31, 0.5),
      0 0 20px rgba(255, 215, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.sbo-welcome-btn-daftar:hover {
  animation: none;
}

.sbo-welcome-desc {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #e8eef5;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.sbo-welcome-copy {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #ffd700;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .sbo-intro-layer {
    animation: sboIntroExitReduced 1.2s ease-in-out forwards;
  }

  .sbo-intro-char,
  .sbo-intro-underline,
  .sbo-intro-tag,
  .sbo-intro-scan::before,
  .sbo-intro-cursor {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
    width: auto;
  }

  .sbo-intro-underline {
    width: 90%;
  }

  .sbo-welcome-card,
  .sbo-welcome-banner,
  .sbo-welcome-actions,
  .sbo-welcome-btn-daftar {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  @keyframes sboIntroExitReduced {
    0%,
    60% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }
}

@media (max-width: 420px) {
  .sbo-welcome-card {
    max-width: 340px;
  }

  .sbo-welcome-btn {
    font-size: 13px;
    padding: 12px 8px;
  }

  .sbo-intro-text {
    font-size: clamp(22px, 7vw, 32px);
  }
}
