:root {
  --green: #265347;
  --green-dark: #1B3D34;
  --green-soft: #E8F0EC;
  --green-tint: #F3F7F5;
  --bg: #F6F7F4;
  --surface: #FFFFFF;
  --border: #E0E5E1;
  --text: #1A2421;
  --muted: #5F6D67;

  --st-ok: #1F6F50;
  --st-wait: #9A6314;
  --st-bad: #A93B35;
  --st-done: #55625D;

  --shadow-sm: 0 1px 2px rgba(20, 44, 36, .04), 0 4px 12px rgba(20, 44, 36, .03);
  --shadow-md: 0 4px 14px rgba(20, 44, 36, .07), 0 12px 28px rgba(20, 44, 36, .04);

  --bs-primary: var(--green);
  --bs-primary-rgb: 38, 83, 71;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bs-body-font-size: 0.95rem;
  --bs-border-color: var(--border);
  --bs-border-radius: 8px;
  --bs-link-color: var(--green);
  --bs-link-hover-color: var(--green-dark);
  --bs-link-color-rgb: 38, 83, 71;
  --bs-link-hover-color-rgb: 27, 61, 52;
}

body { background: var(--bg); color: var(--text); }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text); }
.text-secondary, .text-muted { color: var(--muted) !important; }

/* Tombol & ikon panah */
.btn { border-radius: 8px; font-weight: 500; transition: all .15s ease; }
.btn-ico { display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-dark); --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-bg: var(--green-dark); --bs-btn-active-border-color: var(--green-dark);
  box-shadow: 0 1px 2px rgba(38, 83, 71, .16); }
.btn-outline-primary { --bs-btn-color: var(--green); --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green); --bs-btn-hover-border-color: var(--green);
  --bs-btn-active-bg: var(--green); --bs-btn-active-border-color: var(--green); }
.btn-soft-primary { background: var(--green-soft); color: var(--green); border: 1px solid #D3E1DA; }
.btn-soft-primary:hover { background: var(--green); color: #fff; border-color: var(--green); }

.btn-back { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  font-size: .84rem; font-weight: 500; box-shadow: 0 1px 2px rgba(20, 44, 36, .04);
  transition: all .16s ease; margin-bottom: 12px; }
.btn-back:hover { background: var(--green-tint); border-color: #B8CBC2; color: var(--green); }
.d-flex .btn-back { margin-bottom: 0; }
.btn-back .ui-ico-back { transition: transform .16s ease; }
.btn-back:hover .ui-ico-back { transform: translateX(-3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; text-decoration: none; color: var(--green); }
.link-arrow .ui-ico-next { transition: transform .16s ease; }
.link-arrow:hover { color: var(--green-dark); }
.link-arrow:hover .ui-ico-next { transform: translateX(3px); }

/* Form */
.form-control, .form-select { border-radius: 8px; border-color: var(--border); }
.form-control:focus, .form-select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(38, 83, 71, .14);
}
.form-label { font-weight: 500; font-size: .875rem; }

/* Layout publik & Wordmark GelarKampus */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--green); text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: center; }
.gk-brand { display: inline-flex; align-items: baseline; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.24rem; line-height: 1; letter-spacing: -.025em; }
.gk-cap { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 1.26em; line-height: .9;
  display: inline-block; position: relative; padding: 0 1px; }
.gk-g { color: var(--green-dark); background: linear-gradient(160deg, #1B3D34 15%, #2E7D5B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.gk-g::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: -2px; height: 2.5px;
  border-radius: 99px; background: linear-gradient(90deg, var(--green-dark), #C5A059); }
.gk-k { color: var(--green); margin-left: 1px; background: linear-gradient(160deg, #265347 10%, #3D8B6C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.gk-k::after { content: ''; position: absolute; left: 1px; right: 2px; bottom: -2px; height: 2.5px;
  border-radius: 99px; background: linear-gradient(90deg, #C5A059, var(--green)); }
.gk-tail { font-weight: 600; color: var(--text); font-size: .96em; }
.gk-tail-accent { color: var(--green); font-weight: 700; }
.gk-brand-light { font-size: .92rem; letter-spacing: .02em; }
.gk-brand-light .gk-g, .gk-brand-light .gk-k { background: none; -webkit-background-clip: border-box; color: #F7E1A0; }
.gk-brand-light .gk-g::after, .gk-brand-light .gk-k::after { background: rgba(247, 225, 160, .65); height: 1.5px; }
.gk-brand-light .gk-tail, .gk-brand-light .gk-tail-accent { color: #FFFFFF; }
.nav-link-plain { color: var(--text); text-decoration: none; font-size: .9rem; }
.nav-link-plain:hover { color: var(--green); }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 64px;
  color: var(--muted); font-size: .85rem; }

/* Kartu dan tabel */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px;
  box-shadow: var(--shadow-sm); }
.table { --bs-table-bg: transparent; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border);
  background: var(--green-tint); padding-top: 11px; padding-bottom: 11px; }
.table tbody tr:hover { background: #FAFCFB; }
.table td { vertical-align: middle; }

/* Badge status */
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; }
.badge-ok   { background: #E6F4EE; color: var(--st-ok); }
.badge-wait { background: #FEF5E7; color: var(--st-wait); }
.badge-bad  { background: #FDECEC; color: var(--st-bad); }
.badge-done { background: #EEF1EF; color: var(--st-done); }

/* Halaman login */
.auth-wrap { max-width: 400px; margin: 64px auto; }

.auth-wrap.wide { max-width: 520px; }

/* Layout sidebar untuk Admin, Panitia, dan Peserta */
.has-sidebar { min-height: 100vh; }
.app-mobile-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px;
  display: flex; align-items: center; position: sticky; top: 0; z-index: 1020; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 256px; flex: 0 0 256px; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .app-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.app-sidebar-head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border); }
.app-sidebar-head .brand { font-size: 1.15rem; font-weight: 700; color: var(--green); text-decoration: none; }
.app-sidebar-user { display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--border); background: #FBFAF7; }
.app-user-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(47, 93, 80, .14); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.app-user-info { min-width: 0; text-align: left; }
.app-user-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user-role { font-size: .75rem; color: var(--muted); }
.app-sidebar-nav { padding: 14px 12px; flex: 1; text-align: left; }
.app-nav-group { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 4px 10px 6px; text-align: left; }
.app-nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; margin-bottom: 2px;
  border-left: 3px solid transparent; transition: background-color .15s, color .15s; text-align: left; }
.app-nav-link:hover { background: #F3F5F2; color: var(--green); }
.app-nav-link.active { background: rgba(47, 93, 80, .1); color: var(--green); font-weight: 600; border-left-color: var(--green); }
.app-nav-ico { flex: none; opacity: .82; }
.app-nav-link.active .app-nav-ico { opacity: 1; }
.app-sidebar-foot { padding: 12px; border-top: 1px solid var(--border); }
.app-nav-logout { color: var(--st-bad); }
.app-nav-logout:hover { background: rgba(180, 68, 60, .08); color: var(--st-bad); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1; }
.app-main .site-footer { margin-top: 40px; }
@media (min-width: 992px) {
  .app-main > .app-content > .container { max-width: 1160px; margin-left: 0; margin-right: auto; padding-left: 28px; padding-right: 28px; }
  .app-main .site-footer > .container { max-width: 1160px; margin-left: 0; margin-right: auto; padding-left: 28px; padding-right: 28px; }
}

/* Sub-menu halaman admin (fallback legacy) */
.subnav { display: flex; gap: 24px; padding-top: 16px; padding-bottom: 0; border-bottom: 1px solid var(--border);
  background: var(--surface); }
.subnav-wrap { background: var(--surface); border-bottom: 1px solid var(--border); }
.subnav a { padding: 10px 0; color: var(--muted); text-decoration: none; font-size: .9rem;
  border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); }
.subnav a.active { color: var(--green); border-bottom-color: var(--green); font-weight: 500; }
.subnav { border-bottom: 0; }

.pay-code-pill { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem; font-weight: 700; letter-spacing: .06em; color: var(--green);
  background: var(--green-soft); border: 1px solid #C8DDD2; padding: 5px 12px; border-radius: 6px; }

/* Ringkasan keuangan panitia */
.fin-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 767.98px) { .fin-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-item { background: #FBFAF7; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.fin-item .fin-lbl { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fin-item .fin-val { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-top: 3px; }
.fin-item .fin-sub { font-size: .75rem; color: var(--muted); }
.fin-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.fin-legend-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: .84rem; }
.fin-legend-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border); }
.fin-legend-list li:last-child { border-bottom: 0; }
.fin-donut-wrap { position: relative; height: 210px; }
.fin-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; pointer-events: none; text-align: center; padding: 0 24px; }
.fin-donut-center .pct { font-size: 1.35rem; font-weight: 700; color: var(--green); line-height: 1.1; }
.fin-donut-center .cap { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* Beranda: kartu acara */
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.event-card:hover { border-color: var(--green); color: inherit; }
.event-card .event-top { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); }
.event-date { min-width: 56px; text-align: center; background: rgba(47,93,80,.08); color: var(--green);
  border-radius: 6px; padding: 8px 4px; line-height: 1.1; }
.event-date .day { font-size: 1.4rem; font-weight: 600; display: block; }
.event-date .mon { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.event-card .event-body { padding: 16px; flex: 1; }
.event-card .event-title { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.event-meta { color: var(--muted); font-size: .85rem; margin: 0; }
.event-card .event-foot { padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; color: var(--green); font-weight: 500; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list .lbl { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: 10px; padding: 16px 20px; height: 100%; box-shadow: var(--shadow-sm); }
.stat .num { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 700; color: var(--green); line-height: 1.25; }
.stat .lbl { color: var(--muted); font-size: .84rem; margin-top: 2px; }

/* Poster acara */
.event-poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; }
.detail-poster { width: 100%; max-height: 340px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); margin-bottom: 16px; }
.note-small { font-size: .8rem; color: var(--muted); }

/* Tiket */
.eticket-wrap { max-width: 780px; margin: 0 auto; }
.eticket { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.eticket-head { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); color: #fff; padding: 20px 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.eticket-brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; font-weight: 600; }
.eticket-title { font-size: 1.2rem; font-weight: 700; margin: 4px 0 0; color: #fff; line-height: 1.3; }
.eticket-status-pill { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff;
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.eticket-body { display: grid; grid-template-columns: 1fr 270px; }
.eticket-info { padding: 24px 26px; }
.eticket-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eticket-field .lbl { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.eticket-field .val { font-weight: 600; font-size: .92rem; color: var(--text); }
.eticket-code-box { margin-top: 20px; padding: 12px 16px; border-radius: 8px; background: var(--green-tint); border: 1px solid #D3E1DA;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eticket-code-box .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; color: var(--green); }
.eticket-stub { padding: 24px 22px; background: #FAFBF9; border-left: 2px dashed var(--border); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.eticket-stub::before, .eticket-stub::after { content: ''; position: absolute; left: -11px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--border); }
.eticket-stub::before { top: -11px; }
.eticket-stub::after { bottom: -11px; }
.qr-box { width: 158px; height: 158px; margin: 0 auto; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.barcode-box { width: 100%; max-width: 220px; margin: 14px auto 0; padding: 10px 10px 6px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; }
.barcode-box svg { width: 100%; height: 46px; display: block; }
.barcode-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem;
  letter-spacing: .12em; color: var(--text); margin-top: 4px; font-weight: 600; }
.qr-wait { border: 1px dashed var(--border); border-radius: 10px; padding: 20px 14px; color: var(--muted); font-size: .85rem; background: #fff; }
@media (max-width: 767.98px) {
  .eticket-body { grid-template-columns: 1fr; }
  .eticket-stub { border-left: 0; border-top: 2px dashed var(--border); }
  .eticket-stub::before { left: -11px; top: -11px; }
  .eticket-stub::after { left: auto; right: -11px; top: -11px; bottom: auto; }
  .eticket-meta-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .subnav-wrap, .app-sidebar, .app-mobile-bar, .no-print { display: none !important; }
  .app-shell { display: block !important; }
  .app-main { margin-left: 0 !important; }
  .eticket { box-shadow: none; border-color: #CBD5D0; }
  .eticket-stub::before, .eticket-stub::after { background: #fff; }
  body { background: #fff; }
}

/* ================= Halaman publik (versi poster) ================= */
.site-header { padding: 0; }
.navbar .nav-link { color: var(--text); font-size: .92rem; padding: 18px 12px; border-bottom: 2px solid transparent; }
.navbar .nav-link:hover { color: var(--green); }
.navbar .nav-link.active { color: var(--green); font-weight: 600; border-bottom-color: var(--green); }
.brand { padding: 14px 0; }
@media (max-width: 767.98px) { .navbar .nav-link { padding: 10px 0; border-bottom: 0; } .brand { padding: 12px 0; } }

/* Hero carousel */
.hero { background: #EEF2EE; border-bottom: 1px solid var(--border); }
.hero-inner { padding: 36px 0 54px; }
@media (max-width: 1199.98px) { .hero-inner { padding-left: 56px; padding-right: 56px; } }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 56px; opacity: .85; }
.hero .carousel-indicators { margin-bottom: 14px; }
.hero-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 10px 0 14px; }
.hero-facts { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.hero-facts li { padding: 2px 0; }
.hero-price { font-weight: 700; color: var(--green); }
.hero-poster { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(31, 74, 61, .18); }
.hero-empty { padding: 56px 0; }
@media (max-width: 767.98px) {
  .hero-inner { padding: 24px 40px 48px; }
  .hero-title { font-size: 1.45rem; }
  .hero-poster { max-width: 220px; }
}

/* Kartu acara berbasis poster */
.event-card .poster-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px 6px 0 0; background: #E3EDE8; }
.event-card .poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.event-card:hover .poster-wrap img { transform: scale(1.03); }
.chip-price, .chip-done { position: absolute; top: 10px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.chip-price { right: 10px; background: rgba(255, 255, 255, .95); color: var(--green); }
.chip-done { left: 10px; background: rgba(31, 41, 55, .85); color: #fff; }
.event-card.is-done .poster-wrap img { filter: grayscale(.85); opacity: .8; }
.poster-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(47, 93, 80, .1); color: var(--green); }
.poster-fallback .day { font-size: 3rem; font-weight: 700; line-height: 1; }
.poster-fallback .mon { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-top: 6px; }
.detail-fallback { aspect-ratio: 4 / 5; border-radius: 10px; border: 1px solid var(--border); }
.event-card .event-body { padding: 14px 14px 8px; flex: 1; }
.event-card .event-title { font-size: .98rem; font-weight: 600; line-height: 1.35; margin: 4px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-card .event-foot { padding: 10px 14px; }
.event-card .more { color: var(--green); font-weight: 500; }

.cat-pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--text); font-size: .85rem; text-decoration: none; }
.cat-pill span { color: var(--muted); font-size: .78rem; }
.cat-pill:hover { border-color: var(--green); color: var(--green); }
.cat-pill.active { background: var(--green); border-color: var(--green); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); align-self: flex-start; }
.seg a { padding: 6px 14px; font-size: .85rem; color: var(--text); text-decoration: none; }
.seg a.active { background: var(--green); color: #fff; }

/* Detail acara */
.poster-zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--surface); position: relative; cursor: zoom-in; }
.poster-zoom img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.zoom-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; font-size: .78rem; color: #fff;
  background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; text-align: center; }
.poster-zoom:hover .zoom-hint { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.facts .lbl { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.quota-bar { height: 8px; background: #E3EDE8; border-radius: 999px; overflow: hidden; }
.quota-bar > div { height: 100%; background: var(--green); border-radius: 999px; }
.reg-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; }
.detail-tabs { border-bottom: 1px solid var(--border); }
.detail-tabs .nav-link { color: var(--muted); border: 0; border-bottom: 2px solid transparent; font-weight: 500; background: transparent; padding: 10px 18px; }
.detail-tabs .nav-link:hover { color: var(--green); }
.detail-tabs .nav-link.active { color: var(--green); border-bottom-color: var(--green); background: transparent; }
.tab-panel { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; padding: 24px; }
.day-head { font-weight: 600; margin: 4px 0 12px; }
.timeline { list-style: none; padding: 0; margin: 0 0 18px; border-left: 2px solid var(--border); }
.timeline li { display: flex; gap: 20px; padding: 0 0 18px 18px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.t-time { min-width: 120px; font-weight: 600; }
.t-time span { color: var(--muted); font-weight: 400; }
.t-title { font-weight: 600; }
.t-meta { color: var(--muted); font-size: .88rem; }
.speaker { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(47, 93, 80, .12); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
@media (max-width: 575.98px) { .timeline li { flex-direction: column; gap: 2px; } .t-time { min-width: 0; } .facts { gap: 12px 16px; } }

/* Lokasi */
.venue { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .18s; }
.venue:hover { border-color: #B4C9BF; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.venue-photo-wrap { position: relative; aspect-ratio: 16 / 10; background: #E3EDE8; overflow: hidden; border-bottom: 1px solid var(--border); cursor: pointer; }
.venue-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.venue:hover .venue-photo-wrap img { transform: scale(1.04); }
.venue-photo-cap { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 44, 36, .84); color: #fff;
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  backdrop-filter: blur(4px); }
.venue-photo-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: .85rem; font-weight: 500; background: rgba(38, 83, 71, .08); }
.venue-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.venue .cap { font-size: .75rem; background: var(--green-soft); color: var(--green); padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.venue-meta-line { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.venue-list { list-style: none; padding: 0; margin: 0; }
.venue-list li { padding: 4px 0; font-size: .86rem; }
.venue-list li span { display: block; color: var(--muted); font-size: .77rem; }
.venue-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.venue-modal-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.venue-modal-box { background: var(--green-tint); border: 1px solid #D3E1DA; border-radius: 8px; padding: 12px 14px; }
.event-venue-photo { width: 100%; max-width: 360px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.admin-loc-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 5px; border: 1px solid var(--border); display: block; }

/* Kalender jadwal */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); background: var(--surface); }
.cal-dow { padding: 8px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #F3F5F2; }
.cal-cell { min-height: 104px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .78rem; }
.cal-cell.empty { background: #FBFAF7; }
.cal-cell.today { background: rgba(47, 93, 80, .06); }
.cal-cell.today .cal-num { background: var(--green); color: #fff; border-radius: 50%; }
.cal-num { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 4px; }
.cal-chip { display: block; background: rgba(47, 93, 80, .12); color: var(--green); border-radius: 4px; padding: 2px 6px; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; font-size: .74rem; }
.cal-chip:hover { background: var(--green); color: #fff; }
.cal-more { color: var(--muted); font-size: .72rem; }
.cal-dot { display: none; }
.cal-title { font-weight: 600; min-width: 150px; text-align: center; }
.agenda { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.agenda:last-child { border-bottom: 0; }
.agenda:hover { background: #F6F8F6; color: inherit; }
@media (max-width: 575.98px) {
  .cal-cell { min-height: 54px; padding: 4px; }
  .cal-chip, .cal-more { display: none; }
  .cal-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin: 2px auto 0; }
}

.form-control, .form-select { background-color: #fff; }
.form-control[readonly] { background-color: #F3F5F2; }

/* QR tiket dan pemindai presensi */
.ticket { max-width: 640px; }
.qr-box { width: 180px; height: 180px; margin: 0 auto; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-wait { border: 1px dashed var(--border); border-radius: 8px; padding: 18px 12px; color: var(--muted); font-size: .85rem; }
.scan-view { position: relative; background: #1F2937; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: none; }
.scan-view.on video { display: block; }
.scan-view .scan-off { color: #9CA3AF; font-size: .9rem; padding: 16px; text-align: center; }
.scan-view.on .scan-off { display: none; }
.scan-frame { position: absolute; inset: 18% 22%; border: 2px solid rgba(255,255,255,.85); border-radius: 12px; pointer-events: none; display: none; }
.scan-view.on .scan-frame { display: block; }
.scan-result { border: 1px solid var(--border); border-left-width: 4px; border-radius: 8px; padding: 14px 16px; background: var(--surface); }
.scan-result.ok { border-left-color: var(--st-ok); }
.scan-result.duplikat { border-left-color: var(--st-wait); }
.scan-result.gagal { border-left-color: var(--st-bad); }
.scan-log { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.scan-log li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
.scan-log li:last-child { border-bottom: 0; }
