/* ==========================================================================
   IDSpeaker v2 — Agenda Event: daftar (/events), detail, konfirmasi daftar, berhasil, dan popup event unggulan.
   Komponen halaman detail (cv-block, cv-two, cv-buy, cv-stats, cv-flow, ...) datang dari v2-cert.css;
   paginasi, isi artikel (.pf-prose), hitungan hasil, dan keadaan kosong dari v2-pages.css.
   ========================================================================== */
[x-cloak] { display: none !important; }

/* ---------- Header ---------- */
.ih--ev { padding-bottom: 126px; }
.ih--ev .ih__grid { grid-template-columns: minmax(0, 880px); }
.ih--ev .ih__title { text-wrap: balance; }
.ih--ev .ih__sub { max-width: 660px; }
.ih--ev-show { padding-bottom: 100px; }
.ih--ev-show .ih__title { margin-top: 16px; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; max-width: 980px; }
.ih--ev-show .ih__sub { max-width: 760px; }
.ih--ev-show .ih__cta { margin-top: 30px; }
.ih--reg { padding-bottom: 96px; }
.ih--reg .ih__title { font-size: clamp(34px, 4.4vw, 58px); }
.ih--ev .cv-back { margin-bottom: 4px; }

/* ---------- Filter ---------- */
.ag-filters { display: grid; gap: 4px; }
.ag-scope { display: inline-flex; width: fit-content; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: #fff; border: 2.5px solid var(--ink); }
.ag-scope a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px 0 16px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.ag-scope a svg { width: 17px; height: 17px; }
.ag-scope a:hover:not(.is-on) { background: var(--warm); }
.ag-scope a.is-on { background: var(--red); color: #fff; }
.ag-chips { padding-top: 12px; }
.sp-chip { text-decoration: none; }

/* ---------- Daftar event (kartu horizontal) ---------- */
.ag-list { padding-bottom: 20px; }
.ag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.ag-card { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; align-items: stretch; padding: 14px; background: #fff; border: 2.5px solid var(--line); border-radius: var(--r-lg); animation: cardIn .65s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.ag-card:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -4px); }
.ag-card__poster { position: relative; aspect-ratio: 148 / 210; align-self: start; border-radius: 20px; overflow: hidden; background: var(--s); display: grid; place-items: center; border: 2.5px solid var(--ink); }
.ag-card__ph { display: grid; place-items: center; color: var(--c); opacity: .55; }
.ag-card__ph svg { width: 54px; height: 54px; stroke-width: 1.7; }
.ag-card__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ag-card:hover .ag-card__poster img { transform: scale(1.05); }
.ag-card__past { position: absolute; left: 8px; top: 8px; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.ag-card.is-past .ag-card__poster img { filter: grayscale(.85); opacity: .85; }
.ag-card__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 6px 8px 6px 0; }
.ag-card__cat { display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; padding: 5px 13px 5px 10px; border-radius: 999px; background: var(--s); font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-card__cat svg { flex: none; width: 15px; height: 15px; color: var(--c); }
.ag-card__title { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ag-card__meta { list-style: none; display: grid; gap: 7px; margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.ag-card__meta li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ag-card__meta svg { flex: none; width: 16px; height: 16px; color: var(--red); margin-top: 2px; }
.ag-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--red); }
.ag-card__go svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ag-card:hover .ag-card__go svg { transform: translateX(5px); }
.ag-cta { padding-top: 70px; }

/* ---------- Detail ---------- */
.ag-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding: 14px 20px; border-radius: 20px; background: #ffd0d6; border: var(--stk); font-weight: 700; font-size: 15.5px; }
.ag-alert svg { flex: none; width: 22px; height: 22px; }
.ag-about { margin-top: 14px; }
.ag-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.ag-points li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 22px; background: #fff; border: 2.5px solid var(--line); border-radius: 24px; transition: border-color .2s, box-shadow .3s var(--ease); }
.ag-points li:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.ag-points__no { font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--c, var(--red)); opacity: .9; }
.ag-points__txt { display: grid; gap: 4px; min-width: 0; }
.ag-points__txt strong { font-size: 18px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.ag-points__txt em { font-style: normal; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.ag-time { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; padding: 3px 12px 3px 9px; border-radius: 999px; background: var(--sun); font-weight: 800; font-size: 13px; }
.ag-time svg { width: 14px; height: 14px; }
.ag-two-single { grid-template-columns: 1fr; }

.ag-speakers { display: grid; gap: 16px; margin-top: 18px; }
.ag-speaker { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 24px; background: #fff; border: 2.5px solid var(--line); border-radius: 26px; transition: border-color .2s, box-shadow .3s var(--ease); }
.ag-speaker:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.ag-speaker__pic { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--s); border: 3px solid var(--ink); overflow: hidden; }
.ag-speaker__pic b { font-size: 32px; font-weight: 800; }
.ag-speaker__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-speaker__body { display: grid; gap: 6px; min-width: 0; }
.ag-speaker__body h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ag-speaker__meta { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.ag-speaker__meta b { color: var(--ink); font-weight: 800; }
.ag-speaker__bio { font-size: 15.5px; line-height: 1.6; }
.ag-speaker__creds { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.ag-speaker__link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 800; font-size: 14.5px; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ag-speaker__link svg { width: 17px; height: 17px; }
.ag-faq { display: grid; gap: 14px; margin-top: 18px; }

/* samping: poster + kartu daftar */
.ag-side { align-self: stretch; display: flex; flex-direction: column; gap: 24px; position: static; }
.ag-poster { margin: 0; padding: 12px; background: #fff; border: var(--stk); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); rotate: 1.2deg; }
.ag-poster img { display: block; width: 100%; height: auto; aspect-ratio: 148 / 210; object-fit: cover; border-radius: 18px; }
.ag-buy { position: sticky; top: 104px; }
.ag-wide { width: 100%; justify-content: center; }
.cv-buy__body .btn { width: 100%; justify-content: center; }
.ag-state { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--warm); border: 2.5px solid var(--line); font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.ag-state svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--red); }
.ag-state b { font-weight: 800; }
.ag-state--ok { background: #c9f5df; border-color: var(--ink); font-weight: 800; align-items: center; }
.ag-state--ok svg { color: #0b7a55; }

/* batang CTA menempel (hanya mobile) */
.ag-bar { display: none; }

/* ---------- Konfirmasi pendaftaran ---------- */
.ag-reg { position: relative; z-index: 3; margin-top: -58px; padding-bottom: 110px; max-width: 640px; }
.ag-reg__form { display: grid; gap: 18px; }
.ag-rc { background: #fff; border: var(--stk); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.ag-rc__hd { display: flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--paper); border-bottom: 2.5px solid var(--ink); font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.ag-rc__hd svg { width: 18px; height: 18px; color: var(--red); }
.ag-rc__bd { padding: 24px 26px 26px; display: grid; gap: 14px; }
.ag-rc__cat { margin: 0; }
.ag-rc__title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.ag-rc__info { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.ag-rc__info li { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 16px; }
.ag-rc__info small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ag-rc__ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--sun); border: 2.5px solid var(--ink); }
.ag-rc__ic svg { width: 20px; height: 20px; }
.ag-rc__hint { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ag-rc--total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 28px; background: var(--sun); }
.ag-rc--total span { font-weight: 800; font-size: 16px; }
.ag-rc--total b { font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
.ag-bank { display: grid; justify-items: start; gap: 6px; padding: 20px 22px; border-radius: 22px; border: 3px dashed rgba(26, 10, 12, .3); background: var(--paper); }
.ag-bank__no { font-size: 28px; font-weight: 800; letter-spacing: .04em; word-break: break-all; }
.ag-bank__nm { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.ag-bank .btn svg { width: 17px; height: 17px; }
.ag-upload { position: relative; display: grid; gap: 14px; padding: 18px 20px; border-radius: 22px; border: 3px dashed rgba(26, 10, 12, .3); background: #fff; transition: border-color .2s, background .2s; }
.ag-upload:hover, .ag-upload:focus-within { border-color: var(--red); background: #fff2ee; }
.ag-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.ag-upload__face { display: flex; align-items: center; gap: 16px; }
.ag-upload__face > span:last-child { display: grid; gap: 2px; min-width: 0; }
.ag-upload__face b { font-weight: 800; font-size: 16px; }
.ag-upload__face small { font-size: 13.5px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.ag-upload__ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--paper); border: 2.5px solid var(--ink); color: var(--red); }
.ag-upload__ico svg { width: 24px; height: 24px; }
.ag-upload__preview { display: none; max-width: 100%; max-height: 320px; border-radius: 16px; border: 2.5px solid var(--ink); object-fit: contain; }
.ag-reg__form > .btn { height: 58px; font-size: 17px; }
.ag-reg__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: center; }
.ag-reg__note svg { width: 16px; height: 16px; flex: none; }

/* ---------- Berhasil ---------- */
.ag-done { position: relative; z-index: 3; padding: 150px 0 110px; display: grid; justify-items: center; }
.ag-done__card { width: min(560px, 100%); text-align: center; padding: 46px 40px 40px; background: #fff; border: var(--stk); border-radius: var(--r-xl); box-shadow: 8px 8px 0 var(--ink); }
.ag-done__mark { width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); rotate: -4deg; }
.ag-done__mark svg { width: 42px; height: 42px; }
.ag-done__card h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 16px; }
.ag-done__card p { margin: 0 auto; max-width: 44ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.ag-done__card p + p { margin-top: 8px; }
.ag-done__card p strong { color: var(--ink); font-weight: 800; }
.ag-done__access { display: flex; align-items: center; gap: 12px; text-align: left; margin: 26px auto 0; padding: 14px 18px; max-width: 420px; border-radius: 20px; background: var(--paper); border: 2.5px solid var(--line); }
.ag-done__access svg { flex: none; width: 20px; height: 20px; color: var(--red); }
.ag-done__access span { font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
.ag-done__cta { display: grid; gap: 12px; max-width: 420px; margin: 28px auto 0; }
.ag-done__cta .btn { width: 100%; justify-content: center; }
.ag-done__card .ag-done__code { margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* ---------- Popup event unggulan ---------- */
body.evp-open { overflow: hidden; }
.evp { position: fixed; inset: 0; z-index: 330; background: rgba(26, 10, 12, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.evp__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.evp__card { position: relative; width: min(420px, calc((100vh - 120px) * 148 / 210), 100%); padding: 12px; background: #fff; border: var(--stk); border-radius: 34px; box-shadow: 8px 8px 0 var(--ink); animation: modalPop .45s var(--ease); }
.evp__slide { display: block; }
.evp__media { position: relative; display: block; aspect-ratio: 148 / 210; border-radius: 24px; overflow: hidden; background: var(--s); }
.evp__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c); opacity: .5; }
.evp__ph svg { width: 80px; height: 80px; stroke-width: 1.6; }
.evp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.evp__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 10, 12, 0) 38%, rgba(26, 10, 12, .88) 100%); }
.evp__badge { position: absolute; left: 14px; top: 14px; padding: 7px 15px; border-radius: 999px; background: var(--sun); border: 2.5px solid var(--ink); font-weight: 800; font-size: 13px; }
.evp__body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 22px 22px 52px; color: #fff; }
.evp__title { font-size: 25px; line-height: 1.14; font-weight: 800; letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evp__desc { font-size: 14.5px; line-height: 1.5; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evp__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; font-weight: 700; }
.evp__meta svg { width: 16px; height: 16px; }
.evp__meta em { font-style: normal; opacity: .7; }
.evp__cta { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px; padding: 9px 18px; border-radius: 999px; background: var(--red); color: #fff; border: 2.5px solid #fff; font-weight: 800; font-size: 14.5px; }
.evp__cta svg { width: 18px; height: 18px; }
.evp__x { position: absolute; right: -14px; top: -14px; z-index: 5; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: background .2s, transform .25s var(--ease); }
.evp__x:hover { background: var(--sun); transform: rotate(90deg); }
.evp__x svg { width: 18px; height: 18px; }
.evp__nav { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: background .2s, transform .2s var(--ease); }
.evp__nav:hover { background: var(--sun); }
.evp__nav:active { transform: scale(.94); }
.evp__nav svg { width: 22px; height: 22px; }
.evp__dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.evp__dots button { pointer-events: auto; width: 10px; height: 10px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); border: 0; transition: width .25s var(--ease), background .2s; }
.evp__dots button.is-on { width: 28px; border-radius: 999px; background: #fff; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .ag-grid { grid-template-columns: 1fr; }
  .ag-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .ag-poster { width: min(280px, 100%); flex: none; }
  .ag-buy { position: static; flex: 1 1 320px; }
  .ih--ev .ih__deco { display: none; }
}
@media (max-width: 900px) {
  .ag-bar { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: var(--stk); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .ag-bar.is-shown { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .ag-bar__info { display: grid; gap: 1px; min-width: 0; }
  .ag-bar__info b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
  .ag-bar__info span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ag-bar .btn { flex: none; }
  body.ag-bar-on .wa-float { bottom: 92px; }
}
@media (max-width: 760px) {
  .ag-poster { width: 100%; max-width: 300px; margin-inline: auto; }
  .ag-side { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .ih--ev { padding-bottom: 112px; }
  .ag-card { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px; }
  .ag-card__poster { border-radius: 16px; }
  .ag-card__ph svg { width: 38px; height: 38px; }
  .ag-card__title { font-size: 19px; }
  .ag-card__body { padding: 2px 4px 2px 0; gap: 10px; }
  .ag-points li { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 16px 16px; }
  .ag-points__no { font-size: 30px; }
  .ag-speaker { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px 16px; }
  .ag-speaker__pic { width: 64px; height: 64px; }
  .ag-reg { margin-top: -48px; }
  .ag-rc__bd { padding: 20px 18px 22px; }
  .ag-rc--total b { font-size: 28px; }
  .ag-bank__no { font-size: 23px; }
  .ag-done { padding: 120px 0 90px; }
  .ag-done__card { padding: 38px 22px 32px; border-radius: 34px; box-shadow: 5px 5px 0 var(--ink); }
  .evp__stage { padding: 14px; gap: 8px; }
  .evp__nav { position: absolute; bottom: 14px; width: 44px; height: 44px; }
  .evp__nav--prev { left: 14px; } .evp__nav--next { right: 14px; }
  .evp__x { right: -6px; top: -12px; }
  .evp__card { width: min(360px, calc((100vh - 170px) * 148 / 210), 100%); }
  .evp__title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .ag-card, .evp__card { animation: none !important; } .ag-card__poster img { transition: none; } }
