.t3-tqm {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}
.t3-tqm[hidden] { display: none !important; }
.t3-tqm-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 95vh;
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  animation: t3-tqm-in 0.2s ease;
}
@keyframes t3-tqm-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.t3-tqm-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.t3-tqm-close:hover { background: #f1f5f9; color: #0f172a; }
.t3-tqm-badge {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}
.t3-tqm-badge span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: -18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
  ring: 4px solid #fff;
  border: 4px solid #fff;
  font-size: 1.1rem;
  font-weight: 800;
}
.t3-tqm-body { padding: 1.75rem 1.25rem 1.25rem; }
@media (min-width: 640px) { .t3-tqm-body { padding: 2rem 2rem 1.5rem; } }
.t3-tqm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.t3-tqm-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.t3-tqm-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #d1fae5;
}
.t3-tqm-avatar-ph {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.t3-tqm-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1a2b4a;
  line-height: 1.3;
}
.t3-tqm-handle {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}
.t3-tqm-compare {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.t3-tqm-stat {
  min-width: 96px;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d1fae5;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.t3-tqm-stat small {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 600;
}
.t3-tqm-stat strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.82rem;
  color: #0f172a;
}
.t3-tqm-stat--after strong { color: #059669; }
.t3-tqm-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #059669;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.t3-tqm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 1.75rem;
}
.t3-tqm-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}
.t3-tqm-step--done { background: #8cc63f; color: #fff; }
.t3-tqm-step--active { background: #e0f2fe; color: #0c4a6e; }
.t3-tqm-step--wait { background: #f0f9ff; color: #64748b; }
.t3-tqm-step-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}
.t3-tqm-step--done .t3-tqm-step-icon { background: rgba(255, 255, 255, 0.25); color: #fff; }
.t3-tqm-msg {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.t3-tqm-timer {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}
.t3-tqm-timer strong {
  display: inline-block;
  min-width: 4.5rem;
  margin: 0 0.2rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: #d1fae5;
  color: #065f46;
  font-family: ui-monospace, monospace;
  font-size: 1rem;
}
.t3-tqm-promo {
  margin-top: 1.5rem;
  border-radius: 14px;
  border: 2px solid #1e3a5f;
  background: #1e3a5f;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.t3-tqm-promo-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;
}
.t3-tqm-promo p { margin: 0; }
.t3-tqm-promo-sub { padding: 0.5rem 1rem 0; font-size: 0.82rem; color: #bfdbfe; }
.t3-tqm-promo-title {
  padding: 0.35rem 1rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
}
.t3-tqm-promo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1rem 1.15rem;
}
@media (min-width: 640px) {
  .t3-tqm-promo-actions { flex-direction: row; align-items: stretch; }
}
.t3-tqm-coupon {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  text-align: left;
}
.t3-tqm-coupon small { font-size: 0.68rem; color: #64748b; white-space: nowrap; }
.t3-tqm-coupon code { font-size: 0.95rem; font-weight: 800; color: #1e3a5f; }
.t3-tqm-copy {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0369a1;
  cursor: pointer;
  flex-shrink: 0;
}
.t3-tqm-packages {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: #8cc63f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.t3-tqm-packages:hover { background: #7ab836; color: #fff; }
