/* Global loading bar + modal */
.app-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.app-loading.is-active { display: flex; }
.app-loading__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}
.app-loading__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  animation: appLoadingBar 1.1s ease-in-out infinite;
}
@keyframes appLoadingBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.app-loading__panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  min-width: 220px;
}
.app-loading__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: appSpin 0.8s linear infinite;
}
@keyframes appSpin { to { transform: rotate(360deg); } }
.app-loading__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
body.is-app-loading { overflow: hidden; }

.app-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
}
.app-feedback-modal.is-active { display: flex; }
.app-feedback-modal__box {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}
.app-feedback-modal__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.app-feedback-modal__icon.is-success {
  background: #dcfce7;
  color: #16a34a;
}
.app-feedback-modal__icon.is-success::before { content: "V"; }
.app-feedback-modal__icon.is-error {
  background: #fee2e2;
  color: #dc2626;
}
.app-feedback-modal__icon.is-error::before { content: "!"; }
.app-feedback-modal__icon.is-warning {
  background: #fef3c7;
  color: #d97706;
}
.app-feedback-modal__icon.is-warning::before { content: "!"; }
.app-feedback-modal__icon.is-info {
  background: #dbeafe;
  color: #2563eb;
}
.app-feedback-modal__icon.is-info::before { content: "i"; }
.app-feedback-modal__box h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.app-feedback-modal__box p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  white-space: pre-wrap;
}
.app-feedback-modal__btn {
  min-width: 120px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.app-feedback-modal__btn.is-secondary {
  background: #e2e8f0;
  color: #334155;
}
.app-feedback-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
