/* ===== Auth Dialog (shared — 2026-04-21) =====
   Reuse class name `.redeem-dialog*` để đồng nhất với module.css.
   File này standalone — include được từ profile.html (không phụ thuộc module.css).
*/

.redeem-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Nunito', 'Noto Sans Myanmar', system-ui, -apple-system, sans-serif;
}
.redeem-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
}
.redeem-dialog-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.redeem-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
}
.redeem-dialog-close:hover { color: #111827; }
.redeem-dialog-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #111827;
}
.redeem-dialog-sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
}

.redeem-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.redeem-google-btn:hover { border-color: #4f6ef7; background: #f9fafb; }
.redeem-google-btn:disabled { opacity: 0.6; cursor: wait; }
.redeem-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ea4335, #fbbc05, #34a853, #4285f4);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.redeem-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #9ca3af;
  font-size: 12px;
}
.redeem-divider::before,
.redeem-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.redeem-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.redeem-email-form input {
  padding: 11px 14px;
  font-size: 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.redeem-email-form input:focus { border-color: #4f6ef7; }

.redeem-email-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
.redeem-email-actions button {
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.redeem-email-actions button:hover { border-color: #4f6ef7; }
.redeem-email-actions button.is-primary {
  background: #4f6ef7;
  color: #fff;
  border-color: #4f6ef7;
  box-shadow: 0 4px 14px rgba(79, 110, 247, 0.25);
}
.redeem-email-actions button.is-primary:hover { transform: translateY(-1px); }
.redeem-email-actions button:disabled { opacity: 0.6; cursor: wait; }

.redeem-forgot-row {
  margin: 10px 0 0;
  text-align: center;
}
.redeem-forgot-link {
  color: #4f6ef7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.redeem-forgot-link:hover { text-decoration: underline; }

.redeem-error {
  margin: 10px 0 0;
  padding: 6px 10px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 6px;
  font-size: 13px;
}
.redeem-success {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #ecfdf5;
  color: #065f46;
  border-left: 3px solid #10b981;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.redeem-consent {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}
.redeem-consent a {
  color: #4f6ef7;
  text-decoration: none;
  font-weight: 600;
}
.redeem-consent a:hover { text-decoration: underline; }
