*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: #0a0a0a; min-height: 100vh; display: flex; align-items: center; justify-content: center; -webkit-font-smoothing: antialiased; }

.trigger { padding: 10px 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); background: transparent; color: rgba(255,255,255,0.6); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.trigger:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: #f5f5f7; }
.trigger:active { transform: scale(0.97); }

#ttb-toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 320px; pointer-events: none; transition: height 0.35s cubic-bezier(0.34, 1.2, 0.64, 1); }

.ttb-toast-wrapper {
  position: absolute; bottom: 0; right: 0; width: 100%;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

.ttb-toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #242424; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px;
  font-size: 13px; color: #e2e2e2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0.5px rgba(255,255,255,0.06);
  width: 100%; pointer-events: all;
}

.ttb-toast-wrapper.is-entering .ttb-toast { animation: ttb-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.ttb-toast-wrapper.is-leaving { animation: ttb-wrapper-exit 0.28s cubic-bezier(0.4, 0, 1, 1) forwards; }

@keyframes ttb-enter {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes ttb-wrapper-exit {
  0%   { opacity: 1; transform: scale(1)    translateY(0); }
  25%  { opacity: 1; transform: scale(1.02) translateY(-3px); }
  100% { opacity: 0; transform: scale(0.94) translateY(20px); }
}

.ttb-toast-icon { display: flex; flex-shrink: 0; }
.ttb-toast-msg { flex: 1; min-width: 0; line-height: 1.4; font-weight: 500; }
.ttb-toast-content { flex: 1; min-width: 0; }
.ttb-toast-title { font-size: 13px; font-weight: 500; color: #e2e2e2; line-height: 1.3; }
.ttb-toast-desc { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.4; margin-top: 2px; }

.ttb-timer-ring { flex-shrink: 0; transform: rotate(-90deg); }
.ttb-ring-track { stroke: rgba(255,255,255,0.08); }
@keyframes ttb-ring-drain { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 44; } }
.ttb-ring-fill { animation: ttb-ring-drain 4000ms linear forwards; }

.ttb-toast-close { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; border: none; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); cursor: pointer; padding: 0; transition: background 0.12s, color 0.12s; }
.ttb-toast-close:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.toast-action-btn { flex-shrink: 0; padding: 5px 11px; border-radius: 6px; border: none; background: #f5f5f7; color: #1d1d1f; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.toast-action-btn:hover { opacity: 0.85; }
.toast-action-btn:active { transform: scale(0.96); }

.toast-cancel-btn { flex-shrink: 0; padding: 5px 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: rgba(255,255,255,0.5); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s; }
.toast-cancel-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.toast-cancel-btn:active { transform: scale(0.96); }
