/* WADU glass modal — shared confirm / alert */
.wgm-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(28, 43, 34, 0.32);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  animation: wgm-fade-in 0.22s ease both;
}
.wgm-root.wgm-open {
  display: flex;
}
.wgm-root[aria-hidden="true"] {
  display: none;
}

@keyframes wgm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wgm-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wgm-dialog {
  width: 100%;
  max-width: 420px;
  background: rgba(250, 252, 251, 0.88);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow:
    0 28px 70px rgba(28, 43, 34, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  animation: wgm-rise 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #1c2b22;
}

.wgm-header {
  padding: 18px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wgm-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(78, 112, 96, 0.12);
  border: 1px solid rgba(78, 112, 96, 0.2);
}
.wgm-root--danger .wgm-icon {
  background: rgba(201, 64, 64, 0.1);
  border-color: rgba(201, 64, 64, 0.22);
}
.wgm-root--info .wgm-icon {
  background: rgba(78, 112, 96, 0.1);
}
.wgm-title-wrap { flex: 1; min-width: 0; }
.wgm-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.wgm-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(226, 235, 229, 0.9);
  background: rgba(240, 245, 242, 0.85);
  border-radius: 10px;
  color: #6b8074;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.wgm-close:hover {
  border-color: #b8cfc1;
  color: #1c2b22;
  background: rgba(255, 255, 255, 0.95);
}

.wgm-body {
  padding: 12px 20px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #3d5248;
}

.wgm-footer {
  padding: 0 20px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.wgm-btn {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid #e2ebe5;
  background: rgba(255, 255, 255, 0.75);
  color: #3d5248;
  cursor: pointer;
  transition: all 0.18s;
}
.wgm-btn:hover {
  border-color: #b8cfc1;
  background: rgba(255, 255, 255, 0.95);
  color: #1c2b22;
}
.wgm-btn--primary {
  background: #4e7060;
  border-color: #4e7060;
  color: #fafcfb;
}
.wgm-btn--primary:hover {
  background: #3d5a47;
  border-color: #3d5a47;
  color: #fff;
}
.wgm-btn--danger {
  background: rgba(201, 64, 64, 0.12);
  border-color: rgba(201, 64, 64, 0.35);
  color: #a82828;
}
.wgm-btn--danger:hover {
  background: #c94040;
  border-color: #c94040;
  color: #fff;
}
