@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --vlux: #7DD3FC;
  --vlux-dark: #38BDF8;
  --ink: #1A1A1E;
  --paper: #EFF9FF;
  --flash: #FF3366;
  --leaf: #3D8361;
  --line: rgba(26,26,30,.12);
  --shadow: 0 10px 30px rgba(26,26,30,.14);
  --radius: 18px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background: var(--paper);
  background-image:
    radial-gradient(circle at 92% 4%, rgba(125,211,252,.35), transparent 40%),
    radial-gradient(circle at 4% 96%, rgba(255,51,102,.12), transparent 40%);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}

h1,h2,h3, .display{
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .5px;
  line-height: 1;
  margin: 0;
}

a{color:inherit;}

.container{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:'Bebas Neue', sans-serif;
  font-size: 30px;
}
.brand .dot{
  width: 34px; height:34px; border-radius:50%;
  background: var(--vlux);
  display:inline-block;
  position:relative;
  box-shadow: 0 4px 0 rgba(26,26,30,.15);
}
.brand .dot::after{
  content:"";
  position:absolute; inset: 7px;
  border-radius:50%;
  border: 3px solid var(--ink);
}
.brand small{
  font-family:'Inter';
  font-weight:600;
  font-size:11px;
  letter-spacing: 1px;
  color: rgba(26,26,30,.55);
  display:block;
  margin-top:-4px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter'; font-weight:700; font-size:15px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 2px solid var(--ink);
  cursor:pointer;
  background: var(--ink);
  color: var(--paper);
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active{ transform: translate(0,0); box-shadow: 2px 2px 0 var(--ink); }
.btn.btn-vlux{ background: var(--vlux); color:var(--ink); box-shadow:4px 4px 0 var(--ink); }
.btn.btn-flash{ background: var(--flash); color:#fff; border-color: var(--flash); box-shadow:4px 4px 0 #a30020; }
.btn.btn-ghost{ background:transparent; color:var(--ink); box-shadow:none; }
.btn.btn-block{ width:100%; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; }

/* ---------- Hero ---------- */
.hero{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items:center;
  padding: 40px 0 70px;
}
.hero h1{
  font-size: clamp(48px, 7vw, 84px);
}
.hero h1 .flash-word{ color: var(--flash); }
.hero p.lede{
  font-size:18px; line-height:1.55; color: rgba(26,26,30,.75);
  max-width: 480px; margin: 18px 0 28px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* Photostrip signature graphic */
.strip-stack{ position:relative; height: 420px; }
.strip-card{
  position:absolute;
  width: 190px;
  background:#fff;
  border-radius: 10px;
  padding: 12px 12px 26px;
  box-shadow: var(--shadow);
  transform: rotate(var(--r)) translate(var(--x), var(--y));
}
.strip-card .cell{
  width:100%; aspect-ratio: 4/3; border-radius:6px; margin-bottom:8px;
  background: linear-gradient(135deg, #FFE985, #FFC300);
}
.strip-card:nth-child(1){ --r:-8deg; --x:-10px; --y:10px; z-index:1; }
.strip-card:nth-child(2){ --r:6deg; --x:150px; --y:70px; z-index:2; }
.strip-card:nth-child(3){ --r:-3deg; --x:60px; --y:190px; z-index:3; }
.burst{
  position:absolute; top: 8%; right: 6%;
  width: 90px; height:90px;
  background: radial-gradient(circle, var(--vlux) 0 8px, transparent 9px),
    repeating-conic-gradient(var(--vlux) 0deg 10deg, transparent 10deg 20deg);
  border-radius:50%;
  opacity:.9;
  animation: spin 14s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg);} }

/* ---------- Sections ---------- */
.section{ padding: 50px 0; }
.section-title{ font-size: 38px; margin-bottom: 8px; }
.section-sub{ color: rgba(26,26,30,.6); margin-bottom: 32px; }

.card{
  background:#fff;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* Feature grid */
.feature-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.feature{ background:#fff; border-radius:14px; border:2px solid var(--line); padding:22px; }
.feature .icon{
  width:44px;height:44px;border-radius:12px;background:var(--vlux);
  display:flex;align-items:center;justify-content:center;margin-bottom:14px;font-size:20px;
}
.feature h3{ font-family:'Inter'; font-size:17px; font-weight:800; margin-bottom:6px; }
.feature p{ font-size:14px; color: rgba(26,26,30,.65); line-height:1.5; margin:0; }

/* ---------- Forms ---------- */
.form-group{ margin-bottom: 18px; }
label{ display:block; font-weight:700; font-size:13px; margin-bottom:7px; text-transform:uppercase; letter-spacing:.5px; color: rgba(26,26,30,.7); }
input[type=text], input[type=number], input[type=password], select{
  width:100%; padding:13px 15px; border-radius:10px; border:2px solid var(--line);
  font-family:'Inter'; font-size:15px; background:#fffefb;
}
input:focus, select:focus{ outline:none; border-color: var(--vlux-dark); }
.template-options{ display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }
.template-option{
  border:2px solid var(--line); border-radius:12px; padding:10px; cursor:pointer; text-align:center;
  transition: border-color .15s;
}
.template-option.active{ border-color: var(--ink); background: #FFFBEF; }
.template-option .preview{ height:90px; border-radius:8px; background:#f0efe6; margin-bottom:8px; display:flex; align-items:center; justify-content:center; gap:4px; padding:8px;}
.template-option .preview i{ background: var(--vlux-dark); border-radius:3px; flex:1; align-self:stretch; }
.template-option span{ font-size:12px; font-weight:700; }
input[type=color]{ width:56px; height:44px; border-radius:10px; border:2px solid var(--line); padding:2px; background:#fff; }
.color-row{ display:flex; align-items:center; gap:14px; }

/* ---------- Kustomisasi bingkai ---------- */
.frame-type-tabs{ display:flex; gap:8px; margin-bottom:14px; }
.frame-type-tab{
  flex:1; text-align:center; padding:10px; border-radius:10px; border:2px solid var(--line);
  font-size:13px; font-weight:700; cursor:pointer; background:#fff; text-transform:none; letter-spacing:0;
}
.frame-type-tab.active{ border-color: var(--ink); background: var(--vlux); }
.frame-panel{ background:#fbfaf5; border:2px solid var(--line); border-radius:12px; padding:16px; }
.frame-slider-row{ margin-top:14px; }
.frame-slider-row label{ text-transform:none; letter-spacing:0; font-size:13px; }
input[type=range]{ width:100%; accent-color: var(--vlux-dark); cursor:pointer; }
.frame-hint{ font-size:12px; color: rgba(26,26,30,.55); line-height:1.5; margin:10px 0 0; text-transform:none; }
#frameImagePreviewWrap{ margin-top:12px; }
#frameImagePreviewWrap img{ max-width:160px; max-height:200px; border-radius:8px; border:2px solid var(--line); }
input[type=file]{
  width:100%; padding:11px; border-radius:10px; border:2px dashed var(--line);
  font-family:'Inter'; font-size:13px; background:#fff;
}

/* ---------- Kustomisasi bingkai tamu (booth) ---------- */
.guest-frame-panel{
  margin-top:18px; padding:16px; background:#fff; border:2px solid var(--line); border-radius:14px;
}
.guest-frame-panel .frame-hint{ margin-bottom:0; }
.guest-frame-toggle{
  display:flex; align-items:center; justify-content:space-between; cursor:pointer;
  font-weight:700; font-size:14px;
}
.guest-frame-toggle .chev{ transition: transform .15s; }
.guest-frame-toggle.open .chev{ transform: rotate(180deg); }
.guest-frame-body{ display:none; margin-top:14px; }
.guest-frame-body.open{ display:block; }

/* ---------- Event list ---------- */
.event-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:18px; }
.event-item{ background:#fff; border-radius:14px; border:2px solid var(--line); padding:20px; }
.event-item h3{ font-family:'Inter'; font-size:17px; font-weight:800; margin-bottom:4px; }
.event-item .meta{ font-size:13px; color: rgba(26,26,30,.55); margin-bottom:14px; }
.event-item .actions{ display:flex; gap:8px; flex-wrap:wrap; }
.event-item .actions .btn{ padding:9px 16px; font-size:13px; box-shadow:2px 2px 0 var(--ink); }
.empty-state{ text-align:center; padding:50px 20px; color: rgba(26,26,30,.5); }

/* ---------- Booth page ---------- */
.booth-wrap{ max-width: 760px; margin: 0 auto; padding: 32px 20px 60px; }
.booth-header{ text-align:center; margin-bottom: 26px; }
.booth-header .event-name{ font-size: 42px; }
.stage{
  background: var(--ink);
  border-radius: var(--radius);
  overflow:hidden;
  position:relative;
  aspect-ratio: 4/3;
  display:flex; align-items:center; justify-content:center;
}
.stage video, .stage canvas{
  width:100%; height:100%; object-fit:cover;
}
.stage video.mirrored{
  transform: scaleX(-1);
}
.stage .placeholder{ color:#fff; text-align:center; font-family:'Inter'; opacity:.7; padding: 20px;}
.countdown-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue'; font-size:140px; color:#fff;
  text-shadow: 0 0 40px rgba(0,0,0,.5);
  pointer-events:none;
}
.flash-overlay{
  position:absolute; inset:0; background:#fff; opacity:0; pointer-events:none;
}
.flash-overlay.on{ animation: flashpop .35s ease-out; }
@keyframes flashpop{ 0%{opacity:.95;} 100%{opacity:0;} }
.shot-indicator{
  position:absolute; top:14px; left:14px; display:flex; gap:6px;
}
.shot-dot{ width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.35); }
.shot-dot.done{ background: var(--vlux); }

.booth-controls{ display:flex; justify-content:center; gap:14px; margin-top: 22px; flex-wrap:wrap; }

.filter-section{ margin-top:16px; }
.filter-scroll{
  display:flex; gap:8px; align-items:center; overflow-x:auto; padding:6px 2px 12px;
  scrollbar-width: thin;
}
.filter-scroll::-webkit-scrollbar{ height:6px; }
.filter-scroll::-webkit-scrollbar-thumb{ background: var(--line); border-radius:4px; }
.filter-group-label{
  flex:0 0 auto; font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  color: rgba(26,26,30,.4); padding-left:6px; align-self:center;
}
.filter-group-label:not(:first-child){ margin-left:6px; padding-left:14px; border-left:2px solid var(--line); }
.filter-chip{
  flex:0 0 auto; padding:8px 16px; border-radius:100px; border:2px solid var(--line); font-size:13px; font-weight:700; cursor:pointer; background:#fff; white-space:nowrap;
}
.filter-chip.active{ border-color: var(--ink); background: var(--vlux); }

/* Pemilihan sumber kamera (built-in / eksternal) */
.camera-select-row{
  display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap;
  margin-top:18px; padding:16px; background:#fff; border:2px solid var(--line); border-radius:14px;
}
.camera-select-row .form-group{ margin-bottom:0; min-width:220px; flex:1; }
.camera-select-row select{ padding:11px 14px; font-size:14px; }
.camera-refresh-btn{
  padding:11px 14px; border-radius:10px; border:2px solid var(--line); background:#fffefb; cursor:pointer; font-size:16px;
  line-height:1;
}
.mirror-toggle{
  display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color: rgba(26,26,30,.75);
  text-transform:none; letter-spacing:0; cursor:pointer; padding-bottom:11px;
}
.mirror-toggle input{ width:18px; height:18px; accent-color: var(--vlux-dark); cursor:pointer; }
.camera-hint{ font-size:12px; color: rgba(26,26,30,.5); margin-top:8px; width:100%; }

.result-wrap{ text-align:center; }
.result-wrap canvas{ max-width: 100%; border-radius:14px; box-shadow: var(--shadow); border: 2px solid var(--ink); }
.result-actions{ display:flex; justify-content:center; gap:12px; margin-top:22px; flex-wrap:wrap; }
.qr-box{ margin-top: 22px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.qr-box p{ font-size:13px; color: rgba(26,26,30,.55); margin:0; }

/* Gallery */
.gallery-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap:16px; }
.gallery-grid img{ width:100%; border-radius:12px; border:2px solid var(--ink); box-shadow: var(--shadow); }
.gallery-item{ position:relative; }
.gallery-item .g-actions{ display:flex; gap:6px; margin-top:8px; }
.gallery-item .g-actions .btn{ flex:1; padding:8px; font-size:12px; box-shadow:none; }

.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%);
  background: var(--ink); color:#fff; padding:12px 22px; border-radius:100px;
  font-size:14px; font-weight:600; box-shadow: var(--shadow); z-index:999;
  opacity:0; pointer-events:none; transition: opacity .25s, transform .25s;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(-6px); }

footer{ text-align:center; padding: 40px 20px; color: rgba(26,26,30,.45); font-size:13px; }

@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .strip-stack{ display:none; }
  .feature-grid{ grid-template-columns: 1fr; }
  .template-options{ grid-template-columns: 1fr 1fr; }
}
