/* =====================================================
   RESET & BASE (AUDITED)
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: #111;
  color: #eee;
  width: 100%;
  overflow-x: hidden;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   LOADER (FINAL • AUDITED • JS-SAFE)
===================================================== */
.site-loader {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.site-loader img {
  margin-bottom: 10px;
}

.site-loader p {
  font-size: 14px;
  color: #ffafd9;
}

/* loader sudah invisible → JANGAN TANGKAP KLIK */
.site-loader[style*="opacity: 0"] {
  pointer-events: none;
}

/* =====================================================
   CONTAINER
===================================================== */
.container {
  max-width: 960px;
  margin: auto;
  padding: 15px;
  padding-bottom: 120px; /* mobile submit safe */
}

/* =====================================================
   ORDER BOX (FORM SAFE LAYER)
===================================================== */
.order-box {
  background: #102033;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.order-input,
select {
  width: 100%;
  background: #1e324b;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #294766;
  margin-bottom: 8px;
}

.order-input:focus,
select:focus {
  outline: none;
  border-color: #5ab0ff;
  background: #253d59;
}

label {
  color: #fff;
  font-size: 14px;
}

/* =====================================================
   MODE TOPPING (RADIO)
===================================================== */
.topping-mode-container {
  margin-top: 12px;
}

.mode-label {
  margin-right: 14px;
  cursor: pointer;
  font-size: 14px;
}

.mode-label input {
  margin-right: 4px;
}

/* =====================================================
   TOPPING SYSTEM (SYNC DENGAN order.js)
===================================================== */
.topping-wrap {
  display: none; /* dikontrol syncTopping() */
  margin-top: 10px;
  padding: 10px;
  background: #102033;
  border-radius: 8px;
}

.topping-wrap label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 10px;
  background: #1b314c;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.topping-wrap label:hover {
  background: #244a70;
}

.topping-wrap input[type="checkbox"] {
  flex-shrink: 0;
  transform: scale(1.15);
}

/* =====================================================
   PRICE SUMMARY
===================================================== */
.price-summary {
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  background: #1b314c;
  font-size: 14px;
}

.price-summary div {
  margin-bottom: 4px;
}

/* =====================================================
   BUTTON
===================================================== */
.btn-primary {
  background: #ff5e9c;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  width: 100%;
}

.btn-primary:hover {
  opacity: 0.85;
}

button:active {
  transform: scale(0.97);
}

/* =====================================================
   NOTA POPUP (SYNC DENGAN showNota())
===================================================== */
#notaContainer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 900;
  pointer-events: none;
}

#notaContainer[style*="display: flex"] {
  pointer-events: auto;
}

.nota-box {
  background: #fff;
  width: 92%;
  max-width: 420px;
  border-radius: 10px;
  padding: 15px;
  color: #333;
  position: relative;
}

#notaClose {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* =====================================================
   FLOATING BUTTONS (FORM SAFE)
===================================================== */
.toggle-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #ff5e9c;
  color: #fff;
  font-size: 28px;
  border: none;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icons-container {
  position: fixed;
  bottom: 85px;
  right: 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}

.floating-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.floating-icon.whatsapp { background:#25D366 }
.floating-icon.shopee   { background:#EE4D2D }
.floating-icon.grab     { background:#00B14F }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 480px) {
  .container {
    padding: 12px;
    padding-bottom: 140px;
  }
}

/* =====================================================
   TEXT COLOR RESTORE (NO LOGIC IMPACT)
===================================================== */
.text-green-bold { color: #00ff91 !important; font-weight: 700; }
.text-black-bold { color: #f2f2f2 !important; font-weight: 700; }
.text-blue-dark-bold { color: #80c3ff !important; font-weight: 700; }
.text-purple-dark-bold { color: #d09bff !important; font-weight: 700; }
.text-maroon-bold { color: #ff7b7b !important; font-weight: 700; }
.text-green-dark-big { color: #00ffa7 !important; font-size: 20px; font-weight: 900; }
.text-brown-dark-bold { color: #ffcf95 !important; font-weight: 700; }
.text-pink-bold { color: #ff9bd4 !important; font-weight: 700; }
.text-blue-bold { color: #92baff !important; font-weight: 700; }
.text-black { color: #f1f1f1 !important; }
.text-pink { color: #ffafd9 !important; }

/* =====================================================
   END OF FILE
   FINAL • AUDITED • LOCKED • PRODUCTION SAFE
===================================================== */
