/* ===== 공통 Toast 스타일 (하단 중앙 + 프로그레스바) ===== */
.toast-container {
  position: fixed;
  left: 0; right: 0; bottom: 80px;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  padding: 0 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.toast {
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  background: rgba(14,17,22,0.95);
  color: #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  backdrop-filter: saturate(140%) blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  animation: toast-in .25s ease-out both;
  box-sizing: border-box;
  will-change: opacity, transform;
}

.toast__title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.toast__msg {
  font-size: 13px;
  line-height: 1.4;
  color: #cbd5e1;
  white-space: pre-line;
}

.toast__progress {
  position: relative;
  height: 3px;
  width: 100%;
  margin-top: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 9999px;
  overflow: hidden;
}

.toast__progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: #60a5fa;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform linear;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .toast-container {
    bottom: 70px;
  }
  .toast {
    padding: 10px 12px;
  }
}
