:root {
  --bg: #0a0a10;
  --bg2: rgba(22, 22, 32, 0.72);
  --card: rgba(28, 28, 42, 0.66);
  --gold: #f0be55;
  --pink: #ff6b9d;
  --purple: #8a63ff;
  --cyan: #5eead4;
  --text: #f4f2fa;
  --muted: #a09ab8;
  --bubble-me: #2c2c40;
  --radius: 20px;
  --glass-border: rgba(255, 255, 255, 0.09);
  --glow-gold: 0 4px 22px rgba(240, 190, 85, 0.35);
  --glow-purple: 0 4px 22px rgba(138, 99, 255, 0.4);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; max-width: 640px; margin: 0 auto;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(138, 99, 255, 0.16), transparent 60%),
    radial-gradient(900px 480px at 8% 12%, rgba(255, 107, 157, 0.1), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(240, 190, 85, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
}
.hidden { display: none !important; }
.view { display: flex; flex-direction: column; min-height: 100dvh; }

/* ---------- Auth ---------- */
#auth-view { justify-content: center; padding: 24px; }
.auth-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 28px; padding: 38px 28px; text-align: center;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.logo { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.logo .heart { filter: drop-shadow(0 0 8px rgba(240,190,85,.7)); }
.logo.small { font-size: 20px; }
.tagline { color: var(--muted); margin: 8px 0 24px; }
#auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-msg { min-height: 20px; color: var(--gold); font-size: 14px; }
.fineprint { color: var(--muted); font-size: 12px; }
.fineprint a { color: var(--gold); }

/* ---------- Header ---------- */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg2); border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
header .logo.small {
  background: linear-gradient(120deg, var(--gold), var(--pink), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.header-right { display: flex; align-items: center; gap: 6px; }
.badge {
  font-size: 11px; background: rgba(240,190,85,.12); color: var(--gold);
  border: 1px solid rgba(240,190,85,.3);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.icon-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-border);
  font-size: 18px; cursor: pointer; color: var(--text);
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.icon-btn:active { transform: scale(.92); background: rgba(255,255,255,.1); }

/* ---------- Upgrade banner ---------- */
.upgrade-banner {
  margin: 12px 12px 0; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(64,42,110,.55), rgba(110,35,80,.45));
  border: 1px solid rgba(240,190,85,.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glow-gold);
}
.upgrade-banner p { margin: 0 0 10px; font-size: 14px; }
.upgrade-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons / inputs ---------- */
.btn-primary, .btn-gold, .btn-ghost {
  border: none; border-radius: 999px; padding: 13px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-primary:active, .btn-gold:active, .btn-ghost:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(135deg, var(--purple), #6d4de0); color: #fff; box-shadow: var(--glow-purple); }
.btn-gold { background: linear-gradient(135deg, #f6c860, #e09a35); color: #1a1206; box-shadow: var(--glow-gold); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--glass-border); }
input, select, textarea {
  background: rgba(10,10,18,.6); border: 1px solid var(--glass-border); color: var(--text);
  border-radius: 14px; padding: 13px 14px; font-size: 15px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,190,85,.15);
}

/* ---------- Main / tabs ---------- */
main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.tab-view { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 16px 12px 12px; }
.tab-view h2 { margin: 4px 4px 4px; letter-spacing: -0.3px; }
.section-sub { color: var(--muted); font-size: 13px; margin: 0 4px 12px; }
#tabbar {
  display: flex; background: var(--bg2); border-top: 1px solid var(--glass-border);
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  margin: 0 10px 10px; border-radius: 24px; border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
#tabbar button {
  flex: 1; background: none; border: none; color: var(--muted); font-size: 21px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
  padding: 8px 4px; border-radius: 16px; transition: all .18s;
}
#tabbar button span { font-size: 10px; font-weight: 600; }
#tabbar button.active {
  color: var(--gold); background: rgba(240,190,85,.1);
  box-shadow: inset 0 0 18px rgba(240,190,85,.08);
}

/* ---------- Chat ---------- */
#messages { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 4px 4px 8px; scroll-behavior: smooth; }
.msg {
  max-width: 86%; padding: 12px 15px; border-radius: var(--radius);
  font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
  animation: msgIn .25s ease-out;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.msg.user {
  align-self: flex-end; color: #fff; border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, #8a63ff, #6d3df0);
  box-shadow: var(--glow-purple);
}
.msg.assistant {
  align-self: flex-start; border-bottom-left-radius: 7px;
  background: var(--card); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.msg.typing { color: var(--muted); font-style: italic; }
.typing-dots span { animation: blink 1.2s infinite; font-size: 20px; line-height: 1; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* chat images */
.msg.img-msg { padding: 6px; background: var(--card); border: 1px solid var(--glass-border); }
.msg.img-msg img {
  display: block; width: 100%; max-width: 320px; border-radius: 14px; cursor: pointer;
}
.img-actions { display: flex; gap: 6px; padding: 8px 4px 4px; }
.img-actions button {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  color: var(--text); border-radius: 999px; padding: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}

#chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px; scrollbar-width: none; }
#chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; background: var(--card); border: 1px solid var(--glass-border); color: var(--text);
  border-radius: 999px; padding: 9px 15px; font-size: 13px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .15s, transform .15s;
}
.chip:active { transform: scale(.95); border-color: var(--gold); }

#composer {
  display: flex; gap: 8px; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); align-items: center;
  background: var(--bg2); border: 1px solid var(--glass-border); border-radius: 28px; margin: 0 2px;
  padding-left: 6px; padding-right: 6px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
#chat-input { flex: 1; border-radius: 999px; border: none; background: transparent; box-shadow: none; }
#chat-input:focus { box-shadow: none; }
.composer-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; font-size: 20px; cursor: pointer;
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.composer-btn:active { transform: scale(.9); }
.mic-btn {
  background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: var(--glow-gold); color: #1a1206;
}
.mic-btn.listening { animation: pulse 1.2s infinite; }
.art-btn { background: rgba(138,99,255,.18); border: 1px solid rgba(138,99,255,.45); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.send-btn { background: linear-gradient(135deg, var(--purple), #6d3df0); color: #fff; box-shadow: var(--glow-purple); }
.mic-hint { text-align: center; color: var(--gold); font-size: 13px; margin: 6px 0 0; }

/* ---------- Image studio sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(5,5,10,.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 640px; background: rgba(24,24,36,.96);
  border: 1px solid var(--glass-border); border-bottom: none;
  border-radius: 28px 28px 0 0; padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
  animation: sheetUp .28s cubic-bezier(.2,.9,.3,1.1);
  max-height: 86dvh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 44px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }
.sheet .section-sub { margin-bottom: 10px; }
.sheet textarea { min-height: 84px; resize: vertical; margin-bottom: 10px; }
.sheet .btn-primary, .sheet .btn-gold { width: 100%; margin-top: 6px; }
.sheet-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.sheet-divider::before, .sheet-divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
.upload-preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--glass-border); }
.sheet-status { text-align: center; color: var(--gold); font-size: 14px; min-height: 22px; margin-top: 8px; }
.upload-label {
  display: block; text-align: center; padding: 14px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed rgba(138,99,255,.5); color: var(--text); font-weight: 600; font-size: 14px;
  background: rgba(138,99,255,.07); margin-bottom: 4px;
}

/* ---------- Fullscreen image viewer ---------- */
.img-viewer {
  position: fixed; inset: 0; z-index: 80; background: rgba(4,4,8,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s ease-out;
}
.img-viewer img { max-width: 100%; max-height: 62dvh; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.img-viewer-bar { display: flex; gap: 10px; margin-top: 16px; width: 100%; max-width: 420px; }
.img-viewer-bar .btn-ghost { flex: 1; }
.img-edit-row { display: flex; gap: 8px; margin-top: 12px; width: 100%; max-width: 420px; }
.img-edit-row input { flex: 1; }

/* ---------- Cards / lists ---------- */
.card {
  background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 17px; margin: 0 4px 12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row input, .form-row select { flex: 1 1 140px; }
.form-row .btn-primary { flex: 0 0 auto; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(10,10,18,.5); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 13px; margin-bottom: 8px;
}
.list-item .meta { font-size: 12px; color: var(--muted); }
.streak { color: #ff8c42; font-weight: 800; }
.affirmation {
  font-size: 16px; line-height: 1.5; background: rgba(10,10,18,.5);
  border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 12px 12px 0; margin: 0 0 12px;
}
.del-btn { background: none; border: none; color: var(--pink); font-size: 16px; cursor: pointer; }
.checkin-btn { background: linear-gradient(135deg, #f6c860, #e09a35); border: none; border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; color: #1a1206; }
.checkin-btn.done { background: #2e7d4f; color: #fff; }

/* ---------- Live voice conversation ---------- */
.convo-view {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(800px 500px at 50% 20%, rgba(138,99,255,.22), transparent 65%),
    radial-gradient(600px 500px at 50% 90%, rgba(255,107,157,.14), transparent 60%),
    rgba(8, 8, 14, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 24px;
  animation: fadeIn .25s ease-out;
}
.convo-card { text-align: center; max-width: 340px; }
.convo-orb {
  width: 128px; height: 128px; border-radius: 50%; border: none; font-size: 54px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--pink), var(--purple));
  background-size: 200% 200%; animation: orbShift 6s ease infinite;
  box-shadow: 0 10px 44px rgba(240,190,85,.5), 0 0 80px rgba(138,99,255,.25);
  margin-bottom: 18px;
}
@keyframes orbShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.convo-orb.listening { animation: orbShift 6s ease infinite, pulse 1.2s infinite; }
.convo-orb.speaking { animation: orbShift 3s ease infinite, pulse 0.8s infinite; filter: saturate(1.4); }
.convo-orb.thinking { animation: orbShift 6s ease infinite, pulse 1.6s infinite; filter: grayscale(0.4); }
.convo-status { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.convo-heard { font-size: 14px; color: var(--muted); min-height: 40px; margin: 0 0 16px; font-style: italic; }

/* ---------- Auth extras ---------- */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 4px; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
#login-form { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Password nudge ---------- */
.pw-nudge {
  background: var(--card); border: 1px solid rgba(240,190,85,.35); border-radius: var(--radius);
  padding: 13px 15px; margin: 0 4px 12px; font-size: 14px;
  display: flex; flex-direction: column; gap: 10px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pw-nudge-btns { display: flex; gap: 8px; }
.btn-small { padding: 9px 15px; font-size: 13px; border-radius: 999px; }

/* ---------- Shared project chats ---------- */
.sender-chip {
  font-size: 11px; font-weight: 700; color: var(--gold);
  margin-bottom: 4px; letter-spacing: .4px; text-transform: uppercase;
}
#share-members { margin-bottom: 6px; }

/* ---------- Perks (All-Access) ---------- */
.perk-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #14101f; background: linear-gradient(135deg, #f6c860, #e8a33d);
  border-radius: 999px; padding: 3px 9px; vertical-align: middle; margin-left: 6px;
}
.pref-label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 14px; }
.pref-label select {
  background: rgba(255,255,255,.06); color: inherit;
  border: 1px solid var(--glass-border); border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
.search-btn { font-size: 17px; }

/* ---------- Install banner ---------- */@keyframes banner-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,190,85,.0); }
  50% { box-shadow: 0 0 18px 0 rgba(240,190,85,.25); }
}
.install-banner {
  background: var(--card); border: 1px solid rgba(240,190,85,.45); border-radius: var(--radius);
  padding: 13px 12px 13px 15px; margin: 0 4px 12px; font-size: 13.5px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 8px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: banner-pulse 3s ease-in-out infinite;
}
.install-text { flex: 1; }
#install-card { border: 1px solid rgba(240,190,85,.35); }
#install-card h3 { color: var(--gold); }

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

/* drifting aurora behind everything */
body::before {
  content: ''; position: fixed; inset: -15%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 22% 8%, rgba(138,99,255,.13), transparent 60%),
    radial-gradient(520px 380px at 84% 26%, rgba(255,107,157,.09), transparent 60%),
    radial-gradient(560px 420px at 50% 96%, rgba(240,190,85,.08), transparent 60%);
  filter: blur(12px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 3%, 0) scale(1.08); }
}

/* shimmering gradient logo */
header .logo.small {
  background: linear-gradient(120deg, var(--gold), var(--pink), var(--purple), var(--gold));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: logoShimmer 7s linear infinite;
}
@keyframes logoShimmer { to { background-position: 220% center; } }

/* sliding tab indicator */
#tabbar { position: relative; }
.tab-indicator {
  position: absolute; bottom: 7px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  box-shadow: 0 0 12px rgba(240,190,85,.85);
  transition: left .32s cubic-bezier(.3,1.25,.4,1), width .32s cubic-bezier(.3,1.25,.4,1);
  pointer-events: none;
}

/* tab view entrance */
.tab-view { animation: tabIn .28s ease-out; }
@keyframes tabIn { from { opacity: 0; transform: translateY(12px); } }

/* button sheen sweep */
.btn-gold, .btn-primary { position: relative; overflow: hidden; }
.btn-gold::after, .btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-20deg); pointer-events: none;
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -80%; } 100% { left: 190%; } }

/* voice orb ripple rings */
.convo-orb { position: relative; }
.convo-orb.listening::before, .convo-orb.speaking::before,
.convo-orb.listening::after, .convo-orb.speaking::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(240,190,85,.55); pointer-events: none;
  animation: ringOut 2.1s ease-out infinite;
}
.convo-orb.listening::after, .convo-orb.speaking::after { animation-delay: 1.05s; }
@keyframes ringOut { from { transform: scale(1); opacity: .85; } to { transform: scale(1.9); opacity: 0; } }

/* mic button breathing glow */
.mic-btn { animation: breathe 3.2s ease-in-out infinite; }
.mic-btn.listening { animation: pulse 1.2s infinite; }
@keyframes breathe { 0%,100% { box-shadow: 0 4px 14px rgba(232,182,76,.35); } 50% { box-shadow: 0 4px 26px rgba(255,107,157,.55); } }

/* composer focus glow */
#composer { transition: box-shadow .2s, border-color .2s; }
#composer:focus-within {
  border-color: rgba(240,190,85,.45);
  box-shadow: 0 8px 28px rgba(0,0,0,.4), 0 0 0 3px rgba(240,190,85,.16), 0 0 24px rgba(240,190,85,.12);
}

/* chips stagger in */
#chips .chip { animation: chipIn .32s ease-out backwards; }
#chips .chip:nth-child(2) { animation-delay: .05s; }
#chips .chip:nth-child(3) { animation-delay: .1s; }
#chips .chip:nth-child(4) { animation-delay: .15s; }
#chips .chip:nth-child(5) { animation-delay: .2s; }
#chips .chip:nth-child(6) { animation-delay: .25s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* image generation shimmer placeholder */
.img-shimmer {
  width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 14px;
  background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.13) 46%, rgba(255,255,255,.04) 62%);
  background-size: 220% 100%;
  animation: shimmerSlide 1.5s linear infinite;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
@keyframes shimmerSlide { to { background-position: -220% 0; } }
.img-shimmer-label { text-align: center; color: var(--gold); font-size: 13px; padding: 8px 4px 2px; }

/* newest message soft glow */
.msg.assistant:last-child { animation: msgIn .25s ease-out, msgGlow 1.6s ease-out; }
@keyframes msgGlow { from { box-shadow: 0 0 24px rgba(138,99,255,.35); } to { box-shadow: 0 4px 14px rgba(0,0,0,.25); } }

/* upgrade banner gentle pulse */
.upgrade-banner { animation: bannerGlow 4s ease-in-out infinite; }
@keyframes bannerGlow {
  0%,100% { box-shadow: 0 4px 22px rgba(240,190,85,.25); }
  50% { box-shadow: 0 4px 34px rgba(240,190,85,.45); }
}
