#twallet-overlay {
  display: none; position: fixed; inset: 0; z-index: 99999;
  align-items: center; justify-content: center;
}
#twallet-overlay.is-open { display: flex; }

.twof-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.twof-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 16px;
  padding: 36px 28px 28px;
  max-width: 400px; width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  animation: twofIn .22s ease;
}

@keyframes twofIn {
  from { opacity:0; transform: translateY(12px) scale(.97); }
  to   { opacity:1; transform: none; }
}

.twof-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #999; line-height: 1; padding: 4px 8px;
}
.twof-close:hover { color: #333; }

.twof-logo {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.twof-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: #111; }
.twof-text  { font-size: 14px; color: #555; line-height: 1.5; margin: 0 0 20px; }

.twof-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #3375BB; color: #fff;
  border: none; border-radius: 8px;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.twof-btn:hover:not(:disabled) { opacity: .85; }
.twof-btn:disabled { opacity: .5; cursor: default; }

.twof-status { font-size: 13px; color: #c00; margin-top: 10px; min-height: 18px; }

#twallet-thankyou {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(255,255,255,.97);
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
#twallet-thankyou.is-open { display: flex; }

.twof-ty-inner { text-align: center; padding: 32px; }
.twof-ty-icon  { font-size: 56px; margin-bottom: 16px; color: #3375BB; }
.twof-ty-title { font-size: 24px; font-weight: 700; margin: 0 0 12px; color: #111; }
.twof-ty-text  { font-size: 15px; color: #555; line-height: 1.6; }
