:root {
  --ink: #14122b;
  --panel: #1d1a3c;
  --line: #322e5e;
  --text: #ece9f7;
  --muted: #a7a2c7;
  --paper: #24204d;
  --paper-ink: #ece9f7;
  --paper-muted: #a7a2c7;
  --paper-line: #3f3a78;
  --flash: #ff3d8b;
  --stamp: #e5412d;
  --wa: #128c4b;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.75rem); }
.hl { color: var(--flash); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--flash); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.link { color: var(--flash); text-underline-offset: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--flash); color: var(--ink); padding: 0.5rem 1rem; z-index: 50; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 8px; border: 2px solid transparent;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-flash { background: var(--flash); color: var(--ink); }
.btn-flash:hover { background: #ff6ba6; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17a058; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(20, 18, 43, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 700 1.45rem var(--display); white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); border-color: var(--flash); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang a { padding: 0.3rem 0.6rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: var(--line); color: var(--text); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--text); position: relative; content: ''; }
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu-panel { position: absolute; right: 0; top: 48px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; min-width: 200px; display: grid; }
.menu-panel a { padding: 0.7rem 0.9rem; text-decoration: none; border-radius: 6px; }
.menu-panel a[aria-current] { background: var(--line); }
@media (max-width: 920px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 520px) { .header-chat { display: none; } .brand span { font-size: 1.2rem; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; }
.hero-copy h1 { max-width: 14ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; color: var(--muted); font-size: 0.95rem; }
.hero-meta span { position: relative; }
.hero-ticket { position: relative; transform: rotate(2.5deg); max-width: 400px; justify-self: center; width: 100%; }
.hero-ticket::before, .hero-ticket::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius); background: var(--paper); z-index: -1;
}
.hero-ticket::before { transform: rotate(-7deg) translate(-14px, 6px); opacity: 0.35; }
.hero-ticket::after { transform: rotate(-3.5deg) translate(-6px, 2px); opacity: 0.6; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ticket { max-width: 340px; margin-top: 0.5rem; }
}

/* ---------- tiket akun ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.ticket {
  display: flex; flex-direction: column; background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; position: relative;
  transition: transform 0.15s ease;
}
.ticket:hover { transform: translateY(-3px); }
.ticket-img { position: relative; aspect-ratio: 16 / 9; background: var(--panel); }
.ticket-img img { width: 100%; height: 100%; object-fit: cover; }
.ticket-body { position: relative; padding: 1rem 1.1rem 1.1rem; display: grid; gap: 0.6rem; border-top: 2px dashed var(--paper-line); flex: 1; align-content: start; }
.ticket-body::before, .ticket-body::after {
  content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
}
.ticket-body::before { left: -9px; }
.ticket-body::after { right: -9px; }
.ticket-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font: 700 1.15rem var(--display); }
.code { letter-spacing: 0.04em; }
.rank { background: #8d89ad; color: #14122b; padding: 0.1rem 0.55rem; border-radius: 4px; font-size: 1rem; white-space: nowrap; }
.ticket h3 { font-size: 1.3rem; line-height: 1.12; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chips li { border: 1px solid var(--paper-line); border-radius: 999px; padding: 0.05rem 0.6rem; font-size: 0.8rem; color: var(--paper-muted); }
.ticket-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.6rem; margin-top: auto; padding-top: 0.3rem; }
.ticket-price strong { font: 700 1.7rem var(--display); }
.ticket-price s { color: var(--paper-muted); font-size: 0.85rem; }
.ticket-price span { margin-left: auto; font-weight: 600; color: var(--paper-muted); }
.is-sold .ticket-img img, .is-sold .gallery-main img { filter: grayscale(1) brightness(0.7); }
.ticket.is-sold .ticket-body { opacity: 0.75; }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg);
  font: 700 2rem var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--stamp); border: 4px solid var(--stamp); border-radius: 6px; padding: 0 0.9rem;
  background: #f3eedf;
}

/* ---------- bagian umum ---------- */
.section { padding-top: clamp(3rem, 7vw, 5rem); }
.section > h2 { margin-bottom: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 2rem; display: grid; gap: 1rem; justify-items: start; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; color: var(--muted); max-width: 60ch; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split > * { min-width: 0; }
.split > div:first-child { display: grid; gap: 1rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.promos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.promo {
  display: grid; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--flash);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
}
.promo img { width: 100%; max-height: 260px; object-fit: cover; }
.promo > div { padding: 1.3rem 1.5rem; display: grid; gap: 0.3rem; }
.promo h2 { font-size: 1.6rem; }
.promo p { color: var(--muted); }
a.promo:hover { border-color: var(--flash); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; align-content: start; }
.steps li::before { content: counter(step); font: 700 3.2rem/1 var(--display); color: var(--flash); }
.steps p { color: var(--muted); }
.steps-col { grid-template-columns: 1fr; gap: 1.6rem; max-width: 62ch; }
.steps-col li { grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.steps-col li::before { grid-row: span 2; font-size: 2.6rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.facts dt { font: 700 1.3rem var(--display); }
.facts dd { margin: 0.25rem 0 0; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.quote { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 1rem; align-content: start; }
.quote img { border-radius: 6px; width: 100%; max-height: 320px; object-fit: cover; object-position: top; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { color: var(--muted); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 1rem; }
.quote figcaption span { font: 700 1rem var(--display); color: var(--flash); }

.closing { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem); background: var(--panel); border-radius: var(--radius); display: grid; gap: 1.4rem; justify-items: start; }

/* ---------- katalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.filters label, .consign label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.filters .grow { flex: 1 1 220px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  min-height: 48px; padding: 0 0.85rem; width: 100%;
}
select { padding-right: 2rem; }
input::placeholder { color: #7f7aa3; }
.result-count { display: flex; gap: 1rem; color: var(--muted); margin: 1.25rem 0; }

/* ---------- detail akun ---------- */
.detail { padding-top: 1.75rem; }
.back { display: inline-block; color: var(--muted); margin-bottom: 1.25rem; text-underline-offset: 4px; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); aspect-ratio: 16 / 9; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .stamp { font-size: 3rem; }
.thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 96px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--panel); cursor: pointer; }
.thumbs button[aria-pressed='true'] { border-color: var(--flash); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; position: sticky; top: 84px; }
.buybox h1 { font-size: 1.9rem; }
.buybox .btn-ghost { color: var(--paper-ink); border-color: var(--paper-line); }
.buybox .muted { color: var(--paper-muted); }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.75rem; border-top: 2px dashed var(--paper-line); padding-top: 1rem; }
.buy-price strong { font: 700 2.6rem/1 var(--display); }
.buy-price s { color: var(--paper-muted); }
.buy-price span { margin-left: auto; font: 700 1.4rem var(--display); color: var(--paper-muted); }
.sold-note { color: var(--stamp); font-weight: 600; }
.detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
.detail-body h2 { font-size: 1.6rem; margin: 0 0 0.9rem; }
.detail-body h2:not(:first-child) { margin-top: 1.8rem; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.specs-wide { max-width: 640px; }
.chips-lg li { border-color: var(--line); color: var(--text); font-size: 0.95rem; padding: 0.25rem 0.85rem; }
.notes { color: var(--muted); white-space: pre-line; max-width: 60ch; }
@media (max-width: 860px) {
  .detail-grid, .detail-body { grid-template-columns: 1fr; }
  .buybox { position: static; }
}

/* ---------- panduan ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.anchor-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 1rem; text-decoration: none; }
.anchor-nav a:hover { border-color: var(--flash); }
.faq { max-width: 72ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 1.05rem; }
.faq p { color: var(--muted); padding-bottom: 1.1rem; white-space: pre-line; }
section[id] { scroll-margin-top: 80px; }

/* ---------- titip jual ---------- */
.consign { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.consign h2 { font-size: 1.6rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); padding: 3rem 0 6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid > div { display: grid; gap: 0.8rem; align-content: start; }
.footer-grid h2 { font-size: 1.25rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid a { text-decoration: none; }
.footer-grid li a { color: var(--muted); }
.footer-grid li a:hover { color: var(--text); }
.legal { margin-top: 2.5rem; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.fab svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket { transition: none; }
  .ticket:hover { transform: none; }
}

/* ---------- filter tombol (tipe akun, rank) ---------- */
.chip-group { flex: 1 1 100%; border: 0; margin: 0; padding: 0; min-width: 0; }
.chip-group legend { padding: 0; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.chip-row { display: flex; gap: 0.5rem; overflow-x: auto; padding: 3px 3px 6px; margin: -3px; scrollbar-width: thin; }
.chip { position: relative; flex: none; display: block; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 0.5rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.chip input:hover + span { border-color: var(--muted); }
.chip input:checked + span { background: var(--flash); border-color: var(--flash); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--flash); outline-offset: 2px; }
.tier { position: absolute; left: 0.6rem; top: 0.6rem; background: var(--ink); color: var(--flash); font: 600 0.85rem var(--display); letter-spacing: 0.04em; padding: 0.15rem 0.6rem; border-radius: 4px; }

/* ---------- tiket gelap + warna rank ---------- */
.ticket, .buybox { border: 1px solid var(--paper-line); }
.ticket-price strong, .buy-price strong { color: var(--flash); }
.rank-iron { background: #8a8a93; }
.rank-bronze { background: #b9804a; }
.rank-silver { background: #cdd5da; }
.rank-gold { background: #ecc04a; }
.rank-platinum { background: #45bccb; }
.rank-diamond { background: #c08df5; }
.rank-ascendant { background: #37c97a; }
.rank-immortal { background: #f0527a; }
.rank-radiant { background: #fff0a3; }
