/* ==========================================================================
   Traveler Atlas - Mobile-first Dark Theme CSS
   ========================================================================== */

:root {
  --bg-color: #0b0f19;
  --surface-color: rgba(18, 24, 38, 0.88);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.4;
  user-select: none;
  -webkit-user-select: none;
}

/* Fullscreen Map Container */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Floating Header Bar */
.header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-top: calc(var(--safe-top) + 8px);
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.brand-card {
  pointer-events: auto;
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.brand-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 20%, #38bdf8 60%, #0284c7 100%);
  box-shadow: 0 0 10px var(--primary-glow);
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
}

.points-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.header-actions {
  pointer-events: auto;
  display: flex;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary);
  color: #04101e;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-primary:active {
  background: var(--primary-hover);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

/* Floating Bottom Control Bar */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-bottom: calc(var(--safe-bottom) + 12px);
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 8px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.filter-panel {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Mode Tabs */
.segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  padding: 3px;
  gap: 2px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 2px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Year Controls Row */
.year-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.year-control-row.hidden {
  display: none;
}

.year-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.year-select {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--surface-border);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  text-align: center;
}

.filter-stats-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-stats-text strong {
  color: var(--primary);
}

/* Modal Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: #111827;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--surface-border);
  padding: 20px 18px calc(var(--safe-bottom) + 18px) 18px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 85vh;
  overflow-y: auto;
}

@media (min-width: 600px) {
  .modal-card {
    border-radius: 24px;
    padding: 22px;
    transform: translateY(0);
  }
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Import Options */
.import-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.import-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--surface-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.import-box:hover {
  border-color: var(--primary);
}

.import-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

.import-box-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-top: 4px;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Stats Display Grid */
.stats-container {
  margin-top: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-container.hidden {
  display: none;
}

.stats-headline {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.experiment-alert {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
}

.stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.stat-item.accepted .stat-num {
  color: var(--accent-green);
}

.stat-item.invalid .stat-num {
  color: var(--accent-red);
}

.stat-item.duplicates .stat-num {
  color: var(--accent-amber);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* MapLibre Popup Styling */
.maplibregl-popup-content {
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid var(--surface-border) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  font-family: var(--font-family) !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: #111827 !important;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: #111827 !important;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: #111827 !important;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: #111827 !important;
}

.maplibregl-popup-close-button {
  color: var(--text-muted) !important;
  padding: 4px 8px !important;
  font-size: 16px !important;
}

.atlas-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
}

.popup-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.popup-row {
  font-size: 12px;
  color: #cbd5e1;
}

.popup-row .label {
  color: var(--text-muted);
}

.popup-row code {
  font-size: 10px;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 4px;
  border-radius: 4px;
}

.popup-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* CARTO attribution fix */
.maplibregl-ctrl-attrib {
  background-color: rgba(11, 15, 25, 0.75) !important;
  color: #64748b !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  margin-bottom: calc(var(--safe-bottom) + 70px) !important;
  margin-right: 8px !important;
}

.maplibregl-ctrl-attrib a {
  color: #94a3b8 !important;
  text-decoration: none !important;
}

/* ==========================================================================
   v2 Styles: Themes, Welcome Card, Manual Add, Exploration & Badges, Toast
   ========================================================================== */

/* Theme Variables Overrides */
body[data-theme="classic"] {
  --bg-color: #f1f5f9;
  --surface-color: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(15, 23, 42, 0.12);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.25);
}

body[data-theme="classic"] .modal-card,
body[data-theme="classic"] .welcome-card,
body[data-theme="classic"] .filter-panel,
body[data-theme="classic"] .brand-card,
body[data-theme="classic"] .btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body[data-theme="classic"] .atlas-popup {
  color: #0f172a;
}

body[data-theme="classic"] .maplibregl-popup-content {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

body[data-theme="pixel"] {
  --bg-color: #0f0a1c;
  --surface-color: rgba(22, 16, 38, 0.94);
  --surface-border: rgba(168, 85, 247, 0.35);
  --primary: #ec4899;
  --primary-hover: #db2777;
  --primary-glow: rgba(236, 72, 153, 0.4);
  --accent-amber: #fbbf24;
}

/* Theme Selector Control */
.theme-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 0 8px 0 10px;
  height: 32px;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.theme-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding-right: 14px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.theme-select option {
  background-color: #0f172a;
  color: #f1f5f9;
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-subtle:hover {
  color: var(--text-main);
  border-color: var(--surface-border);
}

/* Empty State Welcome Card */
.welcome-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: 90%;
  max-width: 380px;
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: welcomePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.welcome-card.hidden {
  display: none;
}

@keyframes welcomePop {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.welcome-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.3));
}

.welcome-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.welcome-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-btn-main {
  width: 100%;
  height: 44px;
  font-size: 14px;
  border-radius: 22px;
  justify-content: center;
}

.welcome-btn-sub {
  width: 100%;
  height: 40px;
  font-size: 13px;
  border-radius: 20px;
  justify-content: center;
}

/* Form Styles for Manual Add */
.modal-body {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(85vh - 70px);
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-select,
.form-input {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

body[data-theme="classic"] .form-select,
body[data-theme="classic"] .form-input {
  background: rgba(0, 0, 0, 0.04);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-select:disabled,
.form-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-actions {
  margin-top: 18px;
}

.btn-block {
  width: 100%;
  height: 44px;
  font-size: 14px;
  border-radius: 14px;
}

.geonames-credit {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--surface-border);
}

/* Explore Dashboard */
.modal-card-wide {
  max-width: 580px;
}

.explore-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.explore-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.summary-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  transition: transform 0.2s ease;
}

body[data-theme="classic"] .summary-card {
  background: rgba(0, 0, 0, 0.03);
}

.summary-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.summary-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.explore-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--surface-border);
}

.explore-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.explore-section-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Coverage List */
.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coverage-row {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-theme="classic"] .coverage-row {
  background: rgba(0, 0, 0, 0.02);
}

.coverage-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coverage-country-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.coverage-stat {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.coverage-pct-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  margin-left: 6px;
}

.coverage-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

body[data-theme="classic"] .coverage-progress-track {
  background: rgba(0, 0, 0, 0.08);
}

.coverage-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-amber));
  transition: width 0.4s ease;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 500px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.badge-card {
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--surface-border);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.badge-card.unlocked {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.badge-card.locked {
  background: rgba(0, 0, 0, 0.2);
  opacity: 0.55;
  filter: grayscale(0.85);
}

body[data-theme="classic"] .badge-card.locked {
  background: rgba(0, 0, 0, 0.03);
}

.badge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-icon {
  font-size: 22px;
  line-height: 1;
}

.badge-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
}

.badge-card.unlocked .badge-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge-card.locked .badge-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.badge-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.badge-card.locked .badge-name {
  color: var(--text-muted);
}

.badge-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.empty-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

/* Manual Badge Tag in Popup */
.manual-tag {
  display: inline-block;
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 90px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: pre-line;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
