:root {
  --text: #0a1f3f;
  --navy: #0a2f6c;
  --royal: #2459ff;
  --page-light: #f7faff;
  --page-gradient: #e8efff;
}

a {
  text-decoration: none;
}

body {
  background: radial-gradient(
    circle at top,
    var(--page-light),
    var(--page-gradient)
  );
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial;
  min-height: 100vh;
  padding-top: 80px;
}

/* NAVBAR — fixed always */
.tp-navbar {
  background: linear-gradient(180deg, #ffffff, #f1f5ff);
  border-bottom: 1px solid rgba(36, 89, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);

  /* animation removed to eliminate switching delay */
  animation: none !important;

  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  padding: 10px 50px;
}

#header .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Brand */
.navbar-brand {
  color: var(--royal) !important;
  font-weight: 900;
  font-size: 22px;
  transition: transform 0.3s;
}
.navbar-brand:hover {
  transform: scale(1.04);
}

.navbar-brand img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Nav links */
.nav-link {
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px !important;
  border-radius: 10px;
  transition: 0.25s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--royal) !important;
  background: rgba(36, 89, 255, 0.12);
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(36, 89, 255, 0.35);
}

.nav-link.active {
  color: var(--royal) !important;
  background: rgba(36, 89, 255, 0.12);
  border-bottom: 2px solid var(--royal);
  font-weight: 800;
}

/* Sponsored */
.sponsored {
  color: #4f5f88;
  font-size: 15px;
  font-weight: 700;
  margin-right: 15px;
  white-space: nowrap;
}

/* Button */
.play-btn {
  background: linear-gradient(145deg, #ffffff, #f4f7ff);
  border: 1px solid rgba(36, 89, 255, 0.25);
  padding: 8px 20px;
  border-radius: 18px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  transition: 0.25s;
}
.play-btn:hover {
  color: var(--royal);
  transform: scale(1.1);
  background: rgba(36, 89, 255, 0.12);
}

/* animation kept only if you use elsewhere */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ————— RESPONSIVE ————— */

@media (max-width: 1200px) {
  .tp-navbar {
    padding: 10px 50px;
  }
  .nav-link {
    padding: 6px 10px !important;
  }
  .sponsored {
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  body {
    padding-top: 75px;
  }

  .tp-navbar {
    padding: 10px 30px;
  }

  .navbar-brand img {
    height: 40px;
    max-width: 160px;
  }

  .sponsored {
    margin-top: 10px;
    display: block;
    white-space: normal;
  }

  .play-btn {
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }

  .tp-navbar {
    padding: 10px 16px;
  }

  .navbar-brand img {
    height: 34px;
    max-width: 140px;
  }

  .sponsored {
    font-size: 13px;
    white-space: normal;
  }

  .play-btn {
    width: 100%;
    margin-top: 10px;
  }
}

/* ===============================
   PREMIUM GLASS SCROLL STACK
   (FULLY RESPONSIVE)
================================= */

.scroll-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: clamp(8px, 1.5vw, 14px);
  z-index: 99999;
}

/* Base Button — responsive size */
.stack-btn {
  width: clamp(40px, 4vw, 15px);
  height: clamp(40px, 4vw, 15px);

  border-radius: clamp(12px, 1.4vw, 18px);

  border: 1px solid rgba(36, 89, 255, 0.25);
  background: linear-gradient(160deg, #ffffff, #eef2ff);
  backdrop-filter: blur(14px);

  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;

  cursor: pointer;

  box-shadow: 0 10px 26px rgba(36, 89, 255, 0.22),
    inset 0 0 10px rgba(255, 255, 255, 0.35);

  transition: all 0.28s ease;
}

/* Show state — DOES NOT reserve layout space */
.stack-btn.show {
  display: flex;
}

/* Hover */
.stack-btn:hover {
  transform: translateY(-3px) scale(1.1);
  background: rgba(36, 89, 255, 0.12);
  box-shadow: 0 16px 38px rgba(36, 89, 255, 0.32),
    inset 0 0 14px rgba(255, 255, 255, 0.45);
}

/* SVG scaling with button */
.stack-btn svg {
  width: clamp(18px, 2vw, 18px);
  height: clamp(18px, 2vw, 26px);
}

/* Icon stroke */
.stack-btn svg path {
  stroke: #0a2f6c;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

/* Hover color change */
.stack-btn:hover svg path {
  stroke: #2459ff;
}

/* Click feedback */
.stack-btn:active {
  transform: scale(1.04);
}

/* MOBILE TWEAKS — tighten corner spacing */
@media (max-width: 576px) {
  .scroll-stack {
    right: 12px;
    bottom: 12px;
  }
}
