/* ===== CSS UNTUK DASHBOARD & MODAL ===== */

/* API DOKUMENTASI */
.api-doc {
  margin-bottom: 20px; padding: 15px; background: var(--bg2);
  border: 2px solid var(--border);
}
.api-doc h4 { color: var(--accent2); margin-bottom: 8px; font-size: 13px; }
.api-doc p { font-size: 11px; color: var(--muted); margin-bottom: 10px; }

.api-url-box {
  display: flex; gap: 5px; margin-bottom: 10px;
}
.api-url-input {
  flex: 1; background: #000; color: #0f0; border: 2px solid var(--border);
  padding: 8px; font-family: var(--font); font-size: 11px; outline: none;
}
.btn-copy {
  background: var(--card); color: var(--text); border: 2px solid #000;
  padding: 0 10px; cursor: pointer; font-weight: 900; font-size: 12px;
  box-shadow: 2px 2px 0 #000; transition: transform 0.1s;
}
.btn-copy:active { transform: translate(2px, 2px); box-shadow: 0 0 0 #000; }

.api-resp {
  background: #000; color: #a855f7; border: 2px dashed var(--border);
  padding: 10px; font-family: var(--font); font-size: 10px;
  white-space: pre-wrap; word-break: break-all; overflow-x: auto; position: relative;
}
.api-resp .copy-resp {
  position: absolute; top: 5px; right: 5px; background: var(--border); color: #fff;
  border: none; padding: 3px 6px; font-size: 9px; cursor: pointer; font-weight: bold;
}

/* MODAL KONFIRMASI */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal-confirm {
  background: var(--card); border: 3px solid #000; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.6);
  max-width: 400px; width: 100%; padding: 25px; text-align: center;
  animation: popIn 0.2s ease-out;
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-confirm h2 { font-size: 18px; margin-bottom: 15px; color: var(--accent2); }
.modal-confirm .detail { font-size: 12px; margin-bottom: 20px; line-height: 1.6; text-align: left; background: var(--bg2); padding: 10px; border: 2px dashed var(--border); }
.modal-confirm .detail b { color: var(--text); }
.modal-confirm .price { font-size: 20px; font-weight: 900; color: var(--ok); margin: 10px 0; }

/* LOADING FULLSCREEN */
.loading-overlay {
  position: fixed; inset: 0; background: var(--bg);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10000; pointer-events: all; touch-action: none; overflow: hidden;
}
.loading-overlay.active { display: flex; }
.spinner {
  width: 60px; height: 60px; border: 6px solid var(--border);
  border-top-color: var(--accent2); border-radius: 50%;
  animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; font-weight: 900; color: var(--accent2); text-transform: uppercase; letter-spacing: 1px; }