/* ==========================================================================
   Naelsean - situs publik & area member
   Ide visual: cahaya terbelah dua (merah di kiri, violet di kanan) seperti hoodie Mas Nael.
   Font: Chakra Petch (judul) + Inter (isi) - sama dengan aplikasi.
   ========================================================================== */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("../fonts/ChakraPetch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("../fonts/ChakraPetch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("../fonts/ChakraPetch-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/Inter-700.woff2") format("woff2"); }

:root {
  --ink: #07050b;
  --ink-2: #0d0914;
  --panel: #130e1d;
  --panel-2: #1a1328;
  --line: #2b2140;
  --line-soft: #1f1730;
  --text: #f3f0fa;
  --muted: #a79fba;
  --faint: #7a7190;
  --violet: #8b5cf6;
  --violet-hi: #b9a2ff;
  --violet-deep: #6d3fe0;
  --crimson: #ff3355;
  --crimson-deep: #e11d48;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff5d73;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----------------------------------------------------------------- tombol */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font: 600 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .2s ease;
}
.btn:hover { color: var(--btn-fg); border-color: var(--violet-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-fg: #fff; --btn-bd: transparent;
  background-image: linear-gradient(100deg, var(--crimson-deep) 0%, #b02a8f 48%, var(--violet-deep) 100%);
  box-shadow: 0 8px 28px -10px rgba(225, 29, 72, .65), 0 8px 28px -12px rgba(124, 58, 237, .65);
}
.btn-primary:hover { border-color: transparent; box-shadow: 0 12px 34px -10px rgba(225, 29, 72, .8), 0 12px 34px -10px rgba(124, 58, 237, .8); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, .03); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ----------------------------------------------------------------- navigasi */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 1.2rem/1 var(--font-display); letter-spacing: .02em; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 0 10px rgba(139, 92, 246, .55)); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: #fff; border-bottom-color: var(--violet); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font: 600 .8rem var(--font-display); color: var(--violet-hi); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: auto; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav .wrap { flex-wrap: wrap; gap: 0 16px; }
  .nav-links, .nav-cta { display: none; width: 100%; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 6px 0 10px; }
  .nav.is-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav.is-open .nav-cta { display: flex; padding: 8px 0 18px; }
  .nav.is-open .nav-cta .btn { flex: 1; }
}

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: clip; isolation: isolate; border-bottom: 1px solid var(--line-soft); }
.hero::before { /* cahaya merah kiri */
  content: ""; position: absolute; z-index: -1; left: -18%; bottom: -30%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 51, 85, .30), rgba(255, 51, 85, 0) 70%);
}
.hero::after { /* cahaya violet kanan */
  content: ""; position: absolute; z-index: -1; right: -16%; top: -8%; width: 66%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .34), rgba(139, 92, 246, 0) 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: 24px; min-height: min(86vh, 820px); padding-top: 56px; }
.hero-copy { align-self: center; padding-bottom: 64px; max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.hero-lead { margin-top: 22px; font-size: 1.15rem; color: #cfc8e0; max-width: 34em; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { margin-top: 44px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.hero-facts li { padding: 14px 26px 0 0; margin-right: 26px; font-size: .86rem; color: var(--muted); border-right: 1px solid var(--line); }
.hero-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts b { display: block; color: var(--text); font: 600 .95rem var(--font-display); letter-spacing: .01em; }
.hero-figure { position: relative; align-self: end; justify-self: center; width: min(100%, 470px); }
.hero-figure img {
  width: 100%; height: auto; aspect-ratio: 1086 / 1448; object-fit: cover; object-position: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.hero-figure figcaption { position: absolute; left: 2%; top: 22%; font: 600 .8rem var(--font-display); letter-spacing: .06em; color: #fff; text-shadow: 0 2px 12px #000; }
.hero-figure figcaption small { display: block; font: 500 .75rem var(--font-body); color: #d8d0ea; letter-spacing: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; } .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-figure { animation: glow-in 1.1s ease .1s both; }
@media (prefers-reduced-motion: reduce) { .hero-copy > *, .hero-figure { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-figure { width: min(78%, 380px); margin-top: 8px; }
  .hero-facts li { padding-right: 18px; margin-right: 18px; }
}

/* ----------------------------------------------------------------- seksi umum */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > .section-head { position: sticky; top: 100px; margin-bottom: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split > .section-head { position: static; margin-bottom: 8px; } }

/* daftar berpembatas (bukan kartu) */
.ruled > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.ruled > li:last-child { border-bottom: 1px solid var(--line); }
.ruled .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(255, 51, 85, .16), rgba(139, 92, 246, .22)); border: 1px solid var(--line); color: var(--violet-hi); }
.ruled .ico svg { width: 22px; height: 22px; }
.ruled h3 { font-size: 1.2rem; font-weight: 600; }
.ruled p { color: var(--muted); max-width: 46em; }
.ruled-plain > li { grid-template-columns: minmax(0, 1fr); }

/* langkah (urutan nyata) */
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 34px 66px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--font-display); color: #fff; background: linear-gradient(140deg, var(--crimson-deep), var(--violet-deep)); }
.steps li::after { content: ""; position: absolute; left: 21.5px; top: 50px; bottom: 6px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; padding-top: 8px; }
.steps p { color: var(--muted); max-width: 44em; }

/* tiga jalur lisensi */
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.tracks > div { padding: 32px 28px 36px; border-right: 1px solid var(--line); }
.tracks > div:last-child { border-right: 0; }
.tracks h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tracks p { color: var(--muted); }
.tracks .vvip { background: linear-gradient(180deg, rgba(139, 92, 246, .16), rgba(139, 92, 246, 0) 70%); }
@media (max-width: 880px) { .tracks { grid-template-columns: 1fr; } .tracks > div { border-right: 0; border-bottom: 1px solid var(--line); } .tracks > div:last-child { border-bottom: 0; } }
.cta-line { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-line p { color: var(--muted); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 600 1.1rem var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--violet-hi); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 46em; }

/* penutup & footer */
.final { text-align: center; padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: clip; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 25% 100%, rgba(255, 51, 85, .22), transparent 70%), radial-gradient(60% 90% at 75% 100%, rgba(139, 92, 246, .26), transparent 70%); }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; max-width: 16em; margin-inline: auto; text-wrap: balance; }
.final p { margin: 18px auto 0; color: var(--muted); max-width: 34em; }
.final .hero-actions { justify-content: center; }
.footer { border-top: 1px solid var(--line-soft); padding: 44px 0 56px; background: var(--ink-2); }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.footer .brand img { width: 34px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: flex-end; align-content: start; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer nav a:hover { color: #fff; }
.disclaimer { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: .82rem; max-width: 70em; }
@media (max-width: 880px) { .footer .wrap { grid-template-columns: 1fr; } .footer nav { justify-content: flex-start; } }

/* ----------------------------------------------------------------- form, login, akun */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; color: #ddd7ec; }
.field .hint { font-size: .8rem; color: var(--faint); }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px;
  background: var(--ink-2); color: var(--text); border: 1px solid var(--line);
  font: 400 1rem var(--font-body); transition: border-color .15s, box-shadow .15s;
}
textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; }
.input:hover, .select:hover { border-color: #3d2f5a; }
.input:focus, .select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .28); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.alert { padding: 13px 16px; border-radius: 10px; font-size: .92rem; margin-bottom: 18px; border: 1px solid; }
.alert-error { color: #ffc9d1; background: rgba(255, 93, 115, .1); border-color: rgba(255, 93, 115, .4); }
.alert-ok { color: #bff3da; background: rgba(61, 220, 151, .09); border-color: rgba(61, 220, 151, .35); }
.alert-info { color: #d9ccff; background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .4); }

.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: clip; isolation: isolate; display: grid; align-content: end; padding: 48px clamp(28px, 5vw, 72px); border-right: 1px solid var(--line-soft); min-height: 420px; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 70% at 0% 100%, rgba(255, 51, 85, .32), transparent 70%), radial-gradient(70% 70% at 100% 0%, rgba(139, 92, 246, .38), transparent 70%); }
.auth-side img.fig { position: absolute; z-index: -1; right: -4%; bottom: 0; width: min(74%, 380px); opacity: .92; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.auth-side h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 12em; text-wrap: balance; }
.auth-side p { margin-top: 12px; color: #cfc8e0; max-width: 24em; }
.auth-main { display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: min(100%, 420px); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 26px; background: var(--ink-2); }
.tabs a { text-align: center; padding: 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.tabs a[aria-current="page"] { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--faint); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#g_id_signin { display: flex; justify-content: center; min-height: 44px; }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } .auth-side { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line-soft); } .auth-side img.fig { width: 46%; } }

/* area akun */
.page { padding: 44px 0 96px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.page-head p { color: var(--muted); }
.page-head .avatar { width: 56px; height: 56px; font-size: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel + .panel { margin-top: 28px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.panel-accent { background: linear-gradient(160deg, rgba(255, 51, 85, .10), rgba(139, 92, 246, .16)); }
.stack { display: grid; gap: 28px; }
.stack > .panel + .panel { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 0 -26px; padding: 0 26px; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-weight: 600; color: var(--faint); font-size: .8rem; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: .01em; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.badge-ok   { color: #8ff0c4; background: rgba(61, 220, 151, .1);  border-color: rgba(61, 220, 151, .4); }
.badge-warn { color: #ffd592; background: rgba(255, 181, 71, .1);  border-color: rgba(255, 181, 71, .4); }
.badge-bad  { color: #ff9eab; background: rgba(255, 93, 115, .1);  border-color: rgba(255, 93, 115, .4); }
.badge-mute { color: var(--muted); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.badge-vvip { color: #fff; background: linear-gradient(100deg, var(--crimson-deep), var(--violet-deep)); border-color: transparent; }

.empty { padding: 28px 8px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font: 600 1.05rem var(--font-display); margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .92rem; margin: 18px 0 22px; }
.kv dt { color: var(--faint); } .kv dd { margin: 0; word-break: break-all; }
.note { color: var(--faint); font-size: .84rem; margin-top: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }
