
/* Hard hide when [hidden] */
.clyc-overlay[hidden], .clyc-modal[hidden] { display: none !important; }

/* Overlay */
.clyc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58); /* slate-900/60 */
  z-index: 99998;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Modal container */
.clyc-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99999;
}

/* Panel */
.clyc-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 20px 20px 16px;
  color: #0f172a; /* slate-900 */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Title + desc */
.clyc-modal__title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}
.clyc-modal__desc {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155; /* slate-600 */
}

/* Stats */
.clyc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 4px;
}
.clyc-stat {
  background: #f8fafc; /* slate-50 */
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.clyc-stat__label {
  font-size: 12px;
  color: #64748b; /* slate-500 */
}
.clyc-stat__value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

/* Zero note + Topup */
.clyc-zero {
  margin-top: 10px;
  color: #b91c1c; /* red-700 */
  font-weight: 600;
}
.clyc-topup { margin: 8px 0 0; }
.clyc-topup a {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #0284c7; /* sky-600 */
  color: #0369a1; /* sky-700 */
  padding: 8px 12px;
  border-radius: 8px;
}

/* Actions */
.clyc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.clyc-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  background: #0ea5e9; /* sky-500 */
  color: white;
}
.clyc-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.clyc-btn--ghost {
  background: transparent;
  border: 1px solid #cbd5e1; /* slate-300 */
  color: #0f172a;
}

/* Close */
.clyc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

/* Small screens */
@media (max-width: 480px) {
  .clyc-modal__panel { padding: 16px 16px 12px; }
  .clyc-actions { flex-direction: column-reverse; }
  .clyc-actions .clyc-btn, .clyc-actions .clyc-btn--ghost { width: 100%; }
}
