/* ===================================================================
   Vibesnap — Glassmorphism 2026
   ===================================================================*/

:root {
  --bg-0: #07070d;
  --bg-1: #0d0a1a;
  --bg-2: #14102a;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.18);

  --text: #f5f5fa;
  --text-dim: #a8a8c0;
  --text-faint: #6e6e85;

  --accent-purple: #c084fc;
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
  --accent-purple-soft: rgba(192, 132, 252, 0.18);

  --danger: #ff6b8a;
  --success: #4ade80;

  --grad-main: linear-gradient(135deg, #c084fc 0%, #22d3ee 50%, #f472b6 100%);
  --grad-purple-cyan: linear-gradient(135deg, #c084fc 0%, #22d3ee 100%);
  --grad-cyan-pink: linear-gradient(135deg, #22d3ee 0%, #f472b6 100%);

  --radius-card: 22px;
  --radius-modal: 28px;
  --radius-input: 14px;
  --radius-btn: 14px;
  --radius-chip: 999px;

  --shadow-card: 0 18px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow-purple: 0 0 40px -8px rgba(192, 132, 252, 0.45);
  --shadow-glow-cyan: 0 0 40px -8px rgba(34, 211, 238, 0.40);
  --shadow-glow-pink: 0 0 40px -8px rgba(244, 114, 182, 0.40);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(192, 132, 252, 0.35); color: #fff; }

/* ========== Background ========== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1330 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.75) 0%, transparent 65%);
  top: -180px; left: -120px;
  animation: float-1 22s var(--ease-in-out) infinite alternate;
}
.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55) 0%, transparent 65%);
  top: 40%; right: -160px;
  animation: float-2 26s var(--ease-in-out) infinite alternate;
}
.blob-3 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.5) 0%, transparent 65%);
  bottom: -140px; left: 30%;
  animation: float-3 30s var(--ease-in-out) infinite alternate;
}
@keyframes float-1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(80px, 120px); }
}
@keyframes float-2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-120px, -60px); }
}
@keyframes float-3 {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, -100px); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* ========== Glass surface ========== */
.glass,
.auth-card,
.card,
.feature,
.modal,
.art-card,
.hero-badge,
.feed-empty {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ========== Layout / views ========== */
.view {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  animation: view-in 0.45s var(--ease-out);
}
.view--active { display: flex; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== Topbar ========== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(16px, 4vw, 48px);
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s var(--ease-out);
}
.brand:hover { opacity: 0.85; }
.brand-logo {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
}
.brand-logo svg { width: 100%; height: 100%; }
.brand-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar-nav { display: flex; align-items: center; gap: 10px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
  position: relative;
  white-space: nowrap;
}
.btn i { font-size: 1.1em; line-height: 1; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--grad-main);
  background-size: 200% 200%;
  background-position: 0% 50%;
  border-color: transparent;
  color: #0c0820;
  font-weight: 700;
  box-shadow: var(--shadow-glow-purple);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 0 50px -6px rgba(244, 114, 182, 0.55);
}
.btn--primary:active { transform: translateY(0); }
.btn:disabled, .btn[aria-busy="true"] {
  opacity: 0.6; cursor: not-allowed; transform: none !important;
}
.icon-only { padding: 10px 12px; }
.icon-only .username-chip {
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 4px;
  color: var(--text-dim);
}

/* ========== Hero ========== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 48px);
  flex: 1;
}
.hero-content { display: flex; flex-direction: column; gap: 22px; max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-chip);
}
.hero-badge i { color: var(--accent-cyan); }
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  font-weight: 800;
}
.grad-text {
  background: var(--grad-main);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s linear infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 480px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-top: 8px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta i { color: var(--accent-purple); font-size: 1.05em; }

/* Hero art (floating cards) */
.hero-art {
  position: relative;
  min-height: 420px;
  display: none;
}
.art-card {
  position: absolute;
  width: 260px;
  padding: 18px 20px;
  border-radius: 22px;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: art-float 7s ease-in-out infinite;
}
.art-card .mood { font-size: 1.6rem; }
.art-card p { line-height: 1.45; }
.art-card small { color: var(--text-faint); font-size: 0.8rem; }
.art-card--1 {
  top: 8%; left: 8%;
  box-shadow: var(--shadow-glow-purple);
  animation-delay: 0s;
  transform: rotate(-4deg);
}
.art-card--2 {
  top: 36%; right: 4%;
  box-shadow: var(--shadow-glow-cyan);
  animation-delay: 1.2s;
  transform: rotate(3deg);
}
.art-card--3 {
  bottom: 6%; left: 22%;
  box-shadow: var(--shadow-glow-pink);
  animation-delay: 2.4s;
  transform: rotate(-2deg);
}
@keyframes art-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* ========== Features ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 16px) clamp(16px, 4vw, 48px) 56px;
}
.feature { padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-purple); border-color: var(--glass-border-strong); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-purple-cyan);
  color: #0c0820;
  font-size: 1.3rem;
}

.page-footer {
  text-align: center;
  padding: 28px 24px 40px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.page-footer i { color: var(--accent-pink); }

/* ========== Auth ========== */
.auth-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px clamp(16px, 4vw, 48px) 64px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 32px clamp(20px, 4vw, 40px) 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-chip);
  padding: 4px;
  position: relative;
}
.auth-tab {
  padding: 10px 14px;
  border-radius: var(--radius-chip);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.25s, background 0.3s var(--ease-out);
}
.auth-tab--active {
  color: #0c0820;
  background: var(--grad-main);
  box-shadow: var(--shadow-glow-purple);
}
.auth-form { display: flex; flex-direction: column; gap: 16px; animation: tab-in 0.35s var(--ease-out); }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-title { font-size: 1.45rem; }
.auth-sub { color: var(--text-dim); margin-top: -8px; }
.auth-switch { text-align: center; font-size: 0.9rem; color: var(--text-dim); margin-top: 6px; }
.link {
  color: var(--accent-cyan);
  font-weight: 600;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.link:hover { color: var(--accent-pink); }

/* ========== Fields ========== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.field-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: -2px; }
.field-hint-inline { font-weight: 400; color: var(--text-faint); }
.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-faint);
  pointer-events: none;
  font-size: 1.15rem;
}
.field-wrap input,
.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.25s;
  outline: none;
}
.field-wrap input { padding-left: 44px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus,
.field-wrap input:focus {
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.12);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.char-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-faint);
}
.char-count.is-warn { color: var(--accent-pink); }

/* ========== App / dashboard ========== */
.app-main {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 64px;
  flex: 1;
}
.app-hello {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 24px;
}
.app-hello h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app-hello .muted { color: var(--text-dim); font-size: 0.95rem; }

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}
@media (min-width: 720px) {
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== Card ========== */
.card {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  animation: card-in 0.45s var(--ease-out) both;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,132,252,0.10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  box-shadow: 0 24px 60px -22px rgba(192, 132, 252, 0.45);
}
.card:hover::before { opacity: 1; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-mood {
  font-size: 1.5rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}
.card-time {
  color: var(--text-faint);
  font-size: 0.82rem;
}
.card-text {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}
.card-author {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: italic;
}
.card-author:empty::before { content: ""; }
.card-delete {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-faint);
  transition: color 0.2s, background 0.2s, transform 0.2s;
  opacity: 0;
}
.card:hover .card-delete { opacity: 1; }
.card-delete:hover {
  color: var(--danger);
  background: rgba(255, 107, 138, 0.12);
  transform: scale(1.05);
}
.card.is-leaving {
  animation: card-out 0.3s var(--ease-out) forwards;
}
@keyframes card-out {
  to { opacity: 0; transform: translateY(-10px) scale(0.96); }
}

/* ========== Empty ========== */
.feed-empty {
  padding: 56px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-top: 24px;
}
.feed-empty-art {
  font-size: 4.5rem;
  color: var(--accent-purple);
  filter: drop-shadow(0 0 20px rgba(192, 132, 252, 0.5));
}
.feed-empty h2 { font-size: 1.4rem; }
.feed-empty p { color: var(--text-dim); max-width: 360px; }

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 13, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: overlay-in 0.25s var(--ease-out);
}
@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-modal);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  animation: modal-in 0.35s var(--ease-out);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), var(--shadow-glow-purple);
}
.modal--small { max-width: 400px; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 12px;
}
.modal-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}
.modal-header h2 i { color: var(--accent-cyan); }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--glass-bg-strong); color: var(--text); }
.modal-body {
  padding: 8px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.modal-footer {
  padding: 14px 24px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-footer--center { justify-content: center; }

/* ========== Mood picker ========== */
.mood-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.mood-btn {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.mood-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--glass-bg-strong);
}
.mood-btn--active {
  background: var(--accent-purple-soft);
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 24px -6px rgba(192, 132, 252, 0.6);
  transform: translateY(-2px);
}

/* ========== Profile ========== */
.profile-body {
  align-items: center;
  text-align: center;
  padding-bottom: 16px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-main);
  color: #0c0820;
  font-weight: 800;
  font-size: 2rem;
  margin-top: 6px;
  box-shadow: var(--shadow-glow-purple);
}
.profile-username { font-size: 1.35rem; }
.profile-email { color: var(--text-dim); font-size: 0.92rem; }
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-faint); font-size: 0.8rem; }

/* ========== Toasts ========== */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-strong);
  color: var(--text);
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 360px;
  animation: toast-in 0.3s var(--ease-out);
}
.toast i { font-size: 1.15rem; }
.toast--success { border-color: rgba(74, 222, 128, 0.45); }
.toast--success i { color: var(--success); }
.toast--error { border-color: rgba(255, 107, 138, 0.45); }
.toast--error i { color: var(--danger); }
.toast--info i { color: var(--accent-cyan); }
.toast.is-leaving { animation: toast-out 0.25s var(--ease-out) forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px); }
}

/* ========== Utils ========== */
.is-hidden { display: none !important; }
.mobile-hide { display: inline; }

/* ========== Responsive ========== */
@media (min-width: 880px) {
  .hero-art { display: block; }
}
@media (max-width: 720px) {
  .topbar { padding: 16px 16px; }
  .topbar-nav .btn { padding: 9px 14px; font-size: 0.88rem; }
  .topbar-nav .btn--lg { padding: 11px 16px; }
  .icon-only .username-chip { display: none; }
  .mobile-hide { display: none; }
  .hero { padding-top: 16px; }
  .hero-title { font-size: 2.2rem; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .auth-card { padding: 24px 20px 28px; }
  .modal-header { padding: 18px 18px 8px; }
  .modal-body { padding: 8px 18px; }
  .modal-footer { padding: 12px 18px 18px; }
  .card-delete { opacity: 1; }
}

/* ========== Phosphor icon fallback sizing ========== */
.ph, .ph-bold, .ph-fill, .ph-light, .ph-thin, .ph-duotone {
  display: inline-block;
  line-height: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
