:root{
  --paper: #E1EFFB;              
  --paper-2: #FFFFFF;            
  --paper-3: #D0E4F7;            
  --ink: #1C334A;                
  --ink-soft: #4F6D8A;           
  --stamp: #2D587B;              
  --stamp-ink: #FFFFFF;          
  --teal: #78996C;               
  --teal-ink: #F0F6EE;           
  --line: #B5D5F0;               
  --shadow: 0 10px 25px -5px rgba(28, 51, 74, 0.15);
  --radius: 20px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}

/* Sembunyikan scrollbar bawaan browser */
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }
html, body { -ms-overflow-style: none; scrollbar-width: none; }

/* Styling Selection / Blok Teks */
::selection {
  background: var(--paper-3);
  color: var(--stamp);
}

/* Matikan blok teks pada elemen interaktif / tombol */
button,
a,
.chip,
.contact-pill,
.custom-select-trigger,
.select-option-item,
.ticket-head,
.badge,
.chev,
.opt,
.code-pill,
.btn,
.float-wa-btn,
.btn-download-qr {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body{
  background-color: var(--paper);
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%235083B0' fill-opacity='0.28'%3E%3Cpath d='M30 15l2 5 5 2-5 2-2 5-2-5-5-2 5-2zM120 80l3 8 8 3-8 3-3 8-3-8-8-3 8-3zM80 130l2 4 4 2-4 2-2 4-2-4-4-2 4-2z'/%3E%3Cpath d='M135 25l1.5 3.5 3.5 1.5-3.5 1.5-1.5 3.5-1.5-3.5-3.5-1.5 3.5-1.5zM20 100l1.5 3.5 3.5 1.5-3.5 1.5-1.5 3.5-1.5-3.5-3.5-1.5 3.5-1.5z'/%3E%3Ccircle cx='45' cy='110' r='1.5'/%3E%3Ccircle cx='110' cy='30' r='2'/%3E%3Ccircle cx='135' cy='120' r='1.5'/%3E%3Ccircle cx='25' cy='60' r='2'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(165, 203, 237, 0.45) 50%, transparent 50%),
    linear-gradient(rgba(165, 203, 237, 0.45) 50%, transparent 50%);
  background-size: 160px 160px, 60px 60px, 60px 60px;
  background-attachment: fixed;
  color:var(--ink);
  font-family:var(--sans);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  padding-bottom:40px;
}

a{color:inherit;}
button{font-family:inherit;}

.wrap{ max-width:1040px; margin:0 auto; padding:0 20px; }

header.hero{ padding:38px 0 22px; }
.brandrow{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.brand-logo-link { display: inline-block; text-decoration: none; }
.brand-logo-img {
  height: 68px; width: auto; border-radius: 18px;        
  box-shadow: 0 8px 20px rgba(28, 51, 74, 0.18);
  border: 2px solid #FFFFFF; display: block; object-fit: cover;
  transition: transform 0.2s var(--ease-apple);
}
.brand-logo-img:active { transform: scale(0.96); }

@media (max-width: 480px) {
  .brand-logo-img { height: 54px; }
}

.headerctrl{ display:flex; align-items:center; gap:8px; flex:none; }
.stub-mark{
  font-family:var(--mono); font-size:12px; color:var(--ink-soft);
  border:1px solid var(--line); border-radius:999px; padding:6px 14px;
  white-space:nowrap; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
}

.lang-btn {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--stamp);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px;
  background: rgba(255, 255, 255, 0.9); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.15s var(--ease-apple), background 0.15s ease;
}
.lang-btn:active { transform: scale(0.92); }

.tagline{
  margin:14px 0 0; color:var(--ink); font-size:15.5px;
  max-width:52ch; line-height:1.55; font-weight: 500;
  cursor: default;
}

/* Contact Info Pills */
.contact-bar {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.contact-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9);
  color: var(--ink); transition: transform 0.15s var(--ease-apple);
}
.contact-pill:active { transform: scale(0.95); }
.contact-pill.wa { color: #1E7E34; }
.contact-pill.ig { color: #B51A67; }

.ticket-strip{ margin-top:22px; display:flex; gap:8px; overflow:hidden; }
.ticket-strip i{
  flex:1; height:6px; border-radius:3px;
  background:repeating-linear-gradient(90deg, var(--stamp) 0 8px, transparent 8px 14px); opacity:0.4;
}

/* Filter Section */
.filter-wrapper { margin: 22px 0 18px; position: relative; }
.filters-desktop { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filters-desktop::-webkit-scrollbar { display: none; }

.chip {
  flex: none; font-weight: 600; font-size: 13px; min-height: 40px;
  display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.9);
  color: var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.chip:active { transform: scale(0.96); }
.chip.active { background: var(--stamp); color: var(--stamp-ink); border-color: var(--stamp); }

/* Mobile Custom Select Floating Styling */
.filters-mobile { display: none; position: relative; }

.custom-select-trigger {
  width: 100%; min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; box-shadow: 0 4px 12px rgba(28, 51, 74, 0.06);
  transition: border-color .2s, transform .15s;
}
.custom-select-trigger:active { transform: scale(0.98); }

.select-arrow { transition: transform .25s var(--ease-apple); opacity: 0.7; }
.filters-mobile.open .select-arrow { transform: rotate(180deg); }

.custom-select-options {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #FFFFFF; border: 1.5px solid var(--line);
  border-radius: 16px; box-shadow: 0 12px 30px rgba(28, 51, 74, 0.15);
  padding: 6px; z-index: 30; display: none;
  flex-direction: column; gap: 2px;
  max-height: 260px; overflow-y: auto;
  animation: fadeInDown 0.2s var(--ease-apple);
}
.filters-mobile.open .custom-select-options { display: flex; }

.select-option-item {
  padding: 11px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: transparent; border: none; text-align: left;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  transition: background .15s, color .15s;
}
.select-option-item:hover, .select-option-item:active { background: var(--paper); }
.select-option-item.selected { background: var(--paper-3); color: var(--stamp); font-weight: 700; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .filters-desktop { display: none; }
  .filters-mobile { display: block; }
}

/* Grid & Cards */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px; align-items: start;
}
.ticket {
  background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}

/* Header Kartu - Dibuat Klik di Seluruh Area */
.ticket-head {
  width: 100%; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 16px;
  background: none; 
  border: none; 
  text-align: left; 
  cursor: pointer; 
  color: inherit;
}
.ticket-head:active { opacity: 0.8; }

.ticket-head * {
  pointer-events: none;
}

.badge {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ticket-title { flex: 1; min-width: 0; }
.ticket-title .name { font-weight: 700; font-size: 16px; color: var(--ink); }
.ticket-title .cat { font-size: 11.5px; color: var(--ink-soft); }

.ticket-price {
  font-family: var(--mono); 
  font-size: 11.5px; 
  color: var(--ink-soft); 
  text-align: right; 
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.ticket-price b { display: block; font-size: 14px; color: var(--stamp); }

.chev { width: 14px; height: 14px; transition: transform .25s var(--ease-apple); opacity: .6; margin-left: 4px; }
.ticket.open .chev { transform: rotate(180deg); }

.perf { height: 0; border-top: 2px dashed var(--line); position: relative; }
.perf::before, .perf::after {
  content: ""; position: absolute; top: -8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
}
.perf::before { left: -8px; }
.perf::after { right: -8px; }

.packages { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-apple); }
.ticket.open .packages { max-height: 900px; }
.package { padding: 14px 16px 4px; }
.package + .package { border-top: 1px dashed var(--line); }
.package-name { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin: 0 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 14px; }
.opt {
  font-size: 12.5px; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.opt .p { font-family: var(--mono); opacity: .9; margin-left: 6px; font-weight: 600; color: var(--stamp); }

/* Checkout Drawer / Modal */
.scrim {
  position: fixed; inset: 0; background: rgba(28, 51, 74, 0.45);
  backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40;
}
.scrim.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 460px; margin: 0 auto;
  background: var(--paper-2); border: 1.5px solid var(--line); border-bottom: none;
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow);
  transform: translateY(105%); transition: transform .38s var(--ease-apple);
  z-index: 41; max-height: 85vh; display: flex; flex-direction: column;
  touch-action: none;
  pointer-events: none;
  visibility: hidden;
}
.drawer.show { 
  transform: translateY(0); 
  pointer-events: auto;
  visibility: visible;
}
.drawer.dragging { transition: none; }

.drawer-header {
  position: relative; padding: 20px 24px 12px; display: flex;
  align-items: center; justify-content: center; flex: none; cursor: default;
}
.drawer-handle { 
  width: 42px; 
  height: 5px; 
  border-radius: 3px; 
  background: var(--line); 
  opacity: 0.8; 
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.drawer-handle:hover {
  opacity: 1;
  transform: scaleX(1.1);
}

.drawer-close {
  position: absolute; top: 16px; right: 20px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.drawer-inner { padding: 12px 24px 20px; overflow-y: auto; flex: 1; }
.order-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.order-line .k { color: var(--ink-soft); font-size: 13.5px; }
.order-line .v { font-weight: 700; font-size: 14.5px; }

.amount-box { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 16px; padding: 18px 16px; text-align: center; margin: 14px 0 18px; }
.amount-box .label { font-size: 11px; color: var(--ink-soft); font-family: var(--mono); font-weight: 600; }
.amount-box .value { font-family: var(--mono); font-weight: 700; font-size: clamp(24px, 7vw, 32px); margin: 8px 0 4px; color: var(--stamp); }
.amount-box .hint { font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; }

.qr-box { display: flex; justify-content: center; padding: 6px 0 10px; }
.qris-img-poster {
  width: 100%; max-width: 280px; height: auto;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(28, 51, 74, 0.08);
}

/* Styling Tombol Download QRIS */
.btn-download-qr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--stamp);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s var(--ease-apple);
}

.btn-download-qr:hover {
  background: var(--paper-3);
}

.btn-download-qr:active {
  transform: scale(0.95);
}

.drawer-footer { padding: 16px 24px 24px; background: var(--paper-2); border-top: 1px dashed var(--line); }
.btn {
  display: block; width: 100%; text-align: center; padding: 14px 16px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer; text-decoration: none;
}
.btn-wa { background: var(--stamp); color: #FFF; }
.btn-ghost { background: none; border: 1px solid var(--line); color: var(--ink-soft); margin-top: 10px; font-size: 13px; }

/* Floating WhatsApp Button di Pojok Kanan Bawah */
.float-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1E7E34;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(30, 126, 52, 0.35);
  border: 2px solid #FFFFFF;
  transition: transform 0.2s var(--ease-apple), box-shadow 0.2s ease;
}

.float-wa-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(30, 126, 52, 0.45);
}

.float-wa-btn:active {
  transform: scale(0.96);
}

@media (max-width: 599px) {
  .drawer-header {
    cursor: grab;
  }
  .float-wa-btn {
    bottom: 18px;
    right: 18px;
    padding: 10px 16px;
    font-size: 12.5px;
  }
}

/* Tampilan Desktop / Windows (Centered & Larger Modal) */
@media (min-width: 600px) {
  .drawer {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    border-radius: 28px;
    border-bottom: 1.5px solid var(--line);
    transform: translate(-50%, -40%) scale(0.95);
    opacity: 0;
    transition: transform 0.3s var(--ease-apple), opacity 0.3s var(--ease-apple), visibility 0.3s;
  }

  .drawer.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .drawer-handle {
    display: none;
  }

  .qris-img-poster {
    max-width: 320px;
  }
}

.empty-state { grid-column: 1/-1; text-align: center; padding: 40px 20px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.8); }