/* NAGA6D Portal skin — visual shell inspired by gryflash-style layouts
   Content remains corporate catalog (no gambling flows). */

:root {
  --bg: #1e0407;
  --bg-2: #26060a;
  --bg-3: #30080d;
  --panel: #2a070b;
  --gold: #f0c14b;
  --gold-2: #ffe08a;
  --gold-deep: #b8860b;
  --gold-bar: linear-gradient(180deg, #f6d860 0%, #d4a017 45%, #a6790c 100%);
  --text: #fff;
  --muted: #cfcfcf;
  --line: #6b1a22;
  --danger-soft: #e0b27a;
  --maroon: #7a1220;
  --maroon-2: #9c1a2b;
  --maroon-deep: #4a0a0f;
  --font-sans: Arial, Helvetica, "Segoe UI", sans-serif;
  --container: 1100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; width: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

.container { width: min(100% - 1.25rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { top: 1rem; }

/* Floating left social rail (gryflash-style) */
.float-rail {
  position: fixed;
  left: 0;
  top: 38%;
  z-index: 9100;
  display: flex;
  align-items: stretch;
  transform: translateY(-50%);
}
.float-rail__panel {
  display: flex;
  flex-direction: column;
  gap: .42rem;
  padding: .55rem .42rem;
  background: #26060a;
  border: 1px solid #5a151c;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 4px 0 18px rgba(0,0,0,.35);
  transition: transform .25s ease, opacity .25s ease;
}
.float-rail__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.float-rail__btn svg {
  display: block;
  width: 22px;
  height: 22px;
}
.float-rail__btn--tg { background: #2aabee; }
.float-rail__btn--wa { background: #25d366; }
.float-rail__btn--fb { background: #1877f2; }
.float-rail__btn--lc { background: linear-gradient(180deg, #f0d060, #c99612); color: #1a1200 !important; }
.float-rail__btn:hover { filter: brightness(1.08); transform: scale(1.06); }
.float-rail__toggle {
  width: 22px;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: var(--gold-bar);
  color: #1a1200;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 2px 0 10px rgba(0,0,0,.25);
}
.float-rail.is-collapsed .float-rail__panel {
  transform: translateX(calc(-100% - 2px));
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
}
.float-rail.is-collapsed .float-rail__toggle span {
  display: inline-block;
  transform: rotate(180deg);
}
.float-rail .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.float-rail--right {
  left: auto;
  right: 0;
}
.float-rail--right .float-rail__panel {
  border-left: 1px solid #5a151c;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 18px rgba(0,0,0,.35);
}
.float-rail--right .float-rail__toggle {
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 0 10px rgba(0,0,0,.25);
}
.float-rail--right.is-collapsed .float-rail__panel {
  transform: translateX(calc(100% + 2px));
  left: auto;
  right: 0;
}
.float-rail--right.is-collapsed .float-rail__toggle span {
  transform: rotate(180deg);
}
.float-rail__panel--apk {
  padding: .5rem .45rem;
  gap: 0;
}
.float-rail__apk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-decoration: none !important;
  color: var(--gold) !important;
  width: 108px;
}
.float-rail__apk:hover {
  filter: brightness(1.08);
}
.float-rail__apk-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  text-align: center;
}
.float-rail__apk-qr {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 3px;
  box-sizing: border-box;
}
.float-rail__apk-hint {
  font-size: .58rem;
  color: #cfcfcf;
  text-align: center;
  line-height: 1.2;
}
/* Header */
.portal-header {
  background: linear-gradient(180deg, #38090f 0%, #1e0407 100%);
  border-bottom: 1px solid #7a1220;
  position: relative;
  z-index: 100;
}
.portal-top {
  width: min(100% - 1rem, var(--container));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem 0;
}
.portal-logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.portal-logo img {
  width: min(168px, 42vw);
  height: auto;
}
.portal-auth {
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
  flex: 0 0 auto;
}
.portal-auth__row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: .45rem;
}
.auth-btn {
  min-width: 96px;
  text-align: center;
  padding: .45rem .85rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #4a0d13, #200507);
  white-space: nowrap;
  line-height: 1.1;
}
.auth-btn--register {
  background: linear-gradient(180deg, #f0d060, #c99612);
  color: #1a1200 !important;
  border-color: #f5d56a;
}
.portal-contact-link {
  font-size: .75rem;
  color: var(--gold-2) !important;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Mobile-only auth bar under marquee — hidden on desktop */
.portal-auth-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  background: #38090f;
  cursor: pointer;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--gold);
  border-radius: 1px;
}
.nav-toggle .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.portal-nav {
  background: var(--gold-bar);
  border-top: 1px solid #fff3;
  border-bottom: 1px solid #7a5a00;
}
.portal-menu {
  width: min(100% - .5rem, var(--container));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.portal-menu a {
  display: block;
  padding: .72rem .7rem;
  color: #1a1200 !important;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.portal-menu a:hover,
.portal-menu .current-menu-item > a {
  background: rgba(0,0,0,.18);
  color: #fff !important;
}

/* Top marquee ticker */
.portal-marquee {
  overflow: hidden;
  background: linear-gradient(180deg, #2b070b 0%, #160304 100%);
  border-bottom: 1px solid #5a151c;
  height: 34px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.portal-marquee__track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  -webkit-animation: portal-marquee-scroll 42s linear infinite;
  animation: portal-marquee-scroll 42s linear infinite;
}
.portal-marquee:hover .portal-marquee__track {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}
.portal-marquee__item {
  color: var(--gold-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.portal-marquee__sep {
  color: var(--gold);
  font-size: .7rem;
  opacity: .85;
}
@-webkit-keyframes portal-marquee-scroll {
  from { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
  to { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); }
}
@keyframes portal-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
/* Keep a readable strip if OS "reduce motion" is on — still slowly move via JS fallback */
@media (prefers-reduced-motion: reduce) {
  .portal-marquee__track {
    -webkit-animation: portal-marquee-scroll 90s linear infinite;
    animation: portal-marquee-scroll 90s linear infinite;
  }
}

/* Banner hero (desktop / mobile art) */
.portal-banner {
  position: relative;
  width: min(100%, var(--container));
  margin: .75rem auto 0;
  overflow: hidden;
  border: 1px solid #642028;
  background: #1e0407;
}
.portal-banner--hero {
  aspect-ratio: 1920 / 613;
  max-height: none;
  line-height: 0;
}
.portal-banner--hero .portal-banner__slide::after {
  display: none;
}
.portal-banner--hero .portal-banner__slide.is-active {
  display: block;
  height: 100%;
}
.portal-banner--hero picture,
.portal-banner--hero .portal-banner__art,
.portal-banner--hero .portal-banner__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.portal-banner__slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}
.portal-banner__slide.is-active { display: block; }
.portal-banner__slide img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.portal-banner__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.25) 55%, rgba(0,0,0,.45));
}
.portal-banner__logo {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 110px !important;
  height: auto !important;
  opacity: .92;
}
.portal-banner__caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  max-width: 70%;
}
.portal-banner__caption strong {
  display: block;
  color: var(--gold-2);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  text-shadow: 0 2px 8px #000;
}
.portal-banner__caption span {
  color: #eee;
  font-size: .95rem;
  text-shadow: 0 2px 6px #000;
}
.portal-banner__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 48px;
  border: 0;
  background: rgba(0,0,0,.55);
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
}
.portal-banner__nav.prev { left: 0; }
.portal-banner__nav.next { right: 0; }
.portal-banner__dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.portal-banner__dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; background: #7a3b3b; cursor: pointer;
}
.portal-banner__dots button.is-active { background: var(--gold); }

/* Steps */
.portal-steps {
  width: min(100% - 1rem, var(--container));
  margin: .7rem auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
}
.portal-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, #3b0b11, #200507);
  color: var(--gold) !important;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
}
.portal-step span {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #111; font-size: .75rem;
}

/* Showcase strip — modern progressive jackpot */
.portal-progress {
  width: min(100% - 1rem, var(--container));
  margin: .55rem auto;
  perspective: 900px;
}
.portal-progress__frame {
  position: relative;
  overflow: hidden;
  line-height: 0;
  transform-style: preserve-3d;
  /* Full lebar container mengikuti qqstarz.com (sejajar hero & steps) */
  width: 100%;
  margin-inline: auto;
}
.portal-progress__frame--fx {
  animation: n6d-jp-float 7s ease-in-out infinite;
  will-change: transform;
}
.portal-progress__art {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.06) drop-shadow(0 0 16px rgba(240, 193, 75, .3)) drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
}
/* Light sweep across the banner */
.portal-progress__sheen {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: -35%;
  width: 26%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 230, 150, .04) 30%, rgba(255, 236, 170, .3) 50%, rgba(255, 230, 150, .04) 70%, transparent 100%);
  transform: skewX(-18deg);
  animation: n6d-jp-sheen 4.2s ease-in-out infinite;
  will-change: transform;
}
/* Floating gold sparks */
.portal-progress__sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(circle 2px at 12% 78%, rgba(255, 224, 138, .9) 0%, transparent 100%),
    radial-gradient(circle 1.6px at 28% 40%, rgba(255, 236, 170, .8) 0%, transparent 100%),
    radial-gradient(circle 2.4px at 44% 66%, rgba(240, 193, 75, .85) 0%, transparent 100%),
    radial-gradient(circle 1.4px at 58% 30%, rgba(255, 224, 138, .75) 0%, transparent 100%),
    radial-gradient(circle 2px at 72% 72%, rgba(255, 236, 170, .85) 0%, transparent 100%),
    radial-gradient(circle 1.6px at 86% 44%, rgba(240, 193, 75, .8) 0%, transparent 100%);
  background-repeat: no-repeat;
  animation: n6d-jp-sparks 5.5s linear infinite;
  opacity: .85;
  will-change: transform, opacity;
}
.portal-progress__value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(52%, 520px);
  text-align: center;
  pointer-events: none;
  line-height: 1.1;
  z-index: 3;
}
.portal-progress__label {
  display: block;
  color: #ffe9b0;
  font-size: clamp(.5rem, 1.2vw, .74rem);
  font-weight: 800;
  letter-spacing: .34em;
  text-shadow: 0 1px 4px #000;
  margin-bottom: .18em;
  animation: n6d-jp-label 3.2s ease-in-out infinite;
}
.portal-progress__value strong {
  display: block;
  background: linear-gradient(180deg, #fff6d8 0%, #ffe08a 38%, #f0c14b 62%, #b8860b 100%);
  background-size: 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffe08a;
  font-size: clamp(.95rem, 2.6vw, 1.6rem);
  font-weight: 900;
  letter-spacing: .02em;
  filter: drop-shadow(0 0 14px rgba(240, 193, 75, .5)) drop-shadow(0 2px 0 rgba(0, 0, 0, .85));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: n6d-jp-shimmer 3s linear infinite;
  transition: transform .18s ease;
}
.portal-progress__value strong.is-tick {
  transform: scale(1.045);
}
@keyframes n6d-jp-float {
  0%, 100% { transform: rotateX(0deg) translateY(0); }
  25% { transform: rotateX(1.4deg) translateY(-2px); }
  75% { transform: rotateX(-1.2deg) translateY(2px); }
}
@keyframes n6d-jp-sheen {
  0% { left: -35%; }
  55%, 100% { left: 120%; }
}
@keyframes n6d-jp-sparks {
  0% { transform: translateY(8%); opacity: 0; }
  18% { opacity: .9; }
  82% { opacity: .9; }
  100% { transform: translateY(-14%); opacity: 0; }
}
@keyframes n6d-jp-shimmer {
  0% { background-position: 0 0; }
  50% { background-position: 0 100%; }
  100% { background-position: 0 0; }
}
@keyframes n6d-jp-label {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-progress__frame--fx,
  .portal-progress__sheen,
  .portal-progress__sparks,
  .portal-progress__label,
  .portal-progress__value strong {
    animation: none;
  }
}

@media (max-width: 640px) {
  .portal-progress__value {
    width: min(60%, 300px);
  }
  .portal-progress__label {
    letter-spacing: .2em;
  }
  .portal-progress__value strong {
    font-size: clamp(.8rem, 3.8vw, 1.15rem);
  }
}

/* Category tabs */
.portal-cats {
  width: min(100% - 1rem, var(--container));
  margin: .65rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  border-bottom: 1px solid #642028;
  padding-bottom: .35rem;
}
.portal-cats button {
  border: 0;
  background: transparent;
  color: #bbb;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .04em;
  padding: .45rem .65rem;
  cursor: pointer;
}
.portal-cats button.is-active,
.portal-cats button:hover {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* Product tiles like game cards */
.portal-grid-wrap {
  width: min(100% - 1rem, var(--container));
  margin: .4rem auto 1.2rem;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
}
.portal-grid--providers {
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
.portal-tile {
  background: #26060a;
  border: 1px solid #5a151c;
  overflow: hidden;
}
.portal-seo__links {
  margin: .5rem 0 1.2rem;
  padding-left: 1.15rem;
  color: var(--muted);
}
.portal-seo__links a,
.related-updates a,
.content-wrap a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.related-updates {
  margin: 1.6rem 0 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #5a151c;
  border-radius: 8px;
  background: #26060a;
}
.related-updates h2 {
  margin: 0 0 .55rem;
  color: var(--gold);
  font-size: 1.05rem;
}
.related-updates ul {
  margin: 0;
  padding-left: 1.1rem;
}
.related-updates li {
  margin: .28rem 0;
}
.portal-tile--provider {
  border: 0;
  background: transparent;
  content-visibility: auto;
  contain-intrinsic-size: 120px 60px;
}
.portal-tile a { color: inherit; }
.portal-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #33090e;
}
.portal-tile--provider .portal-tile__media {
  aspect-ratio: 2 / 1;
}
.portal-tile__media > img:first-child {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.portal-tile:hover .portal-tile__media > img:first-child { transform: scale(1.04); }
.portal-tile__logo {
  position: absolute;
  left: 8px; bottom: 8px;
  width: 64px !important;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.7));
}
.portal-tile__play {
  position: absolute;
  right: 8px; bottom: 8px;
  z-index: 2;
  background: linear-gradient(180deg, #f0d060, #b8860b);
  color: #111;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  padding: .35rem .55rem;
  border: 1px solid #ffe08a;
}
.portal-tile h3 {
  margin: .45rem .5rem .15rem;
  font-size: .86rem;
  color: #fff;
  line-height: 1.25;
}
.portal-tile p {
  margin: 0 .5rem .55rem;
  color: #aaa;
  font-size: .72rem;
}

/* SEO block like reference bottom content */
.portal-seo {
  background: #200507;
  border-top: 1px solid #4d1119;
  padding: 1.5rem 0 2rem;
}
.portal-seo__inner {
  width: min(100% - 1rem, 820px);
  margin: 0 auto;
}
.portal-seo h1,
.portal-seo h2 {
  color: var(--gold-2);
  font-size: 1.15rem;
  margin: 1.1rem 0 .45rem;
}
.portal-seo h1 { font-size: 1.35rem; }
.portal-seo p,
.portal-seo li { color: #c8c8c8; font-size: .92rem; }
.portal-faq { margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.portal-faq__item {
  border: 1px solid #5a151c;
  background: #2b070b;
  padding: .55rem .75rem;
}
.portal-faq__item summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 700;
  font-size: .95rem;
}
.portal-faq__item p { margin: .55rem 0 .2rem; }

/* Inner pages keep readable width */
.page-hero { padding: 1.4rem 0 1rem; border-bottom: 1px solid #4d1119; margin-bottom: 1rem; }
.page-title { margin: 0; color: var(--gold-2); font-size: clamp(1.4rem, 3vw, 2rem); }
.eyebrow { color: var(--gold); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.content-wrap { max-width: 760px; }
.content-wrap p, .content-wrap li { color: #ccc; }
.section { padding: 1.5rem 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.post-card { border-top: 1px solid #642028; padding-top: .8rem; }
.post-card h3 { margin: .2rem 0; font-size: 1rem; }
.post-card h3 a { color: #fff; }
.post-card p, .post-card__meta { color: #aaa; font-size: .86rem; }
.post-card__more {
  display: inline-block;
  margin-top: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold) !important;
}
.post-grid--updates {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.post-card--update {
  border: 1px solid #5a151c;
  border-top: 1px solid #5a151c;
  padding: 0;
  background: #26060a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card__media {
  display: block;
  line-height: 0;
  background: #2d080c;
  border-bottom: 1px solid #5a151c;
}
.post-card__img,
.post-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.post-card__img--placeholder {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #3a0b10, #200507);
}
.post-card__body {
  padding: .75rem .85rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
}

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.product-card { border: 1px solid #642028; background: #2d080c; }
.product-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__logo { position: absolute; left: 10px; bottom: 10px; width: 70px; }
.product-card__body { padding: .8rem; }
.product-card__cat { color: var(--gold); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: .25rem 0; font-size: 1rem; }
.product-card h3 a { color: #fff; }
.product-card p { color: #aaa; font-size: .86rem; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.1rem; font-weight: 800; font-size: .85rem; border: 1px solid transparent;
}
.btn--gold { background: var(--gold-bar); color: #1a1200 !important; }
.btn--ghost { border-color: var(--gold); color: var(--gold) !important; }

.single-product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.2rem; }
.product-gallery { position: relative; border: 1px solid #642028; overflow: hidden; }
.product-gallery .wm { position: absolute; right: 12px; top: 12px; width: 90px; }
.badge-demo {
  display: inline-block; border: 1px solid var(--gold-deep); color: var(--gold);
  font-size: .7rem; letter-spacing: .08em; padding: .25rem .55rem; margin-bottom: .5rem;
}
.author-box { margin-top: 1.5rem; border: 1px solid #642028; padding: 1rem; background: #2d080c; }

/* Footer */
.site-footer {
  background: #1a0305;
  border-top: 1px solid #4d1119;
  padding: 1.6rem 0 1rem;
  margin-top: 1rem;
}
.footer-grid {
  width: min(100% - 1rem, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1rem;
}
.footer-brand p, .footer-contact, .footer-col p { color: #aaa; font-size: .86rem; }
.footer-col h3 { margin: 0 0 .5rem; color: var(--gold); font-size: .9rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: #bbb; display: inline-block; padding: .2rem 0; font-size: .86rem; }
.footer-social {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: 0 0 .65rem;
}
.footer-social__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #eee !important;
  text-decoration: none !important;
  font-size: .84rem;
  line-height: 1.2;
}
.footer-social__btn svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.footer-social__btn--tg svg { background: #2aabee; color: #fff; }
.footer-social__btn--wa svg { background: #25d366; color: #fff; }
.footer-social__btn--fb svg { background: #1877f2; color: #fff; }
.footer-social__btn--lc svg { background: linear-gradient(180deg, #f0d060, #c99612); color: #1a1200; }
.footer-social__btn:hover { color: var(--gold) !important; }
.footer-social__btn:hover span { text-decoration: underline; }
.footer-bottom {
  width: min(100% - 1rem, var(--container));
  margin: 1rem auto 0;
  padding-top: .8rem;
  border-top: 1px solid #451018;
}
.footer-bottom__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  flex-wrap: wrap;
}
.demo-notice { color: var(--danger-soft); font-size: .8rem; margin: 0 0 .35rem; }
.copyright { color: #888; font-size: .8rem; margin: 0; }

/* DMCA trust badge — gold shield matching brand */
.footer-dmca {
  --dmca-border: rgba(226, 185, 58, .45);
  --dmca-bg: linear-gradient(145deg, #17140c 0%, #0c0b08 55%, #14110a 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .85rem;
  padding: .45rem .7rem .45rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--dmca-border);
  background: var(--dmca-bg);
  box-shadow: 0 0 0 1px rgba(255, 232, 154, .06) inset, 0 8px 18px rgba(0, 0, 0, .35);
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.footer-dmca:hover {
  border-color: rgba(246, 226, 122, .75);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 232, 154, .12) inset, 0 10px 22px rgba(0, 0, 0, .4);
}
.footer-dmca__shield {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(212, 160, 23, .35));
}
.footer-dmca__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.footer-dmca__kicker {
  color: #f0d060;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.footer-dmca__status {
  color: #f7f1d8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.footer-dmca--bottom {
  margin-top: 0;
  padding: .55rem .85rem .55rem .6rem;
}
.footer-dmca--bottom .footer-dmca__kicker { font-size: .66rem; }
.footer-dmca--bottom .footer-dmca__status { font-size: .78rem; }
.footer-dmca--compact {
  margin-top: .75rem;
  padding: .4rem .65rem .4rem .45rem;
}
.footer-dmca__pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

[data-reveal] { opacity: 0; transform: translateY(12px); transition: .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .portal-grid, .product-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid--providers { grid-template-columns: repeat(3, 1fr); }
  .portal-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .single-product-layout { grid-template-columns: 1fr 1fr; }
  .portal-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portal-cats::-webkit-scrollbar { display: none; }
  .portal-cats button { flex: 0 0 auto; }
}

@media (max-width: 900px) {
  .portal-logo img { width: 132px; }
  .auth-btn {
    min-width: 78px;
    padding: .4rem .6rem;
    font-size: .74rem;
  }
}

/* Mobile bottom dock — hidden on desktop by default */
.n6d-mobile-dock {
  display: none;
}

/* Mobile: logo | Contact Us | hamburger — DAFTAR/LOGIN bar under marquee */
@media (max-width: 768px) {
  .float-rail {
    display: flex !important;
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    transform: none;
    z-index: 9100;
    max-height: calc(100vh - 90px);
    pointer-events: none;
  }
  .float-rail__panel,
  .float-rail__toggle {
    pointer-events: auto;
  }
  .float-rail__panel {
    padding: .4rem .32rem;
    gap: .32rem;
  }
  .float-rail__btn {
    width: 36px;
    height: 36px;
  }
  .float-rail__btn svg {
    width: 18px;
    height: 18px;
  }
  .float-rail__toggle {
    width: 18px;
    font-size: 14px;
  }
  .float-rail__apk {
    width: 84px;
    gap: .28rem;
  }
  .float-rail__apk-label {
    font-size: .55rem;
  }
  .float-rail__apk-qr {
    width: 72px;
    height: 72px;
  }
  .float-rail__apk-hint {
    font-size: .52rem;
  }

  .portal-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: .4rem;
    row-gap: 0;
    min-height: 56px;
    padding: .4rem 0;
    width: min(100% - .7rem, var(--container));
  }

  .portal-logo {
    grid-column: 1;
    justify-self: start;
  }
  .portal-logo img {
    width: clamp(96px, 28vw, 128px);
  }

  .portal-auth {
    grid-column: 2;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    align-items: center;
  }
  .portal-auth__row--desktop {
    display: none !important;
  }
  .portal-contact-link {
    display: inline-block !important;
    font-size: .62rem;
    text-align: right;
  }
  .auth-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: .42rem .55rem;
    font-size: .68rem;
  }

  .portal-auth-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    width: min(100% - .7rem, var(--container));
    margin: 0 auto;
    padding: .55rem 0 .65rem;
  }
  .portal-auth-mobile .auth-btn {
    width: 100%;
    min-height: 42px;
    font-size: .85rem;
    letter-spacing: .06em;
  }

  /* Sticky gold bottom dock */
  .n6d-mobile-dock {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    min-height: 58px;
    padding: .28rem .2rem calc(.28rem + env(safe-area-inset-bottom, 0px));
    background: var(--gold-bar);
    border-top: 1px solid #fff3;
    box-shadow: 0 -6px 20px rgba(0,0,0,.35);
  }
  .n6d-mobile-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    color: #1a1200 !important;
    text-decoration: none !important;
    font-weight: 800;
    min-width: 0;
    padding: .15rem .1rem;
  }
  .n6d-mobile-dock__item--home {
    color: #000 !important;
  }
  .n6d-mobile-dock__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
  }
  .n6d-mobile-dock__icon svg {
    display: block;
  }
  .n6d-mobile-dock__label {
    font-size: .58rem;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
  }
  body.portal-skin {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .nav-toggle {
    grid-column: 3;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
  }
  .nav-toggle span:not(.sr-only) {
    width: 16px;
    height: 2px;
    background: var(--gold);
  }

  .portal-nav {
    display: none;
    width: 100%;
  }
  .portal-nav.is-open { display: block !important; }
  .portal-menu {
    flex-direction: column;
    width: 100%;
  }
  .portal-menu a {
    background: rgba(0, 0, 0, .12);
    margin: 1px 0;
    color: #111 !important;
    text-align: left;
    padding: .8rem 1rem;
  }

  .portal-banner {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: .45rem 0 0;
    border-left: 0;
    border-right: 0;
  }
  .portal-banner--hero {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    padding-bottom: 1.55rem;
  }
  .portal-banner--hero .portal-banner__slide {
    height: auto;
  }
  .portal-banner--hero .portal-banner__slide.is-active {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
  }
  .portal-banner--hero picture,
  .portal-banner--hero .portal-banner__art,
  .portal-banner--hero .portal-banner__slide img,
  .portal-banner--hero .portal-banner__slide img:first-child {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: unset;
    object-position: center;
  }
  .portal-banner__dots {
    bottom: 4px;
  }
  .portal-banner__caption {
    max-width: 90%;
    left: .7rem;
    bottom: .7rem;
  }
  .portal-banner__caption strong { font-size: 1rem; }
  .portal-banner__caption span { font-size: .78rem; }
  .portal-banner__logo { width: 72px !important; }

  /* Sections follow hero banner full-width frame */
  .portal-steps,
  .portal-progress,
  .portal-cats,
  .portal-grid-wrap {
    width: 100%;
    max-width: 100%;
    padding-inline: .7rem;
    box-sizing: border-box;
  }
  .portal-progress__frame {
    width: 100%;
    max-width: 100%;
  }
  .portal-progress__art {
    width: 100%;
    height: auto;
  }

  .portal-steps { grid-template-columns: repeat(2, 1fr); }
  .portal-step { font-size: .68rem; min-height: 42px; }

  .portal-grid,
  .product-grid,
  .post-grid,
  .footer-grid,
  .single-product-layout {
    grid-template-columns: 1fr;
  }
  .portal-grid--providers {
    grid-template-columns: repeat(2, 1fr);
    gap: .4rem;
  }

  .portal-tile h3 { font-size: .9rem; }
  .portal-seo__inner {
    width: 100%;
    max-width: 100%;
    padding-inline: .7rem;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  .portal-logo img { width: 88px; }
  .auth-btn {
    padding: .38rem .42rem;
    font-size: .62rem;
    letter-spacing: .02em;
  }
  .n6d-mobile-dock__label { font-size: .52rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .portal-tile__media > img:first-child { transition: none; }
}

/* Welcome popup — link alternatif art (transparent frame) */
.n6d-welcome[hidden] { display: none !important; }
.n6d-welcome {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: .75rem;
}
.n6d-welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}
.n6d-welcome__box {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: #240508;
  border: 2px solid var(--gold);
  padding: 1.35rem 1.1rem 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 1px #5a4508, 0 20px 60px rgba(0,0,0,.65);
}
.n6d-welcome__box--alt {
  width: min(100%, 720px);
  max-width: 96vw;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 0;
}
.n6d-welcome__art-link {
  display: block;
  line-height: 0;
}
.n6d-welcome__art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.n6d-welcome__x {
  position: absolute;
  top: 1.6%;
  right: 1.8%;
  z-index: 2;
  width: clamp(34px, 5.2vw, 44px);
  height: clamp(34px, 5.2vw, 44px);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.n6d-welcome__x:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.n6d-welcome__logo {
  width: 130px;
  margin: 0 auto .85rem;
}
.n6d-welcome__icon {
  width: 72px;
  height: 72px;
  margin: .75rem auto .35rem;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px #5a4508, 0 8px 24px rgba(0,0,0,.45);
}
.n6d-welcome__box p {
  margin: 0 0 .65rem;
  color: #fff;
  font-size: .92rem;
  line-height: 1.45;
}
.n6d-welcome__label {
  color: var(--gold-2) !important;
  font-weight: 800;
  letter-spacing: .06em;
  margin-top: .35rem !important;
}
.n6d-welcome__link {
  display: inline-block;
  color: var(--gold-2) !important;
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: .7rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.n6d-welcome__cta {
  display: block;
  margin: .85rem auto .55rem;
  color: var(--gold) !important;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1.35;
}
.n6d-welcome__cta--apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: .35rem auto .85rem;
  padding: .65rem 1.1rem;
  min-width: 210px;
  border: 1px solid var(--gold-deep);
  background: var(--gold-bar);
  color: #1a1200 !important;
  font-size: .88rem;
  letter-spacing: .04em;
  text-decoration: none !important;
}
.n6d-welcome__cta--apk:hover {
  filter: brightness(1.06);
  color: #000 !important;
}
.n6d-welcome__qr-link {
  display: inline-block;
  margin: .35rem auto .55rem;
  line-height: 0;
}
.n6d-welcome__qr {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
}
.n6d-welcome__box--apk .n6d-welcome__label {
  font-size: 1.05rem;
  margin-bottom: .45rem !important;
}
.n6d-welcome__note {
  color: #eee !important;
  font-size: .84rem !important;
  margin-bottom: 1rem !important;
}
.n6d-welcome__ok {
  min-width: 88px;
  padding: .45rem 1.2rem;
  border: 0;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
}
.n6d-welcome__ok:hover { background: var(--gold-2); }

@media (max-width: 480px) {
  .n6d-welcome { padding: .45rem; }
  .n6d-welcome__box--alt { width: min(100%, 420px); }
  .n6d-welcome__x {
    top: 1.2%;
    right: 1.4%;
    width: 36px;
    height: 36px;
  }
}

/* Login-required notice */
.qq-login-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.qq-login-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.qq-login-notice__box {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #2d080c;
  border: 1px solid var(--gold-deep);
  padding: 1.25rem 1.1rem 1rem;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.qq-login-notice__box p {
  margin: 0 0 1rem;
  color: var(--gold-2);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.45;
  letter-spacing: .02em;
}
.qq-login-notice__actions {
  display: flex;
  gap: .55rem;
  justify-content: center;
  flex-wrap: wrap;
}
.qq-login-notice__login,
.qq-login-notice__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: .55rem .9rem;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.qq-login-notice__login {
  background: var(--gold-bar);
  color: #111;
}
.qq-login-notice__ok {
  background: #3a0b10;
  color: var(--gold);
  border: 1px solid #6b2a31;
}
.qq-login-notice__ok:hover { border-color: var(--gold); }

/* Contact page actions */
.qq-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 1.1rem;
}
.qq-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: .7rem 1.05rem;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .03em;
  text-decoration: none !important;
  border: 1px solid transparent;
  color: #111 !important;
}
.qq-contact-btn--wa { background: #25d366; }
.qq-contact-btn--tg { background: #2aabee; color: #fff !important; }
.qq-contact-btn--fb { background: #1877f2; color: #fff !important; }
.qq-contact-btn--lc {
  background: var(--gold-bar);
  color: #111 !important;
  border-color: var(--gold-deep);
}
.qq-contact-btn:hover { filter: brightness(1.06); }
.qq-contact-note {
  margin: 0 0 1.25rem;
  color: #c8c8c8;
  font-size: .9rem;
  line-height: 1.5;
}

/* Category menu pages */
.page-lead {
  margin: .35rem 0 0;
  color: #bdbdbd;
  font-size: .92rem;
}
.qq-cat-grid {
  padding: .5rem 0 1.25rem;
}
.qq-cat-hero {
  margin: 0 0 1.25rem;
}
.qq-cat-hero img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gold-deep);
}
.qq-cat-article .content-wrap--wide {
  max-width: 860px;
}
.qq-cat-article h2,
.qq-cat-article h3 {
  color: var(--gold);
  margin: 1.35rem 0 .65rem;
}
.qq-cat-article h2 { font-size: 1.25rem; }
.qq-cat-article h3 { font-size: 1.05rem; }
.qq-cat-article p,
.qq-cat-article li {
  color: #c8c8c8;
  line-height: 1.65;
}
.qq-cat-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.qq-cat-cta .auth-btn {
  display: inline-flex;
}

/* Promotions — fluid 3-col grid, no crop */
.page-hero--compact {
  padding-bottom: .55rem;
  margin-bottom: .55rem;
}
.qq-promo-list {
  padding: 0 0 1.5rem;
  width: 100%;
}
.qq-promo-list .container {
  width: min(100% - 1rem, var(--container));
  max-width: 100%;
  box-sizing: border-box;
}
.qq-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  width: 100%;
}
.qq-promo-card {
  margin: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  min-width: 0;
}
.qq-promo-card__link {
  display: block;
  position: relative;
  text-decoration: none !important;
  line-height: 0;
  overflow: hidden;
  background: #33090e;
  transition: opacity .2s ease;
}
.qq-promo-card__link:hover {
  opacity: .92;
}
.qq-promo-card__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}
@media (max-width: 980px) {
  .qq-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }
}
@media (max-width: 768px) {
  .qq-promo-list .container {
    width: min(100% - .7rem, var(--container));
  }
  .qq-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
}
@media (max-width: 480px) {
  .qq-promo-grid {
    grid-template-columns: 1fr;
    gap: .45rem;
  }
}
