/* Crypto Bros — website tokens mirrored from src/theme/{colors,typography,spacing,layout}.ts.
   The app's theme files are the source of truth; keep in sync by hand. */
:root {
  --bg: #000000;
  --surface: #1A1A1A;
  --surface-highlight: #222222;
  --bg-tertiary: #18181B;
  --text: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --border: #27272A;
  --inner-border: rgba(255, 255, 255, 0.1);
  --divider: rgba(255, 255, 255, 0.1);
  --actions-border: rgba(128, 128, 128, 0.2);
  --accent: #F15B24;
  --success: #22C55E;
  --error: #EF4444;
  --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.3);
  /* SegmentedControl (app parity — src/components/ui/SegmentedControl.tsx) */
  --seg-track: rgba(255, 255, 255, 0.05);
  --seg-active: rgba(255, 255, 255, 0.13);
  --seg-active-text: rgba(255, 255, 255, 0.81);

  --cat-Mercado: #60A5FA;
  --cat-Estudos: #A78BFA;
  --cat-Altcoins: #F15B24;
  --cat-Trade: #34D399;
  --cat-Video: #F87171;
  --cat-ATH: #FBBF24;
  --cat-Mais: #A1A1AA;

  --radius-card: 16px;
  --radius-pill: 999px;
  --pad-screen: 20px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root[data-theme='light'] {
  --bg: #F2F2F2;
  --surface: #F8F8F8;
  --surface-highlight: #FAFAFA;
  --bg-tertiary: #E4E4E7;
  --text: #000000;
  --text-secondary: #52525B;
  --text-tertiary: #A1A1AA;
  --border: #E4E4E7;
  --inner-border: rgba(255, 255, 255, 0.5);
  --divider: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.08);
  --cat-Mercado: #3B82F6;
  --cat-Estudos: #8B5CF6;
  --cat-Trade: #10B981;
  --cat-Video: #EF4444;
  --cat-ATH: #F59E0B;
  --cat-Mais: #71717A;
  --seg-track: rgba(0, 0, 0, 0.03);
  --seg-active: rgba(227, 226, 224, 0.5);
  --seg-active-text: #37352F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
:root[data-theme='light'] { color-scheme: light; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hidden { display: none !important; }

/* ── Login ─────────────────────────────────────────────────────────── */
.login {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--pad-screen); gap: var(--space-lg); text-align: center;
}
.login__logo { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
.login__title { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.5px; }
.login__subtitle { color: var(--text-secondary); font-size: 15px; line-height: 20px; max-width: 320px; }
.login__hint { color: var(--text-tertiary); font-size: 12px; line-height: 16px; max-width: 300px; }
#google-btn { min-height: 44px; display: flex; justify-content: center; }
.login__error { color: var(--error); font-size: 13px; }

/* ── Top bar ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-md) var(--pad-screen);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.topbar__brand {
  display: flex; align-items: center; gap: var(--space-sm);
  font-weight: 700; font-size: 20px; letter-spacing: -0.3px; margin-right: auto;
}
.topbar__brand img { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn {
  width: 36px; height: 36px; border: none; border-radius: var(--radius-pill);
  background: var(--bg-tertiary); color: var(--text-secondary); font-size: 16px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 0.12s;
}
.icon-btn:active { opacity: 0.7; }

/* User avatar + popover menu */
.user { position: relative; }
.user-btn {
  width: 32px; height: 32px; border-radius: var(--radius-pill); border: 1px solid var(--inner-border);
  background: var(--bg-tertiary); padding: 0; cursor: pointer; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-btn img, .topbar-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-pill); }
/* User avatar placeholder = initials on grey (per app request) */
.topbar-avatar.avatar--ph { background: #71717A; color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.menu__user { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.menu__user-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.menu__user-avatar .topbar-avatar.avatar--ph { font-size: 15px; }
.menu__user-info { min-width: 0; }
.menu__user-name { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__user-email { font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 300px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--inner-border); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35); padding: 12px; display: flex; flex-direction: column; gap: 12px;
}
.menu__section { display: flex; flex-direction: column; gap: 8px; }
.menu__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); }
/* SegmentedControl — matches the app (track/indicator colors, 3px pad, 2px gap, no shadow) */
.menu__seg { display: flex; flex-direction: row; gap: 2px; padding: 3px; background: var(--seg-track); border-radius: var(--radius-pill); }
.menu__seg button {
  flex: 1; border: none; background: none; cursor: pointer; font-family: var(--font);
  padding: 6px 10px; border-radius: var(--radius-pill); white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: background 0.2s, color 0.2s;
}
.menu__seg button svg { width: 13px; height: 13px; flex: 0 0 auto; }
.menu__seg button.active { background: var(--seg-active); color: var(--seg-active-text); font-weight: 600; }

/* GIS button wrapper — kill the light placeholder frame so it fits dark theme */
#google-btn > div { background: transparent !important; box-shadow: none !important; }
.menu__notif {
  border: none; background: var(--bg-tertiary); color: var(--text); padding: 10px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.menu__notif:disabled { color: var(--text-tertiary); cursor: default; }
.menu__notif.on { color: var(--success); }
.menu__logout {
  border: none; background: var(--bg-tertiary); color: var(--error); padding: 10px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
}

/* History (Mais antigos) */
.history {
  margin: 20px var(--pad-screen) 0;
  background: var(--surface); border: 1px solid var(--inner-border);
  border-radius: var(--radius-card); overflow: hidden;
}
.history__header { padding: 20px var(--pad-screen) 16px; font-size: 20px; line-height: 25px; font-weight: 600; border-bottom: 1px solid var(--border); }
.history__row {
  display: flex; align-items: center; gap: 12px; padding: 16px var(--pad-screen);
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.12s;
  background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left; font-family: var(--font);
}
.history__row:last-child { border-bottom: none; }
.history__row:active { background: var(--surface-highlight); }
.history__icon {
  width: 28px; height: 28px; border-radius: 14px; background: var(--bg-tertiary); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 15px; object-fit: cover;
}
.history__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.history__title { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.history__date { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.history__chev { color: var(--border); flex: 0 0 auto; }
.history__pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px; border-top: 1px solid var(--border); }
.history__pager button { width: 44px; height: 44px; border: none; background: none; cursor: pointer; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.history__pager button:disabled { color: var(--text-tertiary); opacity: 0.3; cursor: default; }

/* Post detail modal — centered card (like the cryptobro-app reference) */
.modal {
  position: fixed; inset: 0; z-index: 100; padding: 16px;
  display: flex; align-items: center; justify-content: center;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative; width: 100%; max-width: min(95vw, 680px); max-height: 90vh;
  background: var(--surface); border: 1px solid var(--inner-border);
  border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5); animation: modal-in 0.2s ease;
}
@keyframes modal-in { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; left: 16px; z-index: 2; width: 36px; height: 36px; border-radius: var(--radius-pill);
  border: none; background: rgba(0,0,0,0.5); color: #fff; font-size: 15px; cursor: pointer; backdrop-filter: blur(8px);
}
.modal__share {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: var(--radius-pill);
  border: none; background: rgba(0,0,0,0.5); color: #fff; cursor: pointer; backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal__scroll { overflow-y: auto; flex: 1; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); z-index: 200;
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-pill); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal__cover { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; background: var(--bg-tertiary); display: block; }
.modal__body { padding: 20px; }
.modal__title { font-size: 24px; line-height: 30px; font-weight: 700; margin-top: 10px; }
.modal__content { margin-top: 16px; }
.modal__content > *:last-child { margin-bottom: 0; }
.modal__content p { margin: 0 0 12px; font-size: 15px; line-height: 24px; }
.modal__content h1 { font-size: 24px; line-height: 30px; font-weight: 700; margin: 16px 0 8px; }
.modal__content h2 { font-size: 20px; line-height: 26px; font-weight: 700; margin: 16px 0 8px; }
.modal__content h3 { font-size: 17px; line-height: 22px; font-weight: 600; margin: 12px 0 8px; }
.modal__content ul, .modal__content ol { padding-left: 22px; margin: 0 0 12px; }
.modal__content li { margin: 4px 0; font-size: 15px; line-height: 24px; }
.modal__content img { width: 100%; border-radius: 10px; margin: 12px 0; }
.modal__content blockquote { border-left: 3px solid var(--accent); padding-left: 14px; margin: 12px 0; color: var(--text-secondary); }
.modal__content .callout { display: flex; gap: 10px; background: var(--bg-tertiary); border-radius: 10px; padding: 14px; margin: 12px 0; }
.modal__content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-tertiary); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.modal__content pre { background: var(--bg-tertiary); padding: 14px; border-radius: 10px; overflow-x: auto; margin: 12px 0; }
.modal__content pre code { background: none; padding: 0; }
.modal__content a { color: var(--accent); text-decoration: none; }
.modal__content details { margin: 8px 0; }
.modal__content summary { cursor: pointer; font-weight: 600; }
.modal__state { padding: 60px 20px; text-align: center; color: var(--text-secondary); }

/* Notion block elements (shared by card preview + modal content) */
.nb-hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.nb-figure { margin: 12px 0; }
.nb-figure img { width: 100%; border-radius: 10px; display: block; }
.nb-figure figcaption { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--text-tertiary); text-align: center; }
.nb-video { position: relative; aspect-ratio: 16 / 9; margin: 12px 0; border-radius: 10px; overflow: hidden; background: #000; }
.nb-video iframe, .nb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.nb-bookmark {
  display: flex; flex-direction: column; gap: 4px; margin: 12px 0; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-tertiary); text-decoration: none;
}
.nb-bookmark-title { color: var(--text); font-size: 14px; font-weight: 500; line-height: 18px; }
.nb-bookmark-url { color: var(--text-tertiary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin: 12px 0; }
.nb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nb-table th, .nb-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.nb-table th { font-weight: 600; color: var(--text); background: var(--bg-tertiary); }
.nb-table td { color: var(--text-secondary); }
.nb-table tr:last-child td { border-bottom: none; }
.nb-columns { display: flex; gap: 16px; margin: 8px 0; }
.nb-column { flex: 1; min-width: 0; }
@media (max-width: 520px) { .nb-columns { flex-direction: column; gap: 0; } }
.nb-eq { font-style: italic; }

/* iOS App Store banner */
.ios-banner {
  display: flex; align-items: center; gap: 10px; padding: 8px var(--pad-screen);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.ios-banner__icon { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; }
.ios-banner__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ios-banner__text strong { font-size: 14px; }
.ios-banner__text span { font-size: 12px; color: var(--text-secondary); }
.ios-banner__cta { flex: 0 0 auto; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: var(--radius-pill); text-decoration: none; }
.ios-banner__close { flex: 0 0 auto; border: none; background: none; color: var(--text-tertiary); font-size: 15px; cursor: pointer; padding: 4px; }

/* ── Feed layout ────────────────────────────────────────────────────── */
.feed { max-width: 640px; margin: 0 auto; padding-bottom: var(--pad-screen); }

/* ── Price marquee ──────────────────────────────────────────────────── */
.marquee {
  margin: var(--space-md) var(--pad-screen) 0;
  background: var(--surface); border: 1px solid var(--inner-border);
  border-radius: var(--radius-card); padding: 4px 0; overflow: hidden;
}
.marquee__viewport { height: 48px; display: flex; align-items: center; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 39s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-1170px); } }
.marquee__item { width: 110px; margin-right: 20px; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.marquee__icon { width: 24px; height: 24px; border-radius: 12px; object-fit: contain; }
.marquee__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.marquee__sym { font-size: 12px; font-weight: 700; line-height: 12px; letter-spacing: 0.3px; }
.marquee__pricerow { display: flex; gap: 4px; align-items: baseline; }
.marquee__price { font-size: 10px; line-height: 10px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.marquee__chg { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.up { color: var(--success); }
.down { color: var(--error); }

/* ── Market widget (Fear & Greed + MVRV) ───────────────────────────── */
.market {
  margin: 12px var(--pad-screen) 0;
  background: var(--surface); border: 1px solid var(--inner-border);
  border-radius: var(--radius-card); padding: var(--space-md);
  display: flex; align-items: stretch; overflow: hidden;
}
.market__section { flex: 1; display: flex; flex-direction: column; align-items: center; }
.market__divider { width: 1px; align-self: stretch; margin: 0 12px; background: var(--divider); }
.market__title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); margin-bottom: 8px; }
.gauge-row { display: flex; align-items: center; gap: 8px; }
.gauge-marker { stroke: var(--surface); }
.market__value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.market__label { font-size: 12px; font-weight: 600; margin-top: 4px; text-align: center; }

/* ── Tag filter bar ─────────────────────────────────────────────────── */
.tagbar {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: var(--space-md) var(--pad-screen) 12px;
}
.tagbar::-webkit-scrollbar { display: none; }
.tag-pill {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 22px; border: 1px solid var(--inner-border);
  background: var(--surface); color: var(--text-secondary);
  font-family: var(--font); font-size: 14px; font-weight: 500; white-space: nowrap;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.15s;
}
.tag-pill:active { transform: scale(0.95); }
.tag-pill.selected { font-weight: 600; box-shadow: none; }

/* ── Post card ──────────────────────────────────────────────────────── */
.card {
  margin: 20px var(--pad-screen) 0;
  background: var(--surface); border: 1px solid var(--inner-border);
  border-radius: var(--radius-card); overflow: hidden;
}
.card__cover { display: block; width: 100%; aspect-ratio: 14 / 9; object-fit: cover; background: var(--bg-tertiary); }
.card__body { padding: 22px 20px 16px; }
.card__author { display: flex; align-items: center; justify-content: space-between; }
.card__author-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.avatar { width: 20px; height: 20px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.avatar--ph { background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.card__author-name { font-size: 12px; line-height: 16px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__date { font-size: 12px; line-height: 16px; color: var(--text-tertiary); flex: 0 0 auto; }
.card__title { font-size: 24px; line-height: 30px; font-weight: 700; margin-top: 10px; }
.card__title .emoji { margin-right: 8px; }
.title-chip { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; margin-right: 6px; vertical-align: middle; }

.card__preview { margin-top: 12px; }
.card__preview > *:last-child { margin-bottom: 0; }
.card__preview p { margin: 0 0 8px; color: var(--text-secondary); font-size: 14px; line-height: 22px; }
.card__preview h1 { font-size: 20px; line-height: 26px; font-weight: 700; margin: 8px 0; }
.card__preview h2 { font-size: 18px; line-height: 24px; font-weight: 700; margin: 8px 0; }
.card__preview h3 { font-size: 16px; line-height: 22px; font-weight: 600; margin: 8px 0; }
.card__preview ul, .card__preview ol { padding-left: 20px; margin: 0 0 8px; color: var(--text-secondary); }
.card__preview li { margin: 2px 0; font-size: 14px; line-height: 22px; }
.card__preview img { width: 100%; border-radius: 8px; margin: 8px 0; }
.card__preview blockquote { border-left: 3px solid var(--border); padding-left: 12px; margin: 8px 0; color: var(--text-secondary); }
.card__preview .callout { display: flex; gap: 8px; background: var(--bg-tertiary); border-radius: 8px; padding: 12px; margin: 8px 0; color: var(--text-secondary); }
.card__preview .callout-emoji { flex: 0 0 auto; }
.card__preview code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-tertiary); padding: 1px 4px; border-radius: 4px; font-size: 12px; }
.card__preview pre { background: var(--bg-tertiary); padding: 12px; border-radius: 8px; overflow-x: auto; margin: 8px 0; }
.card__preview pre code { background: none; padding: 0; }
.card__preview a { color: var(--accent); text-decoration: none; }
.excerpt-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-secondary); font-size: 15px; line-height: 20px; }

.card__more { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--actions-border); }
.card__more button { display: flex; align-items: center; gap: 4px; background: none; border: none; color: var(--accent); font-family: var(--font); font-size: 15px; cursor: pointer; }

/* ── States ─────────────────────────────────────────────────────────── */
.state { text-align: center; color: var(--text-secondary); padding: 48px var(--pad-screen); font-size: 14px; }
.state h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.state button { margin-top: var(--space-md); padding: 10px 18px; border: none; border-radius: var(--radius-pill); background: var(--accent); color: #fff; font-weight: 600; font-family: var(--font); cursor: pointer; }

.skeleton { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .card__cover { background: var(--surface-highlight); }
.skeleton .sk-line { height: 14px; border-radius: 6px; background: var(--surface-highlight); margin: 8px 0; }
.skeleton .sk-line.title { height: 24px; width: 70%; }
.skeleton .sk-line.short { width: 40%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.preview-tag {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--text-tertiary); background: var(--surface);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; z-index: 20;
}
