:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #eef4ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --shadow: 0 18px 40px rgba(15, 23, 42, .11);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 34rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, .12), transparent 32rem),
    var(--bg);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
  padding-bottom: 96px;
}

.hero-card,
.panel,
.modal-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(219, 228, 240, .95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  border-radius: 30px;
  padding: 22px;
  margin-bottom: 18px;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .26);
  font-size: 1.8rem;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: .76rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--primary);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

h3 {
  margin-bottom: 6px;
}

.hero-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: .9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .13);
}

.status-dot.ok {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .13);
}

.status-dot.bad {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .13);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.panel {
  border-radius: var(--radius);
  padding: 18px;
}

.cart-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.mini-stat {
  min-width: 92px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: var(--panel-2);
}

.mini-stat span {
  display: block;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
}

.mini-stat small {
  color: var(--muted);
  font-weight: 700;
}

.filter-box {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: .88rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: var(--text);
  background: white;
  padding: 12px 13px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

textarea {
  resize: vertical;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.letter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.letter-scroll::-webkit-scrollbar {
  display: none;
}

.letter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 800;
  white-space: nowrap;
}

.letter-button.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.game-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: white;
  display: grid;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .09);
  border-color: rgba(37, 99, 235, .35);
}

.game-title {
  font-weight: 900;
  line-height: 1.25;
  min-height: 2.5em;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .75rem;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
}

.chip.soft-purple {
  color: #6d28d9;
  background: #f3e8ff;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 900;
  color: #111827;
}

.button,
.icon-button {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 20px rgba(37, 99, 235, .22);
}

.button.primary:hover {
  box-shadow: 0 16px 28px rgba(37, 99, 235, .28);
}

.button.ghost {
  color: var(--primary);
  background: #eff6ff;
}

.button.soft {
  color: #334155;
  background: #f1f5f9;
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: .88rem;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #475569;
  background: #f1f5f9;
}

#cartCountBadge {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  color: white;
}

.cart-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  max-height: min(420px, 48vh);
  padding-right: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.cart-item strong {
  display: block;
  font-size: .92rem;
}

.cart-item small {
  color: var(--muted);
}

.cart-remove {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--danger);
  background: #fee2e2;
  font-weight: 900;
}

.cart-empty {
  padding: 24px 10px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-total span {
  color: var(--muted);
  font-weight: 800;
}

.cart-total strong {
  font-size: 1.2rem;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.empty-state {
  text-align: center;
  padding: 42px 16px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fbfdff;
}

.empty-icon {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
}

.mobile-cart-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 25;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, .95);
  color: white;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .28);
}

.mobile-cart-bar span {
  display: block;
  font-size: .8rem;
  color: #cbd5e1;
}

.mobile-cart-bar strong {
  font-size: 1.05rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .45);
}

.modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 26px;
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.form-stack {
  display: grid;
  gap: 13px;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.checkout-summary span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-summary strong {
  text-align: right;
}

.success-card {
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.order-code-box {
  margin: 16px auto;
  padding: 14px;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.success-detail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span {
  color: var(--muted);
  font-weight: 800;
}

.order-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.order-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px;
  background: white;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 70;
  transform: translateX(-50%) translateY(20px);
  min-width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  border-radius: 14px;
  color: white;
  background: #0f172a;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .28);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.setup-warning {
  margin-bottom: 16px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: #fff1f2;
  color: #991b1b;
  padding: 14px;
}

.setup-warning p {
  margin: 6px 0 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    max-height: min(82vh, 680px);
    border-radius: 26px 26px 0 0;
    transform: translateY(110%);
    transition: transform .22s ease;
    box-shadow: 0 -16px 34px rgba(15, 23, 42, .18);
  }

  .cart-panel.open {
    transform: translateY(0);
  }

  .mobile-cart-bar {
    display: flex;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 12px;
    padding-bottom: 96px;
  }

  .hero-card,
  .panel {
    border-radius: 22px;
    padding: 15px;
  }

  .hero-top {
    align-items: flex-start;
  }

  .brand-badge {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 16px;
    font-size: 1.45rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .game-title {
    min-height: auto;
  }

  .modal-card {
    padding: 16px;
    border-radius: 22px;
  }
}

/* Update v2: pilihan layanan dan harga internal/eksternal */
.service-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
}

.label-title {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 900;
}

.service-box small {
  color: var(--muted);
  font-weight: 700;
}

.service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.service-option {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: var(--text);
  background: white;
  font-size: .86rem;
  font-weight: 900;
  cursor: pointer;
}

.service-option input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.service-option:has(input:checked) {
  border-color: rgba(37, 99, 235, .7);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.game-prices {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px dashed #cbd5e1;
  display: grid;
  gap: 2px;
}

.game-prices span,
.game-prices small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.game-prices strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.service-total {
  margin-bottom: 8px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.service-total strong {
  color: var(--primary);
  font-size: 1rem;
}

.service-summary-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
}

.service-summary-box strong {
  color: var(--primary);
}

.success-detail {
  grid-template-columns: 1fr auto;
}

@media (max-width: 720px) {
  .service-box {
    grid-template-columns: 1fr;
  }
  .service-options {
    justify-content: stretch;
  }
  .service-option {
    flex: 1;
    justify-content: center;
  }
}

/* v4 customer app */
.customer-nav { display:flex; gap:10px; margin: 14px 0 18px; position: sticky; top: 8px; z-index: 6; background: rgba(255,255,255,.76); backdrop-filter: blur(12px); padding: 8px; border-radius: 999px; border: 1px solid rgba(148,163,184,.24); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.nav-pill { flex:1; border:0; border-radius:999px; padding: 12px 14px; font-weight:900; color:#334155; background: transparent; cursor:pointer; }
.nav-pill.active { background: linear-gradient(135deg, #2563eb, #7c3aed); color:#fff; box-shadow: 0 12px 24px rgba(37,99,235,.22); }
.page { display:none; }
.page.active { display:block; }
.info-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.info-card { border:1px solid rgba(148,163,184,.22); border-radius: 22px; background: rgba(255,255,255,.9); padding: 18px; box-shadow: 0 16px 34px rgba(15,23,42,.08); }
.info-card span { display:block; color:#2563eb; font-size: 12px; font-weight: 900; letter-spacing:.08em; text-transform: uppercase; margin-bottom: 8px; }
.info-card strong { display:block; font-size: 18px; color:#0f172a; margin-bottom: 8px; }
.info-card p { margin:0; color:#64748b; line-height:1.55; }
.ps-status-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ps-card { border-radius: 22px; padding: 16px; border:1px solid rgba(148,163,184,.24); background: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.06); display:grid; gap: 10px; }
.ps-card.available { border-color: rgba(5,150,105,.28); background: linear-gradient(135deg, rgba(236,253,245,.96), #fff); }
.ps-card.busy { border-color: rgba(220,38,38,.28); background: linear-gradient(135deg, rgba(254,242,242,.96), #fff); }
.ps-card.maintenance { border-color: rgba(245,158,11,.34); background: linear-gradient(135deg, rgba(255,251,235,.96), #fff); }
.ps-card-head { display:flex; align-items:center; gap: 9px; }
.ps-dot { width: 12px; height: 12px; border-radius:999px; display:inline-block; }
.ps-dot.green { background:#059669; box-shadow:0 0 0 6px rgba(5,150,105,.12); }
.ps-dot.orange { background:#f59e0b; box-shadow:0 0 0 6px rgba(245,158,11,.14); }
.ps-dot.red { background:#dc2626; box-shadow:0 0 0 6px rgba(220,38,38,.12); }
.ps-card-body { display:grid; gap:3px; color:#64748b; }
.ps-card-body strong { color:#0f172a; font-size:18px; }
.ps-card-body small { color:#64748b; font-weight:700; line-height:1.45; }
.game-layout { display:grid; grid-template-columns: 1fr 340px; gap: 16px; align-items:start; }
.game-actions-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.member-stat-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.member-stat { border:1px solid rgba(148,163,184,.2); border-radius:18px; padding:14px; background:#f8fafc; display:grid; gap:5px; }
.member-stat span { color:#64748b; font-weight:800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.member-stat strong { color:#0f172a; font-size: 17px; word-break: break-word; }
.reminder-box { margin-top: 14px; border:1px solid rgba(217,119,6,.22); background: rgba(255,251,235,.92); color:#92400e; padding: 14px; border-radius: 16px; font-weight: 800; }
.hint-box { border:1px dashed rgba(37,99,235,.28); background: rgba(239,246,255,.8); border-radius: 16px; padding: 12px; color:#334155; font-weight: 700; }
.hint-box.good { border-color: rgba(5,150,105,.3); background: rgba(236,253,245,.9); color:#047857; }
.hint-box.bad { border-color: rgba(220,38,38,.28); background: rgba(254,242,242,.9); color:#b91c1c; }
.soft-badge { display:inline-flex; align-items:center; border-radius:999px; padding: 8px 10px; background: rgba(37,99,235,.1); color:#1d4ed8; font-weight:900; font-size:12px; }
.button.small { padding: 9px 12px; font-size: 13px; }
button:disabled, .button:disabled { opacity:.55; cursor:not-allowed; }
.empty-state.wide { grid-column: 1 / -1; }
@media (max-width: 920px) {
  .game-layout { grid-template-columns: 1fr; }
  .ps-status-grid, .info-grid, .member-stat-grid { grid-template-columns: 1fr; }
  .cart-panel { position: fixed; inset: auto 12px 86px 12px; max-height: 70vh; overflow:auto; transform: translateY(120%); transition:.25s ease; z-index: 20; }
  .cart-panel.open { transform: translateY(0); }
}
@media (max-width: 540px) {
  .customer-nav { border-radius: 18px; }
  .nav-pill { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 920px) {
  .mobile-cart-bar { display: none; }
  .mobile-cart-bar.show { display: flex; }
}

/* v5 customer polish: gaming banner, running text, request game, booking, chat */
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .18);
  background:
    radial-gradient(circle at 12% 20%, rgba(96, 165, 250, .38), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(168, 85, 247, .34), transparent 32%),
    linear-gradient(135deg, #08111f 0%, #16224a 48%, #341a62 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-card .hero-top,
.hero-card .status-strip { position: relative; z-index: 1; }
.hero-card h1,
.hero-card .eyebrow,
.hero-card p { color: #fff; }
.hero-card .eyebrow { color: #93c5fd; }
.brand-badge {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
  box-shadow: 0 14px 36px rgba(37,99,235,.32);
}
.customer-time-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
  padding: 10px 16px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  color: #1e3a8a;
  box-shadow: 0 10px 24px rgba(15,23,42,.07);
}
.customer-time-card span {
  font-weight: 800;
}
.customer-time-card strong {
  font-size: 15px;
  letter-spacing: .04em;
}
.running-text-card {
  overflow: hidden;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 18px;
  margin: 8px 0 16px;
  background: linear-gradient(90deg, rgba(37,99,235,.10), rgba(124,58,237,.10), rgba(6,182,212,.09));
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.running-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 11px 0;
  font-weight: 900;
  color: #1e3a8a;
  white-space: nowrap;
  will-change: transform;
  animation: kreffiaMarquee 42s linear infinite;
}
.running-track span {
  display: inline-block;
  padding: 0 28px;
}
@keyframes kreffiaMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.game-actions-row .button,
.service-option,
.add-button,
.mobile-cart-bar .button,
.request-game-form .button {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.game-actions-row .button:hover,
.service-option:hover,
.add-button:hover,
.mobile-cart-bar .button:hover,
.request-game-form .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,.18);
}
.button.accent {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899, #7c3aed);
}
.request-game-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(124,58,237,.20);
  border-radius: 22px;
  padding: 14px;
  margin: 10px 0 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(37,99,235,.08), rgba(255,255,255,.94));
}
.request-game-form {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr auto;
  gap: 10px;
}
.request-game-form input {
  min-height: 44px;
  border-radius: 14px;
}
.status-order-list,
.booking-status-list,
.booking-history-list { display: grid; gap: 12px; }
.status-order-card,
.booking-card {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.booking-card.diterima { border-color: rgba(5,150,105,.30); background: linear-gradient(135deg, rgba(236,253,245,.96), #fff); }
.booking-card.pending,
.booking-card.menunggu { border-color: rgba(217,119,6,.30); background: linear-gradient(135deg, rgba(255,251,235,.96), #fff); }
.booking-card.ditolak,
.booking-card.dibatalkan { border-color: rgba(220,38,38,.28); background: linear-gradient(135deg, rgba(254,242,242,.96), #fff); }
.booking-card-head,
.booking-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.booking-badge {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
  background: #eff6ff;
  color: #1d4ed8;
}
.booking-badge.diterima { color:#047857; background:#ecfdf5; }
.booking-badge.pending,
.booking-badge.menunggu { color:#92400e; background:#fffbeb; }
.booking-badge.ditolak,
.booking-badge.dibatalkan { color:#b91c1c; background:#fef2f2; }
.booking-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248,250,252,.92);
  color: #334155;
  line-height: 1.45;
}
.booking-note.admin { background: rgba(239,246,255,.95); color:#1e40af; }
.chat-float-button {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 45;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 20px 38px rgba(37,99,235,.28);
  cursor: pointer;
}
.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 150px;
  z-index: 46;
  width: min(390px, calc(100vw - 26px));
  max-height: min(640px, calc(100vh - 170px));
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 70px rgba(15,23,42,.24);
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8, #7c3aed);
}
.chat-head h2,
.chat-head .eyebrow { color:#fff; }
.chat-identity-form,
.chat-form { padding: 12px; display: grid; gap: 10px; }
.chat-messages {
  min-height: 210px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 9px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.chat-bubble {
  width: fit-content;
  max-width: 86%;
  border-radius: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.24);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.chat-bubble.mine {
  justify-self: end;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.chat-bubble p { margin: 4px 0; line-height: 1.42; }
.chat-bubble small { opacity: .78; }
.chat-bubble.mine small,
.chat-bubble.mine strong { color: #fff; }
@media (max-width: 860px) {
  .request-game-form { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .chat-float-button { right: 12px; bottom: 82px; }
  .chat-widget { right: 10px; bottom: 134px; max-height: calc(100vh - 150px); }
}

/* v5.5 - bottom menu, faster running text, dynamic game button */
.app-shell { padding-bottom: 128px; }
.customer-nav {
  position: fixed !important;
  left: 50%;
  right: auto;
  bottom: 12px;
  top: auto !important;
  transform: translateX(-50%);
  z-index: 44;
  width: min(520px, calc(100% - 22px));
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(37,99,235,.18);
  box-shadow: 0 22px 50px rgba(15,23,42,.18);
}
.nav-pill {
  min-height: 56px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 20px;
  padding: 7px 8px;
  font-size: 12px;
}
.nav-pill .nav-icon {
  display: block;
  font-size: 20px;
  line-height: 1;
}
.nav-pill span:last-child { font-weight: 950; }
.nav-pill.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37,99,235,.27);
}
.running-track {
  animation-duration: 14s !important;
}
.running-track span {
  padding: 0 28px !important;
  word-spacing: .28em;
}
.add-button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 15px;
  color: #fff;
  font-weight: 950;
  letter-spacing: .01em;
  background: linear-gradient(135deg, #2563eb, #7c3aed 52%, #ec4899);
  box-shadow: 0 13px 26px rgba(37,99,235,.22);
}
.add-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
  transition: transform .5s ease;
}
.add-button:hover::after { transform: translateX(110%); }
.add-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 17px 32px rgba(124,58,237,.28);
}
.add-button.selected {
  background: linear-gradient(135deg, #059669, #06b6d4);
  box-shadow: 0 13px 26px rgba(5,150,105,.22);
}
.mobile-cart-bar { bottom: 92px; }
.chat-float-button { bottom: 98px; }
.chat-widget { bottom: 158px; }
@media (max-width: 540px) {
  .customer-nav { width: calc(100% - 16px); bottom: 8px; border-radius: 22px; }
  .nav-pill { min-height: 54px; font-size: 11px; border-radius: 18px; }
  .chat-float-button { bottom: 92px; }
  .chat-widget { bottom: 146px; }
  .mobile-cart-bar { bottom: 84px; }
}


/* v5.6 - customer notification popup and chat badge */
.chat-float-button.has-unread {
  animation: customerChatRing 1.05s ease-in-out infinite;
}
.chat-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 11px;
  box-shadow: 0 8px 16px rgba(220,38,38,.32);
}
@keyframes customerChatRing {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.035); }
}
.customer-notification-popup {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 80;
  width: min(430px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37,99,235,.24);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
}
.customer-notification-popup strong {
  display: block;
  color: #172554;
  margin-bottom: 3px;
}
.customer-notification-popup p {
  margin: 0;
  color: #64748b;
  font-weight: 750;
  line-height: 1.35;
}
.customer-notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .customer-notification-popup {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

/* v6 - mobile-first polish, draggable chat, notes and announcements */
.announcement-list { display:grid; gap:10px; }
.announcement-card { padding:12px; border:1px solid rgba(37,99,235,.18); border-radius:18px; background:linear-gradient(135deg, rgba(239,246,255,.92), rgba(250,245,255,.92)); }
.announcement-card strong { display:block; color:#1e3a8a; margin-bottom:4px; }
.announcement-card p { margin:0 0 6px; color:#334155; line-height:1.45; font-weight:750; }
.announcement-card small { color:#64748b; }
.game-note-customer { margin:8px 0 0; padding:9px 10px; border-radius:14px; color:#475569; background:rgba(248,250,252,.92); border:1px solid rgba(148,163,184,.24); line-height:1.42; font-weight:750; }
.chat-float-button { touch-action:none; user-select:none; left: 50%; right:auto !important; bottom: 102px; transform: translateX(-50%); }
/* v6.2 - running text sedikit diperlambat, tetap rapat dan berjarak */
.running-track { animation-duration: 10.5s !important; }
.running-track span { padding: 0 42px !important; word-spacing: .38em; }
.add-button { min-width: 112px; }
.add-button:not(.selected) { background: linear-gradient(135deg, #f97316, #ec4899 45%, #7c3aed); }
.add-button.selected { background: linear-gradient(135deg, #059669, #10b981, #06b6d4); }
.member-stat strong { font-size: 15px; }

@media (max-width: 640px) {
  body { font-size:14px; }
  .app-shell { padding: 10px 10px 138px; }
  .hero-card { border-radius: 22px; padding: 14px; }
  .hero-top { align-items:center; }
  .hero-copy h1 { font-size:22px; }
  .hero-copy p:not(.eyebrow) { display:none; }
  .customer-time-card, .running-text-card, .panel { border-radius: 18px; }
  .customer-time-card { padding: 10px 12px; }
  .running-text-card { padding: 8px 0; }
  .section-head { gap:8px; align-items:flex-start; }
  .section-head h2 { font-size:18px; }
  .info-grid, .ps-status-grid, .member-stat-grid { grid-template-columns: 1fr; gap:8px; }
  .info-card, .ps-card, .game-card, .booking-card { border-radius: 17px; padding: 12px; }
  .game-layout { display:block; }
  .catalog-panel { padding: 12px; }
  .game-actions-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .filter-row { grid-template-columns:1fr; }
  .game-list { grid-template-columns:1fr; gap:10px; }
  .game-footer { gap:8px; }
  .add-button { min-height:44px; width:auto; padding:10px 16px; }
  .customer-nav { bottom: 8px; width: calc(100% - 16px); }
  .mobile-cart-bar { left: 10px; right: 10px; bottom: 84px; border-radius:18px; }
  .chat-float-button { bottom: 150px; padding: 12px 14px; font-size: 13px; box-shadow: 0 14px 30px rgba(37,99,235,.30); }
  .chat-widget { left: 8px !important; right: 8px !important; bottom: 84px !important; top: auto !important; width:auto; max-height: calc(100vh - 110px); border-radius:22px; }
  .chat-messages { max-height: 44vh; }
  .customer-notification-popup { top: 10px; left: 10px; right: 10px; border-radius:18px; align-items:flex-start; }
}
