/* Beranda K3 Arena: 3 slide layar penuh, digeser ke samping. */

html, body.slides { height: 100%; overflow: hidden; }
body.slides { background: var(--navy-950); }

/* Scrollbar tipis & transparan (berlaku untuk isi slide yang lebih tinggi dari layar) */
.slide { scrollbar-width: thin; scrollbar-color: rgba(127, 140, 156, .35) transparent; }
.slide::-webkit-scrollbar { width: 6px; }
.slide::-webkit-scrollbar-track { background: transparent; }
.slide::-webkit-scrollbar-thumb { background: rgba(127, 140, 156, .35); border-radius: 3px; }

/* ---------- Bilah atas ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background .3s ease, box-shadow .3s ease; }
.top { background: linear-gradient(180deg, rgba(7, 11, 18, .8), rgba(7, 11, 18, 0)); }
.top .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; }
.k3-brand { display: inline-flex; align-items: center; gap: 10px; color: #F4F7FA; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: .02em; }
.k3-brand img { width: 36px; height: 36px; }
.top-tabs { display: none; gap: 4px; }
.top-tabs button { border: 0; background: transparent; color: #C8D3DE; font: inherit; font-size: var(--text-sm); font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; position: relative; }
.top-tabs button:hover { color: #fff; }
.top-tabs button[aria-current="true"] { color: #fff; }
.top-tabs button[aria-current="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--orange-400); }
@media (min-width: 900px) { .top-tabs { display: flex; } }

/* ---------- Jalur slide ---------- */
.track { position: fixed; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }
.slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow-y: auto; overflow-x: hidden;
  padding: calc(76px + env(safe-area-inset-top, 0px)) 0 calc(72px + env(safe-area-inset-bottom, 0px)); background: var(--bg); color: var(--ink); }
.slide > .container { min-height: 100%; display: grid; align-content: center; gap: var(--space-5); }
.slide-dark { background: var(--navy-950) url("../assets/brand/tekstur-lapangan-512.webp") center / 420px; color: #F4F7FA; }
.slide-head { display: grid; gap: var(--space-2); max-width: 680px; }
.slide-head h2 { font-size: clamp(1.9rem, 4.8vw, 3rem); line-height: 1.02; }
.slide-head p { color: var(--ink-muted); font-size: var(--text-md); }
.slide-dark .slide-head p { color: #B4C1CE; }
.go-btn { justify-self: start; gap: 10px; }

/* ---------- Slide 1 ---------- */
.s-hero { background: var(--navy-950); color: #F4F7FA; isolation: isolate; }
.s-hero video, .s-hero .poster, .s-video video, .s-video .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.s-video { position: relative; isolation: isolate; background: var(--navy-950); color: #F4F7FA; }
.s-video .slide-head p { color: #C8D3DE; }
.s-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 18, .78) 0%, rgba(7, 11, 18, .7) 50%, rgba(7, 11, 18, .9) 100%); }
@media (min-width: 900px) { .s-video::after { background: linear-gradient(90deg, rgba(7, 11, 18, .9) 0%, rgba(7, 11, 18, .72) 55%, rgba(7, 11, 18, .55) 100%); } }

.s-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 18, .6) 0%, rgba(7, 11, 18, .3) 35%, rgba(7, 11, 18, .92) 100%); }
@media (min-width: 900px) { .s-hero::after { background: linear-gradient(90deg, rgba(7, 11, 18, .92) 0%, rgba(7, 11, 18, .55) 52%, rgba(7, 11, 18, .15) 100%); } }
.s-hero .container { align-content: end; }
@media (min-width: 900px) { .s-hero .container { align-content: center; } }
.hero-box { display: grid; gap: var(--space-4); max-width: 640px; }
.sponsor { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 7px 14px; border-radius: var(--radius-pill); background: rgba(7, 11, 18, .5); border: 1px solid rgba(244, 247, 250, .18); backdrop-filter: blur(6px); font-size: var(--text-xs); color: #C8D3DE; }
.sponsor img { height: 24px; width: auto; }
.sponsor b { color: var(--orange-400); font-family: var(--font-display); font-size: var(--text-md); }
.hero-box h1 { font-size: clamp(2.7rem, 9.5vw, 5rem); line-height: .92; text-transform: uppercase; letter-spacing: .02em; }
.hero-box h1 span { display: block; color: var(--orange-400); }
.hero-box > p { font-size: var(--text-lg); color: #D5DEE7; max-width: 46ch; }
.choose { display: grid; gap: var(--space-3); }
@media (min-width: 560px) { .choose { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: grid; gap: 4px; text-align: left; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4); border-radius: var(--radius-lg); border: 1px solid rgba(244, 247, 250, .22);
  background: rgba(7, 11, 18, .55); backdrop-filter: blur(10px); color: #F4F7FA; font: inherit; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.choice:hover, .choice:focus-visible { transform: translateY(-2px); border-color: var(--orange-400); background: rgba(240, 103, 25, .16); outline: none; }
.choice-alt:hover, .choice-alt:focus-visible { border-color: var(--cyan-400, #19D3EC); background: rgba(25, 211, 236, .12); }
.choice-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-300, #FFB37F); }
.choice-alt .choice-tag { color: #7FE6F4; }
.choice b { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.05; }
.choice b small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: #B4C1CE; }
.choice-sub { font-size: var(--text-sm); color: #B4C1CE; }
.choice i { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); font-style: normal; font-size: var(--text-xl); color: #F4F7FA; opacity: .7; }

/* ---------- Slide 2 ---------- */
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); } }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); max-width: 520px; }
.price-card { display: grid; gap: 2px; padding: var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(160deg, #FFF4EA, #FFE3CC); color: #3A1A05; }
.price-card span { font-size: var(--text-sm); font-weight: 600; }
.price-card b { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.05; }
.price-card small { font-size: var(--text-xs); opacity: .75; }
.price-night { background: rgba(11, 22, 38, .75); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); color: #F4F7FA; }
:root[data-theme="dark"] .price-card:not(.price-night) { background: linear-gradient(160deg, #3A2414, #2A180C); color: #FFE3CC; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); counter-reset: f; }
.flow li { counter-increment: f; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: var(--text-sm); color: #F4F7FA; }
.flow li::before { content: counter(f); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--primary); color: var(--on-primary); }
.booked { padding: var(--space-5); border-radius: var(--radius-xl); background: rgba(11, 22, 38, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); display: grid; gap: var(--space-3); color: #F4F7FA; }
.booked .bk-day b, .booked .bk { color: #F4F7FA; } .booked .bk-day, .booked .booked-head span, .booked .booked-note { color: #9FB0C1; }
.booked .bk { background: rgba(255, 255, 255, .08); } .booked-list li { border-color: rgba(255, 255, 255, .1) !important; }
.booked .bk-none { color: #3FD18C; } .booked .bk-day.today, .booked .bk-day.today b { color: var(--orange-400); }
.booked-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.booked-head h3 { font-size: var(--text-lg); }
.booked-head span { font-size: var(--text-xs); color: var(--ink-muted); }
.booked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.booked-list li { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.booked-list li:last-child { border-bottom: 0; }
.bk-day { display: grid; line-height: 1.1; font-size: 11px; color: var(--ink-muted); }
.bk-day b { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); }
.bk-day.today b, .bk-day.today { color: var(--primary-text); }
.bk-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.bk { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; background: var(--surface-2); color: var(--ink); }
.bk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.bk-terisi { --dot: var(--danger); }
.bk-menunggu { --dot: var(--warning); }
.bk-ditutup { --dot: var(--ink-muted); }
.bk-none { font-size: var(--text-sm); color: var(--success); font-weight: 600; }
.booked-note { font-size: var(--text-xs); color: var(--ink-muted); }

/* ---------- Slide 3 ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(4px); }
.benefits .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; color: var(--navy-950); background: linear-gradient(135deg, var(--orange-400), #FFB37F); }
.benefits li:nth-child(even) .ico { background: linear-gradient(135deg, #19D3EC, #7FE6F4); }
.benefits b { display: block; color: #fff; }
.benefits div span { font-size: var(--text-sm); color: #B4C1CE; }
@media (max-width: 599px) {
  .benefits { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .benefits li { grid-template-columns: 1fr; gap: 6px; padding: var(--space-3); }
  .benefits .ico { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
  .benefits b { font-size: var(--text-sm); line-height: 1.2; }
  .benefits div span { font-size: 11px; line-height: 1.35; display: block; }
  .program { padding: var(--space-3); gap: var(--space-3); }
  .program .go-btn { width: 100%; justify-content: center; }
  .s-video .slide-head h2 { font-size: 1.7rem; }
  .s-video .slide-head p { font-size: var(--text-sm); }
}
.program { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-xl); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.formats { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.format { display: grid; gap: 2px; padding-right: var(--space-4); }
.format + .format { padding-left: var(--space-4); border-left: 1px solid rgba(255, 255, 255, .16); }
.format b { color: #fff; }
.format span { font-size: var(--text-xs); color: #B4C1CE; }
.format em { font-style: normal; font-size: var(--text-sm); font-weight: 700; color: #FFB37F; }
.format em:empty { display: none; }
.mini-foot { font-size: var(--text-xs); color: #8B9BAE; }
.mini-foot a { color: #C8D3DE; }

/* ---------- Navigasi slide: sederhana & transparan ---------- */
.dots { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: var(--space-2); color: #F4F7FA; }
.dots .arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .55; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: opacity .2s ease; }
.dots .arrow:hover { opacity: 1; }
.dots .arrow:disabled { opacity: .15; cursor: default; }
.dots ol { list-style: none; margin: 0; padding: 0 6px; display: flex; gap: 8px; }
.dots ol button { border: 0; padding: 0; height: 6px; width: 6px; border-radius: 3px; background: currentColor; opacity: .35; cursor: pointer; transition: width .25s ease, opacity .25s ease; }
.dots ol button[aria-current="true"] { width: 26px; opacity: 1; background: var(--orange-400); }
.dots button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 899px) { .dots .arrow { display: none; } }

/* Kanan atas: Masuk · Daftar · Reservasi */
.top-right { display: flex; align-items: center; gap: var(--space-2); }
.top-link { color: #F4F7FA; text-decoration: none; font-weight: 600; font-size: var(--text-sm); padding: 8px 10px; border-radius: var(--radius-sm); }
.top-link:hover { background: rgba(255, 255, 255, .08); }
.top-daftar { --btn-bg: transparent; --btn-ink: #F4F7FA; --btn-line: rgba(244, 247, 250, .45); }
.top-akun { display: inline-flex; align-items: center; gap: 8px; color: #F4F7FA; text-decoration: none; font-weight: 600; font-size: var(--text-sm); padding: 4px 12px 4px 4px; border-radius: var(--radius-pill); border: 1px solid rgba(244, 247, 250, .3); }
.top-akun i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; background: var(--orange-400); color: var(--navy-950); }
@media (max-width: 599px) { .top-cta { display: none; } .k3-brand { font-size: var(--text-lg); } .k3-brand img { width: 32px; height: 32px; } }

/* Sapaan setelah masuk */
.hello { font-size: var(--text-md) !important; color: #F4F7FA !important; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.hello::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3FD18C; box-shadow: 0 0 0 4px rgba(63, 209, 140, .2); }
button.top-link { border: 0; background: transparent; font: inherit; cursor: pointer; }
button.top-akun { background: transparent; font: inherit; cursor: pointer; }

/* Batch 1 */
.batch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); justify-self: start; padding: 10px 16px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(240, 103, 25, .22), rgba(25, 211, 236, .14)); border: 1px solid rgba(255, 179, 127, .4); }
.batch-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #FFB37F; }
.batch b { font-family: var(--font-display); font-size: var(--text-xl); color: #fff; letter-spacing: .02em; }
.batch-count { font-size: var(--text-sm); color: #C8D3DE; padding-left: var(--space-3); border-left: 1px solid rgba(255, 255, 255, .2); }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

/* Jendela masuk/daftar & menu akun (memakai .dialog bawaan) */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.oauth { display: grid; gap: var(--space-2); }
.oauth a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg-elevated, #fff); color: var(--ink); font-weight: 600; text-decoration: none; }
.oauth a:hover { border-color: var(--ink-muted); }
.oauth svg { width: 20px; height: 20px; }
.atau { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); font-size: var(--text-xs); color: var(--ink-muted); }
.atau::before, .atau::after { content: ""; height: 1px; background: var(--line); }
.menu-list { display: grid; gap: 4px; }
.menu-list a, .menu-list button { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button:hover { border-color: var(--primary); }
.menu-list small { font-weight: 500; color: var(--ink-muted); }

/* Powered by PLAYTIKA: huruf P = logo PLAYTIKA */
.powered { display: inline-flex; align-items: flex-end; gap: 0; justify-self: start; color: #F4F7FA; line-height: 1; padding: 8px 14px 8px 10px; background: rgba(7, 11, 18, .55); border-left: 3px solid var(--orange-400); backdrop-filter: blur(6px); }
.pw-p { display: block; width: 30px; height: 30px; overflow: hidden; margin-right: 1px; }
.pw-p img { width: 46px; height: auto; max-width: none; margin: -2px 0 0 -6px; display: block; }
.pw-t { font-size: var(--text-md); font-weight: 600; letter-spacing: .02em; padding-bottom: 3px; }
.powered b { font-family: var(--font-display); font-size: var(--text-md); letter-spacing: .12em; color: var(--orange-400); margin-left: 8px; padding-bottom: 3px; }

/* Judul K3 ARENA bergerak */
.judul-gerak { display: grid; gap: 4px; text-transform: uppercase; }
.jg-baris { display: flex; font-size: clamp(3.2rem, 13vw, 6.6rem); line-height: .86; letter-spacing: .01em; }
.jg-baris > span { display: inline-block; animation: jgMasuk .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms);
  background: linear-gradient(100deg, #F4F7FA 0%, #F4F7FA 42%, #FFB37F 50%, #F4F7FA 58%, #F4F7FA 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.jg-baris > span { animation: jgMasuk .7s cubic-bezier(.2, .8, .2, 1) both, jgKilau 5s ease-in-out 1.6s infinite; animation-delay: calc(var(--i) * 70ms + 150ms), calc(var(--i) * 60ms + 1.6s); }
.jg-spasi { width: .28em; }
.jg-sub { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.1rem, 3.6vw, 1.8rem); letter-spacing: .32em; color: var(--orange-400); animation: jgGaris .9s ease .8s both; }
.jg-sub::before { content: ""; width: 42px; height: 3px; background: var(--orange-400); transform-origin: left; animation: jgLebar .6s ease 1s both; }
@keyframes jgMasuk { from { opacity: 0; transform: translateY(60%) skewY(8deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes jgKilau { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes jgGaris { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes jgLebar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .jg-baris > span, .jg-sub, .jg-sub::before { animation: none !important; } }
.hero-lead { font-size: var(--text-lg) !important; color: #E6EEF5 !important; max-width: 40ch !important; border-left: 2px solid rgba(244, 247, 250, .3); padding-left: var(--space-3); }

/* Gaya tegas & sporty: sudut tajam, aksen miring */
.choice { border-radius: 0; border-left: 4px solid var(--orange-400); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.choice-alt { border-left-color: var(--cyan-400, #19D3EC); }
.choice-tag, .batch-tag { letter-spacing: .18em; }
.price-card, .booked, .benefits li, .program, .batch, .flow li, .top-akun, .dots .arrow { border-radius: 0; }
.price-card { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.flow li::before, .benefits .ico, .top-akun i { border-radius: 0; }
.flow li { border-left: 3px solid var(--orange-400); }
.benefits li { border-top: 2px solid rgba(255, 179, 127, .5); }
.benefits li:nth-child(even) { border-top-color: rgba(25, 211, 236, .5); }
.go-btn { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.dots ol button { border-radius: 0; height: 4px; }
.dots ol button[aria-current="true"] { width: 30px; }
.top-tabs button[aria-current="true"]::after { height: 3px; border-radius: 0; }

/* Perbaikan: potongan logo P PLAYTIKA (tanpa tulisan) & susunan judul horizontal */
.pw-p { width: 48px; height: 30px; margin-right: 0; }
.pw-p img { width: 64px; height: auto; margin: 0 0 0 -10px; }
.hero-box .judul-gerak span { color: inherit; }
.hero-box .judul-gerak .jg-baris { display: flex; flex-wrap: nowrap; }
.hero-box .judul-gerak .jg-baris > span { display: inline-block; color: transparent; }
.hero-box .judul-gerak .jg-sub { display: inline-flex; color: var(--orange-400); }
