:root {
  --bg: #101012;
  --bg-gradient-start: #101012;
  --bg-gradient-end: #101012;
  --panel: rgba(30, 30, 35, 0.45);
  --panel-2: rgba(35, 35, 40, 0.55);
  --accent: #ffc400;
  --muted: #9e9aa3;
  --glass: rgba(255, 255, 255, 0.02);
  --text: #eee;
  --text-heading: #fff;
  --navbar-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
  --search-border: rgba(255, 255, 255, 0.06);
  --search-shadow: 0 4px 28px rgba(0, 0, 0, 0.6) inset;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --dropdown-bg: #1f1f22;
  --dropdown-border: rgba(255, 255, 255, 0.06);
  --dropdown-hover: #2a2a2e;
  --btt-bg: linear-gradient(135deg, var(--accent), #ffb000);
  --btt-color: #111;
  --btt-shadow: 0 8px 24px rgba(255, 196, 0, 0.35);
}

[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-gradient-start: #f4f5f7;
  --bg-gradient-end: #f4f5f7;
  --panel: rgba(255, 255, 255, 0.65);
  --panel-2: rgba(240, 240, 245, 0.75);
  --accent: #e5a800;
  --muted: #6b6e7a;
  --glass: rgba(0, 0, 0, 0.02);
  --text: #222;
  --text-heading: #111;
  --navbar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
  --search-border: rgba(0, 0, 0, 0.1);
  --search-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) inset;
  --card-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  --card-hover-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  --overlay-bg: rgba(0, 0, 0, 0.3);
  --dropdown-bg: #fff;
  --dropdown-border: rgba(0, 0, 0, 0.08);
  --dropdown-hover: #f4f4f6;
  --btt-bg: linear-gradient(135deg, var(--accent), #c99200);
  --btt-color: #fff;
  --btt-shadow: 0 8px 24px rgba(229, 168, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

html,
body {
  height: 100%
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: transparent;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  transition: background .35s ease, color .35s ease;
}

a {
  color: inherit;
  text-decoration: none
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--glass);
  transition: background .35s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.brand-name {
  font-weight: 700;
  white-space: nowrap
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px
}

/* search */
.search-wrap {
  flex: 1
}

.search-wrap input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--search-border);
  background: transparent;
  color: inherit;
  outline: none;
  box-shadow: var(--search-shadow);
  transition: border .25s ease, box-shadow .25s ease;
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.15);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 12px
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
  transition: color .2s ease
}

.nav-links a:hover {
  color: var(--accent)
}

.nav-links a.auth {
  color: var(--text-heading);
  font-weight: 700
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
  font-size: 20px;
  position: relative;
}

.theme-toggle:hover {
  background: var(--glass);
  color: var(--accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity .3s ease, transform .3s ease;
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg)
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg)
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg)
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg)
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s ease;
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--glass)
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Animate to X when open */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.mobile-nav.open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--panel);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav.open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dropdown-border);
}

.mobile-nav-header .brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent)
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  transition: background .2s ease, color .2s ease;
}

.mobile-nav-close:hover {
  background: var(--glass);
  color: var(--accent)
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-links a,
.mobile-nav-links span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.mobile-nav-links a:hover {
  background: var(--glass);
  color: var(--accent)
}

.mobile-nav-links .auth-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--dropdown-border);
}

.mobile-nav-links .auth-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 14px;
}

.hero {
  max-width: 1200px;
  margin: 28px auto;
  padding: 18px
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
  background: linear-gradient(180deg, var(--glass), rgba(0, 0, 0, 0.18));
  padding: 36px;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: visible
}

.kicker {
  display: inline-block;
  background: var(--glass);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px
}

.hero-title {
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  margin: 4px 0 12px;
  font-weight: 800
}

.hero-sub {
  color: var(--muted);
  max-width: 70%;
  margin-bottom: 18px
}

/* profile list */
.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-2);
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: var(--card-shadow);
  transition: background .35s ease
}

.profile img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover
}

.pm .handle {
  font-weight: 700
}

.pm .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

.hero-art {
  width: 320px;
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--glass), rgba(0, 0, 0, 0.25));
  box-shadow: 10px 30px 60px rgba(0, 0, 0, 0.6);
  transform: rotate(-18deg)
}

.live-pill {
  position: absolute;
  right: 36px;
  bottom: 30px;
  background: #ff2d2d;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: var(--card-shadow)
}

.section {
  max-width: 1200px;
  margin: 44px auto;
  padding: 0 18px
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px
}

.section-header .fire {
  font-size: 18px
}

.section-header h2 {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800
}

.section-subtitle {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
  display: none;
}
/* grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 32px;
    margin-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.product-grid .prod-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
  cursor: pointer;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.product-grid .prod-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 6;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-2);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: var(--card-shadow);
}

/* Hover glow ring border & offset */
.product-grid .prod-card:hover .prod-card-inner {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--card-hover-shadow), 0 0 0 2.5px var(--accent), 0 0 0 4.5px var(--bg);
}

[data-theme="light"] .product-grid .prod-card:hover .prod-card-inner {
  box-shadow: var(--card-hover-shadow), 0 0 0 2.5px var(--accent), 0 0 0 4.5px #ffffff;
}

/* Image */
.product-grid .prod-card-image {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 6 !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.5s ease-in-out !important;
  display: block !important;
}

.product-grid .prod-card:hover .prod-card-image {
  transform: scale(1.06) !important;
}

.prod-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text-heading)
}

.muted {
  color: var(--muted);
  font-size: 13px
}

.cs-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(180deg, var(--accent), #ffb000);
  color: #111;
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  z-index: 40;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 196, 0, 0.3);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  /* above CS button */
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: var(--btt-bg);
  color: var(--btt-color);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--btt-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease, box-shadow .2s ease;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 12px 32px rgba(255, 196, 0, 0.5);
  transform: translateY(-3px);
}

.back-to-top.visible:hover {
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.video-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 7580px;
  aspect-ratio: 5 / 2; /* Perfectly fits 1983x793 banners */
  border-radius: 12px;
  background: #000;
}

@media (max-width: 768px) {
  .video-card {
    aspect-ratio: 16 / 9; /* Taller ratio for mobile */
  }
}

/* Swiper Hero Styles */
.heroSwiper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.heroSwiper .video-card {
  border-radius: 0;
  max-width: 100%;
}

.banner-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents ANY image from ever being cropped */
  z-index: 1;
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
}

.heroSwiper .swiper-button-next:after,
.heroSwiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 800;
}

.heroSwiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.heroSwiper .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(45%);
  z-index: 1;
}

.video-title {
  position: absolute;
  top: 12px;
  left: 15px;
  font-size: 20px;
  font-weight: 700;
  color: #f6c453;
  text-shadow: 0 0 8px rgba(246, 196, 83, 0.7);
  z-index: 10;
  letter-spacing: 1px;
  font-family: 'Poppins', sans-serif;
}

/* Styling teks */
.video-text h3 {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 800;
  margin-bottom: 4px;
}

.video-text p {
  font-size: clamp(12px, 3vw, 14px);
  color: #ffffff;
  margin: 0;
}

.live-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 5;
  background-color: #ff2d2d;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  font-size: clamp(12px, 3vw, 14px);
}

.h3 {
  color: yellow
}

#userDisplay {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.logout-btn {
  background: #333;
  border: none;
  padding: 6px 15px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: .3s;
}

.logout-btn:hover {
  background: #ff4343;
}

.auth {
  margin-left: 20px;
  color: var(--text-heading);
  cursor: pointer;
}

#loginBtn,
#registerBtn {
  display: inline-block;
}

.user-menu {
  position: relative;
  cursor: pointer;
  padding: 8px 14px;
  background: var(--panel-2);
  border-radius: 6px;
  font-weight: bold;
  color: var(--text);
}

.user-menu:hover .dropdown-profile {
  display: block;
}

.dropdown-profile {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  width: 170px;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 100;
}

.dropdown-profile button {
  width: 100%;
  padding: 12px;
  background: var(--dropdown-bg);
  border: none;
  border-bottom: 1px solid var(--dropdown-border);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background .2s ease;
}

.dropdown-profile button:hover {
  background: var(--dropdown-hover);
}

.dropdown-profile button:last-child {
  border-bottom: none;
}

@media (max-width:1100px) {
  .hero-card {
    grid-template-columns: 1fr 320px
  }

  .hero-sub {
    max-width: 100%
  }
}

@media (max-width:820px) {

  .hamburger {
    display: flex
  }

  .nav-links {
    display: none
  }

  .theme-toggle {
    margin-left: auto;
  }

  .mobile-nav {
    display: block
  }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 18px
  }

  .hero-right {
    order: 2
  }

  .hero-art {
    width: 260px;
    height: 200px;
    transform: rotate(-12deg)
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 20px;
  }

  .section-header .fire {
    font-size: 24px
  }

  .section-header h2 {
    font-size: 26px;
    line-height: 1.1
  }

  .section-subtitle {
    display: block
  }

  .prod-card {
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--panel-2);
  }

  .prod-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 0;
    object-fit: cover;
  }

  .prod-body {
    padding: 8px 10px 10px;
  }

  .prod-body h3 {
    font-size: 11px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .prod-body .muted {
    display: none;

  }
}


@media (max-width:480px) {

  .navbar {
    padding: 10px 14px
  }

  .brand-sub {
    display: none
  }

  .search-wrap {
    display: none
  }

  .hero {
    margin: 12px auto;
    padding: 0 14px
  }

  .video-card {
    border-radius: 16px
  }

  .hero-title {
    font-size: 28px
  }

  .hero-art {
    width: 220px;
    height: 160px;
    transform: rotate(-8deg)
  }

  .section {
    margin: 24px auto;
    padding: 0 14px
  }

  .section-header .fire {
    font-size: 28px
  }

  .section-header h2 {
    font-size: 24px
  }

  .section-subtitle {
    font-size: 13px;
    margin-top: 2px
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .prod-card {
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  .prod-card img {
    border-radius: 14px 14px 0 0;
  }

  .prod-body {
    padding: 6px 8px 8px;
  }

  .prod-body h3 {
    font-size: 10px;
    font-weight: 700;
  }

  .cs-btn {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
  }

  .back-to-top {
    right: 14px;
    bottom: 68px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px
  }
}