@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #e9f6fb;
  --card: #ffffff;
  --surface: #f2fafd;
  --border: #cdebf4;
  --accent: #0e9bb5;
  --accent2: #2ec3de;
  --gold: #f6a723;
  --text: #14313d;
  --muted: #6f96a3;
  --danger: #d64550;
  --success: #269e6c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(14,155,181,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(246,167,35,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.container { position: relative; z-index: 1; width: 100%; max-width: 420px; }

.header { text-align: center; margin-bottom: 24px; position: relative; }

/* ===== Gelembung sabun mengambang ===== */
.bubble {
  position: absolute; color: var(--accent2); pointer-events: none;
  opacity: 0.6;
}

.logo-name { font-family: 'Baloo 2', sans-serif; font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: 1px; line-height: 1; }
.logo-icon { font-size: 36px; }

/* ===== Logo utama, menyatu tanpa kotak ===== */
.washer-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 6px; width: 100%;
}
.logo-glow {
  position: absolute; width: 200px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,155,181,0.28) 0%, rgba(46,195,222,0.12) 55%, transparent 75%);
  filter: blur(6px); z-index: 0;
}
.logo-badge-img {
  position: relative; z-index: 1;
  width: 230px; max-width: 82%; height: auto; display: block;
  filter: drop-shadow(0 10px 18px rgba(14,60,80,0.18));
}
.logo-sub-text {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}

.banner-frame {
  margin-bottom: 10px;
}
.banner-img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-composite: intersect;
}

.wifi-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; letter-spacing: 0.5px;
}
.dot-live { width: 6px; height: 6px; background: #b6f0c2; border-radius: 50%; animation: blink 1.5s infinite; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 44px rgba(14,60,80,0.12), 0 3px 10px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative; overflow: hidden;
}

/* Stempel "Fresh & Clean" */
.stamp {
  position: absolute; top: -16px; right: -14px; width: 88px; height: 88px;
  color: var(--accent); mix-blend-mode: multiply; pointer-events: none; z-index: 2;
  transform: rotate(-11deg);
  transform-origin: center;
}
.stamp svg { width: 100%; height: 100%; }
.stamp text { font-family: 'Baloo 2', sans-serif; }

.tabs {
  display: flex; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 4px; margin-bottom: 22px; gap: 3px;
}
.tab-btn {
  flex: 1; padding: 9px 6px; border: none; border-radius: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; background: transparent; color: var(--muted);
}
.tab-btn.active { background: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(14,155,181,0.3); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

.form-group { margin-bottom: 14px; }
label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.8px; }

input, textarea {
  width: 100%; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 14px; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; transition: all 0.2s; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,155,181,0.12); background: #fff; }
input::placeholder { color: var(--muted); }

.voucher-input { font-family: 'Baloo 2', sans-serif; font-size: 22px; letter-spacing: 4px; text-align: center; padding: 14px; }

.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pkg { border: 2px solid var(--border); border-radius: 16px; padding: 16px 12px; cursor: pointer; transition: all 0.2s; text-align: center; background: var(--surface); position: relative; }
.pkg:hover { border-color: var(--accent2); }
.pkg.selected { border-color: var(--accent); background: rgba(14,155,181,0.06); }
.pkg-emoji { font-size: 24px; margin-bottom: 6px; }
.pkg-dur { font-family: 'Baloo 2', sans-serif; font-size: 19px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; }
.pkg-price { font-size: 13px; font-weight: 700; color: var(--gold); margin-top: 2px; }
.pkg-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; display: none; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.pkg.selected .pkg-check { display: flex; }

.upload-area { border: 2px dashed var(--border); border-radius: 14px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--surface); margin-bottom: 14px; }
.upload-area:hover { border-color: var(--accent); }
.upload-area.has-file { border-color: var(--success); background: rgba(38,158,108,0.06); }
.upload-icon { font-size: 28px; margin-bottom: 6px; }
.upload-text { font-size: 13px; color: var(--muted); }
.upload-text strong { color: var(--accent); }
#foto-input { display: none; }
#preview-img { width: 100%; border-radius: 10px; margin-top: 10px; display: none; max-height: 150px; object-fit: cover; }

.mitra-box { background: linear-gradient(135deg, rgba(14,155,181,0.09), rgba(246,167,35,0.07)); border: 1px solid rgba(14,155,181,0.18); border-radius: 14px; padding: 14px; margin-bottom: 16px; font-size: 13px; }
.mitra-title { font-weight: 700; color: var(--accent); margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.mitra-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.mitra-addr { color: var(--muted); font-size: 12px; }

.btn { width: 100%; padding: 13px; border: none; border-radius: 13px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(14,155,181,0.3); }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 15px rgba(214,69,80,0.3); margin-top: 10px; }

.alert { padding: 11px 14px; border-radius: 11px; font-size: 13px; margin-bottom: 14px; display: none; font-weight: 500; }

.qr-box { position: relative; width: 100%; aspect-ratio: 1/1; background: #0d1117; border-radius: 16px; overflow: hidden; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.qr-box video { width: 100%; height: 100%; object-fit: cover; display: none; }
.qr-box.active video { display: block; }
.qr-frame { position: absolute; inset: 14%; border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,0.35); pointer-events: none; display: none; }
.qr-box.active .qr-frame { display: block; }
.qr-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; background: rgba(0,0,0,0.45); padding: 6px 10px; margin: 0 30px; border-radius: 20px; }
.qr-box:not(.active) .qr-hint { position: static; color: var(--muted); background: none; margin: 0; }
.alert.show { display: block; animation: fadeIn 0.3s; }
.alert-success { background: rgba(38,158,108,0.1); border: 1px solid rgba(38,158,108,0.3); color: var(--success); }
.alert-error { background: rgba(214,69,80,0.1); border: 1px solid rgba(214,69,80,0.3); color: var(--danger); }

.status-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stat-icon { font-size: 22px; margin-bottom: 4px; }
.stat-label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 2px; word-break: break-all; }

.footer { text-align: center; margin-top: 18px; color: var(--muted); font-size: 11px; }

/* Chat FAB */
.chat-fab { position: fixed; bottom: 24px; right: 24px; background: var(--accent); border: none; border-radius: 28px; padding: 12px 18px; cursor: pointer; box-shadow: 0 6px 20px rgba(14,155,181,0.4); display: flex; align-items: center; gap: 8px; z-index: 1000; transition: all 0.3s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.chat-fab-dot { width: 8px; height: 8px; background: #7fff6e; border-radius: 50%; animation: blink 1.5s infinite; }
.chat-notif { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-window { position: fixed; inset: 0; width: 100%; height: 100%; background: var(--card); border: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; z-index: 999; overflow: hidden; transform: translateY(100%); opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); max-height: 100%; }
.chat-window.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.chat-head { background: var(--accent); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head-avatar { width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-head-info { flex: 1; }
.chat-head-name { font-family: 'Baloo 2', sans-serif; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.3px; line-height: 1; }
.chat-head-status { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 1px; }
.chat-head-close { background: rgba(255,255,255,0.15); border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cmsg { display: flex; gap: 7px; align-items: flex-end; }
.cmsg.user { flex-direction: row-reverse; }
.cmsg-av { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.cmsg.user .cmsg-av { background: var(--gold); }
.cmsg-bubble { max-width: 78%; padding: 9px 12px; border-radius: 15px; font-size: 13px; line-height: 1.5; }
.cmsg.bot .cmsg-bubble { background: #fff; border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.cmsg.user .cmsg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.typing-ind { display: flex; gap: 4px; align-items: center; padding: 9px 12px; background: #fff; border: 1px solid var(--border); border-radius: 15px; border-bottom-left-radius: 4px; width: fit-content; }
.tdot { width: 5px; height: 5px; background: var(--muted); border-radius: 50%; animation: bounce 1.2s infinite; }
.tdot:nth-child(2) { animation-delay: 0.2s; }
.tdot:nth-child(3) { animation-delay: 0.4s; }
.chat-inp-area { padding: 10px 10px env(safe-area-inset-bottom, 10px); border-top: 1px solid var(--border); display: flex; gap: 7px; align-items: center; background: var(--card); }
.chat-inp { flex: 1; background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; padding: 8px 13px; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; outline: none; }
.chat-inp:focus { border-color: var(--accent); }
.chat-send-btn { width: 36px; height: 36px; background: var(--accent); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all 0.2s; flex-shrink: 0; color: white; }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-powered { text-align: center; padding: 6px; font-size: 10px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--border); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

