/* ============================================================
   Creative Touch — Design system
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Palette */
  --bg: #0d0a1c;
  --bg-elevated: #150f2b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f1ff;
  --text-muted: #a99fc9;
  --text-faint: #756d92;

  --pink: #ff5ca8;
  --purple: #8b5cf6;
  --blue: #4f7cff;

  --gradient-main: linear-gradient(135deg, var(--pink) 0%, var(--purple) 55%, var(--blue) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 92, 168, 0.16), rgba(139, 92, 246, 0.16) 55%, rgba(79, 124, 255, 0.16));
  --gradient-text: linear-gradient(100deg, #ff8ecb, #b79bff 45%, #7ea2ff);

  --success: #35d399;
  --danger: #ff6b6b;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-glow: 0 20px 60px -20px rgba(139, 92, 246, 0.45);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(255, 92, 168, 0.14), transparent 60%),
    radial-gradient(55% 45% at 100% 10%, rgba(79, 124, 255, 0.16), transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(139, 92, 246, 0.14), transparent 60%);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

::selection { background: rgba(139, 92, 246, 0.4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* ---------- Layout basics ---------- */

.icon { display: inline-flex; width: 1em; height: 1em; }
.icon svg { width: 100%; height: 100%; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand .icon { width: 1.3em; height: 1.3em; color: var(--pink); }
.brand--light span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.chip--accent {
  background: var(--gradient-soft);
  border-color: rgba(139, 92, 246, 0.35);
  color: #d9c9ff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--gradient-main);
  color: #100a20;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.55);
}
.btn--primary:hover { box-shadow: 0 14px 34px -8px rgba(139, 92, 246, 0.7); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--danger {
  background: var(--danger);
  color: #2a0505;
}
.btn--danger-ghost {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: var(--danger);
}
.btn--danger-ghost:hover { background: rgba(255, 107, 107, 0.1); }

.btn--lg { padding: 0.85rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.icon-btn .icon { width: 1.05em; height: 1.05em; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn--danger:hover { color: var(--danger); border-color: rgba(255, 107, 107, 0.4); }

.link-more { color: #d9c9ff; font-weight: 600; font-size: 0.9rem; }
.link-more:hover { color: #fff; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.back-link .icon { width: 1.05em; height: 1.05em; }
.back-link:hover { color: var(--text); }

/* ---------- Landing ---------- */

.landing {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
  overflow: hidden;
}
.landing__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: var(--gradient-main);
  opacity: 0.16;
  filter: blur(110px);
  z-index: -1;
  border-radius: 50%;
}
.landing__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 3.5rem;
}
.landing__nav-actions { display: flex; gap: 0.6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: #d9c9ff;
  margin-bottom: 1.4rem;
}
.eyebrow .icon { width: 1em; height: 1em; color: var(--pink); }
.eyebrow--center { align-self: center; }

.hero { text-align: center; max-width: 760px; margin: 0 auto; }
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sparkle-emoji { -webkit-text-fill-color: initial; background: none; }
.hero__subtitle {
  display: block;
  margin: 1.4rem auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  color: #ff8ecb;
  margin-bottom: 1rem;
}
.feature-card__icon .icon { width: 1.3em; height: 1.3em; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

.landing__footer {
  text-align: center;
  margin-top: 4.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .landing__nav { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ---------- Auth (login / register) ---------- */

.auth {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: var(--gradient-main);
  opacity: 0.14;
  filter: blur(120px);
  z-index: -1;
  border-radius: 50%;
}
.auth__brand { margin-bottom: 2rem; }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.auth-card__title { font-size: 1.6rem; margin-bottom: 0.5rem; }
.auth-card__subtitle { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.8rem; }
.auth-card__foot { margin-top: 1.6rem; color: var(--text-muted); font-size: 0.88rem; }
.auth-card__foot a { color: #ff8ecb; font-weight: 600; }
.auth-card__foot a:hover { color: #fff; }

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 1.05rem; text-align: left; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field span { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(255, 255, 255, 0.06);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 0.35rem; }

.form-error[hidden] {
  display: none;
}
.form-error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--danger);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
}

/* ---------- Shell / topbar ---------- */

.shell { min-height: 100vh; }
.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 10, 28, 0.75);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topnav { display: flex; gap: 0.3rem; margin-left: 0.5rem; flex: 1; }
.topnav__link {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.topnav__link:hover { color: var(--text); background: var(--surface); }
.topnav__link.is-active { color: var(--text); background: var(--surface-2); }

.topbar__user { display: flex; align-items: center; gap: 0.6rem; }
.avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #150f2b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.shell__main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.4rem 2rem 5rem;
}

@media (max-width: 760px) {
  .topbar { padding: 0.85rem 1.1rem; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .shell__main { padding: 1.8rem 1.1rem 4rem; }
}

/* ---------- Dashboard hero panel ---------- */

.hero-panel {
  position: relative;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  margin-bottom: 3rem;
}
.hero-panel__glow {
  position: absolute;
  inset: -40% -10%;
  background: var(--gradient-main);
  opacity: 0.12;
  filter: blur(90px);
  z-index: 0;
}
.hero-panel__greeting {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.hero-panel__tagline {
  position: relative;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 2.2rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.generate-btn {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.generate-btn__ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  background: conic-gradient(from 0deg, var(--pink), var(--purple), var(--blue), var(--pink));
  filter: blur(14px);
  opacity: 0.75;
  animation: spin 5s linear infinite;
}
.generate-btn__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 2.3rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-main);
  color: #120b22;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 18px 45px -12px rgba(139, 92, 246, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.generate-btn__inner .icon { width: 1.25em; height: 1.25em; }
.generate-btn:hover .generate-btn__inner { transform: translateY(-2px) scale(1.02); box-shadow: 0 22px 55px -10px rgba(139, 92, 246, 0.8); }
.generate-btn:active .generate-btn__inner { transform: scale(0.98); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section / grid ---------- */

.section { margin-bottom: 2.5rem; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.section__head h1, .section__head h2 { font-size: 1.3rem; }
.section__head--list { flex-wrap: wrap; gap: 1rem; }

.search-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  min-width: 260px;
  color: var(--text-faint);
}
.search-box .icon { width: 1.05em; height: 1.05em; }
.search-box input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  flex: 1;
}
.search-box input:focus { outline: none; }

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.idea-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.idea-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.idea-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.idea-card__date { font-size: 0.75rem; color: var(--text-faint); white-space: nowrap; }
.idea-card__title { font-size: 1.02rem; line-height: 1.35; }
.idea-card__desc { color: var(--text-muted); font-size: 0.87rem; line-height: 1.5; flex: 1; }
.idea-card__actions { display: flex; gap: 0.45rem; justify-content: flex-end; margin-top: 0.2rem; }

.idea-card--skeleton {
  height: 168px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  cursor: default;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-state .icon { width: 2.2rem; height: 2.2rem; color: var(--purple); margin-bottom: 0.75rem; }
.empty-state h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 0.4rem; }
.empty-state--error .icon { color: var(--danger); }
.empty-state a.btn { margin-top: 1.1rem; }

/* ---------- Idea detail ---------- */

.detail-loading { color: var(--text-muted); padding: 3rem 0; text-align: center; }

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 720px;
}
.detail-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.detail-card__dates { font-size: 0.78rem; color: var(--text-faint); }
.detail-card__actions { display: flex; gap: 0.7rem; margin-top: 0.4rem; }

/* ---------- Settings ---------- */

.settings { max-width: 640px; }
.settings h1 { font-size: 1.4rem; margin-bottom: 1.8rem; }
.settings__section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.3rem;
}
.settings__section h2 { font-size: 1rem; margin-bottom: 1rem; }
.settings__desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.2rem; }
.settings__row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.settings__row:last-child { border-bottom: none; }
.settings__label { color: var(--text-muted); }
.settings__value { font-weight: 600; }

.settings__section--danger { border-color: rgba(255, 107, 107, 0.25); }
.settings__section--danger h2 { color: var(--danger); }

.goodbye-card { max-width: 460px; }
.goodbye-card__icon { background: var(--gradient-soft); color: #ff8ecb; }
.goodbye-card__message {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.lang-toggle { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.lang-option {
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.lang-option:hover { border-color: var(--border-strong); color: var(--text); }
.lang-option.is-active {
  background: var(--gradient-soft);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

/* ---------- Modal ---------- */

#modal-root { position: relative; z-index: 50; }
.modal-root--open { position: fixed; inset: 0; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 18, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal--result, .modal--confirm { text-align: left; }
.modal--result .chip { margin-bottom: 1rem; }

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { color: var(--text); background: var(--surface-2); }
.modal__close .icon { width: 1em; height: 1em; }

.modal__spark {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #120b22;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__spark .icon { width: 1.5em; height: 1.5em; }
.modal__spark--error { background: rgba(255, 107, 107, 0.15); color: var(--danger); }

.modal h2 { text-align: center; font-size: 1.25rem; margin-bottom: 1.4rem; }
.modal--confirm h2, .modal--result .modal__result-title { text-align: left; }

.modal__result-title { font-size: 1.3rem; margin-bottom: 1.1rem; line-height: 1.3; }
.modal__result-body { margin-bottom: 1.3rem; }
.modal__result-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-top: 0.35rem; }
.modal__error-desc { color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-bottom: 1.4rem; line-height: 1.55; }
.modal--confirm .modal__error-desc { text-align: left; }

.modal__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.modal--confirm .modal__actions { justify-content: flex-end; }

.modal--loading { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; padding: 3rem 2rem; }
.modal--loading p { color: var(--text-muted); font-size: 0.92rem; }

.spark-loader { display: flex; gap: 0.5rem; }
.spark-loader span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gradient-main);
  animation: bounce 1s ease-in-out infinite;
}
.spark-loader span:nth-child(2) { animation-delay: 0.15s; }
.spark-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-10px); opacity: 1; }
}

@media (max-width: 480px) {
  .modal { padding: 1.7rem 1.4rem; }
}

/* ---------- Toasts ---------- */

.toast-container {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  font-size: 0.87rem;
  font-weight: 600;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.25s ease;
  max-width: 320px;
}
.toast--show { opacity: 1; transform: translateX(0); }
.toast--success .icon { color: var(--success); }
.toast--error .icon { color: var(--danger); }
.toast .icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
