/* IM/POSSIBLE CHECKER — components.css */

/* ══════════════════════════════════════════════════════════════
   CENTER POPUP — login success & logout confirm
   ══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.center-popup {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  width: min(380px, 90vw);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6),
              0 0 0 1px rgba(0,210,255,0.06),
              0 0 60px rgba(0,210,255,0.06);
  animation: popupIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.center-popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Icon wrap */

.cpop-icon-wrap {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}

.cpop-logo {
  width: 80px; height: 80px;
  filter: drop-shadow(0 0 12px rgba(0,210,255,0.3));
}

/* Success check badge */

.cpop-check {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 26px; height: 26px;
  background: var(--green);
  color: #000;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-card);
  animation: checkPop 0.4s 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes checkPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Logout icon */

.cpop-logout-icon {
  width: 64px; height: 64px;
  border: 2px solid rgba(255,59,92,0.3);
  border-radius: 50%;
  background: rgba(255,59,92,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--red);
}

/* Popup text */

.cpop-title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cpop-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cpop-sub b { color: var(--cyan); }

/* Progress bar (success popup) */

.cpop-bar-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.cpop-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 99px;
}

.cpop-redirect {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Confirm popup buttons */

.cpop-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.cpop-btn-yes {
  flex: 1;
  padding: 10px;
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
}

.cpop-btn-yes:hover { background: rgba(255,59,92,0.25); }

.cpop-btn-no {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
}

.cpop-btn-no:hover { border-color: var(--border-active); color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════
   NOTIFICATION POPUP — warning / error / success / info
   ══════════════════════════════════════════════════════════════ */

.notif-popup {
  max-width: 360px;
}

/* Notification icon — circle with dynamic color */

.notif-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(0,210,255,0.3);
  background: rgba(0,210,255,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

/* Toast success variant */

.toast-success {
  border-color: rgba(0,255,136,0.35) !important;
  color: var(--green) !important;
}

/* Overlay click-to-close cursor hint */

.center-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  cursor: default;
}

.notif-popup .cpop-btn-no {
  min-width: 100px;
}
